@coveo/platform-client 60.8.0 → 61.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/cjs/resources/Catalogs/index.js +1 -5
  2. package/dist/cjs/resources/Catalogs/index.js.map +1 -1
  3. package/dist/cjs/resources/PlatformResources.js +9 -18
  4. package/dist/cjs/resources/PlatformResources.js.map +1 -1
  5. package/dist/cjs/resources/ResourceSnapshots/ResourceSnapshots.js +11 -0
  6. package/dist/cjs/resources/ResourceSnapshots/ResourceSnapshots.js.map +1 -1
  7. package/dist/cjs/resources/ResourceSnapshots/ResourceSnapshotsInterfaces.js.map +1 -1
  8. package/dist/cjs/resources/index.js +1 -2
  9. package/dist/cjs/resources/index.js.map +1 -1
  10. package/dist/esm/resources/Catalogs/index.js +1 -5
  11. package/dist/esm/resources/Catalogs/index.js.map +1 -1
  12. package/dist/esm/resources/PlatformResources.js +9 -18
  13. package/dist/esm/resources/PlatformResources.js.map +1 -1
  14. package/dist/esm/resources/ResourceSnapshots/ResourceSnapshots.js +11 -0
  15. package/dist/esm/resources/ResourceSnapshots/ResourceSnapshots.js.map +1 -1
  16. package/dist/esm/resources/ResourceSnapshots/ResourceSnapshotsInterfaces.js.map +1 -1
  17. package/dist/esm/resources/index.js +1 -2
  18. package/dist/esm/resources/index.js.map +1 -1
  19. package/dist/types/resources/Catalogs/index.d.ts +1 -5
  20. package/dist/types/resources/PlatformResources.d.ts +9 -15
  21. package/dist/types/resources/ResourceSnapshots/ResourceSnapshots.d.ts +10 -1
  22. package/dist/types/resources/ResourceSnapshots/ResourceSnapshotsInterfaces.d.ts +49 -0
  23. package/dist/types/resources/index.d.ts +1 -2
  24. package/package.json +1 -1
  25. package/dist/cjs/resources/Catalogs/ProductListing.js +0 -68
  26. package/dist/cjs/resources/Catalogs/ProductListing.js.map +0 -1
  27. package/dist/cjs/resources/Catalogs/ProductListingConfiguration.js +0 -61
  28. package/dist/cjs/resources/Catalogs/ProductListingConfiguration.js.map +0 -1
  29. package/dist/cjs/resources/Catalogs/ProductListingConfigurationInterfaces.js +0 -13
  30. package/dist/cjs/resources/Catalogs/ProductListingConfigurationInterfaces.js.map +0 -1
  31. package/dist/cjs/resources/Catalogs/ProductListingInterfaces.js +0 -4
  32. package/dist/cjs/resources/Catalogs/ProductListingInterfaces.js.map +0 -1
  33. package/dist/cjs/resources/Products/Product.js +0 -18
  34. package/dist/cjs/resources/Products/Product.js.map +0 -1
  35. package/dist/cjs/resources/Products/ProductInterfaces.js +0 -3
  36. package/dist/cjs/resources/Products/ProductInterfaces.js.map +0 -1
  37. package/dist/cjs/resources/Products/index.js +0 -6
  38. package/dist/cjs/resources/Products/index.js.map +0 -1
  39. package/dist/esm/resources/Catalogs/ProductListing.js +0 -64
  40. package/dist/esm/resources/Catalogs/ProductListing.js.map +0 -1
  41. package/dist/esm/resources/Catalogs/ProductListingConfiguration.js +0 -57
  42. package/dist/esm/resources/Catalogs/ProductListingConfiguration.js.map +0 -1
  43. package/dist/esm/resources/Catalogs/ProductListingConfigurationInterfaces.js +0 -10
  44. package/dist/esm/resources/Catalogs/ProductListingConfigurationInterfaces.js.map +0 -1
  45. package/dist/esm/resources/Catalogs/ProductListingInterfaces.js +0 -2
  46. package/dist/esm/resources/Catalogs/ProductListingInterfaces.js.map +0 -1
  47. package/dist/esm/resources/Products/Product.js +0 -14
  48. package/dist/esm/resources/Products/Product.js.map +0 -1
  49. package/dist/esm/resources/Products/ProductInterfaces.js +0 -2
  50. package/dist/esm/resources/Products/ProductInterfaces.js.map +0 -1
  51. package/dist/esm/resources/Products/index.js +0 -3
  52. package/dist/esm/resources/Products/index.js.map +0 -1
  53. package/dist/types/resources/Catalogs/ProductListing.d.ts +0 -48
  54. package/dist/types/resources/Catalogs/ProductListingConfiguration.d.ts +0 -45
  55. package/dist/types/resources/Catalogs/ProductListingConfigurationInterfaces.d.ts +0 -53
  56. package/dist/types/resources/Catalogs/ProductListingInterfaces.d.ts +0 -96
  57. package/dist/types/resources/Products/Product.d.ts +0 -12
  58. package/dist/types/resources/Products/ProductInterfaces.d.ts +0 -254
  59. package/dist/types/resources/Products/index.d.ts +0 -2
