@remkoj/optimizely-graph-client 5.1.5 → 6.0.0-pre10

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.
Files changed (72) hide show
  1. package/dist/admin-api/client/OptimizelyGraphAdminApi.d.ts +4 -0
  2. package/dist/admin-api/client/OptimizelyGraphAdminApi.js +5 -1
  3. package/dist/admin-api/client/OptimizelyGraphAdminApi.js.map +1 -1
  4. package/dist/admin-api/client/core/OpenAPI.js +1 -1
  5. package/dist/admin-api/client/index.d.ts +8 -0
  6. package/dist/admin-api/client/index.js +3 -0
  7. package/dist/admin-api/client/index.js.map +1 -1
  8. package/dist/admin-api/client/models/MatchingPinnedSelector.d.ts +6 -0
  9. package/dist/admin-api/client/models/MatchingPinnedSelector.js +2 -0
  10. package/dist/admin-api/client/models/MatchingPinnedSelector.js.map +1 -0
  11. package/dist/admin-api/client/models/PinnedCollectionPayload.d.ts +4 -0
  12. package/dist/admin-api/client/models/PinnedCollectionPayload.js +2 -0
  13. package/dist/admin-api/client/models/PinnedCollectionPayload.js.map +1 -0
  14. package/dist/admin-api/client/models/PinnedCollectionResult.d.ts +7 -0
  15. package/dist/admin-api/client/models/PinnedCollectionResult.js +2 -0
  16. package/dist/admin-api/client/models/PinnedCollectionResult.js.map +1 -0
  17. package/dist/admin-api/client/models/PinnedItemPayload.d.ts +7 -0
  18. package/dist/admin-api/client/models/PinnedItemPayload.js +2 -0
  19. package/dist/admin-api/client/models/PinnedItemPayload.js.map +1 -0
  20. package/dist/admin-api/client/models/PinnedItemResult.d.ts +11 -0
  21. package/dist/admin-api/client/models/PinnedItemResult.js +2 -0
  22. package/dist/admin-api/client/models/PinnedItemResult.js.map +1 -0
  23. package/dist/admin-api/client/models/Slot.d.ts +4 -0
  24. package/dist/admin-api/client/models/Slot.js +10 -0
  25. package/dist/admin-api/client/models/Slot.js.map +1 -0
  26. package/dist/admin-api/client/services/BestBetsService.d.ts +4 -0
  27. package/dist/admin-api/client/services/BestBetsService.js +4 -0
  28. package/dist/admin-api/client/services/BestBetsService.js.map +1 -1
  29. package/dist/admin-api/client/services/DefinitionV3Service.d.ts +13 -3
  30. package/dist/admin-api/client/services/DefinitionV3Service.js +15 -3
  31. package/dist/admin-api/client/services/DefinitionV3Service.js.map +1 -1
  32. package/dist/admin-api/client/services/PinnedCollectionsService.d.ts +49 -0
  33. package/dist/admin-api/client/services/PinnedCollectionsService.js +88 -0
  34. package/dist/admin-api/client/services/PinnedCollectionsService.js.map +1 -0
  35. package/dist/admin-api/client/services/PinnedItemsService.d.ts +74 -0
  36. package/dist/admin-api/client/services/PinnedItemsService.js +139 -0
  37. package/dist/admin-api/client/services/PinnedItemsService.js.map +1 -0
  38. package/dist/admin-api/index.d.ts +9 -0
  39. package/dist/admin-api/index.js +14 -0
  40. package/dist/admin-api/index.js.map +1 -1
  41. package/dist/client/client.d.ts +3 -0
  42. package/dist/client/client.js +18 -6
  43. package/dist/client/client.js.map +1 -1
  44. package/dist/client/types.d.ts +15 -0
  45. package/dist/services/routing/queries/cms12/index.d.ts +2 -0
  46. package/dist/services/routing/queries/cms12/index.js +3 -0
  47. package/dist/services/routing/queries/cms12/index.js.map +1 -1
  48. package/dist/services/routing/queries/cms13/getAllRoutes.d.ts +2 -15
  49. package/dist/services/routing/queries/cms13/getAllRoutes.js +4 -1
  50. package/dist/services/routing/queries/cms13/getAllRoutes.js.map +1 -1
  51. package/dist/services/routing/queries/cms13/getRouteById.d.ts +2 -1
  52. package/dist/services/routing/queries/cms13/getRouteById.js +8 -4
  53. package/dist/services/routing/queries/cms13/getRouteById.js.map +1 -1
  54. package/dist/services/routing/queries/cms13/getRouteByPath.d.ts +5 -3
  55. package/dist/services/routing/queries/cms13/getRouteByPath.js +6 -3
  56. package/dist/services/routing/queries/cms13/getRouteByPath.js.map +1 -1
  57. package/dist/services/routing/queries/cms13/index.d.ts +4 -2
  58. package/dist/services/routing/queries/cms13/index.js +122 -26
  59. package/dist/services/routing/queries/cms13/index.js.map +1 -1
  60. package/dist/services/routing/queries/cms13/types.d.ts +18 -0
  61. package/dist/services/routing/queries/cms13/types.js +2 -0
  62. package/dist/services/routing/queries/cms13/types.js.map +1 -0
  63. package/dist/services/routing/queries/types.d.ts +4 -2
  64. package/dist/services/routing/resolver.d.ts +11 -7
  65. package/dist/services/routing/resolver.js +17 -9
  66. package/dist/services/routing/resolver.js.map +1 -1
  67. package/dist/services/routing/types.d.ts +23 -4
  68. package/dist/services/types.d.ts +7 -0
  69. package/dist/services/utils.d.ts +4 -3
  70. package/dist/services/utils.js +20 -11
  71. package/dist/services/utils.js.map +1 -1
  72. package/package.json +9 -11
