@remkoj/optimizely-graph-client 6.0.0-pre7 → 6.0.0-pre9

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 (65) hide show
  1. package/LICENSE +12 -12
  2. package/dist/admin-api/client/OptimizelyGraphAdminApi.d.ts +4 -0
  3. package/dist/admin-api/client/OptimizelyGraphAdminApi.js +5 -1
  4. package/dist/admin-api/client/OptimizelyGraphAdminApi.js.map +1 -1
  5. package/dist/admin-api/client/core/OpenAPI.js +1 -1
  6. package/dist/admin-api/client/index.d.ts +7 -0
  7. package/dist/admin-api/client/index.js +2 -0
  8. package/dist/admin-api/client/index.js.map +1 -1
  9. package/dist/admin-api/client/models/MatchingPinnedSelector.d.ts +6 -0
  10. package/dist/admin-api/client/models/MatchingPinnedSelector.js +2 -0
  11. package/dist/admin-api/client/models/MatchingPinnedSelector.js.map +1 -0
  12. package/dist/admin-api/client/models/PinnedCollectionPayload.d.ts +4 -0
  13. package/dist/admin-api/client/models/PinnedCollectionPayload.js +2 -0
  14. package/dist/admin-api/client/models/PinnedCollectionPayload.js.map +1 -0
  15. package/dist/admin-api/client/models/PinnedCollectionResult.d.ts +7 -0
  16. package/dist/admin-api/client/models/PinnedCollectionResult.js +2 -0
  17. package/dist/admin-api/client/models/PinnedCollectionResult.js.map +1 -0
  18. package/dist/admin-api/client/models/PinnedItemPayload.d.ts +7 -0
  19. package/dist/admin-api/client/models/PinnedItemPayload.js +2 -0
  20. package/dist/admin-api/client/models/PinnedItemPayload.js.map +1 -0
  21. package/dist/admin-api/client/models/PinnedItemResult.d.ts +11 -0
  22. package/dist/admin-api/client/models/PinnedItemResult.js +2 -0
  23. package/dist/admin-api/client/models/PinnedItemResult.js.map +1 -0
  24. package/dist/admin-api/client/services/BestBetsService.d.ts +4 -0
  25. package/dist/admin-api/client/services/BestBetsService.js +4 -0
  26. package/dist/admin-api/client/services/BestBetsService.js.map +1 -1
  27. package/dist/admin-api/client/services/PinnedCollectionsService.d.ts +49 -0
  28. package/dist/admin-api/client/services/PinnedCollectionsService.js +88 -0
  29. package/dist/admin-api/client/services/PinnedCollectionsService.js.map +1 -0
  30. package/dist/admin-api/client/services/PinnedItemsService.d.ts +74 -0
  31. package/dist/admin-api/client/services/PinnedItemsService.js +139 -0
  32. package/dist/admin-api/client/services/PinnedItemsService.js.map +1 -0
  33. package/dist/client/client.d.ts +3 -0
  34. package/dist/client/client.js +14 -0
  35. package/dist/client/client.js.map +1 -1
  36. package/dist/client/types.d.ts +15 -0
  37. package/dist/services/channel-repository/queries.js +88 -88
  38. package/dist/services/routing/queries/cms12/index.d.ts +2 -0
  39. package/dist/services/routing/queries/cms12/index.js +3 -0
  40. package/dist/services/routing/queries/cms12/index.js.map +1 -1
  41. package/dist/services/routing/queries/cms13/getAllRoutes.d.ts +2 -15
  42. package/dist/services/routing/queries/cms13/getAllRoutes.js +4 -1
  43. package/dist/services/routing/queries/cms13/getAllRoutes.js.map +1 -1
  44. package/dist/services/routing/queries/cms13/getRouteById.d.ts +2 -1
  45. package/dist/services/routing/queries/cms13/getRouteById.js +8 -4
  46. package/dist/services/routing/queries/cms13/getRouteById.js.map +1 -1
  47. package/dist/services/routing/queries/cms13/getRouteByPath.d.ts +2 -1
  48. package/dist/services/routing/queries/cms13/getRouteByPath.js +12 -5
  49. package/dist/services/routing/queries/cms13/getRouteByPath.js.map +1 -1
  50. package/dist/services/routing/queries/cms13/index.d.ts +4 -2
  51. package/dist/services/routing/queries/cms13/index.js +59 -10
  52. package/dist/services/routing/queries/cms13/index.js.map +1 -1
  53. package/dist/services/routing/queries/cms13/types.d.ts +18 -0
  54. package/dist/services/routing/queries/cms13/types.js +2 -0
  55. package/dist/services/routing/queries/cms13/types.js.map +1 -0
  56. package/dist/services/routing/queries/types.d.ts +4 -2
  57. package/dist/services/routing/resolver.d.ts +11 -7
  58. package/dist/services/routing/resolver.js +17 -9
  59. package/dist/services/routing/resolver.js.map +1 -1
  60. package/dist/services/routing/types.d.ts +23 -4
  61. package/dist/services/types.d.ts +7 -0
  62. package/dist/services/utils.d.ts +4 -3
  63. package/dist/services/utils.js +17 -11
  64. package/dist/services/utils.js.map +1 -1
  65. package/package.json +5 -5
