Compare commits

...

1 Commits

Author SHA1 Message Date
Luke Hagar
d62f9a10e4 SDK update generated by liblab 2023-11-16 11:00:01 -06:00
15 changed files with 410 additions and 426 deletions

View File

@@ -518,7 +518,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.media.updatePlayProgress('key', 90469787.90055934, 'state'); const result = await sdk.media.updatePlayProgress('key', 24724761.735383406, 'state');
console.log(result.data); console.log(result.data);
})(); })();
@@ -702,7 +702,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.butler.stopTask('DeepMediaAnalysis'); const result = await sdk.butler.stopTask('UpgradeMediaAnalysis');
console.log(result.data); console.log(result.data);
})(); })();
@@ -736,7 +736,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.hubs.getGlobalHubs({ count: 56455806.18512213, onlyTransient: 1 }); const result = await sdk.hubs.getGlobalHubs({ count: -40320391.241474286, onlyTransient: 1 });
console.log(result.data); console.log(result.data);
})(); })();
@@ -774,8 +774,8 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.hubs.getLibraryHubs(14224427.485252097, { const result = await sdk.hubs.getLibraryHubs(11682787.665691748, {
count: 59167335.01182026, count: 42945423.65924895,
onlyTransient: 1, onlyTransient: 1,
}); });
console.log(result.data); console.log(result.data);
@@ -816,8 +816,8 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.search.performSearch('arnold', { const result = await sdk.search.performSearch('dylan', {
sectionId: 23503236.39517291, sectionId: -78348181.67279369,
limit: 5, limit: 5,
}); });
console.log(result.data); console.log(result.data);
@@ -858,7 +858,7 @@ const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.search.performVoiceSearch('dead+poop', { const result = await sdk.search.performVoiceSearch('dead+poop', {
sectionId: 49725001.21318659, sectionId: 30757885.06634645,
limit: 5, limit: 5,
}); });
console.log(result.data); console.log(result.data);
@@ -929,7 +929,7 @@ const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.library.getFileHash('file://C:Image.png&type=13', { const result = await sdk.library.getFileHash('file://C:Image.png&type=13', {
type: 57131492.35348597, type: 76990973.51546428,
}); });
console.log(result.data); console.log(result.data);
})(); })();
@@ -1081,8 +1081,8 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.library.getLibraryItems(5918142.371238574, { const result = await sdk.library.getLibraryItems(-79084530.93350598, {
type: -7809061.492073655, type: -96514058.46241859,
filter: 'filter', filter: 'filter',
}); });
console.log(result.data); console.log(result.data);
@@ -1114,7 +1114,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.library.refreshLibrary(96299696.9761284); const result = await sdk.library.refreshLibrary(6200876.21363315);
console.log(result.data); console.log(result.data);
})(); })();
@@ -1152,7 +1152,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.library.getLatestLibraryItems(92402469.6477915, -96400116.97826156, { const result = await sdk.library.getLatestLibraryItems(54431588.03601542, 65091551.940283716, {
filter: 'filter', filter: 'filter',
}); });
console.log(result.data); console.log(result.data);
@@ -1192,7 +1192,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.library.getCommonLibraryItems(10111915.895296082, 55224735.92815569, { const result = await sdk.library.getCommonLibraryItems(56012220.8025991, -34412305.88908541, {
filter: 'filter', filter: 'filter',
}); });
console.log(result.data); console.log(result.data);
@@ -1224,7 +1224,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.library.getMetadata(62182009.76385683); const result = await sdk.library.getMetadata(79023037.98177567);
console.log(result.data); console.log(result.data);
})(); })();
@@ -1254,7 +1254,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.library.getMetadataChildren(11669243.106740937); const result = await sdk.library.getMetadataChildren(-34079244.48067523);
console.log(result.data); console.log(result.data);
})(); })();
@@ -1333,7 +1333,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.log.logLine(2, 'message', 'source'); const result = await sdk.log.logLine(1, 'message', 'source');
console.log(result.data); console.log(result.data);
})(); })();
@@ -1397,9 +1397,9 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.playlists.createPlaylist('title', 'audio', 42, { const result = await sdk.playlists.createPlaylist('title', 'audio', 1, {
uri: 'uri', uri: 'uri',
playQueueID: -22282333.505305633, playQueueID: 55313730.76457706,
}); });
console.log(result.data); console.log(result.data);
})(); })();
@@ -1433,7 +1433,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.playlists.getPlaylists({ playlistType: 'photo', smart: 1 }); const result = await sdk.playlists.getPlaylists({ playlistType: 'video', smart: 1 });
console.log(result.data); console.log(result.data);
})(); })();
@@ -1463,7 +1463,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.playlists.getPlaylist(25521232.224839047); const result = await sdk.playlists.getPlaylist(48383939.144292265);
console.log(result.data); console.log(result.data);
})(); })();
@@ -1493,7 +1493,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.playlists.deletePlaylist(-60675901.030656695); const result = await sdk.playlists.deletePlaylist(76363176.7746281);
console.log(result.data); console.log(result.data);
})(); })();
@@ -1523,7 +1523,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.playlists.updatePlaylist(65200160.70787519); const result = await sdk.playlists.updatePlaylist(21468418.806687996);
console.log(result.data); console.log(result.data);
})(); })();
@@ -1554,7 +1554,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.playlists.getPlaylistContents(62167005.120096, 2249491.135525167); const result = await sdk.playlists.getPlaylistContents(-18375681.084945187, 43505745.97909424);
console.log(result.data); console.log(result.data);
})(); })();
@@ -1584,7 +1584,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.playlists.clearPlaylistContents(24703702.974021226); const result = await sdk.playlists.clearPlaylistContents(-62032306.60860091);
console.log(result.data); console.log(result.data);
})(); })();
@@ -1616,7 +1616,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.playlists.addPlaylistContents(-3444881.095142722, 'library://..', 123); const result = await sdk.playlists.addPlaylistContents(97447613.2012851, 'library://..', 123);
console.log(result.data); console.log(result.data);
})(); })();
@@ -1867,7 +1867,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.updater.checkForUpdates({ download: 'foo' }); const result = await sdk.updater.checkForUpdates({ download: 1 });
console.log(result.data); console.log(result.data);
})(); })();
@@ -1900,7 +1900,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.updater.applyUpdates({ tonight: 'foo', skip: 1 }); const result = await sdk.updater.applyUpdates({ tonight: 1, skip: 1 });
console.log(result.data); console.log(result.data);
})(); })();
@@ -1953,23 +1953,23 @@ const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.video.startUniversalTranscode( const result = await sdk.video.startUniversalTranscode(
-87516165.31957072, -28325508.74980329,
'path', 'path',
-62877687.452249065, -40504625.3982412,
-23076170.49337977, -53239039.06228327,
'protocol', 'protocol',
{ {
fastSeek: -68282427.87913167, fastSeek: 82739820.89804792,
directPlay: -74000014.76895301, directPlay: -36387788.93561514,
directStream: 84943482.78212723, directStream: -64397368.85139773,
subtitleSize: -55237723.44813809, subtitleSize: 82314385.9986195,
subtites: 'subtites', subtites: 'subtites',
audioBoost: 29945312.780143052, audioBoost: -91241006.55580243,
location: 'location', location: 'location',
mediaBufferSize: -16516185.759793341, mediaBufferSize: -46863588.09369895,
session: 'session', session: 'session',
addDebugOverlay: -10261279.500832424, addDebugOverlay: 36116668.68056688,
autoAdjustQuality: 32480614.034784466, autoAdjustQuality: -91920.24859237671,
}, },
); );
console.log(result.data); console.log(result.data);
@@ -2011,16 +2011,16 @@ const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.video.getTimeline( const result = await sdk.video.getTimeline(
-32608281.350922346, 40601548.751665235,
'key', 'key',
'stopped', 'stopped',
-74699884.18136695, 46241854.6694352,
-66756517.26572518, 31905029.61282587,
-24893130.84645444, 328697.5951038748,
'context', 'context',
-75734154.35564606, -21722166.560689837,
-89175857.3275879, -1050600.8757392913,
-15877259.38555336, 68365736.03493631,
); );
console.log(result.data); console.log(result.data);
})(); })();

240
package-lock.json generated
View File