@@ -1,4 +1,5 @@
1
1
  import { SortingOrder, SnapshotSortingType } from '../Enums.js';
2
+ import { GlobalPrivilegeModel } from '../index.js';
2
3
  export interface ResourceSnapshotsModel {
3
4
  /**
4
5
  * The username of the snapshot creator.
@@ -120,26 +121,58 @@ export interface ResourceSnapshotsReportOperationModel {
120
121
  * The number of resources created by the operation.
121
122
  */
122
123
  resourcesCreated: number;
124
+ /**
125
+ * The `resourceName`s of the resources created by the operation.
126
+ */
127
+ resourcesCreatedNames: string[];
123
128
  /**
124
129
  * The number of resources deleted by the operation.
125
130
  */
126
131
  resourcesDeleted: number;
132
+ /**
133
+ * The `resourceName`s of the resources deleted by the operation.
134
+ */
135
+ resourcesDeletedNames: string[];
127
136
  /**
128
137
  * The number of resources for which an error occurred during the operation.
129
138
  */
130
139
  resourcesInError: number;
140
+ /**
141
+ * The `resourceName`s of the resources for which an error occurred during the operation.
142
+ */
143
+ resourcesInErrorNames: string[];
131
144
  /**
132
145
  * The number of pre-existing resources recreated by the operation. This happens when a resource cannot be updated. For example, it is not possible to rename a query pipeline, so in such a case the pipeline would be deleted and created again with the desired name. This operation counts as one recreation.
133
146
  */
134
147
  resourcesRecreated: number;
148
+ /**
149
+ * The `resourceName`s of the resources recreated by the operation.
150
+ */
151
+ resourcesRecreatedNames: string[];
152
+ /**
153
+ * The number of resources synchronized by the operation.
154
+ */
155
+ resourcesSynchronized: number;
156
+ /**
157
+ * The `resourceName`s of the resources synchronized by the operation.
158
+ */
159
+ resourcesSynchronizedNames: string[];
135
160
  /**
136
161
  * The number of resources unchanged by the operation.
137
162
  */
138
163
  resourcesUnchanged: number;
164
+ /**
165
+ * The `resourceName`s of the resources unchanged by the operation.
166
+ */
167
+ resourcesUnchangedNames: string[];
139
168
  /**
140
169
  * The number of resources updated by the operation.
141
170
  */
142
171
  resourcesUpdated: number;
172
+ /**
173
+ * The `resourceName`s of the resources updated by the operation.
174
+ */
175
+ resourcesUpdatedNames: string[];
143
176
  }
144
177
  export interface ResourceSnapshotsReportOperationResult {
145
178
  /**
@@ -344,3 +377,19 @@ export interface SnapshotDiffModel {
344
377
  status: ResourceSnapshotsReportStatus;
345
378
  files: Partial<Record<ResourceSnapshotType, SnapshotDiffFileModel>>;
346
379
  }
380
+ export type ResourceSnapshotRequiredPrivilege = GlobalPrivilegeModel;
381
+ export interface ResourceSnapshotAccessRule {
382
+ /**
383
+ * Indicates whether access to the resource snapshot is granted or not.
384
+ */
385
+ accessGranted: boolean;
386
+ /**
387
+ * List of privileges required to access the resource snapshot.
388
+ */
389
+ requiredPrivileges: ResourceSnapshotRequiredPrivilege[];
390
+ /**
391
+ * The `resourceName`s of the resources associated with this access rule.
392
+ */
393
+ resourceNames: string[];
394
+ }
395
+ export type ResourceSnapshotMissingPrivileges = Record<ResourceSnapshotType, ResourceSnapshotAccessRule[]>;
@@ -1,5 +1,6 @@
1
1
  export { default as Resource } from './Resource.js';
2
2
  export * from './Activities/index.js';
3
+ export * from './AnalyticsAdmin/index.js';
3
4
  export * from './ApiKeys/index.js';
4
5
  export * from './ApiKeyTemplate/index.js';
5
6
  export * from './AWS/index.js';
@@ -36,7 +37,6 @@ export * from './Organizations/index.js';
36
37
  export * from './Pipelines/index.js';
37
38
  export * from './PlatformResources.js';
38
39
  export * from './PrivilegeEvaluator/index.js';
39
- export * from './Products/index.js';
40
40
  export * from './Projects/index.js';