package/LICENSE CHANGED
@@ -1,13 +1,13 @@
1
- Copyright 2024 Remko Jantzen
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
1
+ Copyright 2024 Remko Jantzen
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
13
  limitations under the License.
@@ -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.20.1',
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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.cg.optimizely.com',
3
- VERSION: '3.20.1',
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';
@@ -48,6 +53,8 @@ export { DefinitionV2Service } from './services/DefinitionV2Service.js';
48
53
  export { DefinitionV3Service } from './services/DefinitionV3Service.js';
49
54
  export { LogsService } from './services/LogsService.js';
50
55
  export { OidcService } from './services/OidcService.js';
56
+ export { PinnedCollectionsService } from './services/PinnedCollectionsService.js';
57
+ export { PinnedItemsService } from './services/PinnedItemsService.js';
51
58
  export { QueryGraphQlService } from './services/QueryGraphQlService.js';
52
59
  export { ResourcesService } from './services/ResourcesService.js';
53
60
  export { WebhooksService } from './services/WebhooksService.js';
@@ -15,6 +15,8 @@ export { DefinitionV2Service } from './services/DefinitionV2Service.js';
15
15
  export { DefinitionV3Service } from './services/DefinitionV3Service.js';
16
16
  export { LogsService } from './services/LogsService.js';
17
17
  export { OidcService } from './services/OidcService.js';
18
+ export { PinnedCollectionsService } from './services/PinnedCollectionsService.js';
19
+ export { PinnedItemsService } from './services/PinnedItemsService.js';
18
20
  export { QueryGraphQlService } from './services/QueryGraphQlService.js';
19
21
  export { ResourcesService } from './services/ResourcesService.js';