@@ -136,30 +136,30 @@
} }
}, },
"node_modules/@babel/compat-data": { "node_modules/@babel/compat-data": {
"version": "7.23.2", "version": "7.23.3",
"resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.2.tgz", "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.3.tgz",
"integrity": "sha512-0S9TQMmDHlqAZ2ITT95irXKfxN9bncq8ZCoJhun3nHL/lLUxd2NKBJYoNGWH7S0hz6fRQwWlAWn/ILM0C70KZQ==", "integrity": "sha512-BmR4bWbDIoFJmJ9z2cZ8Gmm2MXgEDgjdWgpKmKWUt54UGFJdlj31ECtbaDvCG/qVdG3AQ1SfpZEs01lUFbzLOQ==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": ">=6.9.0" "node": ">=6.9.0"
} }
}, },
"node_modules/@babel/core": { "node_modules/@babel/core": {
"version": "7.23.2", "version": "7.23.3",
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.2.tgz", "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.3.tgz",
"integrity": "sha512-n7s51eWdaWZ3vGT2tD4T7J6eJs3QoBXydv7vkUM06Bf1cbVD2Kc2UrkzhiQwobfV7NwOnQXYL7UBJ5VPU+RGoQ==", "integrity": "sha512-Jg+msLuNuCJDyBvFv5+OKOUjWMZgd85bKjbICd3zWrKAo+bJ49HJufi7CQE0q0uR8NGyO6xkCACScNqyjHSZew==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@ampproject/remapping": "^2.2.0", "@ampproject/remapping": "^2.2.0",
"@babel/code-frame": "^7.22.13", "@babel/code-frame": "^7.22.13",
"@babel/generator": "^7.23.0", "@babel/generator": "^7.23.3",
"@babel/helper-compilation-targets": "^7.22.15", "@babel/helper-compilation-targets": "^7.22.15",
"@babel/helper-module-transforms": "^7.23.0", "@babel/helper-module-transforms": "^7.23.3",
"@babel/helpers": "^7.23.2", "@babel/helpers": "^7.23.2",
"@babel/parser": "^7.23.0", "@babel/parser": "^7.23.3",
"@babel/template": "^7.22.15", "@babel/template": "^7.22.15",
"@babel/traverse": "^7.23.2", "@babel/traverse": "^7.23.3",
"@babel/types": "^7.23.0", "@babel/types": "^7.23.3",
"convert-source-map": "^2.0.0", "convert-source-map": "^2.0.0",
"debug": "^4.1.0", "debug": "^4.1.0",
"gensync": "^1.0.0-beta.2", "gensync": "^1.0.0-beta.2",
@@ -184,12 +184,12 @@
} }
}, },
"node_modules/@babel/generator": { "node_modules/@babel/generator": {
"version": "7.23.0", "version": "7.23.3",
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.3.tgz",
"integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", "integrity": "sha512-keeZWAV4LU3tW0qRi19HRpabC/ilM0HRBBzf9/k8FFiG4KVpiv0FIy4hHfLfFQZNhziCTPTmd59zoyv6DNISzg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@babel/types": "^7.23.0", "@babel/types": "^7.23.3",
"@jridgewell/gen-mapping": "^0.3.2", "@jridgewell/gen-mapping": "^0.3.2",
"@jridgewell/trace-mapping": "^0.3.17", "@jridgewell/trace-mapping": "^0.3.17",
"jsesc": "^2.5.1" "jsesc": "^2.5.1"
@@ -270,9 +270,9 @@
} }
}, },
"node_modules/@babel/helper-module-transforms": { "node_modules/@babel/helper-module-transforms": {
"version": "7.23.0", "version": "7.23.3",
"resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.0.tgz", "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz",
"integrity": "sha512-WhDWw1tdrlT0gMgUJSlX0IQvoO1eN279zrAUbVB+KpV2c3Tylz8+GnKOLllCS6Z/iZQEyVYxhZVUdPTqs2YYPw==", "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@babel/helper-environment-visitor": "^7.22.20", "@babel/helper-environment-visitor": "^7.22.20",
@@ -448,9 +448,9 @@
} }
}, },
"node_modules/@babel/parser": { "node_modules/@babel/parser": {
"version": "7.23.0", "version": "7.23.3",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz", "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.3.tgz",
"integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==", "integrity": "sha512-uVsWNvlVsIninV2prNz/3lHCb+5CJ+e+IUBfbjToAHODtfGYLfCFuY4AU7TskI+dAKk+njsPiBjq1gKTvZOBaw==",
"dev": true, "dev": true,
"bin": { "bin": {
"parser": "bin/babel-parser.js" "parser": "bin/babel-parser.js"
@@ -520,9 +520,9 @@
} }
}, },
"node_modules/@babel/plugin-syntax-jsx": { "node_modules/@babel/plugin-syntax-jsx": {
"version": "7.22.5", "version": "7.23.3",
"resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz",
"integrity": "sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==", "integrity": "sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@babel/helper-plugin-utils": "^7.22.5" "@babel/helper-plugin-utils": "^7.22.5"
@@ -622,9 +622,9 @@
} }
}, },
"node_modules/@babel/plugin-syntax-typescript": { "node_modules/@babel/plugin-syntax-typescript": {
"version": "7.22.5", "version": "7.23.3",
"resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.22.5.tgz", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.23.3.tgz",
"integrity": "sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ==", "integrity": "sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@babel/helper-plugin-utils": "^7.22.5" "@babel/helper-plugin-utils": "^7.22.5"
@@ -651,19 +651,19 @@
} }
}, },
"node_modules/@babel/traverse": { "node_modules/@babel/traverse": {
"version": "7.23.2", "version": "7.23.3",
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.3.tgz",
"integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", "integrity": "sha512-+K0yF1/9yR0oHdE0StHuEj3uTPzwwbrLGfNOndVJVV2TqA5+j3oljJUb4nmB954FLGjNem976+B+eDuLIjesiQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@babel/code-frame": "^7.22.13", "@babel/code-frame": "^7.22.13",
"@babel/generator": "^7.23.0", "@babel/generator": "^7.23.3",
"@babel/helper-environment-visitor": "^7.22.20", "@babel/helper-environment-visitor": "^7.22.20",
"@babel/helper-function-name": "^7.23.0", "@babel/helper-function-name": "^7.23.0",
"@babel/helper-hoist-variables": "^7.22.5", "@babel/helper-hoist-variables": "^7.22.5",
"@babel/helper-split-export-declaration": "^7.22.6", "@babel/helper-split-export-declaration": "^7.22.6",
"@babel/parser": "^7.23.0", "@babel/parser": "^7.23.3",
"@babel/types": "^7.23.0", "@babel/types": "^7.23.3",
"debug": "^4.1.0", "debug": "^4.1.0",
"globals": "^11.1.0" "globals": "^11.1.0"
}, },
@@ -681,9 +681,9 @@
} }
}, },
"node_modules/@babel/types": { "node_modules/@babel/types": {
"version": "7.23.0", "version": "7.23.3",
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.3.tgz",
"integrity": "sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==", "integrity": "sha512-OZnvoH2l8PK5eUvEcUyCt/sXgr/h+UWpVuBbOljwcrAgUl6lpchoQ++PHGyQy1AtYnVA6CEq3y5xeEI10brpXw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@babel/helper-string-parser": "^7.22.5", "@babel/helper-string-parser": "^7.22.5",
@@ -725,9 +725,9 @@
} }
}, },
"node_modules/@eslint/eslintrc": { "node_modules/@eslint/eslintrc": {
"version": "2.1.2", "version": "2.1.3",
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.2.tgz", "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.3.tgz",
"integrity": "sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==", "integrity": "sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"ajv": "^6.12.4", "ajv": "^6.12.4",
@@ -748,9 +748,9 @@
} }
}, },
"node_modules/@eslint/js": { "node_modules/@eslint/js": {
"version": "8.52.0", "version": "8.53.0",
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.52.0.tgz", "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.53.0.tgz",
"integrity": "sha512-mjZVbpaeMZludF2fsWLD0Z9gCref1Tk4i9+wddjRvpUNqqcndPkBD09N/Mapey0b3jaXbLm2kICwFv2E64QinA==", "integrity": "sha512-Kn7K8dx/5U6+cT1yEhpX1w4PCSg0M+XyRILPgvwcEBjerFWCwQj5sbr3/VmxqV0JGHCBCzyd6LxypEuehypY1w==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0" "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
@@ -1283,9 +1283,9 @@
} }
}, },
"node_modules/@types/babel__core": { "node_modules/@types/babel__core": {
"version": "7.20.3", "version": "7.20.4",
"resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.3.tgz", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.4.tgz",
"integrity": "sha512-54fjTSeSHwfan8AyHWrKbfBWiEUrNTZsUwPTDSNaaP1QDQIZbeNUg3a59E9D+375MzUw/x1vx2/0F5LBz+AeYA==", "integrity": "sha512-mLnSC22IC4vcWiuObSRjrLd9XcBTGf59vUSoq2jkQDJ/QQ8PMI9rSuzE+aEV8karUMbskw07bKYoUJCKTUaygg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@babel/parser": "^7.20.7", "@babel/parser": "^7.20.7",
@@ -1296,18 +1296,18 @@
} }
}, },
"node_modules/@types/babel__generator": { "node_modules/@types/babel__generator": {
"version": "7.6.6", "version": "7.6.7",
"resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.6.tgz", "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.7.tgz",
"integrity": "sha512-66BXMKb/sUWbMdBNdMvajU7i/44RkrA3z/Yt1c7R5xejt8qh84iU54yUWCtm0QwGJlDcf/gg4zd/x4mpLAlb/w==", "integrity": "sha512-6Sfsq+EaaLrw4RmdFWE9Onp63TOUue71AWb4Gpa6JxzgTYtimbM086WnYTy2U67AofR++QKCo08ZP6pwx8YFHQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@babel/types": "^7.0.0" "@babel/types": "^7.0.0"
} }
}, },
"node_modules/@types/babel__template": { "node_modules/@types/babel__template": {
"version": "7.4.3", "version": "7.4.4",
"resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.3.tgz", "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",
"integrity": "sha512-ciwyCLeuRfxboZ4isgdNZi/tkt06m8Tw6uGbBSBgWrnnZGNXiEyM27xc/PjXGQLqlZ6ylbgHMnm7ccF9tCkOeQ==", "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@babel/parser": "^7.1.0", "@babel/parser": "^7.1.0",
@@ -1315,51 +1315,51 @@
} }
}, },
"node_modules/@types/babel__traverse": { "node_modules/@types/babel__traverse": {
"version": "7.20.3", "version": "7.20.4",
"resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.3.tgz", "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.4.tgz",
"integrity": "sha512-Lsh766rGEFbaxMIDH7Qa+Yha8cMVI3qAK6CHt3OR0YfxOIn5Z54iHiyDRycHrBqeIiqGa20Kpsv1cavfBKkRSw==", "integrity": "sha512-mSM/iKUk5fDDrEV/e83qY+Cr3I1+Q3qqTuEn++HAWYjEa1+NxZr6CNrcJGf2ZTnq4HoFGC3zaTPZTobCzCFukA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@babel/types": "^7.20.7" "@babel/types": "^7.20.7"
} }
}, },
"node_modules/@types/graceful-fs": { "node_modules/@types/graceful-fs": {
"version": "4.1.8", "version": "4.1.9",
"resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.8.tgz", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz",
"integrity": "sha512-NhRH7YzWq8WiNKVavKPBmtLYZHxNY19Hh+az28O/phfp68CF45pMFud+ZzJ8ewnxnC5smIdF3dqFeiSUQ5I+pw==", "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@types/node": "*" "@types/node": "*"
} }
}, },
"node_modules/@types/istanbul-lib-coverage": { "node_modules/@types/istanbul-lib-coverage": {
"version": "2.0.5", "version": "2.0.6",
"resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz",
"integrity": "sha512-zONci81DZYCZjiLe0r6equvZut0b+dBRPBN5kBDjsONnutYNtJMoWQ9uR2RkL1gLG9NMTzvf+29e5RFfPbeKhQ==", "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==",
"dev": true "dev": true
}, },
"node_modules/@types/istanbul-lib-report": { "node_modules/@types/istanbul-lib-report": {
"version": "3.0.2", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.2.tgz", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz",
"integrity": "sha512-8toY6FgdltSdONav1XtUHl4LN1yTmLza+EuDazb/fEmRNCwjyqNVIQWs2IfC74IqjHkREs/nQ2FWq5kZU9IC0w==", "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@types/istanbul-lib-coverage": "*" "@types/istanbul-lib-coverage": "*"
} }
}, },
"node_modules/@types/istanbul-reports": { "node_modules/@types/istanbul-reports": {
"version": "3.0.3", "version": "3.0.4",
"resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.3.tgz", "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz",
"integrity": "sha512-1nESsePMBlf0RPRffLZi5ujYh7IH1BWL4y9pr+Bn3cJBdxz+RTP8bUFljLz9HvzhhOSWKdyBZ4DIivdL6rvgZg==", "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@types/istanbul-lib-report": "*" "@types/istanbul-lib-report": "*"
} }
}, },
"node_modules/@types/jest": { "node_modules/@types/jest": {
"version": "29.5.6", "version": "29.5.8",
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.6.tgz", "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.8.tgz",
"integrity": "sha512-/t9NnzkOpXb4Nfvg17ieHE6EeSjDS2SGSpNYfoLbUAeL/EOueU/RSdOWFpfQTXBEM7BguYW1XQ0EbM+6RlIh6w==", "integrity": "sha512-fXEFTxMV2Co8ZF5aYFJv+YeA08RTYJfhtN5c9JSv/mFEMe+xxjufCb+PHL+bJcMs/ebPUsBu+UNTEz+ydXrR6g==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"expect": "^29.0.0", "expect": "^29.0.0",
@@ -1367,9 +1367,9 @@
} }
}, },
"node_modules/@types/json-schema": { "node_modules/@types/json-schema": {
"version": "7.0.14", "version": "7.0.15",
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.14.tgz", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
"integrity": "sha512-U3PUjAudAdJBeC2pgN8uTIKgxrb4nlDF3SF0++EldXQvQBGkpFZMSnwQiIoDU77tv45VgNkl/L4ouD+rEomujw==", "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
"dev": true "dev": true
}, },
"node_modules/@types/json5": { "node_modules/@types/json5": {
@@ -1385,30 +1385,30 @@
"dev": true "dev": true
}, },
"node_modules/@types/semver": { "node_modules/@types/semver": {
"version": "7.5.4", "version": "7.5.5",
"resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.4.tgz", "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.5.tgz",
"integrity": "sha512-MMzuxN3GdFwskAnb6fz0orFvhfqi752yjaXylr0Rp4oDg5H0Zn1IuyRhDVvYOwAXoJirx2xuS16I3WjxnAIHiQ==", "integrity": "sha512-+d+WYC1BxJ6yVOgUgzK8gWvp5qF8ssV5r4nsDcZWKRWcDQLQ619tvWAxJQYGgBrO1MnLJC7a5GtiYsAoQ47dJg==",
"dev": true "dev": true
}, },
"node_modules/@types/stack-utils": { "node_modules/@types/stack-utils": {
"version": "2.0.2", "version": "2.0.3",
"resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.2.tgz", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz",
"integrity": "sha512-g7CK9nHdwjK2n0ymT2CW698FuWJRIx+RP6embAzZ2Qi8/ilIrA1Imt2LVSeHUzKvpoi7BhmmQcXz95eS0f2JXw==", "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==",
"dev": true "dev": true
}, },
"node_modules/@types/yargs": { "node_modules/@types/yargs": {
"version": "17.0.29", "version": "17.0.31",
"resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.29.tgz", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.31.tgz",
"integrity": "sha512-nacjqA3ee9zRF/++a3FUY1suHTFKZeHba2n8WeDw9cCVdmzmHpIxyzOJBcpHvvEmS8E9KqWlSnWHUkOrkhWcvA==", "integrity": "sha512-bocYSx4DI8TmdlvxqGpVNXOgCNR1Jj0gNPhhAY+iz1rgKDAaYrAYdFYnhDV1IFuiuVc9HkOwyDcFxaTElF3/wg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@types/yargs-parser": "*" "@types/yargs-parser": "*"
} }
}, },
"node_modules/@types/yargs-parser": { "node_modules/@types/yargs-parser": {
"version": "21.0.2", "version": "21.0.3",
"resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.2.tgz", "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz",
"integrity": "sha512-5qcvofLPbfjmBfKaLfj/+f+Sbd6pN4zl7w7VSVI5uz7m9QZTuB2aZAa2uo1wHFBNN2x6g/SoTkXmd8mQnQF2Cw==", "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==",
"dev": true "dev": true
}, },
"node_modules/@typescript-eslint/eslint-plugin": { "node_modules/@typescript-eslint/eslint-plugin": {
@@ -1606,9 +1606,9 @@
"dev": true "dev": true
}, },
"node_modules/acorn": { "node_modules/acorn": {
"version": "8.11.1", "version": "8.11.2",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.1.tgz", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz",
"integrity": "sha512-IJTNCJMRHfRfb8un89z1QtS0x890C2QUrUxFMK8zy+RizcId6mfnqOf68Bu9YkDgpLYuvCm6aYbwDatXVZPjMQ==", "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==",
"dev": true, "dev": true,
"bin": { "bin": {
"acorn": "bin/acorn" "acorn": "bin/acorn"
@@ -1847,9 +1847,9 @@
} }
}, },
"node_modules/axios": { "node_modules/axios": {
"version": "1.6.0", "version": "1.6.2",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.0.tgz", "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.2.tgz",
"integrity": "sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==", "integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==",
"dependencies": { "dependencies": {
"follow-redirects": "^1.15.0", "follow-redirects": "^1.15.0",
"form-data": "^4.0.0", "form-data": "^4.0.0",
@@ -2092,9 +2092,9 @@
} }
}, },
"node_modules/caniuse-lite": { "node_modules/caniuse-lite": {
"version": "1.0.30001554", "version": "1.0.30001562",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001554.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001562.tgz",
"integrity": "sha512-A2E3U//MBwbJVzebddm1YfNp7Nud5Ip+IPn4BozBmn4KqVX7AvluoIDFWjsv5OkGnKUXQVmMSoMKLa3ScCblcQ==", "integrity": "sha512-kfte3Hym//51EdX4239i+Rmp20EsLIYGdPkERegTgU19hQWCRhsRFGKHTliUlsry53tv17K7n077Kqa0WJU4ng==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@@ -2397,9 +2397,9 @@
} }
}, },
"node_modules/electron-to-chromium": { "node_modules/electron-to-chromium": {
"version": "1.4.568", "version": "1.4.585",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.568.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.585.tgz",
"integrity": "sha512-3TCOv8+BY6Ltpt1/CmGBMups2IdKOyfEmz4J8yIS4xLSeMm0Rf+psSaxLuswG9qMKt+XbNbmADybtXGpTFlbDg==", "integrity": "sha512-B4yBlX0azdA3rVMxpYwLQfDpdwOgcnLCkpvSOd68iFmeedo+WYjaBJS3/W58LVD8CB2nf+o7C4K9xz1l09RkWg==",
"dev": true "dev": true
}, },
"node_modules/emittery": { "node_modules/emittery": {
@@ -2544,15 +2544,15 @@
} }
}, },
"node_modules/eslint": { "node_modules/eslint": {
"version": "8.52.0", "version": "8.53.0",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.52.0.tgz", "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.53.0.tgz",
"integrity": "sha512-zh/JHnaixqHZsolRB/w9/02akBk9EPrOs9JwcTP2ek7yL5bVvXuRariiaAjjoJ5DvuwQ1WAE/HsMz+w17YgBCg==", "integrity": "sha512-N4VuiPjXDUa4xVeV/GC/RV3hQW9Nw+Y463lkWaKKXKYMvmRiRDAtfpuPFLN+E1/6ZhyR8J2ig+eVREnYgUsiag==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/eslint-utils": "^4.2.0",
"@eslint-community/regexpp": "^4.6.1", "@eslint-community/regexpp": "^4.6.1",
"@eslint/eslintrc": "^2.1.2", "@eslint/eslintrc": "^2.1.3",
"@eslint/js": "8.52.0", "@eslint/js": "8.53.0",
"@humanwhocodes/config-array": "^0.11.13", "@humanwhocodes/config-array": "^0.11.13",
"@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/module-importer": "^1.0.1",
"@nodelib/fs.walk": "^1.2.8", "@nodelib/fs.walk": "^1.2.8",
@@ -2982,9 +2982,9 @@
"dev": true "dev": true
}, },
"node_modules/fast-glob": { "node_modules/fast-glob": {
"version": "3.3.1", "version": "3.3.2",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz",
"integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.stat": "^2.0.2",
@@ -3080,9 +3080,9 @@
} }
}, },
"node_modules/flat-cache": { "node_modules/flat-cache": {
"version": "3.1.1", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.1.tgz", "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz",
"integrity": "sha512-/qM2b3LUIaIgviBQovTLvijfyOQXPtSRnRK26ksj2J7rzPIecePUIpJsZ4T02Qg+xiAEKIs5K8dsHEd+VaKa/Q==", "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"flatted": "^3.2.9", "flatted": "^3.2.9",
@@ -3090,7 +3090,7 @@
"rimraf": "^3.0.2" "rimraf": "^3.0.2"
}, },
"engines": { "engines": {
"node": ">=12.0.0" "node": "^10.12.0 || >=12.0.0"
} }
}, },
"node_modules/flatted": { "node_modules/flatted": {
@@ -3469,9 +3469,9 @@
} }
}, },
"node_modules/ignore": { "node_modules/ignore": {
"version": "5.2.4", "version": "5.3.0",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz",
"integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": ">= 4" "node": ">= 4"
@@ -3832,9 +3832,9 @@
"dev": true "dev": true
}, },
"node_modules/istanbul-lib-coverage": { "node_modules/istanbul-lib-coverage": {
"version": "3.2.0", "version": "3.2.2",
"resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz",
"integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": ">=8" "node": ">=8"
@@ -4732,9 +4732,9 @@
"dev": true "dev": true
}, },
"node_modules/nock": { "node_modules/nock": {
"version": "13.3.6", "version": "13.3.8",
"resolved": "https://registry.npmjs.org/nock/-/nock-13.3.6.tgz", "resolved": "https://registry.npmjs.org/nock/-/nock-13.3.8.tgz",
"integrity": "sha512-lT6YuktKroUFM+27mubf2uqQZVy2Jf+pfGzuh9N6VwdHlFoZqvi4zyxFTVR1w/ChPqGY6yxGehHp6C3wqCASCw==", "integrity": "sha512-96yVFal0c/W1lG7mmfRe7eO+hovrhJYd2obzzOZ90f6fjpeU/XNvd9cYHZKZAQJumDfhXgoTpkpJ9pvMj+hqHw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"debug": "^4.1.0", "debug": "^4.1.0",
@@ -5207,9 +5207,9 @@
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
}, },
"node_modules/punycode": { "node_modules/punycode": {
"version": "2.3.0", "version": "2.3.1",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
"integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": ">=6" "node": ">=6"

View File

@@ -463,7 +463,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.media.updatePlayProgress('key', 90469787.90055934, 'state'); const result = await sdk.media.updatePlayProgress('key', 24724761.735383406, 'state');
console.log(result.data); console.log(result.data);
})(); })();
@@ -647,7 +647,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.butler.stopTask('DeepMediaAnalysis'); const result = await sdk.butler.stopTask('UpgradeMediaAnalysis');
console.log(result.data); console.log(result.data);
})(); })();
@@ -681,7 +681,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.hubs.getGlobalHubs({ count: 56455806.18512213, onlyTransient: 1 }); const result = await sdk.hubs.getGlobalHubs({ count: -40320391.241474286, onlyTransient: 1 });
console.log(result.data); console.log(result.data);
})(); })();
@@ -719,8 +719,8 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.hubs.getLibraryHubs(14224427.485252097, { const result = await sdk.hubs.getLibraryHubs(11682787.665691748, {
count: 59167335.01182026, count: 42945423.65924895,
onlyTransient: 1, onlyTransient: 1,
}); });
console.log(result.data); console.log(result.data);
@@ -761,8 +761,8 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.search.performSearch('arnold', { const result = await sdk.search.performSearch('dylan', {
sectionId: 23503236.39517291, sectionId: -78348181.67279369,
limit: 5, limit: 5,
}); });
console.log(result.data); console.log(result.data);
@@ -803,7 +803,7 @@ const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.search.performVoiceSearch('dead+poop', { const result = await sdk.search.performVoiceSearch('dead+poop', {
sectionId: 49725001.21318659, sectionId: 30757885.06634645,
limit: 5, limit: 5,
}); });
console.log(result.data); console.log(result.data);
@@ -874,7 +874,7 @@ const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.library.getFileHash('file://C:Image.png&type=13', { const result = await sdk.library.getFileHash('file://C:Image.png&type=13', {
type: 57131492.35348597, type: 76990973.51546428,
}); });
console.log(result.data); console.log(result.data);
})(); })();
@@ -1026,8 +1026,8 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.library.getLibraryItems(5918142.371238574, { const result = await sdk.library.getLibraryItems(-79084530.93350598, {
type: -7809061.492073655, type: -96514058.46241859,
filter: 'filter', filter: 'filter',
}); });
console.log(result.data); console.log(result.data);
@@ -1059,7 +1059,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.library.refreshLibrary(96299696.9761284); const result = await sdk.library.refreshLibrary(6200876.21363315);
console.log(result.data); console.log(result.data);
})(); })();
@@ -1097,7 +1097,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.library.getLatestLibraryItems(92402469.6477915, -96400116.97826156, { const result = await sdk.library.getLatestLibraryItems(54431588.03601542, 65091551.940283716, {
filter: 'filter', filter: 'filter',
}); });
console.log(result.data); console.log(result.data);
@@ -1137,7 +1137,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.library.getCommonLibraryItems(10111915.895296082, 55224735.92815569, { const result = await sdk.library.getCommonLibraryItems(56012220.8025991, -34412305.88908541, {
filter: 'filter', filter: 'filter',
}); });
console.log(result.data); console.log(result.data);
@@ -1169,7 +1169,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.library.getMetadata(62182009.76385683); const result = await sdk.library.getMetadata(79023037.98177567);
console.log(result.data); console.log(result.data);
})(); })();
@@ -1199,7 +1199,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.library.getMetadataChildren(11669243.106740937); const result = await sdk.library.getMetadataChildren(-34079244.48067523);
console.log(result.data); console.log(result.data);
})(); })();
@@ -1278,7 +1278,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.log.logLine(2, 'message', 'source'); const result = await sdk.log.logLine(1, 'message', 'source');
console.log(result.data); console.log(result.data);
})(); })();
@@ -1342,9 +1342,9 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.playlists.createPlaylist('title', 'audio', 42, { const result = await sdk.playlists.createPlaylist('title', 'audio', 1, {
uri: 'uri', uri: 'uri',
playQueueID: -22282333.505305633, playQueueID: 55313730.76457706,
}); });
console.log(result.data); console.log(result.data);
})(); })();
@@ -1378,7 +1378,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.playlists.getPlaylists({ playlistType: 'photo', smart: 1 }); const result = await sdk.playlists.getPlaylists({ playlistType: 'video', smart: 1 });
console.log(result.data); console.log(result.data);
})(); })();
@@ -1408,7 +1408,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.playlists.getPlaylist(25521232.224839047); const result = await sdk.playlists.getPlaylist(48383939.144292265);
console.log(result.data); console.log(result.data);
})(); })();
@@ -1438,7 +1438,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.playlists.deletePlaylist(-60675901.030656695); const result = await sdk.playlists.deletePlaylist(76363176.7746281);
console.log(result.data); console.log(result.data);
})(); })();
@@ -1468,7 +1468,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.playlists.updatePlaylist(65200160.70787519); const result = await sdk.playlists.updatePlaylist(21468418.806687996);
console.log(result.data); console.log(result.data);
})(); })();
@@ -1499,7 +1499,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.playlists.getPlaylistContents(62167005.120096, 2249491.135525167); const result = await sdk.playlists.getPlaylistContents(-18375681.084945187, 43505745.97909424);
console.log(result.data); console.log(result.data);
})(); })();
@@ -1529,7 +1529,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.playlists.clearPlaylistContents(24703702.974021226); const result = await sdk.playlists.clearPlaylistContents(-62032306.60860091);
console.log(result.data); console.log(result.data);
})(); })();
@@ -1561,7 +1561,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.playlists.addPlaylistContents(-3444881.095142722, 'library://..', 123); const result = await sdk.playlists.addPlaylistContents(97447613.2012851, 'library://..', 123);
console.log(result.data); console.log(result.data);
})(); })();
@@ -1812,7 +1812,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.updater.checkForUpdates({ download: 'foo' }); const result = await sdk.updater.checkForUpdates({ download: 1 });
console.log(result.data); console.log(result.data);
})(); })();
@@ -1845,7 +1845,7 @@ import { PlexSDK } from './src';
const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN }); const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.updater.applyUpdates({ tonight: 'foo', skip: 1 }); const result = await sdk.updater.applyUpdates({ tonight: 1, skip: 1 });
console.log(result.data); console.log(result.data);
})(); })();
@@ -1898,23 +1898,23 @@ const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.video.startUniversalTranscode( const result = await sdk.video.startUniversalTranscode(
-87516165.31957072, -28325508.74980329,
'path', 'path',
-62877687.452249065, -40504625.3982412,
-23076170.49337977, -53239039.06228327,
'protocol', 'protocol',
{ {
fastSeek: -68282427.87913167, fastSeek: 82739820.89804792,
directPlay: -74000014.76895301, directPlay: -36387788.93561514,
directStream: 84943482.78212723, directStream: -64397368.85139773,
subtitleSize: -55237723.44813809, subtitleSize: 82314385.9986195,
subtites: 'subtites', subtites: 'subtites',
audioBoost: 29945312.780143052, audioBoost: -91241006.55580243,
location: 'location', location: 'location',
mediaBufferSize: -16516185.759793341, mediaBufferSize: -46863588.09369895,
session: 'session', session: 'session',
addDebugOverlay: -10261279.500832424, addDebugOverlay: 36116668.68056688,
autoAdjustQuality: 32480614.034784466, autoAdjustQuality: -91920.24859237671,
}, },
); );
console.log(result.data); console.log(result.data);
@@ -1956,16 +1956,16 @@ const sdk = new PlexSDK({ apiKey: process.env.PLEXSDK_API_KEY_TOKEN });
(async () => { (async () => {
const result = await sdk.video.getTimeline( const result = await sdk.video.getTimeline(
-32608281.350922346, 40601548.751665235,
'key', 'key',
'stopped', 'stopped',
-74699884.18136695, 46241854.6694352,
-66756517.26572518, 31905029.61282587,
-24893130.84645444, 328697.5951038748,
'context', 'context',
-75734154.35564606, -21722166.560689837,
-89175857.3275879, -1050600.8757392913,
-15877259.38555336, 68365736.03493631,
); );
console.log(result.data); console.log(result.data);
})(); })();

