@coveo/platform-client 60.7.1 → 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 (65) 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/Enums.js +10 -3
  4. package/dist/cjs/resources/Enums.js.map +1 -1
  5. package/dist/cjs/resources/PlatformResources.js +9 -18
  6. package/dist/cjs/resources/PlatformResources.js.map +1 -1
  7. package/dist/cjs/resources/ResourceSnapshots/ResourceSnapshots.js +11 -0
  8. package/dist/cjs/resources/ResourceSnapshots/ResourceSnapshots.js.map +1 -1
  9. package/dist/cjs/resources/ResourceSnapshots/ResourceSnapshotsInterfaces.js.map +1 -1
  10. package/dist/cjs/resources/index.js +1 -2
  11. package/dist/cjs/resources/index.js.map +1 -1
  12. package/dist/esm/resources/Catalogs/index.js +1 -5
  13. package/dist/esm/resources/Catalogs/index.js.map +1 -1
  14. package/dist/esm/resources/Enums.js +8 -1
  15. package/dist/esm/resources/Enums.js.map +1 -1
  16. package/dist/esm/resources/PlatformResources.js +9 -18
  17. package/dist/esm/resources/PlatformResources.js.map +1 -1
  18. package/dist/esm/resources/ResourceSnapshots/ResourceSnapshots.js +11 -0
  19. package/dist/esm/resources/ResourceSnapshots/ResourceSnapshots.js.map +1 -1
  20. package/dist/esm/resources/ResourceSnapshots/ResourceSnapshotsInterfaces.js.map +1 -1
  21. package/dist/esm/resources/index.js +1 -2
  22. package/dist/esm/resources/index.js.map +1 -1
  23. package/dist/types/resources/Catalogs/index.d.ts +1 -5
  24. package/dist/types/resources/Enums.d.ts +8 -2
  25. package/dist/types/resources/Pipelines/Conditions/ConditionInterfaces.d.ts +19 -2
  26. package/dist/types/resources/PlatformResources.d.ts +9 -15
  27. package/dist/types/resources/ResourceSnapshots/ResourceSnapshots.d.ts +10 -1
  28. package/dist/types/resources/ResourceSnapshots/ResourceSnapshotsInterfaces.d.ts +49 -0
  29. package/dist/types/resources/index.d.ts +1 -2
  30. package/package.json +1 -1
  31. package/dist/cjs/resources/Catalogs/ProductListing.js +0 -68
  32. package/dist/cjs/resources/Catalogs/ProductListing.js.map +0 -1
  33. package/dist/cjs/resources/Catalogs/ProductListingConfiguration.js +0 -61
  34. package/dist/cjs/resources/Catalogs/ProductListingConfiguration.js.map +0 -1
  35. package/dist/cjs/resources/Catalogs/ProductListingConfigurationInterfaces.js +0 -13
  36. package/dist/cjs/resources/Catalogs/ProductListingConfigurationInterfaces.js.map +0 -1
  37. package/dist/cjs/resources/Catalogs/ProductListingInterfaces.js +0 -4
  38. package/dist/cjs/resources/Catalogs/ProductListingInterfaces.js.map +0 -1
  39. package/dist/cjs/resources/Products/Product.js +0 -18
  40. package/dist/cjs/resources/Products/Product.js.map +0 -1
  41. package/dist/cjs/resources/Products/ProductInterfaces.js +0 -3
  42. package/dist/cjs/resources/Products/ProductInterfaces.js.map +0 -1
  43. package/dist/cjs/resources/Products/index.js +0 -6
  44. package/dist/cjs/resources/Products/index.js.map +0 -1
  45. package/dist/esm/resources/Catalogs/ProductListing.js +0 -64
  46. package/dist/esm/resources/Catalogs/ProductListing.js.map +0 -1
  47. package/dist/esm/resources/Catalogs/ProductListingConfiguration.js +0 -57
  48. package/dist/esm/resources/Catalogs/ProductListingConfiguration.js.map +0 -1
  49. package/dist/esm/resources/Catalogs/ProductListingConfigurationInterfaces.js +0 -10
  50. package/dist/esm/resources/Catalogs/ProductListingConfigurationInterfaces.js.map +0 -1
  51. package/dist/esm/resources/Catalogs/ProductListingInterfaces.js +0 -2
  52. package/dist/esm/resources/Catalogs/ProductListingInterfaces.js.map +0 -1
  53. package/dist/esm/resources/Products/Product.js +0 -14
  54. package/dist/esm/resources/Products/Product.js.map +0 -1
  55. package/dist/esm/resources/Products/ProductInterfaces.js +0 -2
  56. package/dist/esm/resources/Products/ProductInterfaces.js.map +0 -1
  57. package/dist/esm/resources/Products/index.js +0 -3
  58. package/dist/esm/resources/Products/index.js.map +0 -1
  59. package/dist/types/resources/Catalogs/ProductListing.d.ts +0 -48
  60. package/dist/types/resources/Catalogs/ProductListingConfiguration.d.ts +0 -45
  61. package/dist/types/resources/Catalogs/ProductListingConfigurationInterfaces.d.ts +0 -53
  62. package/dist/types/resources/Catalogs/ProductListingInterfaces.d.ts +0 -96
  63. package/dist/types/resources/Products/Product.d.ts +0 -12
  64. package/dist/types/resources/Products/ProductInterfaces.d.ts +0 -254
  65. package/dist/types/resources/Products/index.d.ts +0 -2