20
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;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,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":""}
@@ -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"}
@@ -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;IACI,8BAA8B,CACjC,YAAoB;QAEpB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,wCAAwC;YAC7C,IAAI,EAAE;gBACF,cAAc,EAAE,YAAY;aAC/B;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;OAOG;IACI,6BAA6B,CAChC,YAAoB,EACpB,WAAoC;QAEpC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,wCAAwC;YAC7C,IAAI,EAAE;gBACF,cAAc,EAAE,YAAY;aAC/B;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,6BAA6B,CAChC,YAAoB;QAEpB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,wCAAwC;YAC7C,IAAI,EAAE;gBACF,cAAc,EAAE,YAAY;aAC/B;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,0BAA0B,CAC7B,IAAa;QAEb,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,yBAAyB;YAC9B,KAAK,EAAE;gBACH,MAAM,EAAE,IAAI;aACf;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,6BAA6B,CAChC,WAAoC;QAEpC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yBAAyB;YAC9B,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ"}
@@ -0,0 +1,74 @@
1
+ import type { MatchingPinnedSelector } from '../models/MatchingPinnedSelector.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
+ }
@@ -0,0 +1,139 @@
1
+ export class PinnedItemsService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ /**
6
+ * Get pinned item by id
7
+ * Get single pinned item by id
8
+ * @param collectionId pinned collection id
9
+ * @param id pinned id (id)
10
+ * @returns PinnedItemResult PinnedItemResult
11
+ * @throws ApiError
12
+ */
13
+ getPinnedItemHandler(collectionId, id) {
14
+ return this.httpRequest.request({
15
+ method: 'GET',
16
+ url: '/api/pinned/collections/{collectionId}/items/{id}',
17
+ path: {
18
+ 'collectionId': collectionId,
19
+ 'id': id,
20
+ },
21
+ });
22
+ }
23
+ /**
24
+ * Remove pinned item
25
+ * Remove single pinned item
26
+ * @param collectionId pinned collection id
27
+ * @param id pinned id (id)
28
+ * @returns PinnedItemResult Ok
29
+ * @throws ApiError
30
+ */
31
+ deletePinnedItemHandler(collectionId, id) {
32
+ return this.httpRequest.request({
33
+ method: 'DELETE',
34
+ url: '/api/pinned/collections/{collectionId}/items/{id}',
35
+ path: {
36
+ 'collectionId': collectionId,
37
+ 'id': id,
38
+ },
39
+ });
40
+ }
41
+ /**
42
+ * Update a pinned item
43
+ * Update a single pinned item
44
+ * @param collectionId pinned collection id
45
+ * @param id pinned id (id)
46
+ * @param requestBody
47
+ * @returns PinnedItemResult Ok
48
+ * @throws ApiError
49
+ */
50
+ updatePinnedItemHandler(collectionId, id, requestBody) {
51
+ return this.httpRequest.request({
52
+ method: 'PUT',
53
+ url: '/api/pinned/collections/{collectionId}/items/{id}',
54
+ path: {
55
+ 'collectionId': collectionId,
56
+ 'id': id,
57
+ },
58
+ body: requestBody,
59
+ mediaType: 'application/json',
60
+ });
61
+ }
62
+ /**
63
+ * Get list of pinned items by collection id
64
+ * Get list of pinned items by given pinned collection id
65
+ * @param collectionId pinned collection id
66
+ * @param limit Limit items
67
+ * @param offset From offset number
68
+ * @param phrase Phrase to be filtered
69
+ * @param sort The sort field, default direction is ASC. Add a minus/dash symbol for DESC (example "-phrase"). Default value created_at DESC.
70
+ * @returns PinnedItemResult Ok
71
+ * @throws ApiError
72
+ */
73
+ listPinnedItemHandler(collectionId, limit, offset, phrase, sort) {
74
+ return this.httpRequest.request({
75
+ method: 'GET',
76
+ url: '/api/pinned/collections/{collectionId}/items',
77
+ path: {
78
+ 'collectionId': collectionId,
79
+ },
80
+ query: {
81
+ 'limit': limit,
82
+ 'offset': offset,
83
+ 'phrase': phrase,
84
+ 'sort': sort,
85
+ },
86
+ });
87
+ }
88
+ /**
89
+ * Clear pinned items in collection
90
+ * Clear pinned items in collection
91
+ * @param collectionId pinned collection id
92
+ * @returns void
93
+ * @throws ApiError
94
+ */
95
+ clearPinnedItemHandler(collectionId) {
96
+ return this.httpRequest.request({
97
+ method: 'DELETE',
98
+ url: '/api/pinned/collections/{collectionId}/items',
99
+ path: {
100
+ 'collectionId': collectionId,
101
+ },
102
+ });
103
+ }
104
+ /**
105
+ * Create a new pinned item
106
+ * Create a new pinned item, collectionId must be created before creating pinned item
107
+ * @param collectionId pinned collection id
108
+ * @param requestBody
109
+ * @returns PinnedItemResult Ok
110
+ * @throws ApiError
111
+ */
112
+ createPinnedItemHandler(collectionId, requestBody) {
113
+ return this.httpRequest.request({
114
+ method: 'POST',
115
+ url: '/api/pinned/collections/{collectionId}/items',
116
+ path: {
117
+ 'collectionId': collectionId,
118
+ },
119
+ body: requestBody,
120
+ mediaType: 'application/json',
121
+ });
122
+ }
123
+ /**
124
+ * Get matched pinned by phrases
125
+ * Get matched pinned by phrases
126
+ * @param requestBody MatchingPinnedSelector
127
+ * @returns PinnedItemResult Ok
128
+ * @throws ApiError
129
+ */
130
+ matchPinnedItemHandler(requestBody) {
131
+ return this.httpRequest.request({
132
+ method: 'POST',
133
+ url: '/api/pinned/items/match',
134
+ body: requestBody,
135
+ mediaType: 'application/json',
136
+ });
137
+ }
138
+ }
139
+ //# sourceMappingURL=PinnedItemsService.js.map