View File

@@ -31,26 +31,26 @@ describe('test Activities', () => {
describe('test cancelServerActivities', () => { describe('test cancelServerActivities', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.delete('/activities/unde') .delete('/activities/consequuntur')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.activities return sdk.activities
.cancelServerActivities('unde') .cancelServerActivities('consequuntur')
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.delete('/activities/commodi') .delete('/activities/pariatur')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.activities.cancelServerActivities()).rejects.toThrow(); return expect(async () => await sdk.activities.cancelServerActivities()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.delete('/activities/alias') .delete('/activities/asperiores')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(
async () => await sdk.activities.cancelServerActivities('alias'), async () => await sdk.activities.cancelServerActivities('asperiores'),
).rejects.toThrow(); ).rejects.toThrow();
}); });
}); });

View File

@@ -43,42 +43,42 @@ describe('test Butler', () => {
describe('test startTask', () => { describe('test startTask', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.post('/butler/fugiat') .post('/butler/quaerat')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.butler.startTask('fugiat').then((r: any) => expect(r.data).toEqual({ data: {} })); return sdk.butler.startTask('quaerat').then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400').post('/butler/sunt').reply(200, { data: {} }); const scope = nock('http://10.10.10.47:32400')
.post('/butler/asperiores')
.reply(200, { data: {} });
return expect(async () => await sdk.butler.startTask()).rejects.toThrow(); return expect(async () => await sdk.butler.startTask()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.post('/butler/consequatur') .post('/butler/molestias')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect(async () => await sdk.butler.startTask('consequatur')).rejects.toThrow(); return expect(async () => await sdk.butler.startTask('molestias')).rejects.toThrow();
}); });
}); });
describe('test stopTask', () => { describe('test stopTask', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400').delete('/butler/rem').reply(200, { data: {} });
.delete('/butler/ducimus') return sdk.butler.stopTask('rem').then((r: any) => expect(r.data).toEqual({ data: {} }));
.reply(200, { data: {} });
return sdk.butler.stopTask('ducimus').then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.delete('/butler/veniam') .delete('/butler/vero')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.butler.stopTask()).rejects.toThrow(); return expect(async () => await sdk.butler.stopTask()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400').delete('/butler/in').reply(404, { data: {} }); const scope = nock('http://10.10.10.47:32400').delete('/butler/aut').reply(404, { data: {} });
return expect(async () => await sdk.butler.stopTask('in')).rejects.toThrow(); return expect(async () => await sdk.butler.stopTask('aut')).rejects.toThrow();
}); });
}); });
}); });

