@remkoj/optimizely-graph-client 6.0.0-pre8 → 6.0.0-rc.1

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 (84) hide show
  1. package/LICENSE +12 -12
  2. package/README.md +5 -1
  3. package/dist/admin-api/client/OptimizelyGraphAdminApi.d.ts +2 -0
  4. package/dist/admin-api/client/OptimizelyGraphAdminApi.js +3 -1
  5. package/dist/admin-api/client/OptimizelyGraphAdminApi.js.map +1 -1
  6. package/dist/admin-api/client/core/OpenAPI.js +1 -1
  7. package/dist/admin-api/client/index.d.ts +8 -0
  8. package/dist/admin-api/client/index.js +1 -0
  9. package/dist/admin-api/client/index.js.map +1 -1
  10. package/dist/admin-api/client/models/Partial_PinnedCollectionPayload_.d.ts +8 -0
  11. package/dist/admin-api/client/models/Partial_PinnedCollectionPayload_.js +2 -0
  12. package/dist/admin-api/client/models/Partial_PinnedCollectionPayload_.js.map +1 -0
  13. package/dist/admin-api/client/models/PinnedCollectionPayload.d.ts +5 -0
  14. package/dist/admin-api/client/models/PinnedCollectionPayload.js +2 -0
  15. package/dist/admin-api/client/models/PinnedCollectionPayload.js.map +1 -0
  16. package/dist/admin-api/client/models/PinnedCollectionResult.d.ts +8 -0
  17. package/dist/admin-api/client/models/PinnedCollectionResult.js +2 -0
  18. package/dist/admin-api/client/models/PinnedCollectionResult.js.map +1 -0
  19. package/dist/admin-api/client/models/PinnedItemPayload.d.ts +27 -0
  20. package/dist/admin-api/client/models/PinnedItemPayload.js +2 -0
  21. package/dist/admin-api/client/models/PinnedItemPayload.js.map +1 -0
  22. package/dist/admin-api/client/models/PinnedItemResult.d.ts +31 -0
  23. package/dist/admin-api/client/models/PinnedItemResult.js +2 -0
  24. package/dist/admin-api/client/models/PinnedItemResult.js.map +1 -0
  25. package/dist/admin-api/client/models/PinnedResultMatchParams.d.ts +8 -0
  26. package/dist/admin-api/client/models/PinnedResultMatchParams.js +2 -0
  27. package/dist/admin-api/client/models/PinnedResultMatchParams.js.map +1 -0
  28. package/dist/admin-api/client/models/Response.d.ts +6 -0
  29. package/dist/admin-api/client/models/Response.js +2 -0
  30. package/dist/admin-api/client/models/Response.js.map +1 -0
  31. package/dist/admin-api/client/services/BestBetsService.d.ts +4 -0
  32. package/dist/admin-api/client/services/BestBetsService.js +4 -0
  33. package/dist/admin-api/client/services/BestBetsService.js.map +1 -1
  34. package/dist/admin-api/client/services/PinnedResultsService.d.ts +118 -0
  35. package/dist/admin-api/client/services/PinnedResultsService.js +221 -0
  36. package/dist/admin-api/client/services/PinnedResultsService.js.map +1 -0
  37. package/dist/admin-api/client/services/ResourcesService.d.ts +11 -0
  38. package/dist/admin-api/client/services/ResourcesService.js +20 -0
  39. package/dist/admin-api/client/services/ResourcesService.js.map +1 -1
  40. package/dist/admin-api/index.d.ts +9 -0
  41. package/dist/admin-api/index.js +14 -0
  42. package/dist/admin-api/index.js.map +1 -1
  43. package/dist/client/client.d.ts +3 -0
  44. package/dist/client/client.js +21 -7
  45. package/dist/client/client.js.map +1 -1
  46. package/dist/client/types.d.ts +15 -0
  47. package/dist/config.d.ts +7 -0
  48. package/dist/config.js +1 -1
  49. package/dist/config.js.map +1 -1
  50. package/dist/services/channel-repository/definition.d.ts +8 -1
  51. package/dist/services/channel-repository/definition.js +12 -5
  52. package/dist/services/channel-repository/definition.js.map +1 -1
  53. package/dist/services/channel-repository/queries.js +88 -88
  54. package/dist/services/routing/queries/cms12/index.d.ts +2 -0
  55. package/dist/services/routing/queries/cms12/index.js +3 -0
  56. package/dist/services/routing/queries/cms12/index.js.map +1 -1
  57. package/dist/services/routing/queries/cms13/getAllRoutes.d.ts +2 -15
  58. package/dist/services/routing/queries/cms13/getAllRoutes.js +4 -1
  59. package/dist/services/routing/queries/cms13/getAllRoutes.js.map +1 -1
  60. package/dist/services/routing/queries/cms13/getRouteById.d.ts +2 -1
  61. package/dist/services/routing/queries/cms13/getRouteById.js +8 -4
  62. package/dist/services/routing/queries/cms13/getRouteById.js.map +1 -1
  63. package/dist/services/routing/queries/cms13/getRouteByPath.d.ts +5 -3
  64. package/dist/services/routing/queries/cms13/getRouteByPath.js +6 -3
  65. package/dist/services/routing/queries/cms13/getRouteByPath.js.map +1 -1
  66. package/dist/services/routing/queries/cms13/index.d.ts +4 -2
  67. package/dist/services/routing/queries/cms13/index.js +122 -26
  68. package/dist/services/routing/queries/cms13/index.js.map +1 -1
  69. package/dist/services/routing/queries/cms13/types.d.ts +18 -0
  70. package/dist/services/routing/queries/cms13/types.js +2 -0
  71. package/dist/services/routing/queries/cms13/types.js.map +1 -0
  72. package/dist/services/routing/queries/types.d.ts +4 -2
  73. package/dist/services/routing/resolver.d.ts +11 -7
  74. package/dist/services/routing/resolver.js +17 -9
  75. package/dist/services/routing/resolver.js.map +1 -1
  76. package/dist/services/routing/types.d.ts +23 -4
  77. package/dist/services/types.d.ts +7 -0
  78. package/dist/services/utils.d.ts +4 -3
  79. package/dist/services/utils.js +20 -11
  80. package/dist/services/utils.js.map +1 -1
  81. package/dist/version.d.ts +4 -0
  82. package/dist/version.js +2 -0
  83. package/dist/version.js.map +1 -0
  84. package/package.json +11 -10
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.
package/README.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # Optimizely Graph Client <!-- omit in toc -->
2
+
3
+ > [!WARNING]
4
+ > There'll be an update of Optimizely SaaS CMS that is incompatible with all SDK versions prior to 5.1.6. If you don't upgrade, you will see empty pages (main website) and "Component not found" messages (preview).
5
+
2
6
  An extension of the [graphql-request](https://www.npmjs.com/package/graphql-request) package, providing the configuration and additional logic needed to connect with Optimizely Graph.
3
7
 
4
8
  ## Within this document <!-- omit in toc -->
@@ -298,4 +302,4 @@ const channel = ChannelRepository.createDefinition(
298
302
  )
299
303
  ```
300
304
 
301
- *1. The application definitions are not available through Graph for SaaS CMS, hence the repository can only instantiated for PaaS CMS 12*
305
+ *1. The application definitions are not available through Graph for SaaS CMS, hence the repository can only instantiated for PaaS CMS 12*
@@ -5,6 +5,7 @@ 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 { PinnedResultsService } from './services/PinnedResultsService.js';
8
9
  import { QueryGraphQlService } from './services/QueryGraphQlService.js';
9
10
  import { ResourcesService } from './services/ResourcesService.js';
10
11
  import { WebhooksService } from './services/WebhooksService.js';
@@ -15,6 +16,7 @@ export declare class OptimizelyGraphAdminApi {
15
16
  readonly definitionV3: DefinitionV3Service;
16
17
  readonly logs: LogsService;
17
18
  readonly oidc: OidcService;
19
+ readonly pinnedResults: PinnedResultsService;
18
20
  readonly queryGraphQl: QueryGraphQlService;
19
21
  readonly resources: ResourcesService;
20
22
  readonly webhooks: WebhooksService;
@@ -4,6 +4,7 @@ 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 { PinnedResultsService } from './services/PinnedResultsService.js';
7
8
  import { QueryGraphQlService } from './services/QueryGraphQlService.js';
8
9
  import { ResourcesService } from './services/ResourcesService.js';
9
10
  import { WebhooksService } from './services/WebhooksService.js';
@@ -11,7 +12,7 @@ export class OptimizelyGraphAdminApi {
11
12
  constructor(config, HttpRequest = FetchHttpRequest) {
12
13
  this.request = new HttpRequest({
13
14
  BASE: config?.BASE ?? 'https://prod.cg.optimizely.com',
14
- VERSION: config?.VERSION ?? '3.20.1',
15
+ VERSION: config?.VERSION ?? '3.25.0',
15
16
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
16
17
  CREDENTIALS: config?.CREDENTIALS ?? 'include',
17
18
  TOKEN: config?.TOKEN,
@@ -25,6 +26,7 @@ export class OptimizelyGraphAdminApi {
25
26
  this.definitionV3 = new DefinitionV3Service(this.request);
26
27
  this.logs = new LogsService(this.request);
27
28
  this.oidc = new OidcService(this.request);
29
+ this.pinnedResults = new PinnedResultsService(this.request);
28
30
  this.queryGraphQl = new QueryGraphQlService(this.request);
29
31
  this.resources = new ResourcesService(this.request);
30
32
  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;A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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,aAAa,GAAG,IAAI,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5D,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.20.1',
3
+ VERSION: '3.25.0',
4
4
  WITH_CREDENTIALS: false,
5
5
  CREDENTIALS: 'include',
6
6
  TOKEN: undefined,
@@ -23,7 +23,13 @@ export type { LinkConfig } from './models/LinkConfig.js';
23
23
  export type { LinkMap } from './models/LinkMap.js';
24
24
  export type { OperationMap } from './models/OperationMap.js';
25
25
  export type { Optional_string_ } from './models/Optional_string_.js';
26
+ export type { Partial_PinnedCollectionPayload_ } from './models/Partial_PinnedCollectionPayload_.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';
32
+ export type { PinnedResultMatchParams } from './models/PinnedResultMatchParams.js';
27
33
  export { Preset } from './models/Preset.js';
28
34
  export type { Property_V2 } from './models/Property_V2.js';
29
35
  export type { Property_V3 } from './models/Property_V3.js';
@@ -34,6 +40,7 @@ export type { Record_string_any_ } from './models/Record_string_any_.js';
34
40
  export type { Record_string_string_ } from './models/Record_string_string_.js';
35
41
  export type { Request } from './models/Request.js';
36
42
  export type { RequestLog } from './models/RequestLog.js';
43
+ export type { Response } from './models/Response.js';
37
44
  export { Slot } from './models/Slot.js';
38
45
  export type { SourceInfo } from './models/SourceInfo.js';
39
46
  export type { SourceInfoMap } from './models/SourceInfoMap.js';
@@ -48,6 +55,7 @@ export { DefinitionV2Service } from './services/DefinitionV2Service.js';
48
55
  export { DefinitionV3Service } from './services/DefinitionV3Service.js';
49
56
  export { LogsService } from './services/LogsService.js';
50
57
  export { OidcService } from './services/OidcService.js';
58
+ export { PinnedResultsService } from './services/PinnedResultsService.js';
51
59
  export { QueryGraphQlService } from './services/QueryGraphQlService.js';
52
60
  export { ResourcesService } from './services/ResourcesService.js';
53
61
  export { WebhooksService } from './services/WebhooksService.js';
@@ -15,6 +15,7 @@ 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 { PinnedResultsService } from './services/PinnedResultsService.js';
18
19
  export { QueryGraphQlService } from './services/QueryGraphQlService.js';
19
20
  export { ResourcesService } from './services/ResourcesService.js';
20
21
  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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AC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAa5C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAgBpD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAW5C,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,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,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,8 @@
1
+ /**
2
+ * Make all properties in T optional
3
+ */
4
+ export type Partial_PinnedCollectionPayload_ = {
5
+ title?: string;
6
+ key?: string;
7
+ isActive?: boolean;
8
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Partial_PinnedCollectionPayload_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Partial_PinnedCollectionPayload_.js","sourceRoot":"","sources":["../../../../src/admin-api/client/models/Partial_PinnedCollectionPayload_.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export type PinnedCollectionPayload = {
2
+ title: string;
3
+ key: string;
4
+ isActive?: boolean;
5
+ };
@@ -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,8 @@
1
+ export type PinnedCollectionResult = {
2
+ title: string;
3
+ key: string;
4
+ isActive?: boolean;
5
+ id: string;
6
+ createdAt: string;
7
+ updatedAt: string;
8
+ };
@@ -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,27 @@
1
+ export type PinnedItemPayload = {
2
+ /**
3
+ * Phrase or keyword to match
4
+ */
5
+ phrases: string;
6
+ /**
7
+ * Document id to pin
8
+ */
9
+ targetKey: string;
10
+ /**
11
+ * Language code (e.g. `en`, `fr`, `de`, etc.)
12
+ *
13
+ * - `null` value means the pinned item is applicable to all languages
14
+ *
15
+ * - Empty string (`""`) value is for NEUTRAL locale
16
+ */
17
+ language?: string | null;
18
+ /**
19
+ * Priority of the pinned item (lower number means lower priority)
20
+ *
21
+ * - Default value is `1000`
22
+ *
23
+ * - Example: `1`, `10`, `100`, etc.
24
+ */
25
+ priority?: number;
26
+ isActive?: boolean;
27
+ };
@@ -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,31 @@
1
+ export type PinnedItemResult = {
2
+ /**
3
+ * Phrase or keyword to match
4
+ */
5
+ phrases: string;
6
+ /**
7
+ * Document id to pin
8
+ */
9
+ targetKey: string;
10
+ /**
11
+ * Language code (e.g. `en`, `fr`, `de`, etc.)
12
+ *
13
+ * - `null` value means the pinned item is applicable to all languages
14
+ *
15
+ * - Empty string (`""`) value is for NEUTRAL locale
16
+ */
17
+ language?: string | null;
18
+ /**
19
+ * Priority of the pinned item (lower number means lower priority)
20
+ *
21
+ * - Default value is `1000`
22
+ *
23
+ * - Example: `1`, `10`, `100`, etc.
24
+ */
25
+ priority?: number;
26
+ isActive?: boolean;
27
+ id: string;
28
+ collectionId: string;
29
+ createdAt: string;
30
+ updatedAt: string;
31
+ };
@@ -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,8 @@
1
+ export type PinnedResultMatchParams = {
2
+ phrase: string;
3
+ collectionIds?: Array<string>;
4
+ collectionKeys?: Array<string>;
5
+ languages?: Array<string | null> | null;
6
+ onlyActive?: boolean;
7
+ limit?: number;
8
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PinnedResultMatchParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PinnedResultMatchParams.js","sourceRoot":"","sources":["../../../../src/admin-api/client/models/PinnedResultMatchParams.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This Fetch API interface represents the response to a request.
3
+ *
4
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
5
+ */
6
+ export type Response = {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/admin-api/client/models/Response.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,118 @@
1
+ import type { Partial_PinnedCollectionPayload_ } from '../models/Partial_PinnedCollectionPayload_.js';
2
+ import type { PinnedCollectionPayload } from '../models/PinnedCollectionPayload.js';
3
+ import type { PinnedCollectionResult } from '../models/PinnedCollectionResult.js';
4
+ import type { PinnedItemPayload } from '../models/PinnedItemPayload.js';
5
+ import type { PinnedItemResult } from '../models/PinnedItemResult.js';
6
+ import type { PinnedResultMatchParams } from '../models/PinnedResultMatchParams.js';
7
+ import type { CancelablePromise } from '../core/CancelablePromise.js';
8
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest.js';
9
+ export declare class PinnedResultsService {
10
+ readonly httpRequest: BaseHttpRequest;
11
+ constructor(httpRequest: BaseHttpRequest);
12
+ /**
13
+ * Get pinned collection(s)
14
+ * Get pinned collections
15
+ * @param page
16
+ * @returns PinnedCollectionResult Ok
17
+ * @throws ApiError
18
+ */
19
+ listPinnedCollectionHandler(page?: number): CancelablePromise<Array<PinnedCollectionResult>>;
20
+ /**
21
+ * Register a pinned collection
22
+ * Register a pinned collection
23
+ * @param requestBody
24
+ * @returns PinnedCollectionResult Ok
25
+ * @throws ApiError
26
+ */
27
+ createPinnedCollectionHandler(requestBody: PinnedCollectionPayload): CancelablePromise<PinnedCollectionResult>;
28
+ /**
29
+ * Get pinned collection by Id
30
+ * Get collection by Id
31
+ * @param collectionId Pinned collection id
32
+ * @returns PinnedCollectionResult Ok
33
+ * @throws ApiError
34
+ */
35
+ getPinnedCollectionHandler(collectionId: string): CancelablePromise<PinnedCollectionResult>;
36
+ /**
37
+ * Update a pinned collection
38
+ * Update pinned collection by Id
39
+ * @param collectionId
40
+ * @param requestBody
41
+ * @returns PinnedCollectionResult Ok
42
+ * @throws ApiError
43
+ */
44
+ updatePinnedCollectionHandler(collectionId: string, requestBody: Partial_PinnedCollectionPayload_): CancelablePromise<PinnedCollectionResult>;
45
+ /**
46
+ * Delete a pinned collection
47
+ * Delete pinned collection by Id
48
+ * @param collectionId
49
+ * @returns void
50
+ * @throws ApiError
51
+ */
52
+ deletePinnedCollectionHandler(collectionId: string): CancelablePromise<void>;
53
+ /**
54
+ * Get list of pinned items by collection id
55
+ * Get list of pinned items by given pinned collection id
56
+ * @param collectionId pinned collection id
57
+ * @param limit Limit items
58
+ * @param offset From offset number
59
+ * @param phrase Phrase to be filtered
60
+ * @param sort The sort field, default direction is ASC. Add a minus/dash symbol for DESC (example "-phrase"). Default value created_at DESC.
61
+ * @returns PinnedItemResult Ok
62
+ * @throws ApiError
63
+ */
64
+ listPinnedItemHandler(collectionId: string, limit?: number, offset?: number, phrase?: string, sort?: string): CancelablePromise<Array<PinnedItemResult>>;
65
+ /**
66
+ * Create a new pinned item
67
+ * Create a new pinned item, collectionId must be created before creating pinned item
68
+ * @param collectionId pinned collection id
69
+ * @param requestBody
70
+ * @returns PinnedItemResult Ok
71
+ * @throws ApiError
72
+ */
73
+ createPinnedItemHandler(collectionId: string, requestBody: PinnedItemPayload): CancelablePromise<PinnedItemResult>;
74
+ /**
75
+ * Clear pinned items in collection
76
+ * Clear pinned items in collection
77
+ * @param collectionId pinned collection id
78
+ * @returns void
79
+ * @throws ApiError
80
+ */
81
+ clearPinnedItemHandler(collectionId: string): CancelablePromise<void>;
82
+ /**
83
+ * Get pinned item by id
84
+ * Get single pinned item by id
85
+ * @param collectionId pinned collection id
86
+ * @param id pinned id (id)
87
+ * @returns PinnedItemResult PinnedItemResult
88
+ * @throws ApiError
89
+ */
90
+ getPinnedItemHandler(collectionId: string, id: string): CancelablePromise<PinnedItemResult>;
91
+ /**
92
+ * Update a pinned item
93
+ * Update a single pinned item
94
+ * @param collectionId pinned collection id
95
+ * @param id pinned id (id)
96
+ * @param requestBody
97
+ * @returns PinnedItemResult Ok
98
+ * @throws ApiError
99
+ */
100
+ updatePinnedItemHandler(collectionId: string, id: string, requestBody: PinnedItemPayload): CancelablePromise<PinnedItemResult>;
101
+ /**
102
+ * Remove pinned item
103
+ * Remove single pinned item
104
+ * @param collectionId pinned collection id
105
+ * @param id pinned id (id)
106
+ * @returns PinnedItemResult Ok
107
+ * @throws ApiError
108
+ */
109
+ deletePinnedItemHandler(collectionId: string, id: string): CancelablePromise<PinnedItemResult>;
110
+ /**
111
+ * Get pinned results
112
+ * Get pinned results by matching phrases
113
+ * @param requestBody
114
+ * @returns PinnedItemResult Ok
115
+ * @throws ApiError
116
+ */
117
+ matchPinnedItemHandler(requestBody: PinnedResultMatchParams): CancelablePromise<Array<PinnedItemResult>>;
118
+ }