@prdb/sdk 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,19 +5,20 @@ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInforma
5
5
  */
6
6
  export interface BatchRequestBuilder extends BaseRequestBuilder<BatchRequestBuilder> {
7
7
  /**
8
- * Adds up to 50 videos to the wanted list for the currently authenticated user in a single request. Videos already on the wanted list are silently skipped. Unknown video IDs are silently omitted. Returns counts of added, already-existed, and not-found entries. Requires API key authentication.
8
+ * Adds up to 50 videos to the wanted list for the currently authenticated user in a single request. Videos already on the wanted list are silently skipped. Unknown video IDs are silently omitted. The batch is rejected without changes if all valid new entries would exceed the current wanted video limit. Returns counts of added, already-existed, and not-found entries. Requires API key authentication.
9
9
  * @param body Request body for batch-adding wanted videos.
10
10
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
11
11
  * @returns {Promise<AddWantedVideosBatchResponse>}
12
12
  * @throws {ProblemDetails} error when the service returns a 400 status code
13
13
  * @throws {ProblemDetails} error when the service returns a 401 status code
14
14
  * @throws {ProblemDetails} error when the service returns a 403 status code
15
+ * @throws {WantedVideoLimitProblemDetails} error when the service returns a 409 status code
15
16
  * @throws {ProblemDetails} error when the service returns a 429 status code
16
17
  * @throws {ProblemDetails} error when the service returns a 503 status code
17
18
  */
18
19
  post(body: AddWantedVideosBatchRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<AddWantedVideosBatchResponse | undefined>;
19
20
  /**
20
- * Adds up to 50 videos to the wanted list for the currently authenticated user in a single request. Videos already on the wanted list are silently skipped. Unknown video IDs are silently omitted. Returns counts of added, already-existed, and not-found entries. Requires API key authentication.
21
+ * Adds up to 50 videos to the wanted list for the currently authenticated user in a single request. Videos already on the wanted list are silently skipped. Unknown video IDs are silently omitted. The batch is rejected without changes if all valid new entries would exceed the current wanted video limit. Returns counts of added, already-existed, and not-found entries. Requires API key authentication.
21
22
  * @param body Request body for batch-adding wanted videos.
22
23
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
23
24
  * @returns {RequestInformation}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/wantedVideos/batch/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAqL,KAAK,2BAA2B,EAAE,KAAK,4BAA4B,EAAuB,MAAM,uBAAuB,CAAC;AAEpT,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,CAAC,mBAAmB,CAAC;IAChF;;;;;;;;;;OAUG;IACF,IAAI,CAAC,IAAI,EAAE,2BAA2B,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,4BAA4B,GAAG,SAAS,CAAC,CAAC;IAC9J;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,2BAA2B,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACtJ;AACD;;GAEG;AACH,eAAO,MAAM,8BAA8B,mCAAmC,CAAC;AAC/E;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAiBjD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/wantedVideos/batch/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiP,KAAK,2BAA2B,EAAE,KAAK,4BAA4B,EAA4D,MAAM,uBAAuB,CAAC;AAErZ,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,CAAC,mBAAmB,CAAC;IAChF;;;;;;;;;;;OAWG;IACF,IAAI,CAAC,IAAI,EAAE,2BAA2B,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,4BAA4B,GAAG,SAAS,CAAC,CAAC;IAC9J;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,2BAA2B,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACtJ;AACD;;GAEG;AACH,eAAO,MAAM,8BAA8B,mCAAmC,CAAC;AAC/E;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAkBjD,CAAC"}
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
- import { createAddWantedVideosBatchResponseFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, serializeAddWantedVideosBatchRequest } from '../../models/index.js';
5
+ import { createAddWantedVideosBatchResponseFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, createWantedVideoLimitProblemDetailsFromDiscriminatorValue, serializeAddWantedVideosBatchRequest } from '../../models/index.js';
6
6
  /**
7
7
  * Uri template for the request builder.
8
8
  */
@@ -18,6 +18,7 @@ export const BatchRequestBuilderRequestsMetadata = {
18
18
  400: createProblemDetailsFromDiscriminatorValue,
19
19
  401: createProblemDetailsFromDiscriminatorValue,
20
20
  403: createProblemDetailsFromDiscriminatorValue,
21
+ 409: createWantedVideoLimitProblemDetailsFromDiscriminatorValue,
21
22
  429: createProblemDetailsFromDiscriminatorValue,
22
23
  503: createProblemDetailsFromDiscriminatorValue,
23
24
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/wantedVideos/batch/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB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AAuE;YAC5E,GAAG,EAAE,0CAAuE;SAC/E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,wDAAwD;QAC9E,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,oCAAoC;QAC3D,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -15,11 +15,12 @@ export interface WithVideoItemRequestBuilder extends BaseRequestBuilder<WithVide
15
15
  */
16
16
  delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
17
17
  /**
18
- * Adds the specified video to the wanted list for the currently authenticated user. Returns 204 if added or already on the wanted list. Returns 404 if the video does not exist. Requires API key authentication.
18
+ * Adds the specified video to the wanted list for the currently authenticated user. Returns 204 if added or already on the wanted list, 404 if the video does not exist, and 409 if adding it would exceed the current wanted video limit. Requires API key authentication.
19
19
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
20
20
  * @throws {ProblemDetails} error when the service returns a 401 status code
21
21
  * @throws {ProblemDetails} error when the service returns a 403 status code
22
22
  * @throws {ProblemDetails} error when the service returns a 404 status code
23
+ * @throws {WantedVideoLimitProblemDetails} error when the service returns a 409 status code
23
24
  * @throws {ProblemDetails} error when the service returns a 429 status code
24
25
  * @throws {ProblemDetails} error when the service returns a 503 status code
25
26
  */
@@ -44,7 +45,7 @@ export interface WithVideoItemRequestBuilder extends BaseRequestBuilder<WithVide
44
45
  */
45
46
  toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
46
47
  /**
47
- * Adds the specified video to the wanted list for the currently authenticated user. Returns 204 if added or already on the wanted list. Returns 404 if the video does not exist. Requires API key authentication.
48
+ * Adds the specified video to the wanted list for the currently authenticated user. Returns 204 if added or already on the wanted list, 404 if the video does not exist, and 409 if adding it would exceed the current wanted video limit. Requires API key authentication.
48
49
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
49
50
  * @returns {RequestInformation}
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G,SAAS,GAAI,kBAAkB,CAAC;CAClJ;AACD;;GAEG;AACH,eAAO,MAAM,sCAAsC,uCAAuC,CAAC;AAC3F;;GAEG;AACH,eAAO,MAAM,2CAA2C,EAAE,gBA2CzD,CAAC"}
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
- import { createProblemDetailsFromDiscriminatorValue, createUpdateWantedVideoResponseFromDiscriminatorValue, serializeUpdateWantedVideoRequest } from '../../models/index.js';
5
+ import { createProblemDetailsFromDiscriminatorValue, createUpdateWantedVideoResponseFromDiscriminatorValue, createWantedVideoLimitProblemDetailsFromDiscriminatorValue, serializeUpdateWantedVideoRequest } from '../../models/index.js';
6
6
  /**
7
7
  * Uri template for the request builder.
8
8
  */
@@ -30,6 +30,7 @@ export const WithVideoItemRequestBuilderRequestsMetadata = {
30
30
  401: createProblemDetailsFromDiscriminatorValue,
31
31
  403: createProblemDetailsFromDiscriminatorValue,
32
32
  404: createProblemDetailsFromDiscriminatorValue,
33
+ 409: createWantedVideoLimitProblemDetailsFromDiscriminatorValue,
33
34
  429: createProblemDetailsFromDiscriminatorValue,
34
35
  503: createProblemDetailsFromDiscriminatorValue,
35
36
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/wantedVideos/item/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,0CAA0C,EAAE,qDAAqD,EAAE,iCAAiC,EAA0H,MAAM,uBAAuB,CAAC;AA6DrS;;GAEG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,oCAAoC,CAAC;AAC3F;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAAqB;IACzE,MAAM,EAAE;QACJ,WAAW,EAAE,sCAAsC;QACnD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,0CA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IACzE,MAAM,EAAE;QACJ,WAAW,EAAE,sCAAsC;QACnD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;SAC/E;QACD,iBAAiB,EAAE,uBAAuB;KAC7C;IACD,IAAI,EAAE;QACF,WAAW,EAAE,sCAAsC;QACnD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0DAAuF;YAC5F,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;SAC/E;QACD,iBAAiB,EAAE,uBAAuB;KAC7C;IACD,GAAG,EAAE;QACD,WAAW,EAAE,sCAAsC;QACnD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;SAC/E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,qDAAqD;QAC3E,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,iCAAiC;QACxD,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prdb/sdk",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "TypeScript SDK for the prdb Public API",
5
5
  "license": "MIT",
6
6
  "repository": {