View File

@@ -22,10 +22,10 @@ describe('test Hubs', () => {
describe('test getGlobalHubs', () => { describe('test getGlobalHubs', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/hubs?count=3&onlyTransient=9') .get('/hubs?count=2&onlyTransient=7')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.hubs return sdk.hubs
.getGlobalHubs({ count: 3, onlyTransient: 9 }) .getGlobalHubs({ count: 2, onlyTransient: 7 })
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
}); });
@@ -33,26 +33,26 @@ describe('test Hubs', () => {
describe('test getLibraryHubs', () => { describe('test getLibraryHubs', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/hubs/sections/6?count=1&onlyTransient=7') .get('/hubs/sections/6?count=6&onlyTransient=4')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.hubs return sdk.hubs
.getLibraryHubs(6, { count: 1, onlyTransient: 7 }) .getLibraryHubs(6, { count: 6, onlyTransient: 4 })
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/hubs/sections/3?count=2&onlyTransient=4') .get('/hubs/sections/9?count=1&onlyTransient=4')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.hubs.getLibraryHubs()).rejects.toThrow(); return expect(async () => await sdk.hubs.getLibraryHubs()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/hubs/sections/4?count=3&onlyTransient=9') .get('/hubs/sections/8?count=8&onlyTransient=7')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(
async () => await sdk.hubs.getLibraryHubs(4, { count: 3, onlyTransient: 9 }), async () => await sdk.hubs.getLibraryHubs(8, { count: 8, onlyTransient: 7 }),
).rejects.toThrow(); ).rejects.toThrow();
}); });
}); });