41
41
  export * from './PushApi/index.js';
42
42
  export * from './Resources/index.js';
@@ -53,4 +53,3 @@ export * from './Sources/index.js';
53
53
  export * from './UsageAnalytics/index.js';
54
54
  export * from './Users/index.js';
55
55
  export * from './Vaults/index.js';
56
- export * from './AnalyticsAdmin/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coveo/platform-client",
3
- "version": "60.8.0",
3
+ "version": "61.0.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,68 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const APICore_js_1 = tslib_1.__importDefault(require("../../APICore.js"));
5
- const normalizePaginatedOptions_js_1 = require("../../utils/normalizePaginatedOptions.js");
6
- const Resource_js_1 = tslib_1.__importDefault(require("../Resource.js"));
7
- /**
8
- * @deprecated
9
- */
10
- class ProductListing extends Resource_js_1.default {
11
- static baseCatalogsUrl = `/rest/organizations/${APICore_js_1.default.orgPlaceholder}/catalogs`;
12
- static baseProductListingsUrl = `/rest/organizations/${APICore_js_1.default.orgPlaceholder}/productlistings`;
13
- /**
14
- * @param catalogId
15
- * @param options
16
- * @deprecated
17
- */
18
- list(catalogId, options) {
19
- const normalizedOptions = (0, normalizePaginatedOptions_js_1.normalizePaginatedOptions)(options);
20
- return this.api.get(this.buildPath(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings`, normalizedOptions));
21
- }
22
- /**
23
- * @param catalogId
24
- * @param model
25
- * @deprecated
26
- */
27
- create(catalogId, model) {
28
- return this.api.post(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings`, model);
29
- }
30
- /**
31
- * @param catalogId
32
- * @param productListingId
33
- * @deprecated
34
- */
35
- delete(catalogId, productListingId) {
36
- return this.api.delete(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings/${productListingId}`);
37
- }
38
- /**
39
- * @param catalogId
40
- * @param productListingId
41
- * @deprecated
42
- */
43
- get(catalogId, productListingId) {
44
- return this.api.get(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings/${productListingId}`);
45
- }
46
- /**
47
- * @param catalogId
48
- * @param model
49
- * @deprecated
50
- */
51
- update(catalogId, model) {
52
- return this.api.put(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings/${model.id}`, model);
53
- }
54
- /**
55
- * @deprecated
56
- */
57
- getByCatalog() {
58
- return this.api.get(`${ProductListing.baseProductListingsUrl}/catalogs`);
59
- }
60
- /**
61
- * @deprecated
62
- */
63
- getUrls() {
64
- return this.api.get(`${ProductListing.baseProductListingsUrl}/urls`);
65
- }
66
- }
67
- exports.default = ProductListing;
68
- //# sourceMappingURL=ProductListing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProductListing.js","sourceRoot":"","sources":["../../../../src/resources/Catalogs/ProductListing.ts"],"names":[],"mappings":";;;AAAA,0EAAmC;AACnC,2FAAmF;AAEnF,yEAAsC;AAOtC;;GAEG;AACH,MAAqB,cAAe,SAAQ,qBAAQ;IAChD,MAAM,CAAC,eAAe,GAAG,uBAAuB,oBAAG,CAAC,cAAc,WAAW,CAAC;IAC9E,MAAM,CAAC,sBAAsB,GAAG,uBAAuB,oBAAG,CAAC,cAAc,kBAAkB,CAAC;IAE5F;;;;OAIG;IACH,IAAI,CAAC,SAAiB,EAAE,OAAoC;QACxD,MAAM,iBAAiB,GAAG,IAAA,wDAAyB,EAAC,OAAO,CAAC,CAAC;QAC7D,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,SAAS,CAAC,GAAG,cAAc,CAAC,eAAe,IAAI,SAAS,kBAAkB,EAAE,iBAAiB,CAAC,CACtG,CAAC;IACN,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,SAAiB,EAAE,KAA+B;QACrD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,GAAG,cAAc,CAAC,eAAe,IAAI,SAAS,kBAAkB,EAChE,KAAK,CACR,CAAC;IACN,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,SAAiB,EAAE,gBAAwB;QAC9C,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,cAAc,CAAC,eAAe,IAAI,SAAS,oBAAoB,gBAAgB,EAAE,CAAC,CAAC;IACjH,CAAC;IAED;;;;OAIG;IACH,GAAG,CAAC,SAAiB,EAAE,gBAAwB;QAC3C,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,cAAc,CAAC,eAAe,IAAI,SAAS,oBAAoB,gBAAgB,EAAE,CACvF,CAAC;IACN,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,SAAiB,EAAE,KAA0B;QAChD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,cAAc,CAAC,eAAe,IAAI,SAAS,oBAAoB,KAAK,CAAC,EAAE,EAAE,EAC5E,KAAK,CACR,CAAC;IACN,CAAC;IAED;;OAEG;IACH,YAAY;QACR,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,cAAc,CAAC,sBAAsB,WAAW,CACtD,CAAC;IACN,CAAC;IAED;;OAEG;IACH,OAAO;QACH,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAW,GAAG,cAAc,CAAC,sBAAsB,OAAO,CAAC,CAAC;IACnF,CAAC;;AA1EL,iCA2EC"}
@@ -1,61 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const APICore_js_1 = tslib_1.__importDefault(require("../../APICore.js"));
5
- const normalizePaginatedOptions_js_1 = require("../../utils/normalizePaginatedOptions.js");
6
- const Resource_js_1 = tslib_1.__importDefault(require("../Resource.js"));
7
- /**
8
- * @deprecated
9
- */
10
- class ProductListingConfiguration extends Resource_js_1.default {
11
- static baseUrl = `/rest/organizations/${APICore_js_1.default.orgPlaceholder}/catalogs`;
12
- /**
13
- * @param catalogId
14
- * @param productListingId
15
- * @param options
16
- * @deprecated
17
- */
18
- list(catalogId, productListingId, options) {
19
- const normalizedOptions = (0, normalizePaginatedOptions_js_1.normalizePaginatedOptions)(options);
20
- return this.api.get(this.buildPath(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations`, normalizedOptions));
21
- }
22
- /**
23
- * @param catalogId
24
- * @param productListingId
25
- * @param rankingConfiguration
26
- * @deprecated
27
- */
28
- create(catalogId, productListingId, rankingConfiguration) {
29
- return this.api.post(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations`, rankingConfiguration);
30
- }
31
- /**
32
- * @param catalogId
33
- * @param productListingId
34
- * @param productListingConfigurationId
35
- * @deprecated
36
- */
37
- delete(catalogId, productListingId, productListingConfigurationId) {
38
- return this.api.delete(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations/${productListingConfigurationId}`);
39
- }
40
- /**
41
- * @param catalogId
42
- * @param productListingId
43
- * @param productListingConfigurationId
44
- * @deprecated
45
- */
46
- get(catalogId, productListingId, productListingConfigurationId) {
47
- return this.api.get(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations/${productListingConfigurationId}`);
48
- }
49
- /**
50
- * @param catalogId
51
- * @param productListingId
52
- * @param productListingConfigurationId
53
- * @param rankingConfiguration
54
- * @deprecated
55
- */
56
- update(catalogId, productListingId, productListingConfigurationId, rankingConfiguration) {
57
- return this.api.put(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations/${productListingConfigurationId}`, rankingConfiguration);
58
- }
59
- }
60
- exports.default = ProductListingConfiguration;
61
- //# sourceMappingURL=ProductListingConfiguration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProductListingConfiguration.js","sourceRoot":"","sources":["../../../../src/resources/Catalogs/ProductListingConfiguration.ts"],"names":[],"mappings":";;;AAAA,0EAAmC;AACnC,2FAAmF;AAEnF,yEAAsC;AAMtC;;GAEG;AACH,MAAqB,2BAA4B,SAAQ,qBAAQ;IAC7D,MAAM,CAAC,OAAO,GAAG,uBAAuB,oBAAG,CAAC,cAAc,WAAW,CAAC;IAEtE;;;;;OAKG;IACH,IAAI,CAAC,SAAiB,EAAE,gBAAwB,EAAE,OAA4C;QAC1F,MAAM,iBAAiB,GAAG,IAAA,wDAAyB,EAAC,OAAO,CAAC,CAAC;QAC7D,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,SAAS,CACV,GAAG,2BAA2B,CAAC,OAAO,IAAI,SAAS,oBAAoB,gBAAgB,iBAAiB,EACxG,iBAAiB,CACpB,CACJ,CAAC;IACN,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,SAAiB,EAAE,gBAAwB,EAAE,oBAA2D;QAC3G,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,GAAG,2BAA2B,CAAC,OAAO,IAAI,SAAS,oBAAoB,gBAAgB,iBAAiB,EACxG,oBAAoB,CACvB,CAAC;IACN,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,SAAiB,EAAE,gBAAwB,EAAE,6BAAqC;QACrF,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAClB,GAAG,2BAA2B,CAAC,OAAO,IAAI,SAAS,oBAAoB,gBAAgB,mBAAmB,6BAA6B,EAAE,CAC5I,CAAC;IACN,CAAC;IAED;;;;;OAKG;IACH,GAAG,CAAC,SAAiB,EAAE,gBAAwB,EAAE,6BAAqC;QAClF,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,2BAA2B,CAAC,OAAO,IAAI,SAAS,oBAAoB,gBAAgB,mBAAmB,6BAA6B,EAAE,CAC5I,CAAC;IACN,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACF,SAAiB,EACjB,gBAAwB,EACxB,6BAAqC,EACrC,oBAA2D;QAE3D,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,2BAA2B,CAAC,OAAO,IAAI,SAAS,oBAAoB,gBAAgB,mBAAmB,6BAA6B,EAAE,EACzI,oBAAoB,CACvB,CAAC;IACN,CAAC;;AAzEL,8CA0EC"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RankingTypeEnum = void 0;
4
- /**
5
- * @deprecated
6
- */
7
- var RankingTypeEnum;
8
- (function (RankingTypeEnum) {
9
- RankingTypeEnum["BOOST"] = "BOOST";
10
- RankingTypeEnum["BURY"] = "BURY";
11
- RankingTypeEnum["PIN"] = "PIN";
12
- })(RankingTypeEnum || (exports.RankingTypeEnum = RankingTypeEnum = {}));
13
- //# sourceMappingURL=ProductListingConfigurationInterfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProductListingConfigurationInterfaces.js","sourceRoot":"","sources":["../../../../src/resources/Catalogs/ProductListingConfigurationInterfaces.ts"],"names":[],"mappings":";;;AAiDA;;GAEG;AACH,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,kCAAe,CAAA;IACf,gCAAa,CAAA;IACb,8BAAW,CAAA;AACf,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B"}
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const Enums_js_1 = require("../Enums.js");
4
- //# sourceMappingURL=ProductListingInterfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProductListingInterfaces.js","sourceRoot":"","sources":["../../../../src/resources/Catalogs/ProductListingInterfaces.ts"],"names":[],"mappings":";;AACA,0CAA8D"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const APICore_js_1 = tslib_1.__importDefault(require("../../APICore.js"));
5
- const Resource_js_1 = tslib_1.__importDefault(require("../Resource.js"));
6
- class Products extends Resource_js_1.default {
7
- static baseUrl = `/rest/organizations/${APICore_js_1.default.orgPlaceholder}/commerce/v1/products`;
8
- /**
9
- * @param productsRequest
10
- * @param refreshCache
11
- * @deprecated
12
- */
13
- get(productsRequest, refreshCache = false) {
14
- return this.api.post(this.buildPath(`${Products.baseUrl}/listing`, { refreshCache: refreshCache }), productsRequest);
15
- }
16
- }
17
- exports.default = Products;
18
- //# sourceMappingURL=Product.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/resources/Products/Product.ts"],"names":[],"mappings":";;;AAAA,0EAAmC;AAEnC,yEAAsC;AAGtC,MAAqB,QAAS,SAAQ,qBAAQ;IAC1C,MAAM,CAAC,OAAO,GAAG,uBAAuB,oBAAG,CAAC,cAAc,uBAAuB,CAAC;IAElF;;;;OAIG;IACH,GAAG,CAAC,eAA0C,EAAE,YAAY,GAAG,KAAK;QAChE,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,IAAI,CAAC,SAAS,CAAC,GAAG,QAAQ,CAAC,OAAO,UAAU,EAAE,EAAC,YAAY,EAAE,YAAY,EAAC,CAAC,EAC3E,eAAe,CAClB,CAAC;IACN,CAAC;;AAbL,2BAcC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ProductInterfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProductInterfaces.js","sourceRoot":"","sources":["../../../../src/resources/Products/ProductInterfaces.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./Product.js"), exports);
5
- tslib_1.__exportStar(require("./ProductInterfaces.js"), exports);
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/Products/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B;AAC7B,iEAAuC"}
@@ -1,64 +0,0 @@
1
- import API from '../../APICore.js';
2
- import { normalizePaginatedOptions } from '../../utils/normalizePaginatedOptions.js';
3
- import Resource from '../Resource.js';
4
- /**
5
- * @deprecated
6
- */
7
- export default class ProductListing extends Resource {
8
- static baseCatalogsUrl = `/rest/organizations/${API.orgPlaceholder}/catalogs`;
9
- static baseProductListingsUrl = `/rest/organizations/${API.orgPlaceholder}/productlistings`;
10
- /**
11
- * @param catalogId
12
- * @param options
13
- * @deprecated
14
- */
15
- list(catalogId, options) {
16
- const normalizedOptions = normalizePaginatedOptions(options);
17
- return this.api.get(this.buildPath(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings`, normalizedOptions));
18
- }
19
- /**
20
- * @param catalogId
21
- * @param model
22
- * @deprecated
23
- */
24
- create(catalogId, model) {
25
- return this.api.post(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings`, model);
26
- }
27
- /**
28
- * @param catalogId
29
- * @param productListingId
30
- * @deprecated
31
- */
32
- delete(catalogId, productListingId) {
33
- return this.api.delete(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings/${productListingId}`);
34
- }
35
- /**
36
- * @param catalogId
37
- * @param productListingId
38
- * @deprecated
39
- */
40
- get(catalogId, productListingId) {
41
- return this.api.get(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings/${productListingId}`);
42
- }
43
- /**
44
- * @param catalogId
45
- * @param model
46
- * @deprecated
47
- */
48
- update(catalogId, model) {
49
- return this.api.put(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings/${model.id}`, model);
50
- }
51
- /**
52
- * @deprecated
53
- */
54
- getByCatalog() {
55
- return this.api.get(`${ProductListing.baseProductListingsUrl}/catalogs`);
56
- }
57
- /**
58
- * @deprecated
59
- */
60
- getUrls() {
61
- return this.api.get(`${ProductListing.baseProductListingsUrl}/urls`);
62
- }
63
- }
64
- //# sourceMappingURL=ProductListing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProductListing.js","sourceRoot":"","sources":["../../../../src/resources/Catalogs/ProductListing.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,OAAO,EAAC,yBAAyB,EAAC,MAAM,0CAA0C,CAAC;AAEnF,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAOtC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,QAAQ;IAChD,MAAM,CAAC,eAAe,GAAG,uBAAuB,GAAG,CAAC,cAAc,WAAW,CAAC;IAC9E,MAAM,CAAC,sBAAsB,GAAG,uBAAuB,GAAG,CAAC,cAAc,kBAAkB,CAAC;IAE5F;;;;OAIG;IACH,IAAI,CAAC,SAAiB,EAAE,OAAoC;QACxD,MAAM,iBAAiB,GAAG,yBAAyB,CAAC,OAAO,CAAC,CAAC;QAC7D,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,SAAS,CAAC,GAAG,cAAc,CAAC,eAAe,IAAI,SAAS,kBAAkB,EAAE,iBAAiB,CAAC,CACtG,CAAC;IACN,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,SAAiB,EAAE,KAA+B;QACrD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,GAAG,cAAc,CAAC,eAAe,IAAI,SAAS,kBAAkB,EAChE,KAAK,CACR,CAAC;IACN,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,SAAiB,EAAE,gBAAwB;QAC9C,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,cAAc,CAAC,eAAe,IAAI,SAAS,oBAAoB,gBAAgB,EAAE,CAAC,CAAC;IACjH,CAAC;IAED;;;;OAIG;IACH,GAAG,CAAC,SAAiB,EAAE,gBAAwB;QAC3C,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,cAAc,CAAC,eAAe,IAAI,SAAS,oBAAoB,gBAAgB,EAAE,CACvF,CAAC;IACN,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,SAAiB,EAAE,KAA0B;QAChD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,cAAc,CAAC,eAAe,IAAI,SAAS,oBAAoB,KAAK,CAAC,EAAE,EAAE,EAC5E,KAAK,CACR,CAAC;IACN,CAAC;IAED;;OAEG;IACH,YAAY;QACR,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,cAAc,CAAC,sBAAsB,WAAW,CACtD,CAAC;IACN,CAAC;IAED;;OAEG;IACH,OAAO;QACH,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAW,GAAG,cAAc,CAAC,sBAAsB,OAAO,CAAC,CAAC;IACnF,CAAC"}
@@ -1,57 +0,0 @@
1
- import API from '../../APICore.js';
2
- import { normalizePaginatedOptions } from '../../utils/normalizePaginatedOptions.js';
3
- import Resource from '../Resource.js';
4
- /**
5
- * @deprecated
6
- */
7
- export default class ProductListingConfiguration extends Resource {
8
- static baseUrl = `/rest/organizations/${API.orgPlaceholder}/catalogs`;
9
- /**
10
- * @param catalogId
11
- * @param productListingId
12
- * @param options
13
- * @deprecated
14
- */
15
- list(catalogId, productListingId, options) {
16
- const normalizedOptions = normalizePaginatedOptions(options);
17
- return this.api.get(this.buildPath(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations`, normalizedOptions));
18
- }
19
- /**
20
- * @param catalogId
21
- * @param productListingId
22
- * @param rankingConfiguration
23
- * @deprecated
24
- */
25
- create(catalogId, productListingId, rankingConfiguration) {
26
- return this.api.post(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations`, rankingConfiguration);
27
- }
28
- /**
29
- * @param catalogId
30
- * @param productListingId
31
- * @param productListingConfigurationId
32
- * @deprecated
33
- */
34
- delete(catalogId, productListingId, productListingConfigurationId) {
35
- return this.api.delete(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations/${productListingConfigurationId}`);
36
- }
37
- /**
38
- * @param catalogId
39
- * @param productListingId
40
- * @param productListingConfigurationId
41
- * @deprecated
42
- */
43
- get(catalogId, productListingId, productListingConfigurationId) {
44
- return this.api.get(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations/${productListingConfigurationId}`);
45
- }
46
- /**
47
- * @param catalogId
48
- * @param productListingId
49
- * @param productListingConfigurationId
50
- * @param rankingConfiguration
51
- * @deprecated
52
- */
53
- update(catalogId, productListingId, productListingConfigurationId, rankingConfiguration) {
54
- return this.api.put(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations/${productListingConfigurationId}`, rankingConfiguration);
55
- }
56
- }
57
- //# sourceMappingURL=ProductListingConfiguration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProductListingConfiguration.js","sourceRoot":"","sources":["../../../../src/resources/Catalogs/ProductListingConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,OAAO,EAAC,yBAAyB,EAAC,MAAM,0CAA0C,CAAC;AAEnF,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAMtC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,2BAA4B,SAAQ,QAAQ;IAC7D,MAAM,CAAC,OAAO,GAAG,uBAAuB,GAAG,CAAC,cAAc,WAAW,CAAC;IAEtE;;;;;OAKG;IACH,IAAI,CAAC,SAAiB,EAAE,gBAAwB,EAAE,OAA4C;QAC1F,MAAM,iBAAiB,GAAG,yBAAyB,CAAC,OAAO,CAAC,CAAC;QAC7D,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,SAAS,CACV,GAAG,2BAA2B,CAAC,OAAO,IAAI,SAAS,oBAAoB,gBAAgB,iBAAiB,EACxG,iBAAiB,CACpB,CACJ,CAAC;IACN,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,SAAiB,EAAE,gBAAwB,EAAE,oBAA2D;QAC3G,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,GAAG,2BAA2B,CAAC,OAAO,IAAI,SAAS,oBAAoB,gBAAgB,iBAAiB,EACxG,oBAAoB,CACvB,CAAC;IACN,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,SAAiB,EAAE,gBAAwB,EAAE,6BAAqC;QACrF,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAClB,GAAG,2BAA2B,CAAC,OAAO,IAAI,SAAS,oBAAoB,gBAAgB,mBAAmB,6BAA6B,EAAE,CAC5I,CAAC;IACN,CAAC;IAED;;;;;OAKG;IACH,GAAG,CAAC,SAAiB,EAAE,gBAAwB,EAAE,6BAAqC;QAClF,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,2BAA2B,CAAC,OAAO,IAAI,SAAS,oBAAoB,gBAAgB,mBAAmB,6BAA6B,EAAE,CAC5I,CAAC;IACN,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACF,SAAiB,EACjB,gBAAwB,EACxB,6BAAqC,EACrC,oBAA2D;QAE3D,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,2BAA2B,CAAC,OAAO,IAAI,SAAS,oBAAoB,gBAAgB,mBAAmB,6BAA6B,EAAE,EACzI,oBAAoB,CACvB,CAAC;IACN,CAAC"}
@@ -1,10 +0,0 @@
1
- /**
2
- * @deprecated
3
- */
4
- export var RankingTypeEnum;
5
- (function (RankingTypeEnum) {
6
- RankingTypeEnum["BOOST"] = "BOOST";
7
- RankingTypeEnum["BURY"] = "BURY";
8
- RankingTypeEnum["PIN"] = "PIN";
9
- })(RankingTypeEnum || (RankingTypeEnum = {}));
10
- //# sourceMappingURL=ProductListingConfigurationInterfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProductListingConfigurationInterfaces.js","sourceRoot":"","sources":["../../../../src/resources/Catalogs/ProductListingConfigurationInterfaces.ts"],"names":[],"mappings":"AAiDA;;GAEG;AACH,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,kCAAe,CAAA;IACf,gCAAa,CAAA;IACb,8BAAW,CAAA;AACf,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B"}
@@ -1,2 +0,0 @@
1
- import { FieldValueType } from '../Enums.js';
2
- //# sourceMappingURL=ProductListingInterfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProductListingInterfaces.js","sourceRoot":"","sources":["../../../../src/resources/Catalogs/ProductListingInterfaces.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,cAAc,EAAC,MAAM,aAAa,CAAC"}
@@ -1,14 +0,0 @@
1
- import API from '../../APICore.js';
2
- import Resource from '../Resource.js';
3
- export default class Products extends Resource {
4
- static baseUrl = `/rest/organizations/${API.orgPlaceholder}/commerce/v1/products`;
5
- /**
6
- * @param productsRequest
7
- * @param refreshCache
8
- * @deprecated
9
- */
10
- get(productsRequest, refreshCache = false) {
11
- return this.api.post(this.buildPath(`${Products.baseUrl}/listing`, { refreshCache: refreshCache }), productsRequest);
12
- }
13
- }
14
- //# sourceMappingURL=Product.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/resources/Products/Product.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,kBAAkB,CAAC;AAEnC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAGtC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,QAAQ;IAC1C,MAAM,CAAC,OAAO,GAAG,uBAAuB,GAAG,CAAC,cAAc,uBAAuB,CAAC;IAElF;;;;OAIG;IACH,GAAG,CAAC,eAA0C,EAAE,YAAY,GAAG,KAAK;QAChE,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,IAAI,CAAC,SAAS,CAAC,GAAG,QAAQ,CAAC,OAAO,UAAU,EAAE,EAAC,YAAY,EAAE,YAAY,EAAC,CAAC,EAC3E,eAAe,CAClB,CAAC;IACN,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ProductInterfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProductInterfaces.js","sourceRoot":"","sources":["../../../../src/resources/Products/ProductInterfaces.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export * from './Product.js';
2
- export * from './ProductInterfaces.js';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/Products/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC"}
@@ -1,48 +0,0 @@
1
- import { New, PageModel } from '../BaseInterfaces.js';
2
- import Resource from '../Resource.js';
3
- import { ProductListingsListOptions, ProductListingModel, CatalogProductListingsGroupModel } from './ProductListingInterfaces.js';
4
- /**
5
- * @deprecated
6
- */
7
- export default class ProductListing extends Resource {
8
- static baseCatalogsUrl: string;
9
- static baseProductListingsUrl: string;
10
- /**
11
- * @param catalogId
12
- * @param options
13
- * @deprecated
14
- */
15
- list(catalogId: string, options?: ProductListingsListOptions): Promise<PageModel<ProductListingModel>>;
16
- /**
17
- * @param catalogId
18
- * @param model
19
- * @deprecated
20
- */
21
- create(catalogId: string, model: New<ProductListingModel>): Promise<ProductListingModel>;
22
- /**
23
- * @param catalogId
24
- * @param productListingId
25
- * @deprecated
26
- */
27
- delete(catalogId: string, productListingId: string): Promise<Record<string, unknown>>;
28
- /**
29
- * @param catalogId
30
- * @param productListingId
31
- * @deprecated
32
- */
33
- get(catalogId: string, productListingId: string): Promise<ProductListingModel>;
34
- /**
35
- * @param catalogId
36
- * @param model
37
- * @deprecated
38
- */
39
- update(catalogId: string, model: ProductListingModel): Promise<ProductListingModel>;
40
- /**
41
- * @deprecated
42
- */
43
- getByCatalog(): Promise<PageModel<CatalogProductListingsGroupModel>>;
44
- /**
45
- * @deprecated
46
- */
47
- getUrls(): Promise<string[]>;
48
- }
@@ -1,45 +0,0 @@
1
- import { New, PageModel } from '../BaseInterfaces.js';
2
- import Resource from '../Resource.js';
3
- import { ProductListingConfigurationModel, ProductListingConfigurationOptions } from './ProductListingConfigurationInterfaces.js';
4
- /**
5
- * @deprecated
6
- */
7
- export default class ProductListingConfiguration extends Resource {
8
- static baseUrl: string;
9
- /**
10
- * @param catalogId
11
- * @param productListingId
12
- * @param options
13
- * @deprecated
14
- */
15
- list(catalogId: string, productListingId: string, options?: ProductListingConfigurationOptions): Promise<PageModel<ProductListingConfigurationModel>>;
16
- /**
17
- * @param catalogId
18
- * @param productListingId
19
- * @param rankingConfiguration
20
- * @deprecated
21
- */
22
- create(catalogId: string, productListingId: string, rankingConfiguration: New<ProductListingConfigurationModel>): Promise<Record<string, unknown>>;
23
- /**
24
- * @param catalogId
25
- * @param productListingId
26
- * @param productListingConfigurationId
27
- * @deprecated
28
- */
29
- delete(catalogId: string, productListingId: string, productListingConfigurationId: string): Promise<Record<string, unknown>>;
30
- /**
31
- * @param catalogId
32
- * @param productListingId
33
- * @param productListingConfigurationId
34
- * @deprecated
35
- */
36
- get(catalogId: string, productListingId: string, productListingConfigurationId: string): Promise<ProductListingConfigurationModel>;
37
- /**
38
- * @param catalogId
39
- * @param productListingId
40
- * @param productListingConfigurationId
41
- * @param rankingConfiguration
42
- * @deprecated
43
- */
44
- update(catalogId: string, productListingId: string, productListingConfigurationId: string, rankingConfiguration: New<ProductListingConfigurationModel>): Promise<Record<string, unknown>>;
45
- }