@@ -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
- }
@@ -1,53 +0,0 @@
1
- import { Paginated } from '../BaseInterfaces.js';
2
- import { DeprecatedPaginated } from '../InternalBaseInterface.js';
3
- import { QueryFilterModel } from './ProductListingInterfaces.js';
4
- /**
5
- * @deprecated
6
- */
7
- export type ProductListingConfigurationOptions = Paginated | DeprecatedPaginated;
8
- /**
9
- * @deprecated
10
- */
11
- export interface ProductListingConfigurationModel {
12
- /**
13
- * The id of the ProductListingConfiguration.
14
- */
15
- id: string;
16
- /**
17
- * The list of RankingConfiguration.
18
- */
19
- rankingConfigurations: RankingConfiguration[];
20
- }
21
- /**
22
- * @deprecated
23
- */
24
- export interface RankingConfiguration {
25
- /**
26
- * The name of the RankingConfiguration.
27
- */
28
- name: string;
29
- /**
30
- * The list of inclusion filters.
31
- */
32
- include: QueryFilterModel[];
33
- /**
34
- * The list of exclusion filters.
35
- */
36
- exclude: QueryFilterModel[];
37
- /**
38
- * The type of the RankingConfiguration.
39
- */
40
- type: RankingTypeEnum;
41
- /**
42
- * The modifier value if type is BOOST or BURY. The index value if type is PIN.
43
- */
44
- value: number;
45
- }
46
- /**
47
- * @deprecated
48
- */
49
- export declare enum RankingTypeEnum {
50
- BOOST = "BOOST",
51
- BURY = "BURY",
52
- PIN = "PIN"
53
- }
@@ -1,96 +0,0 @@
1
- import { Paginated } from '../BaseInterfaces.js';
2
- import { FieldOperatorType, FieldValueType } from '../Enums.js';
3
- import { DeprecatedPaginated } from '../InternalBaseInterface.js';
4
- /**
5
- * @deprecated
6
- */
7
- export type ProductListingsListOptions = Paginated | DeprecatedPaginated;
8
- interface FieldValueModelGeneric<T extends FieldValueType> {
9
- /**
10
- * The type of the field.
11
- */
12
- type: T;
13
- /**
14
- * The value of the field.
15
- */
16
- value: ValueTypeForFieldValueType[T];
17
- }
18
- interface ValueTypeForFieldValueType {
19
- [FieldValueType.RANGE]: number[];
20
- [FieldValueType.STRING]: string;
21
- [FieldValueType.DECIMAL]: number;
22
- [FieldValueType.ARRAY]: string[];
23
- [FieldValueType.HIERARCHIC_MULTI_VALUE]: string[];
24
- }
25
- type FieldValueModel = FieldValueModelGeneric<FieldValueType.RANGE> | FieldValueModelGeneric<FieldValueType.STRING> | FieldValueModelGeneric<FieldValueType.DECIMAL> | FieldValueModelGeneric<FieldValueType.ARRAY> | FieldValueModelGeneric<FieldValueType.HIERARCHIC_MULTI_VALUE>;
26
- /**
27
- * @deprecated
28
- */
29
- export interface QueryFilterModel {
30
- /**
31
- * The field name.
32
- */
33
- fieldName: string;
34
- /**
35
- * The field operator.
36
- */
37
- operator: FieldOperatorType;
38
- /**
39
- * The field value.
40
- */
41
- value: FieldValueModel;
42
- }
43
- /**
44
- * @deprecated
45
- */
46
- export interface ProductListingMetricsModel {
47
- lastNumberOfProducts?: number;
48
- lastQueried: string;
49
- }
50
- /**
51
- * @deprecated
52
- */
53
- export interface ProductListingModel {
54
- /**
55
- * The list of exclusion filters.
56
- */
57
- exclude?: QueryFilterModel[];
58
- /**
59
- * The unique identifier of this product listing.
60
- */
61
- id?: string;
62
- /**
63
- * The list of inclusion filters.
64
- */
65
- include?: QueryFilterModel[];
66
- /**
67
- * The name of this product listing.
68
- */
69
- name: string;
70
- /**
71
- * The list of URLs for the product listing.
72
- */
73
- urls: string[];
74
- /**
75
- * The list of usage metrics.
76
- */
77
- metrics?: ProductListingMetricsModel;
78
- }
79
- /**
80
- * @deprecated
81
- */
82
- export interface CatalogProductListingsGroupModel {
83
- /**
84
- * The unique identifier of the catalog.
85
- */
86
- catalogId?: string;
87
- /**
88
- * The name of the catalog.
89
- */
90
- catalogName?: string;
91
- /**
92
- * The number of associated product listings.
93
- */
94
- productListingsCount?: number;
95
- }
96
- export {};
@@ -1,12 +0,0 @@
1
- import { New } from '../BaseInterfaces.js';
2
- import Resource from '../Resource.js';
3
- import { ProductsRequestModel, ProductsResultModel } from './ProductInterfaces.js';
4
- export default class Products extends Resource {
5
- static baseUrl: string;
6
- /**
7
- * @param productsRequest
8
- * @param refreshCache
9
- * @deprecated
10
- */
11
- get(productsRequest: New<ProductsRequestModel>, refreshCache?: boolean): Promise<ProductsResultModel>;
12
- }