View File

@@ -22,26 +22,26 @@ describe('test Library', () => {
describe('test getFileHash', () => { describe('test getFileHash', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/hashes?url=error&type_=1') .get('/library/hashes?url=id&type_=5')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.library return sdk.library
.getFileHash('error', { type: 1 }) .getFileHash('id', { type: 5 })
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/hashes?url=soluta&type_=8') .get('/library/hashes?url=suscipit&type_=6')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.library.getFileHash()).rejects.toThrow(); return expect(async () => await sdk.library.getFileHash()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/hashes?url=veritatis&type_=9') .get('/library/hashes?url=optio&type_=7')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(
async () => await sdk.library.getFileHash('veritatis', { type: 9 }), async () => await sdk.library.getFileHash('optio', { type: 7 }),
).rejects.toThrow(); ).rejects.toThrow();
}); });
}); });
@@ -67,26 +67,26 @@ describe('test Library', () => {
describe('test getLibrary', () => { describe('test getLibrary', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/sections/6?includeDetails=7') .get('/library/sections/2?includeDetails=1')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.library return sdk.library
.getLibrary(6, { includeDetails: 7 }) .getLibrary(2, { includeDetails: 1 })
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/sections/2?includeDetails=4') .get('/library/sections/3?includeDetails=9')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.library.getLibrary()).rejects.toThrow(); return expect(async () => await sdk.library.getLibrary()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/sections/1?includeDetails=4') .get('/library/sections/7?includeDetails=6')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(
async () => await sdk.library.getLibrary(1, { includeDetails: 4 }), async () => await sdk.library.getLibrary(7, { includeDetails: 6 }),
).rejects.toThrow(); ).rejects.toThrow();
}); });
}); });
@@ -94,14 +94,14 @@ describe('test Library', () => {
describe('test deleteLibrary', () => { describe('test deleteLibrary', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.delete('/library/sections/9') .delete('/library/sections/4')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.library.deleteLibrary(9).then((r: any) => expect(r.data).toEqual({ data: {} })); return sdk.library.deleteLibrary(4).then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.delete('/library/sections/2') .delete('/library/sections/3')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.library.deleteLibrary()).rejects.toThrow(); return expect(async () => await sdk.library.deleteLibrary()).rejects.toThrow();
}); });
@@ -117,26 +117,26 @@ describe('test Library', () => {
describe('test getLibraryItems', () => { describe('test getLibraryItems', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/sections/4/all?type_=9&filter=porro') .get('/library/sections/7/all?type_=3&filter=at')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.library return sdk.library
.getLibraryItems(4, { type: 9, filter: 'porro' }) .getLibraryItems(7, { type: 3, filter: 'at' })
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/sections/1/all?type_=8&filter=pariatur') .get('/library/sections/2/all?type_=9&filter=eveniet')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.library.getLibraryItems()).rejects.toThrow(); return expect(async () => await sdk.library.getLibraryItems()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/sections/3/all?type_=1&filter=nostrum') .get('/library/sections/6/all?type_=3&filter=unde')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(
async () => await sdk.library.getLibraryItems(3, { type: 1, filter: 'nostrum' }), async () => await sdk.library.getLibraryItems(6, { type: 3, filter: 'unde' }),
).rejects.toThrow(); ).rejects.toThrow();
}); });
}); });
@@ -144,49 +144,49 @@ describe('test Library', () => {
describe('test refreshLibrary', () => { describe('test refreshLibrary', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/sections/6/refresh') .get('/library/sections/9/refresh')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.library.refreshLibrary(6).then((r: any) => expect(r.data).toEqual({ data: {} })); return sdk.library.refreshLibrary(9).then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/sections/3/refresh') .get('/library/sections/5/refresh')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.library.refreshLibrary()).rejects.toThrow(); return expect(async () => await sdk.library.refreshLibrary()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/sections/3/refresh') .get('/library/sections/9/refresh')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect(async () => await sdk.library.refreshLibrary(3)).rejects.toThrow(); return expect(async () => await sdk.library.refreshLibrary(9)).rejects.toThrow();
}); });
}); });
describe('test getLatestLibraryItems', () => { describe('test getLatestLibraryItems', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/sections/2/latest?type_=7&filter=ipsa') .get('/library/sections/4/latest?type_=4&filter=itaque')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.library return sdk.library
.getLatestLibraryItems(2, 7, { filter: 'ipsa' }) .getLatestLibraryItems(4, 4, { filter: 'itaque' })
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/sections/3/latest?type_=4&filter=consectetur') .get('/library/sections/7/latest?type_=6&filter=reprehenderit')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.library.getLatestLibraryItems()).rejects.toThrow(); return expect(async () => await sdk.library.getLatestLibraryItems()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/sections/3/latest?type_=9&filter=aliquam') .get('/library/sections/2/latest?type_=8&filter=maiores')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(
async () => await sdk.library.getLatestLibraryItems(3, 9, { filter: 'aliquam' }), async () => await sdk.library.getLatestLibraryItems(2, 8, { filter: 'maiores' }),
).rejects.toThrow(); ).rejects.toThrow();
}); });
}); });
@@ -194,26 +194,26 @@ describe('test Library', () => {
describe('test getCommonLibraryItems', () => { describe('test getCommonLibraryItems', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/sections/2/common?type_=7&filter=doloribus') .get('/library/sections/3/common?type_=6&filter=nulla')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.library return sdk.library
.getCommonLibraryItems(2, 7, { filter: 'doloribus' }) .getCommonLibraryItems(3, 6, { filter: 'nulla' })
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/sections/9/common?type_=2&filter=illum') .get('/library/sections/7/common?type_=9&filter=praesentium')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.library.getCommonLibraryItems()).rejects.toThrow(); return expect(async () => await sdk.library.getCommonLibraryItems()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/sections/8/common?type_=7&filter=nesciunt') .get('/library/sections/1/common?type_=6&filter=tenetur')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(
async () => await sdk.library.getCommonLibraryItems(8, 7, { filter: 'nesciunt' }), async () => await sdk.library.getCommonLibraryItems(1, 6, { filter: 'tenetur' }),
).rejects.toThrow(); ).rejects.toThrow();
}); });
}); });
@@ -221,14 +221,14 @@ describe('test Library', () => {
describe('test getMetadata', () => { describe('test getMetadata', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/metadata/7') .get('/library/metadata/6')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.library.getMetadata(7).then((r: any) => expect(r.data).toEqual({ data: {} })); return sdk.library.getMetadata(6).then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/metadata/8') .get('/library/metadata/5')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.library.getMetadata()).rejects.toThrow(); return expect(async () => await sdk.library.getMetadata()).rejects.toThrow();
}); });
@@ -244,25 +244,25 @@ describe('test Library', () => {
describe('test getMetadataChildren', () => { describe('test getMetadataChildren', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/metadata/4/children') .get('/library/metadata/8/children')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.library return sdk.library
.getMetadataChildren(4) .getMetadataChildren(8)
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/metadata/3/children') .get('/library/metadata/2/children')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.library.getMetadataChildren()).rejects.toThrow(); return expect(async () => await sdk.library.getMetadataChildren()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/library/metadata/4/children') .get('/library/metadata/9/children')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect(async () => await sdk.library.getMetadataChildren(4)).rejects.toThrow(); return expect(async () => await sdk.library.getMetadataChildren(9)).rejects.toThrow();
}); });
}); });

