mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
Automated build 'Merge branch 'main' of https://github.com/LukeHagar/plex-api-spec' typescript-axios sdk: 4681414548
This commit is contained in:
94
dist/sdk-output/api.js
vendored
94
dist/sdk-output/api.js
vendored
@@ -313,58 +313,50 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
// verify required parameter 'xPlexClientIdentifier' is not null or undefined
|
||||
(0, common_1.assertParamExists)('getPin', 'xPlexClientIdentifier', xPlexClientIdentifier);
|
||||
localVarPath = "/pins";
|
||||
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
// authentication PlexToken required
|
||||
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
if (strong !== undefined) {
|
||||
localVarQueryParameter['strong'] = strong;
|
||||
}
|
||||
if (xPlexClientIdentifier !== undefined && xPlexClientIdentifier !== null) {
|
||||
localVarHeaderParameter['X-Plex-Client-Identifier'] = String(JSON.stringify(xPlexClientIdentifier));
|
||||
}
|
||||
if (xPlexDeviceName !== undefined && xPlexDeviceName !== null) {
|
||||
localVarHeaderParameter['X-Plex-Device-Name'] = String(JSON.stringify(xPlexDeviceName));
|
||||
}
|
||||
if (xPlexDevice !== undefined && xPlexDevice !== null) {
|
||||
localVarHeaderParameter['X-Plex-Device'] = String(JSON.stringify(xPlexDevice));
|
||||
}
|
||||
if (xPlexPlatformVersion !== undefined && xPlexPlatformVersion !== null) {
|
||||
localVarHeaderParameter['X-Plex-Platform-Version'] = String(JSON.stringify(xPlexPlatformVersion));
|
||||
}
|
||||
if (xPlexPlatform !== undefined && xPlexPlatform !== null) {
|
||||
localVarHeaderParameter['X-Plex-Platform'] = String(JSON.stringify(xPlexPlatform));
|
||||
}
|
||||
if (xPlexProduct !== undefined && xPlexProduct !== null) {
|
||||
localVarHeaderParameter['X-Plex-Product'] = String(JSON.stringify(xPlexProduct));
|
||||
}
|
||||
if (xPlexProvides !== undefined && xPlexProvides !== null) {
|
||||
localVarHeaderParameter['X-Plex-Provides'] = String(JSON.stringify(xPlexProvides));
|
||||
}
|
||||
if (xPlexVersion !== undefined && xPlexVersion !== null) {
|
||||
localVarHeaderParameter['X-Plex-Version'] = String(JSON.stringify(xPlexVersion));
|
||||
}
|
||||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
||||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
||||
return [2 /*return*/, {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
// verify required parameter 'xPlexClientIdentifier' is not null or undefined
|
||||
(0, common_1.assertParamExists)('getPin', 'xPlexClientIdentifier', xPlexClientIdentifier);
|
||||
localVarPath = "/pins";
|
||||
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
if (strong !== undefined) {
|
||||
localVarQueryParameter['strong'] = strong;
|
||||
}
|
||||
if (xPlexClientIdentifier !== undefined && xPlexClientIdentifier !== null) {
|
||||
localVarHeaderParameter['X-Plex-Client-Identifier'] = String(JSON.stringify(xPlexClientIdentifier));
|
||||
}
|
||||
if (xPlexDeviceName !== undefined && xPlexDeviceName !== null) {
|
||||
localVarHeaderParameter['X-Plex-Device-Name'] = String(JSON.stringify(xPlexDeviceName));
|
||||
}
|
||||
if (xPlexDevice !== undefined && xPlexDevice !== null) {
|
||||
localVarHeaderParameter['X-Plex-Device'] = String(JSON.stringify(xPlexDevice));
|
||||
}
|
||||
if (xPlexPlatformVersion !== undefined && xPlexPlatformVersion !== null) {
|
||||
localVarHeaderParameter['X-Plex-Platform-Version'] = String(JSON.stringify(xPlexPlatformVersion));
|
||||
}
|
||||
if (xPlexPlatform !== undefined && xPlexPlatform !== null) {
|
||||
localVarHeaderParameter['X-Plex-Platform'] = String(JSON.stringify(xPlexPlatform));
|
||||
}
|
||||
if (xPlexProduct !== undefined && xPlexProduct !== null) {
|
||||
localVarHeaderParameter['X-Plex-Product'] = String(JSON.stringify(xPlexProduct));
|
||||
}
|
||||
if (xPlexProvides !== undefined && xPlexProvides !== null) {
|
||||
localVarHeaderParameter['X-Plex-Provides'] = String(JSON.stringify(xPlexProvides));
|
||||
}
|
||||
if (xPlexVersion !== undefined && xPlexVersion !== null) {
|
||||
localVarHeaderParameter['X-Plex-Version'] = String(JSON.stringify(xPlexVersion));
|
||||
}
|
||||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
||||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
||||
return [2 /*return*/, {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
2
dist/sdk-output/api.js.map
vendored
2
dist/sdk-output/api.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -773,9 +773,6 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
if (strong !== undefined) {
|
||||
localVarQueryParameter['strong'] = strong;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user