@@ -5,6 +5,8 @@ import { DefinitionV2Service } from './services/DefinitionV2Service.js';
5
5
  import { DefinitionV3Service } from './services/DefinitionV3Service.js';
6
6
  import { LogsService } from './services/LogsService.js';
7
7
  import { OidcService } from './services/OidcService.js';
8
+ import { PinnedCollectionsService } from './services/PinnedCollectionsService.js';
9
+ import { PinnedItemsService } from './services/PinnedItemsService.js';
8
10
  import { QueryGraphQlService } from './services/QueryGraphQlService.js';
9
11
  import { ResourcesService } from './services/ResourcesService.js';
10
12
  import { WebhooksService } from './services/WebhooksService.js';
@@ -15,6 +17,8 @@ export declare class OptimizelyGraphAdminApi {
15
17
  readonly definitionV3: DefinitionV3Service;
16
18
  readonly logs: LogsService;
17
19
  readonly oidc: OidcService;
20
+ readonly pinnedCollections: PinnedCollectionsService;
21
+ readonly pinnedItems: PinnedItemsService;
18
22
  readonly queryGraphQl: QueryGraphQlService;
19
23
  readonly resources: ResourcesService;
20
24
  readonly webhooks: WebhooksService;
@@ -4,6 +4,8 @@ import { DefinitionV2Service } from './services/DefinitionV2Service.js';
4
4
  import { DefinitionV3Service } from './services/DefinitionV3Service.js';
5
5
  import { LogsService } from './services/LogsService.js';
6
6
  import { OidcService } from './services/OidcService.js';
7
+ import { PinnedCollectionsService } from './services/PinnedCollectionsService.js';
8
+ import { PinnedItemsService } from './services/PinnedItemsService.js';
7
9
  import { QueryGraphQlService } from './services/QueryGraphQlService.js';
8
10
  import { ResourcesService } from './services/ResourcesService.js';
9
11
  import { WebhooksService } from './services/WebhooksService.js';
@@ -11,7 +13,7 @@ export class OptimizelyGraphAdminApi {
11
13
  constructor(config, HttpRequest = FetchHttpRequest) {
12
14
  this.request = new HttpRequest({
13
15
  BASE: config?.BASE ?? 'https://prod.cg.optimizely.com',
14
- VERSION: config?.VERSION ?? '3.18.0',
16
+ VERSION: config?.VERSION ?? '3.22.0',
15
17
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
16
18
  CREDENTIALS: config?.CREDENTIALS ?? 'include',
17
19
  TOKEN: config?.TOKEN,
@@ -25,6 +27,8 @@ export class OptimizelyGraphAdminApi {
25
27
  this.definitionV3 = new DefinitionV3Service(this.request);
26
28
  this.logs = new LogsService(this.request);
27
29
  this.oidc = new OidcService(this.request);
30
+ this.pinnedCollections = new PinnedCollectionsService(this.request);
31
+ this.pinnedItems = new PinnedItemsService(this.request);
28
32
  this.queryGraphQl = new QueryGraphQlService(this.request);
29
33
  this.resources = new ResourcesService(this.request);
30
34
  this.webhooks = new WebhooksService(this.request);
@@ -1 +1 @@
1
- {"version":3,"file":"OptimizelyGraphAdminApi.js","sourceRoot":"","sources":["../../../src/admin-api/client/OptimizelyGraphAdminApi.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,M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C;QACH,IAAI,CAAC,QAAQ,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,YAAY,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1D,IAAI,CAAC,YAAY,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1D,IAAI,CAAC,IAAI,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,IAAI,CAAC,IAAI,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,IAAI,CAAC,iBAAiB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpE,IAAI,CAAC,WAAW,GAAG,IAAI,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxD,IAAI,CAAC,YAAY,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1D,IAAI,CAAC,SAAS,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,IAAI,CAAC,QAAQ,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;CACJ"}
@@ -1,6 +1,6 @@
1
1
  export const OpenAPI = {
2
2
  BASE: 'https://prod.cg.optimizely.com',
3
- VERSION: '3.18.0',
3
+ VERSION: '3.22.0',
4
4
  WITH_CREDENTIALS: false,
5
5
  CREDENTIALS: 'include',
6
6
  TOKEN: undefined,
@@ -21,9 +21,14 @@ export type { GraphQLRequest } from './models/GraphQLRequest.js';
21
21
  export type { GraphQLResponse } from './models/GraphQLResponse.js';
22
22
  export type { LinkConfig } from './models/LinkConfig.js';
23
23
  export type { LinkMap } from './models/LinkMap.js';
24
+ export type { MatchingPinnedSelector } from './models/MatchingPinnedSelector.js';
24
25
  export type { OperationMap } from './models/OperationMap.js';
25
26
  export type { Optional_string_ } from './models/Optional_string_.js';
26
27
  export type { Partial_Record_string_OperationMap__ } from './models/Partial_Record_string_OperationMap__.js';
28
+ export type { PinnedCollectionPayload } from './models/PinnedCollectionPayload.js';
29
+ export type { PinnedCollectionResult } from './models/PinnedCollectionResult.js';
30
+ export type { PinnedItemPayload } from './models/PinnedItemPayload.js';
31
+ export type { PinnedItemResult } from './models/PinnedItemResult.js';
27
32
  export { Preset } from './models/Preset.js';
28
33
  export type { Property_V2 } from './models/Property_V2.js';
29
34
  export type { Property_V3 } from './models/Property_V3.js';
@@ -34,6 +39,7 @@ export type { Record_string_any_ } from './models/Record_string_any_.js';
34
39
  export type { Record_string_string_ } from './models/Record_string_string_.js';
35
40
  export type { Request } from './models/Request.js';
36
41
  export type { RequestLog } from './models/RequestLog.js';
42
+ export { Slot } from './models/Slot.js';
37
43
  export type { SourceInfo } from './models/SourceInfo.js';
38
44
  export type { SourceInfoMap } from './models/SourceInfoMap.js';
39
45
  export type { SourceMetadata } from './models/SourceMetadata.js';
@@ -47,6 +53,8 @@ export { DefinitionV2Service } from './services/DefinitionV2Service.js';
47
53
  export { DefinitionV3Service } from './services/DefinitionV3Service.js';
48
54
  export { LogsService } from './services/LogsService.js';
49
55
  export { OidcService } from './services/OidcService.js';
56
+ export { PinnedCollectionsService } from './services/PinnedCollectionsService.js';
57
+ export { PinnedItemsService } from './services/PinnedItemsService.js';
50
58
  export { QueryGraphQlService } from './services/QueryGraphQlService.js';
51
59
  export { ResourcesService } from './services/ResourcesService.js';
52
60
  export { WebhooksService } from './services/WebhooksService.js';
@@ -9,11 +9,14 @@ export { CancelablePromise, CancelError } from './core/CancelablePromise.js';
9
9
  export { OpenAPI } from './core/OpenAPI.js';
10
10
  export { DeleteMode } from './models/DeleteMode.js';
11
11
  export { Preset } from './models/Preset.js';
12
+ export { Slot } from './models/Slot.js';
12
13
  export { BestBetsService } from './services/BestBetsService.js';
13
14
  export { DefinitionV2Service } from './services/DefinitionV2Service.js';
14
15
  export { DefinitionV3Service } from './services/DefinitionV3Service.js';
15
16
  export { LogsService } from './services/LogsService.js';
16
17
  export { OidcService } from './services/OidcService.js';
18
+ export { PinnedCollectionsService } from './services/PinnedCollectionsService.js';
19
+ export { PinnedItemsService } from './services/PinnedItemsService.js';
17
20
  export { QueryGraphQlService } from './services/QueryGraphQlService.js';
18
21
  export { ResourcesService } from './services/ResourcesService.js';
19
22
  export { WebhooksService } from './services/WebhooksService.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/admin-api/client/index.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;AACpB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAa5C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAUpD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAmB5C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/admin-api/client/index.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;AACpB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAa5C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAepD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAU5C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAUxC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,6 @@
1
+ export type MatchingPinnedSelector = {
2
+ phrase: string;
3
+ collectionIds?: Array<string>;
4
+ languages?: Array<string>;
5
+ limit?: number;
6
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MatchingPinnedSelector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MatchingPinnedSelector.js","sourceRoot":"","sources":["../../../../src/admin-api/client/models/MatchingPinnedSelector.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export type PinnedCollectionPayload = {
2
+ title: string;
3
+ isActive?: boolean;
4
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PinnedCollectionPayload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PinnedCollectionPayload.js","sourceRoot":"","sources":["../../../../src/admin-api/client/models/PinnedCollectionPayload.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export type PinnedCollectionResult = {
2
+ title: string;
3
+ isActive?: boolean;
4
+ id: string;
5
+ createdAt: number;
6
+ updatedAt: number;
7
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PinnedCollectionResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PinnedCollectionResult.js","sourceRoot":"","sources":["../../../../src/admin-api/client/models/PinnedCollectionResult.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export type PinnedItemPayload = {
2
+ phrases: string;
3
+ targetKey: string;
4
+ language?: string | null;
5
+ priority?: number;
6
+ isActive?: boolean;
7
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PinnedItemPayload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PinnedItemPayload.js","sourceRoot":"","sources":["../../../../src/admin-api/client/models/PinnedItemPayload.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ export type PinnedItemResult = {
2
+ phrases: string;
3
+ targetKey: string;
4
+ language?: string | null;
5
+ priority?: number;
6
+ isActive?: boolean;
7
+ id: string;
8
+ collectionId: string;
9
+ createdAt: number;
10
+ updatedAt: number;
11
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PinnedItemResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PinnedItemResult.js","sourceRoot":"","sources":["../../../../src/admin-api/client/models/PinnedItemResult.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export declare enum Slot {
2
+ NEW = "new",
3
+ OLD = "old"
4
+ }
@@ -0,0 +1,10 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export var Slot;
6
+ (function (Slot) {
7
+ Slot["NEW"] = "new";
8
+ Slot["OLD"] = "old";
9
+ })(Slot || (Slot = {}));
10
+ //# sourceMappingURL=Slot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Slot.js","sourceRoot":"","sources":["../../../../src/admin-api/client/models/Slot.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;AACpB,MAAM,CAAN,IAAY,IAGX;AAHD,WAAY,IAAI;IACZ,mBAAW,CAAA;IACX,mBAAW,CAAA;AACf,CAAC,EAHW,IAAI,KAAJ,IAAI,QAGf"}
@@ -6,6 +6,7 @@ export declare class BestBetsService {
6
6
  readonly httpRequest: BaseHttpRequest;
7
7
  constructor(httpRequest: BaseHttpRequest);
8
8
  /**
9
+ * @deprecated
9
10
  * Get bestbet collection(s)
10
11
  * Get all bestbet collections or get by Id
11
12
  * @param id
@@ -15,6 +16,7 @@ export declare class BestBetsService {
15
16
  */
16
17
  getBestBetCollectionHandler(id?: string, page?: number): CancelablePromise<Array<BestBetCollectionResult>>;
17
18
  /**
19
+ * @deprecated
18
20
  * Register a bestbet collection
19
21
  * Register a bestbet collection
20
22
  * @param requestBody
@@ -23,6 +25,7 @@ export declare class BestBetsService {
23
25
  */
24
26
  createBestBetCollectionHandler(requestBody: BestBetCollectionPayload): CancelablePromise<BestBetCollectionResult>;
25
27
  /**
28
+ * @deprecated
26
29
  * Update a bestbet collection
27
30
  * Update bestbet collection by Id
28
31
  * @param id
@@ -32,6 +35,7 @@ export declare class BestBetsService {
32
35
  */
33
36
  updateBestBetCollectionHandler(id: string, requestBody: BestBetCollectionPayload): CancelablePromise<BestBetCollectionResult>;
34
37
  /**
38
+ * @deprecated
35
39
  * Delete a bestbet collection
36
40
  * Delete bestbet by Id
37
41
  * @param id
@@ -3,6 +3,7 @@ export class BestBetsService {
3
3
  this.httpRequest = httpRequest;
4
4
  }
5
5
  /**
6
+ * @deprecated
6
7
  * Get bestbet collection(s)
7
8
  * Get all bestbet collections or get by Id
8
9
  * @param id
@@ -21,6 +22,7 @@ export class BestBetsService {
21
22
  });
22
23
  }
23
24
  /**
25
+ * @deprecated
24
26
  * Register a bestbet collection
25
27
  * Register a bestbet collection
26
28
  * @param requestBody
@@ -36,6 +38,7 @@ export class BestBetsService {
36
38
  });
37
39
  }
38
40
  /**
41
+ * @deprecated
39
42
  * Update a bestbet collection
40
43
  * Update bestbet collection by Id
41
44
  * @param id
@@ -55,6 +58,7 @@ export class BestBetsService {
55
58
  });
56
59
  }
57
60
  /**
61
+ * @deprecated
58
62
  * Delete a bestbet collection
59
63
  * Delete bestbet by Id
60
64
  * @param id
@@ -1 +1 @@
1
- {"version":3,"file":"BestBetsService.js","sourceRoot":"","sources":["../../../../src/admin-api/client/services/BestBetsService.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,eAAe;IACxB,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;;OAOG;IACI,2BAA2B,CAC9B,EAAW,EACX,IAAa;QAEb,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,0BAA0B;YAC/B,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE;gBACR,MAAM,EAAE,IAAI;aACf;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,8BAA8B,CACjC,WAAqC;QAErC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,0BAA0B;YAC/B,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;OAOG;IACI,8BAA8B,CACjC,EAAU,EACV,WAAqC;QAErC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,+BAA+B;YACpC,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,8BAA8B,CACjC,EAAU;QAEV,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,+BAA+B;YACpC,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,CAAC;IACP,CAAC;CACJ"}
1
+ {"version":3,"file":"BestBetsService.js","sourceRoot":"","sources":["../../../../src/admin-api/client/services/BestBetsService.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,eAAe;IACxB,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;;;OAQG;IACI,2BAA2B,CAC9B,EAAW,EACX,IAAa;QAEb,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,0BAA0B;YAC/B,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE;gBACR,MAAM,EAAE,IAAI;aACf;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;OAOG;IACI,8BAA8B,CACjC,WAAqC;QAErC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,0BAA0B;YAC/B,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;;OAQG;IACI,8BAA8B,CACjC,EAAU,EACV,WAAqC;QAErC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,+BAA+B;YACpC,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;OAOG;IACI,8BAA8B,CACjC,EAAU;QAEV,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,+BAA+B;YACpC,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,CAAC;IACP,CAAC;CACJ"}
@@ -1,5 +1,6 @@
1
1
  import type { ContentSource_V3 } from '../models/ContentSource_V3.js';
2
2
  import type { DeleteMode } from '../models/DeleteMode.js';
3
+ import type { Slot } from '../models/Slot.js';
3
4
  import type { SourceInfoMap } from '../models/SourceInfoMap.js';
4
5
  import type { SourceMetadata } from '../models/SourceMetadata.js';
5
6
  import type { CancelablePromise } from '../core/CancelablePromise.js';
@@ -14,10 +15,13 @@ export declare class DefinitionV3Service {
14
15
  * - _(empty): all sources_
15
16
  * - _**default**: only default source_
16
17
  * - _**src1**: only src1_
18
+ * @param slot The slot of the source _(optional)_
19
+ * - _(empty): old slot_
20
+ * - _**new**: new slot_
17
21
  * @returns SourceInfoMap Ok
18
22
  * @throws ApiError
19
23
  */
20
- getContentV3SourceHandler(id?: string): CancelablePromise<SourceInfoMap>;
24
+ getContentV3SourceHandler(id?: string, slot?: Slot): CancelablePromise<SourceInfoMap>;
21
25
  /**
22
26
  * Delete source
23
27
  * Delete content _types / data_ of the source
@@ -33,19 +37,25 @@ export declare class DefinitionV3Service {
33
37
  * | _**types**_ | _delete only types_ | _(delete)_ | |
34
38
  * | _**data**_ | _delete only data_ | | _(delete)_ |
35
39
  * | _**reset**_ | _reset data_ | _(delete)_ | _(reset)_ |
40
+ * @param slot The slot of the source _(optional)_
41
+ * - _(empty): old slot_
42
+ * - _**new**: new slot_
36
43
  * @returns any Source is deleted successfully
37
44
  * @throws ApiError
38
45
  */
39
- deleteContentV3SourceHandler(id?: string, mode?: DeleteMode): CancelablePromise<any>;
46
+ deleteContentV3SourceHandler(id?: string, mode?: DeleteMode, slot?: Slot): CancelablePromise<any>;
40
47
  /**
41
48
  * Update source metadata
42
49
  * Update `label`, `description` fields of the source
43
50
  * @param id The id of the source
44
51
  * @param requestBody The new metadata source
52
+ * @param slot The slot of the source _(optional)_
53
+ * - _(empty): old slot_
54
+ * - _**new**: new slot_
45
55
  * @returns void
46
56
  * @throws ApiError
47
57
  */
48
- postContentV3SourceHandler(id: string, requestBody: SourceMetadata): CancelablePromise<void>;
58
+ postContentV3SourceHandler(id: string, requestBody: SourceMetadata, slot?: Slot): CancelablePromise<void>;
49
59
  /**
50
60
  * Get content types
51
61
  * Get content types of the source
@@ -9,15 +9,19 @@ export class DefinitionV3Service {
9
9
  * - _(empty): all sources_
10
10
  * - _**default**: only default source_
11
11
  * - _**src1**: only src1_
12
+ * @param slot The slot of the source _(optional)_
13
+ * - _(empty): old slot_
14
+ * - _**new**: new slot_
12
15
  * @returns SourceInfoMap Ok
13
16
  * @throws ApiError
14
17
  */
15
- getContentV3SourceHandler(id) {
18
+ getContentV3SourceHandler(id, slot) {
16
19
  return this.httpRequest.request({
17
20
  method: 'GET',
18
21
  url: '/api/content/v3/sources',
19
22
  query: {
20
23
  'id': id,
24
+ 'slot': slot,
21
25
  },
22
26
  });
23
27
  }
@@ -36,16 +40,20 @@ export class DefinitionV3Service {
36
40
  * | _**types**_ | _delete only types_ | _(delete)_ | |
37
41
  * | _**data**_ | _delete only data_ | | _(delete)_ |
38
42
  * | _**reset**_ | _reset data_ | _(delete)_ | _(reset)_ |
43
+ * @param slot The slot of the source _(optional)_
44
+ * - _(empty): old slot_
45
+ * - _**new**: new slot_
39
46
  * @returns any Source is deleted successfully
40
47
  * @throws ApiError
41
48
  */
42
- deleteContentV3SourceHandler(id, mode) {
49
+ deleteContentV3SourceHandler(id, mode, slot) {
43
50
  return this.httpRequest.request({
44
51
  method: 'DELETE',
45
52
  url: '/api/content/v3/sources',
46
53
  query: {
47
54
  'id': id,
48
55
  'mode': mode,
56
+ 'slot': slot,
49
57
  },
50
58
  errors: {
51
59
  404: `Source is not found`,
@@ -57,15 +65,19 @@ export class DefinitionV3Service {
57
65
  * Update `label`, `description` fields of the source
58
66
  * @param id The id of the source
59
67
  * @param requestBody The new metadata source
68
+ * @param slot The slot of the source _(optional)_
69
+ * - _(empty): old slot_
70
+ * - _**new**: new slot_
60
71
  * @returns void
61
72
  * @throws ApiError
62
73
  */
63
- postContentV3SourceHandler(id, requestBody) {
74
+ postContentV3SourceHandler(id, requestBody, slot) {
64
75
  return this.httpRequest.request({
65
76
  method: 'POST',
66
77
  url: '/api/content/v3/sources',
67
78
  query: {
68
79
  'id': id,
80
+ 'slot': slot,
69
81
  },
70
82
  body: requestBody,
71
83
  mediaType: 'application/json',
@@ -1 +1 @@
1
- {"version":3,"file":"DefinitionV3Service.js","sourceRoot":"","sources":["../../../../src/admin-api/client/services/DefinitionV3Service.ts"],"names":[],"mappings":"AAUA,MAAM,OAAO,mBAAmB;IAC5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;;;;OASG;IACI,yBAAyB,CAC5B,EAAW;QAEX,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,yBAAyB;YAC9B,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,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WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,uBAAuB;YAC5B,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ"}
1
+ {"version":3,"file":"DefinitionV3Service.js","sourceRoot":"","sources":["../../../../src/admin-api/client/services/DefinitionV3Service.ts"],"names":[],"mappings":"AAWA,MAAM,OAAO,mBAAmB;IAC5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;;;;;;;OAYG;IACI,yBAAyB,CAC5B,EAAW,EACX,IAAW;QAEX,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,yBAAyB;YAC9B,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE;gBACR,MAAM,EAAE,IAAI;aACf;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;;;;;;;;;;;;;;OAoBG;IACI,4BAA4B,CAC/B,EAAW,EACX,IAAiB,EACjB,IAAW;QAEX,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,yBAAyB;YAC9B,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE;gBACR,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE,IAAI;aACf;YACD,MAAM,EAAE;gBACJ,GAAG,EAAE,qBAAqB;aAC7B;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;;;;OAUG;IACI,0BAA0B,CAC7B,EAAU,EACV,WAA2B,EAC3B,IAAW;QAEX,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yBAAyB;YAC9B,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE;gBACR,MAAM,EAAE,IAAI;aACf;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,uBAAuB,CAC1B,KAAa,SAAS;QAEtB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,uBAAuB;YAC5B,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;OAOG;IACI,wBAAwB,CAC3B,WAA6B,EAC7B,KAAa,SAAS;QAEtB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,uBAAuB;YAC5B,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;OAOG;IACI,uBAAuB,CAC1B,WAA6B,EAC7B,KAAa,SAAS;QAEtB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,uBAAuB;YAC5B,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ"}
@@ -0,0 +1,49 @@
1
+ import type { PinnedCollectionPayload } from '../models/PinnedCollectionPayload.js';
2
+ import type { PinnedCollectionResult } from '../models/PinnedCollectionResult.js';
3
+ import type { CancelablePromise } from '../core/CancelablePromise.js';
4
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest.js';
5
+ export declare class PinnedCollectionsService {
6
+ readonly httpRequest: BaseHttpRequest;
7
+ constructor(httpRequest: BaseHttpRequest);
8
+ /**
9
+ * Get pinned collection by Id
10
+ * Get collection by Id
11
+ * @param collectionId Pinned collection id
12
+ * @returns PinnedCollectionResult Ok
13
+ * @throws ApiError
14
+ */
15
+ getByIdPinnedCollectionHandler(collectionId: string): CancelablePromise<PinnedCollectionResult>;
16
+ /**
17
+ * Update a pinned collection
18
+ * Update pinned collection by Id
19
+ * @param collectionId
20
+ * @param requestBody
21
+ * @returns PinnedCollectionResult Ok
22
+ * @throws ApiError
23
+ */
24
+ updatePinnedCollectionHandler(collectionId: string, requestBody: PinnedCollectionPayload): CancelablePromise<PinnedCollectionResult>;
25
+ /**
26
+ * Delete a pinned collection
27
+ * Delete pinned by Id
28
+ * @param collectionId
29
+ * @returns void
30
+ * @throws ApiError
31
+ */
32
+ deletePinnedCollectionHandler(collectionId: string): CancelablePromise<void>;
33
+ /**
34
+ * Get pinned collection(s)
35
+ * Get pinned collections
36
+ * @param page
37
+ * @returns PinnedCollectionResult Ok
38
+ * @throws ApiError
39
+ */
40
+ getPinnedCollectionHandler(page?: number): CancelablePromise<Array<PinnedCollectionResult>>;
41
+ /**
42
+ * Register a pinned collection
43
+ * Register a pinned collection
44
+ * @param requestBody
45
+ * @returns PinnedCollectionResult Ok
46
+ * @throws ApiError
47
+ */
48
+ createPinnedCollectionHandler(requestBody: PinnedCollectionPayload): CancelablePromise<PinnedCollectionResult>;
49
+ }
@@ -0,0 +1,88 @@
1
+ export class PinnedCollectionsService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ /**
6
+ * Get pinned collection by Id
7
+ * Get collection by Id
8
+ * @param collectionId Pinned collection id
9
+ * @returns PinnedCollectionResult Ok
10
+ * @throws ApiError
11
+ */
12
+ getByIdPinnedCollectionHandler(collectionId) {
13
+ return this.httpRequest.request({
14
+ method: 'GET',
15
+ url: '/api/pinned/collections/{collectionId}',
16
+ path: {
17
+ 'collectionId': collectionId,
18
+ },
19
+ });
20
+ }
21
+ /**
22
+ * Update a pinned collection
23
+ * Update pinned collection by Id
24
+ * @param collectionId
25
+ * @param requestBody
26
+ * @returns PinnedCollectionResult Ok
27
+ * @throws ApiError
28
+ */
29
+ updatePinnedCollectionHandler(collectionId, requestBody) {
30
+ return this.httpRequest.request({
31
+ method: 'PUT',
32
+ url: '/api/pinned/collections/{collectionId}',
33
+ path: {
34
+ 'collectionId': collectionId,
35
+ },
36
+ body: requestBody,
37
+ mediaType: 'application/json',
38
+ });
39
+ }
40
+ /**
41
+ * Delete a pinned collection
42
+ * Delete pinned by Id
43
+ * @param collectionId
44
+ * @returns void
45
+ * @throws ApiError
46
+ */
47
+ deletePinnedCollectionHandler(collectionId) {
48
+ return this.httpRequest.request({
49
+ method: 'DELETE',
50
+ url: '/api/pinned/collections/{collectionId}',
51
+ path: {
52
+ 'collectionId': collectionId,
53
+ },
54
+ });
55
+ }
56
+ /**
57
+ * Get pinned collection(s)
58
+ * Get pinned collections
59
+ * @param page
60
+ * @returns PinnedCollectionResult Ok
61
+ * @throws ApiError
62
+ */
63
+ getPinnedCollectionHandler(page) {
64
+ return this.httpRequest.request({
65
+ method: 'GET',
66
+ url: '/api/pinned/collections',
67
+ query: {
68
+ 'page': page,
69
+ },
70
+ });
71
+ }
72
+ /**
73
+ * Register a pinned collection
74
+ * Register a pinned collection
75
+ * @param requestBody
76
+ * @returns PinnedCollectionResult Ok
77
+ * @throws ApiError
78
+ */
79
+ createPinnedCollectionHandler(requestBody) {
80
+ return this.httpRequest.request({
81
+ method: 'POST',
82
+ url: '/api/pinned/collections',
83
+ body: requestBody,
84
+ mediaType: 'application/json',
85
+ });
86
+ }
87
+ }
88
+ //# sourceMappingURL=PinnedCollectionsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PinnedCollectionsService.js","sourceRoot":"","sources":["../../../../src/admin-api/client/services/PinnedCollectionsService.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,wBAAwB;IACjC,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;OAMG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js';
2
+ import type { PinnedItemPayload } from '../models/PinnedItemPayload.js';
3
+ import type { PinnedItemResult } from '../models/PinnedItemResult.js';
4
+ import type { CancelablePromise } from '../core/CancelablePromise.js';
5
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest.js';
6
+ export declare class PinnedItemsService {
7
+ readonly httpRequest: BaseHttpRequest;
8
+ constructor(httpRequest: BaseHttpRequest);
9
+ /**
10
+ * Get pinned item by id
11
+ * Get single pinned item by id
12
+ * @param collectionId pinned collection id
13
+ * @param id pinned id (id)
14
+ * @returns PinnedItemResult PinnedItemResult
15
+ * @throws ApiError
16
+ */
17
+ getPinnedItemHandler(collectionId: string, id: string): CancelablePromise<PinnedItemResult>;
18
+ /**
19
+ * Remove pinned item
20
+ * Remove single pinned item
21
+ * @param collectionId pinned collection id
22
+ * @param id pinned id (id)
23
+ * @returns PinnedItemResult Ok
24
+ * @throws ApiError
25
+ */
26
+ deletePinnedItemHandler(collectionId: string, id: string): CancelablePromise<PinnedItemResult>;
27
+ /**
28
+ * Update a pinned item
29
+ * Update a single pinned item
30
+ * @param collectionId pinned collection id
31
+ * @param id pinned id (id)
32
+ * @param requestBody
33
+ * @returns PinnedItemResult Ok
34
+ * @throws ApiError
35
+ */
36
+ updatePinnedItemHandler(collectionId: string, id: string, requestBody: PinnedItemPayload): CancelablePromise<PinnedItemResult>;
37
+ /**
38
+ * Get list of pinned items by collection id
39
+ * Get list of pinned items by given pinned collection id
40
+ * @param collectionId pinned collection id
41
+ * @param limit Limit items
42
+ * @param offset From offset number
43
+ * @param phrase Phrase to be filtered
44
+ * @param sort The sort field, default direction is ASC. Add a minus/dash symbol for DESC (example "-phrase"). Default value created_at DESC.
45
+ * @returns PinnedItemResult Ok
46
+ * @throws ApiError
47
+ */
48
+ listPinnedItemHandler(collectionId: string, limit?: number, offset?: number, phrase?: string, sort?: string): CancelablePromise<Array<PinnedItemResult>>;
49
+ /**
50
+ * Clear pinned items in collection
51
+ * Clear pinned items in collection
52
+ * @param collectionId pinned collection id
53
+ * @returns void
54
+ * @throws ApiError
55
+ */
56
+ clearPinnedItemHandler(collectionId: string): CancelablePromise<void>;
57
+ /**
58
+ * Create a new pinned item
59
+ * Create a new pinned item, collectionId must be created before creating pinned item
60
+ * @param collectionId pinned collection id
61
+ * @param requestBody
62
+ * @returns PinnedItemResult Ok
63
+ * @throws ApiError
64
+ */
65
+ createPinnedItemHandler(collectionId: string, requestBody: PinnedItemPayload): CancelablePromise<PinnedItemResult>;
66
+ /**
67
+ * Get matched pinned by phrases
68
+ * Get matched pinned by phrases
69
+ * @param requestBody MatchingPinnedSelector
70
+ * @returns PinnedItemResult Ok
71
+ * @throws ApiError
72
+ */
73
+ matchPinnedItemHandler(requestBody: MatchingPinnedSelector): CancelablePromise<Array<PinnedItemResult>>;
74
+ }