View File

@@ -22,27 +22,25 @@ describe('test Log', () => {
describe('test logLine', () => { describe('test logLine', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/log?level=2&message=laudantium&source=assumenda') .get('/log?level=6&message=architecto&source=molestias')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.log return sdk.log
.logLine(2, 'laudantium', 'assumenda') .logLine(6, 'architecto', 'molestias')
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/log?level=9&message=ex&source=doloribus') .get('/log?level=8&message=at&source=ratione')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.log.logLine()).rejects.toThrow(); return expect(async () => await sdk.log.logLine()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/log?level=6&message=repudiandae&source=perspiciatis') .get('/log?level=3&message=commodi&source=neque')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(async () => await sdk.log.logLine(3, 'commodi', 'neque')).rejects.toThrow();
async () => await sdk.log.logLine(6, 'repudiandae', 'perspiciatis'),
).rejects.toThrow();
}); });
}); });

View File

@@ -22,72 +22,72 @@ describe('test Media', () => {
describe('test markPlayed', () => { describe('test markPlayed', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/:/scrobble?key=1') .get('/:/scrobble?key=3')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.media.markPlayed(1).then((r: any) => expect(r.data).toEqual({ data: {} })); return sdk.media.markPlayed(3).then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/:/scrobble?key=1') .get('/:/scrobble?key=7')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.media.markPlayed()).rejects.toThrow(); return expect(async () => await sdk.media.markPlayed()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/:/scrobble?key=1') .get('/:/scrobble?key=6')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect(async () => await sdk.media.markPlayed(1)).rejects.toThrow(); return expect(async () => await sdk.media.markPlayed(6)).rejects.toThrow();
}); });
}); });
describe('test markUnplayed', () => { describe('test markUnplayed', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/:/unscrobble?key=1') .get('/:/unscrobble?key=7')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.media.markUnplayed(1).then((r: any) => expect(r.data).toEqual({ data: {} })); return sdk.media.markUnplayed(7).then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/:/unscrobble?key=6') .get('/:/unscrobble?key=1')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.media.markUnplayed()).rejects.toThrow(); return expect(async () => await sdk.media.markUnplayed()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/:/unscrobble?key=9') .get('/:/unscrobble?key=1')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect(async () => await sdk.media.markUnplayed(9)).rejects.toThrow(); return expect(async () => await sdk.media.markUnplayed(1)).rejects.toThrow();
}); });
}); });
describe('test updatePlayProgress', () => { describe('test updatePlayProgress', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.post('/:/progress?key=inventore&time=5&state=dolor') .post('/:/progress?key=veniam&time=1&state=corporis')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.media return sdk.media
.updatePlayProgress('inventore', 5, 'dolor') .updatePlayProgress('veniam', 1, 'corporis')
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.post('/:/progress?key=officia&time=6&state=laboriosam') .post('/:/progress?key=vitae&time=5&state=optio')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.media.updatePlayProgress()).rejects.toThrow(); return expect(async () => await sdk.media.updatePlayProgress()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.post('/:/progress?key=illum&time=8&state=nostrum') .post('/:/progress?key=eveniet&time=6&state=sed')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(
async () => await sdk.media.updatePlayProgress('illum', 8, 'nostrum'), async () => await sdk.media.updatePlayProgress('eveniet', 6, 'sed'),
).rejects.toThrow(); ).rejects.toThrow();
}); });
}); });

View File

@@ -22,30 +22,27 @@ describe('test Playlists', () => {
describe('test createPlaylist', () => { describe('test createPlaylist', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.post('/playlists?title=porro&type_=fugiat&smart=9&uri=nihil&playQueueID=6') .post('/playlists?title=dicta&type_=incidunt&smart=4&uri=expedita&playQueueID=9')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.playlists return sdk.playlists
.createPlaylist('porro', 'fugiat', 9, { uri: 'nihil', playQueueID: 6 }) .createPlaylist('dicta', 'incidunt', 4, { uri: 'expedita', playQueueID: 9 })
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.post('/playlists?title=perspiciatis&type_=maxime&smart=7&uri=minima&playQueueID=7') .post('/playlists?title=quibusdam&type_=nobis&smart=3&uri=ad&playQueueID=9')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.playlists.createPlaylist()).rejects.toThrow(); return expect(async () => await sdk.playlists.createPlaylist()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.post('/playlists?title=nam&type_=excepturi&smart=9&uri=iusto&playQueueID=5') .post('/playlists?title=vel&type_=facilis&smart=3&uri=amet&playQueueID=6')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(
async () => async () =>
await sdk.playlists.createPlaylist('nam', 'excepturi', 9, { await sdk.playlists.createPlaylist('vel', 'facilis', 3, { uri: 'amet', playQueueID: 6 }),
uri: 'iusto',
playQueueID: 5,
}),
).rejects.toThrow(); ).rejects.toThrow();
}); });
}); });
@@ -53,35 +50,35 @@ describe('test Playlists', () => {
describe('test getPlaylists', () => { describe('test getPlaylists', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/playlists/all?playlistType=eveniet&smart=9') .get('/playlists/all?playlistType=quasi&smart=4')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.playlists return sdk.playlists
.getPlaylists({ playlistType: 'eveniet', smart: 9 }) .getPlaylists({ playlistType: 'quasi', smart: 4 })
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
}); });
describe('test getPlaylist', () => { describe('test getPlaylist', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400').get('/playlists/4').reply(200, { data: {} }); const scope = nock('http://10.10.10.47:32400').get('/playlists/9').reply(200, { data: {} });
return sdk.playlists.getPlaylist(4).then((r: any) => expect(r.data).toEqual({ data: {} })); return sdk.playlists.getPlaylist(9).then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400').get('/playlists/4').reply(200, { data: {} }); const scope = nock('http://10.10.10.47:32400').get('/playlists/8').reply(200, { data: {} });
return expect(async () => await sdk.playlists.getPlaylist()).rejects.toThrow(); return expect(async () => await sdk.playlists.getPlaylist()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400').get('/playlists/1').reply(404, { data: {} }); const scope = nock('http://10.10.10.47:32400').get('/playlists/7').reply(404, { data: {} });
return expect(async () => await sdk.playlists.getPlaylist(1)).rejects.toThrow(); return expect(async () => await sdk.playlists.getPlaylist(7)).rejects.toThrow();
}); });
}); });
describe('test updatePlaylist', () => { describe('test updatePlaylist', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400').put('/playlists/3').reply(200, { data: {} }); const scope = nock('http://10.10.10.47:32400').put('/playlists/1').reply(200, { data: {} });
return sdk.playlists.updatePlaylist(3).then((r: any) => expect(r.data).toEqual({ data: {} })); return sdk.playlists.updatePlaylist(1).then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
@@ -90,82 +87,82 @@ describe('test Playlists', () => {
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400').put('/playlists/4').reply(404, { data: {} }); const scope = nock('http://10.10.10.47:32400').put('/playlists/2').reply(404, { data: {} });
return expect(async () => await sdk.playlists.updatePlaylist(4)).rejects.toThrow(); return expect(async () => await sdk.playlists.updatePlaylist(2)).rejects.toThrow();
}); });
}); });
describe('test deletePlaylist', () => { describe('test deletePlaylist', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.delete('/playlists/8') .delete('/playlists/1')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.playlists.deletePlaylist(8).then((r: any) => expect(r.data).toEqual({ data: {} })); return sdk.playlists.deletePlaylist(1).then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.delete('/playlists/9') .delete('/playlists/5')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.playlists.deletePlaylist()).rejects.toThrow(); return expect(async () => await sdk.playlists.deletePlaylist()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.delete('/playlists/1') .delete('/playlists/3')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect(async () => await sdk.playlists.deletePlaylist(1)).rejects.toThrow(); return expect(async () => await sdk.playlists.deletePlaylist(3)).rejects.toThrow();
}); });
}); });
describe('test getPlaylistContents', () => { describe('test getPlaylistContents', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/playlists/5/items?type_=1') .get('/playlists/4/items?type_=2')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.playlists return sdk.playlists
.getPlaylistContents(5, 1) .getPlaylistContents(4, 2)
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/playlists/2/items?type_=7') .get('/playlists/3/items?type_=5')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.playlists.getPlaylistContents()).rejects.toThrow(); return expect(async () => await sdk.playlists.getPlaylistContents()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/playlists/9/items?type_=2') .get('/playlists/9/items?type_=8')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect(async () => await sdk.playlists.getPlaylistContents(9, 2)).rejects.toThrow(); return expect(async () => await sdk.playlists.getPlaylistContents(9, 8)).rejects.toThrow();
}); });
}); });
describe('test addPlaylistContents', () => { describe('test addPlaylistContents', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.put('/playlists/4/items?uri=veniam&playQueueID=1') .put('/playlists/4/items?uri=praesentium&playQueueID=9')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.playlists return sdk.playlists
.addPlaylistContents(4, 'veniam', 1) .addPlaylistContents(4, 'praesentium', 9)
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.put('/playlists/1/items?uri=similique&playQueueID=9') .put('/playlists/7/items?uri=temporibus&playQueueID=1')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.playlists.addPlaylistContents()).rejects.toThrow(); return expect(async () => await sdk.playlists.addPlaylistContents()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.put('/playlists/5/items?uri=similique&playQueueID=8') .put('/playlists/8/items?uri=praesentium&playQueueID=9')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(
async () => await sdk.playlists.addPlaylistContents(5, 'similique', 8), async () => await sdk.playlists.addPlaylistContents(8, 'praesentium', 9),
).rejects.toThrow(); ).rejects.toThrow();
}); });
}); });
@@ -173,50 +170,52 @@ describe('test Playlists', () => {
describe('test clearPlaylistContents', () => { describe('test clearPlaylistContents', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.delete('/playlists/1/items') .delete('/playlists/5/items')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.playlists return sdk.playlists
.clearPlaylistContents(1) .clearPlaylistContents(5)
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.delete('/playlists/9/items') .delete('/playlists/7/items')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.playlists.clearPlaylistContents()).rejects.toThrow(); return expect(async () => await sdk.playlists.clearPlaylistContents()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.delete('/playlists/5/items') .delete('/playlists/2/items')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect(async () => await sdk.playlists.clearPlaylistContents(5)).rejects.toThrow(); return expect(async () => await sdk.playlists.clearPlaylistContents(2)).rejects.toThrow();
}); });
}); });
describe('test uploadPlaylist', () => { describe('test uploadPlaylist', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.post('/playlists/upload?path=a&force=5') .post('/playlists/upload?path=cumque&force=9')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.playlists return sdk.playlists
.uploadPlaylist('a', 5) .uploadPlaylist('cumque', 9)
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.post('/playlists/upload?path=facere&force=6') .post('/playlists/upload?path=nemo&force=6')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.playlists.uploadPlaylist()).rejects.toThrow(); return expect(async () => await sdk.playlists.uploadPlaylist()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.post('/playlists/upload?path=animi&force=5') .post('/playlists/upload?path=recusandae&force=6')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect(async () => await sdk.playlists.uploadPlaylist('animi', 5)).rejects.toThrow(); return expect(
async () => await sdk.playlists.uploadPlaylist('recusandae', 6),
).rejects.toThrow();
}); });
}); });
}); });

View File

@@ -22,26 +22,26 @@ describe('test Search', () => {
describe('test performSearch', () => { describe('test performSearch', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/hubs/search?query=fugiat&sectionId=1&limit=3') .get('/hubs/search?query=sint&sectionId=1&limit=3')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.search return sdk.search
.performSearch('fugiat', { sectionId: 1, limit: 3 }) .performSearch('sint', { sectionId: 1, limit: 3 })
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/hubs/search?query=ipsam&sectionId=7&limit=2') .get('/hubs/search?query=illum&sectionId=6&limit=6')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.search.performSearch()).rejects.toThrow(); return expect(async () => await sdk.search.performSearch()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/hubs/search?query=quibusdam&sectionId=1&limit=6') .get('/hubs/search?query=aspernatur&sectionId=3&limit=8')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(
async () => await sdk.search.performSearch('quibusdam', { sectionId: 1, limit: 6 }), async () => await sdk.search.performSearch('aspernatur', { sectionId: 3, limit: 8 }),
).rejects.toThrow(); ).rejects.toThrow();
}); });
}); });
@@ -49,26 +49,26 @@ describe('test Search', () => {
describe('test performVoiceSearch', () => { describe('test performVoiceSearch', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/hubs/search/voice?query=animi&sectionId=7&limit=1') .get('/hubs/search/voice?query=et&sectionId=9&limit=9')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.search return sdk.search
.performVoiceSearch('animi', { sectionId: 7, limit: 1 }) .performVoiceSearch('et', { sectionId: 9, limit: 9 })
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/hubs/search/voice?query=quae&sectionId=6&limit=3') .get('/hubs/search/voice?query=dicta&sectionId=9&limit=9')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.search.performVoiceSearch()).rejects.toThrow(); return expect(async () => await sdk.search.performVoiceSearch()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/hubs/search/voice?query=aspernatur&sectionId=5&limit=8') .get('/hubs/search/voice?query=saepe&sectionId=1&limit=7')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(
async () => await sdk.search.performVoiceSearch('aspernatur', { sectionId: 5, limit: 8 }), async () => await sdk.search.performVoiceSearch('saepe', { sectionId: 1, limit: 7 }),
).rejects.toThrow(); ).rejects.toThrow();
}); });
}); });
@@ -76,25 +76,25 @@ describe('test Search', () => {
describe('test getSearchResults', () => { describe('test getSearchResults', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/search?query=doloremque') .get('/search?query=non')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.search return sdk.search
.getSearchResults('doloremque') .getSearchResults('non')
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/search?query=facere') .get('/search?query=repellendus')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.search.getSearchResults()).rejects.toThrow(); return expect(async () => await sdk.search.getSearchResults()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/search?query=placeat') .get('/search?query=aliquid')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect(async () => await sdk.search.getSearchResults('placeat')).rejects.toThrow(); return expect(async () => await sdk.search.getSearchResults('aliquid')).rejects.toThrow();
}); });
}); });
}); });

View File

@@ -22,26 +22,26 @@ describe('test Security', () => {
describe('test getTransientToken', () => { describe('test getTransientToken', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/security/token?type_=odit&scope=inventore') .get('/security/token?type_=nobis&scope=placeat')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.security return sdk.security
.getTransientToken('odit', 'inventore') .getTransientToken('nobis', 'placeat')
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/security/token?type_=consequatur&scope=consectetur') .get('/security/token?type_=fugiat&scope=accusantium')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.security.getTransientToken()).rejects.toThrow(); return expect(async () => await sdk.security.getTransientToken()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/security/token?type_=consequatur&scope=delectus') .get('/security/token?type_=quibusdam&scope=nesciunt')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(
async () => await sdk.security.getTransientToken('consequatur', 'delectus'), async () => await sdk.security.getTransientToken('quibusdam', 'nesciunt'),
).rejects.toThrow(); ).rejects.toThrow();
}); });
}); });
@@ -49,16 +49,16 @@ describe('test Security', () => {
describe('test getSourceConnectionInformation', () => { describe('test getSourceConnectionInformation', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/security/resources?source=ab') .get('/security/resources?source=saepe')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.security return sdk.security
.getSourceConnectionInformation('ab') .getSourceConnectionInformation('saepe')
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/security/resources?source=pariatur') .get('/security/resources?source=dolor')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect( return expect(
async () => await sdk.security.getSourceConnectionInformation(), async () => await sdk.security.getSourceConnectionInformation(),
@@ -67,10 +67,10 @@ describe('test Security', () => {
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get('/security/resources?source=consectetur') .get('/security/resources?source=quam')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(
async () => await sdk.security.getSourceConnectionInformation('consectetur'), async () => await sdk.security.getSourceConnectionInformation('quam'),
).rejects.toThrow(); ).rejects.toThrow();
}); });
}); });

View File

@@ -73,18 +73,18 @@ describe('test Server', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get( .get(
'/photo/:/transcode?width=4529130729&height=5&opacity=1&blur=5&minSize=5&upscale=4&url=corrupti', '/photo/:/transcode?width=9565652483&height=8&opacity=6&blur=1&minSize=6&upscale=4&url=facere',
) )
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.server return sdk.server
.getResizedPhoto(4529130729, 5, 1, 5, 5, 4, 'corrupti') .getResizedPhoto(9565652483, 8, 6, 1, 6, 4, 'facere')
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get( .get(
'/photo/:/transcode?width=7748286048&height=7&opacity=2&blur=8&minSize=6&upscale=6&url=accusantium', '/photo/:/transcode?width=6337242925&height=3&opacity=4&blur=1&minSize=6&upscale=1&url=vel',
) )
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.server.getResizedPhoto()).rejects.toThrow(); return expect(async () => await sdk.server.getResizedPhoto()).rejects.toThrow();
@@ -93,11 +93,11 @@ describe('test Server', () => {
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get( .get(
'/photo/:/transcode?width=8905574180&height=3&opacity=3&blur=7&minSize=5&upscale=8&url=optio', '/photo/:/transcode?width=2262418284&height=4&opacity=6&blur=2&minSize=8&upscale=9&url=saepe',
) )
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(
async () => await sdk.server.getResizedPhoto(8905574180, 3, 3, 7, 5, 8, 'optio'), async () => await sdk.server.getResizedPhoto(2262418284, 4, 6, 2, 8, 9, 'saepe'),
).rejects.toThrow(); ).rejects.toThrow();
}); });
}); });

View File

@@ -53,27 +53,25 @@ describe('test Sessions', () => {
describe('test stopTranscodeSession', () => { describe('test stopTranscodeSession', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.delete('/transcode/sessions/odit') .delete('/transcode/sessions/expedita')
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.sessions return sdk.sessions
.stopTranscodeSession('odit') .stopTranscodeSession('expedita')
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.delete('/transcode/sessions/porro') .delete('/transcode/sessions/adipisci')
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.sessions.stopTranscodeSession()).rejects.toThrow(); return expect(async () => await sdk.sessions.stopTranscodeSession()).rejects.toThrow();
}); });
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.delete('/transcode/sessions/minima') .delete('/transcode/sessions/atque')
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(async () => await sdk.sessions.stopTranscodeSession('atque')).rejects.toThrow();
async () => await sdk.sessions.stopTranscodeSession('minima'),
).rejects.toThrow();
}); });
}); });
}); });

View File

@@ -23,21 +23,21 @@ describe('test Video', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get( .get(
'/video/:/transcode/universal/start.mpd?hasMDE=2&path=officiis&mediaIndex=8&partIndex=2&protocol=minima&fastSeek=6&directPlay=9&directStream=3&subtitleSize=8&subtites=aut&audioBoost=5&location=porro&mediaBufferSize=4&session=deserunt&addDebugOverlay=4&autoAdjustQuality=2', '/video/:/transcode/universal/start.mpd?hasMDE=3&path=itaque&mediaIndex=7&partIndex=2&protocol=perspiciatis&fastSeek=3&directPlay=1&directStream=2&subtitleSize=3&subtites=alias&audioBoost=7&location=voluptas&mediaBufferSize=8&session=aliquam&addDebugOverlay=2&autoAdjustQuality=2',
) )
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.video return sdk.video
.startUniversalTranscode(2, 'officiis', 8, 2, 'minima', { .startUniversalTranscode(3, 'itaque', 7, 2, 'perspiciatis', {
fastSeek: 6, fastSeek: 3,
directPlay: 9, directPlay: 1,
directStream: 3, directStream: 2,
subtitleSize: 8, subtitleSize: 3,
subtites: 'aut', subtites: 'alias',
audioBoost: 5, audioBoost: 7,
location: 'porro', location: 'voluptas',
mediaBufferSize: 4, mediaBufferSize: 8,
session: 'deserunt', session: 'aliquam',
addDebugOverlay: 4, addDebugOverlay: 2,
autoAdjustQuality: 2, autoAdjustQuality: 2,
}) })
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
@@ -46,7 +46,7 @@ describe('test Video', () => {
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get( .get(
'/video/:/transcode/universal/start.mpd?hasMDE=9&path=tempora&mediaIndex=6&partIndex=1&protocol=laudantium&fastSeek=4&directPlay=5&directStream=2&subtitleSize=6&subtites=eveniet&audioBoost=7&location=iure&mediaBufferSize=8&session=modi&addDebugOverlay=9&autoAdjustQuality=5', '/video/:/transcode/universal/start.mpd?hasMDE=5&path=consequuntur&mediaIndex=8&partIndex=3&protocol=magnam&fastSeek=5&directPlay=2&directStream=5&subtitleSize=5&subtites=aut&audioBoost=7&location=optio&mediaBufferSize=1&session=deserunt&addDebugOverlay=2&autoAdjustQuality=4',
) )
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.video.startUniversalTranscode()).rejects.toThrow(); return expect(async () => await sdk.video.startUniversalTranscode()).rejects.toThrow();
@@ -55,21 +55,21 @@ describe('test Video', () => {
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get( .get(
'/video/:/transcode/universal/start.mpd?hasMDE=8&path=officia&mediaIndex=6&partIndex=7&protocol=hic&fastSeek=6&directPlay=2&directStream=6&subtitleSize=6&subtites=veniam&audioBoost=5&location=sunt&mediaBufferSize=5&session=inventore&addDebugOverlay=9&autoAdjustQuality=5', '/video/:/transcode/universal/start.mpd?hasMDE=5&path=cum&mediaIndex=5&partIndex=2&protocol=vel&fastSeek=9&directPlay=4&directStream=7&subtitleSize=7&subtites=earum&audioBoost=1&location=voluptatem&mediaBufferSize=2&session=quis&addDebugOverlay=9&autoAdjustQuality=5',
) )
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(
async () => async () =>
await sdk.video.startUniversalTranscode(8, 'officia', 6, 7, 'hic', { await sdk.video.startUniversalTranscode(5, 'cum', 5, 2, 'vel', {
fastSeek: 6, fastSeek: 9,
directPlay: 2, directPlay: 4,
directStream: 6, directStream: 7,
subtitleSize: 6, subtitleSize: 7,
subtites: 'veniam', subtites: 'earum',
audioBoost: 5, audioBoost: 1,
location: 'sunt', location: 'voluptatem',
mediaBufferSize: 5, mediaBufferSize: 2,
session: 'inventore', session: 'quis',
addDebugOverlay: 9, addDebugOverlay: 9,
autoAdjustQuality: 5, autoAdjustQuality: 5,
}), }),
@@ -81,29 +81,18 @@ describe('test Video', () => {
test('test api call', () => { test('test api call', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get( .get(
'/:/timeline?ratingKey=3&key=dolor&state=consequatur&hasMDE=8&time=4&duration=7&context=possimusducimusdoloribusnequequibusdam&playQueueItemID=3&playBackTime=5&row=4', '/:/timeline?ratingKey=9&key=quos&state=reiciendis&hasMDE=1&time=2&duration=8&context=nisieosnobisaliassequi&playQueueItemID=9&playBackTime=6&row=8',
) )
.reply(200, { data: {} }); .reply(200, { data: {} });
return sdk.video return sdk.video
.getTimeline( .getTimeline(9, 'quos', 'reiciendis', 1, 2, 8, 'nisi eos nobis alias sequi', 9, 6, 8)
3,
'dolor',
'consequatur',
8,
4,
7,
'possimus ducimus doloribus neque quibusdam',
3,
5,
4,
)
.then((r: any) => expect(r.data).toEqual({ data: {} })); .then((r: any) => expect(r.data).toEqual({ data: {} }));
}); });
test('test will throw error if required fields missing', () => { test('test will throw error if required fields missing', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get( .get(
'/:/timeline?ratingKey=8&key=cumque&state=earum&hasMDE=3&time=7&duration=2&context=debitisquisquamquaeeasunt&playQueueItemID=3&playBackTime=2&row=2', '/:/timeline?ratingKey=8&key=non&state=earum&hasMDE=3&time=9&duration=4&context=magnamoptioeaoccaecatieum&playQueueItemID=8&playBackTime=6&row=9',
) )
.reply(200, { data: {} }); .reply(200, { data: {} });
return expect(async () => await sdk.video.getTimeline()).rejects.toThrow(); return expect(async () => await sdk.video.getTimeline()).rejects.toThrow();
@@ -112,21 +101,21 @@ describe('test Video', () => {
test('test will throw error on a non-200 response', () => { test('test will throw error on a non-200 response', () => {
const scope = nock('http://10.10.10.47:32400') const scope = nock('http://10.10.10.47:32400')
.get( .get(
'/:/timeline?ratingKey=6&key=voluptate&state=alias&hasMDE=6&time=3&duration=6&context=assumendaconsequaturaliquidnatussaepe&playQueueItemID=2&playBackTime=9&row=3', '/:/timeline?ratingKey=5&key=maiores&state=nam&hasMDE=6&time=2&duration=7&context=illumdeseruntoditoccaecatiplaceat&playQueueItemID=6&playBackTime=8&row=3',
) )
.reply(404, { data: {} }); .reply(404, { data: {} });
return expect( return expect(
async () => async () =>
await sdk.video.getTimeline( await sdk.video.getTimeline(
5,
'maiores',
'nam',
6, 6,
'voluptate',
'alias',
6,
3,
6,
'assumenda consequatur aliquid natus saepe',
2, 2,
9, 7,
'illum deserunt odit occaecati placeat',
6,
8,
3, 3,
), ),
).rejects.toThrow(); ).rejects.toThrow();