@coveo/platform-client 55.2.0 → 55.3.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.
- package/dist/cjs/resources/Catalogs/ProductListing.js +24 -0
- package/dist/cjs/resources/Catalogs/ProductListing.js.map +1 -1
- package/dist/cjs/resources/Catalogs/ProductListingConfiguration.js +18 -0
- package/dist/cjs/resources/Catalogs/ProductListingConfiguration.js.map +1 -1
- package/dist/cjs/resources/Catalogs/ProductListingConfigurationInterfaces.js +3 -0
- package/dist/cjs/resources/Catalogs/ProductListingConfigurationInterfaces.js.map +1 -1
- package/dist/cjs/resources/Products/Product.js +3 -0
- package/dist/cjs/resources/Products/Product.js.map +1 -1
- package/dist/esm/resources/Catalogs/ProductListing.js +24 -0
- package/dist/esm/resources/Catalogs/ProductListing.js.map +1 -1
- package/dist/esm/resources/Catalogs/ProductListingConfiguration.js +18 -0
- package/dist/esm/resources/Catalogs/ProductListingConfiguration.js.map +1 -1
- package/dist/esm/resources/Catalogs/ProductListingConfigurationInterfaces.js +3 -0
- package/dist/esm/resources/Catalogs/ProductListingConfigurationInterfaces.js.map +1 -1
- package/dist/esm/resources/Products/Product.js +3 -0
- package/dist/esm/resources/Products/Product.js.map +1 -1
- package/dist/types/resources/Catalogs/ProductListing.d.ts +24 -0
- package/dist/types/resources/Catalogs/ProductListingConfiguration.d.ts +18 -0
- package/dist/types/resources/Catalogs/ProductListingConfigurationInterfaces.d.ts +12 -0
- package/dist/types/resources/Catalogs/ProductListingInterfaces.d.ts +15 -0
- package/dist/types/resources/Products/Product.d.ts +3 -0
- package/dist/types/resources/Products/ProductInterfaces.d.ts +45 -0
- package/package.json +1 -1
|
@@ -4,28 +4,52 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const APICore_js_1 = tslib_1.__importDefault(require("../../APICore.js"));
|
|
5
5
|
const normalizePaginatedOptions_js_1 = require("../../utils/normalizePaginatedOptions.js");
|
|
6
6
|
const Resource_js_1 = tslib_1.__importDefault(require("../Resource.js"));
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated
|
|
9
|
+
*/
|
|
7
10
|
class ProductListing extends Resource_js_1.default {
|
|
8
11
|
static baseCatalogsUrl = `/rest/organizations/${APICore_js_1.default.orgPlaceholder}/catalogs`;
|
|
9
12
|
static baseProductListingsUrl = `/rest/organizations/${APICore_js_1.default.orgPlaceholder}/productlistings`;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated
|
|
15
|
+
*/
|
|
10
16
|
list(catalogId, options) {
|
|
11
17
|
const normalizedOptions = (0, normalizePaginatedOptions_js_1.normalizePaginatedOptions)(options);
|
|
12
18
|
return this.api.get(this.buildPath(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings`, normalizedOptions));
|
|
13
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated
|
|
22
|
+
*/
|
|
14
23
|
create(catalogId, model) {
|
|
15
24
|
return this.api.post(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings`, model);
|
|
16
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated
|
|
28
|
+
*/
|
|
17
29
|
delete(catalogId, productListingId) {
|
|
18
30
|
return this.api.delete(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings/${productListingId}`);
|
|
19
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
20
35
|
get(catalogId, productListingId) {
|
|
21
36
|
return this.api.get(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings/${productListingId}`);
|
|
22
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated
|
|
40
|
+
*/
|
|
23
41
|
update(catalogId, model) {
|
|
24
42
|
return this.api.put(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings/${model.id}`, model);
|
|
25
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated
|
|
46
|
+
*/
|
|
26
47
|
getByCatalog() {
|
|
27
48
|
return this.api.get(`${ProductListing.baseProductListingsUrl}/catalogs`);
|
|
28
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated
|
|
52
|
+
*/
|
|
29
53
|
getUrls() {
|
|
30
54
|
return this.api.get(`${ProductListing.baseProductListingsUrl}/urls`);
|
|
31
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductListing.js","sourceRoot":"","sources":["../../../../src/resources/Catalogs/ProductListing.ts"],"names":[],"mappings":";;;AAAA,0EAAmC;AACnC,2FAAmF;AAEnF,yEAAsC;AAOtC,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,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,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,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,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,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,YAAY;QACR,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,cAAc,CAAC,sBAAsB,WAAW,CACtD,CAAC;IACN,CAAC;IAED,OAAO;QACH,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAW,GAAG,cAAc,CAAC,sBAAsB,OAAO,CAAC,CAAC;IACnF,CAAC;;
|
|
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;;OAEG;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;;OAEG;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;;OAEG;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;;OAEG;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;;OAEG;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;;AAhEL,iCAiEC"}
|
|
@@ -4,21 +4,39 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const APICore_js_1 = tslib_1.__importDefault(require("../../APICore.js"));
|
|
5
5
|
const normalizePaginatedOptions_js_1 = require("../../utils/normalizePaginatedOptions.js");
|
|
6
6
|
const Resource_js_1 = tslib_1.__importDefault(require("../Resource.js"));
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated
|
|
9
|
+
*/
|
|
7
10
|
class ProductListingConfiguration extends Resource_js_1.default {
|
|
8
11
|
static baseUrl = `/rest/organizations/${APICore_js_1.default.orgPlaceholder}/catalogs`;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
9
15
|
list(catalogId, productListingId, options) {
|
|
10
16
|
const normalizedOptions = (0, normalizePaginatedOptions_js_1.normalizePaginatedOptions)(options);
|
|
11
17
|
return this.api.get(this.buildPath(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations`, normalizedOptions));
|
|
12
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated
|
|
21
|
+
*/
|
|
13
22
|
create(catalogId, productListingId, rankingConfiguration) {
|
|
14
23
|
return this.api.post(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations`, rankingConfiguration);
|
|
15
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
*/
|
|
16
28
|
delete(catalogId, productListingId, productListingConfigurationId) {
|
|
17
29
|
return this.api.delete(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations/${productListingConfigurationId}`);
|
|
18
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated
|
|
33
|
+
*/
|
|
19
34
|
get(catalogId, productListingId, productListingConfigurationId) {
|
|
20
35
|
return this.api.get(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations/${productListingConfigurationId}`);
|
|
21
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated
|
|
39
|
+
*/
|
|
22
40
|
update(catalogId, productListingId, productListingConfigurationId, rankingConfiguration) {
|
|
23
41
|
return this.api.put(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations/${productListingConfigurationId}`, rankingConfiguration);
|
|
24
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductListingConfiguration.js","sourceRoot":"","sources":["../../../../src/resources/Catalogs/ProductListingConfiguration.ts"],"names":[],"mappings":";;;AAAA,0EAAmC;AACnC,2FAAmF;AAEnF,yEAAsC;AAMtC,MAAqB,2BAA4B,SAAQ,qBAAQ;IAC7D,MAAM,CAAC,OAAO,GAAG,uBAAuB,oBAAG,CAAC,cAAc,WAAW,CAAC;IAEtE,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;
|
|
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;;OAEG;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;;OAEG;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;;OAEG;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;;OAEG;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;;OAEG;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;;AAzDL,8CA0DC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductListingConfigurationInterfaces.js","sourceRoot":"","sources":["../../../../src/resources/Catalogs/ProductListingConfigurationInterfaces.ts"],"names":[],"mappings":";;;
|
|
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"}
|
|
@@ -5,6 +5,9 @@ const APICore_js_1 = tslib_1.__importDefault(require("../../APICore.js"));
|
|
|
5
5
|
const Resource_js_1 = tslib_1.__importDefault(require("../Resource.js"));
|
|
6
6
|
class Products extends Resource_js_1.default {
|
|
7
7
|
static baseUrl = `/rest/organizations/${APICore_js_1.default.orgPlaceholder}/commerce/v1/products`;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated
|
|
10
|
+
*/
|
|
8
11
|
get(productsRequest, refreshCache = false) {
|
|
9
12
|
return this.api.post(this.buildPath(`${Products.baseUrl}/listing`, { refreshCache: refreshCache }), productsRequest);
|
|
10
13
|
}
|
|
@@ -1 +1 @@
|
|
|
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,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
|
+
{"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;;OAEG;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;;AAXL,2BAYC"}
|
|
@@ -1,28 +1,52 @@
|
|
|
1
1
|
import API from '../../APICore.js';
|
|
2
2
|
import { normalizePaginatedOptions } from '../../utils/normalizePaginatedOptions.js';
|
|
3
3
|
import Resource from '../Resource.js';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
*/
|
|
4
7
|
export default class ProductListing extends Resource {
|
|
5
8
|
static baseCatalogsUrl = `/rest/organizations/${API.orgPlaceholder}/catalogs`;
|
|
6
9
|
static baseProductListingsUrl = `/rest/organizations/${API.orgPlaceholder}/productlistings`;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
7
13
|
list(catalogId, options) {
|
|
8
14
|
const normalizedOptions = normalizePaginatedOptions(options);
|
|
9
15
|
return this.api.get(this.buildPath(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings`, normalizedOptions));
|
|
10
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated
|
|
19
|
+
*/
|
|
11
20
|
create(catalogId, model) {
|
|
12
21
|
return this.api.post(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings`, model);
|
|
13
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated
|
|
25
|
+
*/
|
|
14
26
|
delete(catalogId, productListingId) {
|
|
15
27
|
return this.api.delete(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings/${productListingId}`);
|
|
16
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated
|
|
31
|
+
*/
|
|
17
32
|
get(catalogId, productListingId) {
|
|
18
33
|
return this.api.get(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings/${productListingId}`);
|
|
19
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated
|
|
37
|
+
*/
|
|
20
38
|
update(catalogId, model) {
|
|
21
39
|
return this.api.put(`${ProductListing.baseCatalogsUrl}/${catalogId}/productlistings/${model.id}`, model);
|
|
22
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated
|
|
43
|
+
*/
|
|
23
44
|
getByCatalog() {
|
|
24
45
|
return this.api.get(`${ProductListing.baseProductListingsUrl}/catalogs`);
|
|
25
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated
|
|
49
|
+
*/
|
|
26
50
|
getUrls() {
|
|
27
51
|
return this.api.get(`${ProductListing.baseProductListingsUrl}/urls`);
|
|
28
52
|
}
|
|
@@ -1 +1 @@
|
|
|
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,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,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,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,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,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,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,YAAY;QACR,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,cAAc,CAAC,sBAAsB,WAAW,CACtD,CAAC;IACN,CAAC;IAED,OAAO;QACH,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAW,GAAG,cAAc,CAAC,sBAAsB,OAAO,CAAC,CAAC;IACnF,CAAC"}
|
|
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;;OAEG;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;;OAEG;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;;OAEG;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;;OAEG;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;;OAEG;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,21 +1,39 @@
|
|
|
1
1
|
import API from '../../APICore.js';
|
|
2
2
|
import { normalizePaginatedOptions } from '../../utils/normalizePaginatedOptions.js';
|
|
3
3
|
import Resource from '../Resource.js';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
*/
|
|
4
7
|
export default class ProductListingConfiguration extends Resource {
|
|
5
8
|
static baseUrl = `/rest/organizations/${API.orgPlaceholder}/catalogs`;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated
|
|
11
|
+
*/
|
|
6
12
|
list(catalogId, productListingId, options) {
|
|
7
13
|
const normalizedOptions = normalizePaginatedOptions(options);
|
|
8
14
|
return this.api.get(this.buildPath(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations`, normalizedOptions));
|
|
9
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated
|
|
18
|
+
*/
|
|
10
19
|
create(catalogId, productListingId, rankingConfiguration) {
|
|
11
20
|
return this.api.post(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations`, rankingConfiguration);
|
|
12
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated
|
|
24
|
+
*/
|
|
13
25
|
delete(catalogId, productListingId, productListingConfigurationId) {
|
|
14
26
|
return this.api.delete(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations/${productListingConfigurationId}`);
|
|
15
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated
|
|
30
|
+
*/
|
|
16
31
|
get(catalogId, productListingId, productListingConfigurationId) {
|
|
17
32
|
return this.api.get(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations/${productListingConfigurationId}`);
|
|
18
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated
|
|
36
|
+
*/
|
|
19
37
|
update(catalogId, productListingId, productListingConfigurationId, rankingConfiguration) {
|
|
20
38
|
return this.api.put(`${ProductListingConfiguration.baseUrl}/${catalogId}/productlistings/${productListingId}/configurations/${productListingConfigurationId}`, rankingConfiguration);
|
|
21
39
|
}
|
|
@@ -1 +1 @@
|
|
|
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,MAAM,CAAC,OAAO,OAAO,2BAA4B,SAAQ,QAAQ;IAC7D,MAAM,CAAC,OAAO,GAAG,uBAAuB,GAAG,CAAC,cAAc,WAAW,CAAC;IAEtE,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;
|
|
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;;OAEG;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;;OAEG;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;;OAEG;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;;OAEG;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;;OAEG;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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductListingConfigurationInterfaces.js","sourceRoot":"","sources":["../../../../src/resources/Catalogs/ProductListingConfigurationInterfaces.ts"],"names":[],"mappings":"
|
|
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"}
|
|
@@ -2,6 +2,9 @@ import API from '../../APICore.js';
|
|
|
2
2
|
import Resource from '../Resource.js';
|
|
3
3
|
export default class Products extends Resource {
|
|
4
4
|
static baseUrl = `/rest/organizations/${API.orgPlaceholder}/commerce/v1/products`;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
*/
|
|
5
8
|
get(productsRequest, refreshCache = false) {
|
|
6
9
|
return this.api.post(this.buildPath(`${Products.baseUrl}/listing`, { refreshCache: refreshCache }), productsRequest);
|
|
7
10
|
}
|
|
@@ -1 +1 @@
|
|
|
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,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
|
+
{"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;;OAEG;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,14 +1,38 @@
|
|
|
1
1
|
import { New, PageModel } from '../BaseInterfaces.js';
|
|
2
2
|
import Resource from '../Resource.js';
|
|
3
3
|
import { ProductListingsListOptions, ProductListingModel, CatalogProductListingsGroupModel } from './ProductListingInterfaces.js';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
*/
|
|
4
7
|
export default class ProductListing extends Resource {
|
|
5
8
|
static baseCatalogsUrl: string;
|
|
6
9
|
static baseProductListingsUrl: string;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
7
13
|
list(catalogId: string, options?: ProductListingsListOptions): Promise<PageModel<ProductListingModel>>;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
8
17
|
create(catalogId: string, model: New<ProductListingModel>): Promise<ProductListingModel>;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated
|
|
20
|
+
*/
|
|
9
21
|
delete(catalogId: string, productListingId: string): Promise<Record<string, unknown>>;
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated
|
|
24
|
+
*/
|
|
10
25
|
get(catalogId: string, productListingId: string): Promise<ProductListingModel>;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated
|
|
28
|
+
*/
|
|
11
29
|
update(catalogId: string, model: ProductListingModel): Promise<ProductListingModel>;
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated
|
|
32
|
+
*/
|
|
12
33
|
getByCatalog(): Promise<PageModel<CatalogProductListingsGroupModel>>;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated
|
|
36
|
+
*/
|
|
13
37
|
getUrls(): Promise<string[]>;
|
|
14
38
|
}
|
|
@@ -1,11 +1,29 @@
|
|
|
1
1
|
import { New, PageModel } from '../BaseInterfaces.js';
|
|
2
2
|
import Resource from '../Resource.js';
|
|
3
3
|
import { ProductListingConfigurationModel, ProductListingConfigurationOptions } from './ProductListingConfigurationInterfaces.js';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
*/
|
|
4
7
|
export default class ProductListingConfiguration extends Resource {
|
|
5
8
|
static baseUrl: string;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated
|
|
11
|
+
*/
|
|
6
12
|
list(catalogId: string, productListingId: string, options?: ProductListingConfigurationOptions): Promise<PageModel<ProductListingConfigurationModel>>;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated
|
|
15
|
+
*/
|
|
7
16
|
create(catalogId: string, productListingId: string, rankingConfiguration: New<ProductListingConfigurationModel>): Promise<Record<string, unknown>>;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated
|
|
19
|
+
*/
|
|
8
20
|
delete(catalogId: string, productListingId: string, productListingConfigurationId: string): Promise<Record<string, unknown>>;
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated
|
|
23
|
+
*/
|
|
9
24
|
get(catalogId: string, productListingId: string, productListingConfigurationId: string): Promise<ProductListingConfigurationModel>;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
*/
|
|
10
28
|
update(catalogId: string, productListingId: string, productListingConfigurationId: string, rankingConfiguration: New<ProductListingConfigurationModel>): Promise<Record<string, unknown>>;
|
|
11
29
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { Paginated } from '../BaseInterfaces.js';
|
|
2
2
|
import { DeprecatedPaginated } from '../InternalBaseInterface.js';
|
|
3
3
|
import { QueryFilterModel } from './ProductListingInterfaces.js';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
*/
|
|
4
7
|
export type ProductListingConfigurationOptions = Paginated | DeprecatedPaginated;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated
|
|
10
|
+
*/
|
|
5
11
|
export interface ProductListingConfigurationModel {
|
|
6
12
|
/**
|
|
7
13
|
* The id of the ProductListingConfiguration.
|
|
@@ -12,6 +18,9 @@ export interface ProductListingConfigurationModel {
|
|
|
12
18
|
*/
|
|
13
19
|
rankingConfigurations: RankingConfiguration[];
|
|
14
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated
|
|
23
|
+
*/
|
|
15
24
|
export interface RankingConfiguration {
|
|
16
25
|
/**
|
|
17
26
|
* The name of the RankingConfiguration.
|
|
@@ -34,6 +43,9 @@ export interface RankingConfiguration {
|
|
|
34
43
|
*/
|
|
35
44
|
value: number;
|
|
36
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated
|
|
48
|
+
*/
|
|
37
49
|
export declare enum RankingTypeEnum {
|
|
38
50
|
BOOST = "BOOST",
|
|
39
51
|
BURY = "BURY",
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Paginated } from '../BaseInterfaces.js';
|
|
2
2
|
import { FieldOperatorType, FieldValueType } from '../Enums.js';
|
|
3
3
|
import { DeprecatedPaginated } from '../InternalBaseInterface.js';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
*/
|
|
4
7
|
export type ProductListingsListOptions = Paginated | DeprecatedPaginated;
|
|
5
8
|
interface FieldValueModelGeneric<T extends FieldValueType> {
|
|
6
9
|
/**
|
|
@@ -20,6 +23,9 @@ interface ValueTypeForFieldValueType {
|
|
|
20
23
|
[FieldValueType.HIERARCHIC_MULTI_VALUE]: string[];
|
|
21
24
|
}
|
|
22
25
|
type FieldValueModel = FieldValueModelGeneric<FieldValueType.RANGE> | FieldValueModelGeneric<FieldValueType.STRING> | FieldValueModelGeneric<FieldValueType.DECIMAL> | FieldValueModelGeneric<FieldValueType.ARRAY> | FieldValueModelGeneric<FieldValueType.HIERARCHIC_MULTI_VALUE>;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated
|
|
28
|
+
*/
|
|
23
29
|
export interface QueryFilterModel {
|
|
24
30
|
/**
|
|
25
31
|
* The field name.
|
|
@@ -34,10 +40,16 @@ export interface QueryFilterModel {
|
|
|
34
40
|
*/
|
|
35
41
|
value: FieldValueModel;
|
|
36
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated
|
|
45
|
+
*/
|
|
37
46
|
export interface ProductListingMetricsModel {
|
|
38
47
|
lastNumberOfProducts?: number;
|
|
39
48
|
lastQueried: string;
|
|
40
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated
|
|
52
|
+
*/
|
|
41
53
|
export interface ProductListingModel {
|
|
42
54
|
/**
|
|
43
55
|
* The list of exclusion filters.
|
|
@@ -64,6 +76,9 @@ export interface ProductListingModel {
|
|
|
64
76
|
*/
|
|
65
77
|
metrics?: ProductListingMetricsModel;
|
|
66
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* @deprecated
|
|
81
|
+
*/
|
|
67
82
|
export interface CatalogProductListingsGroupModel {
|
|
68
83
|
/**
|
|
69
84
|
* The unique identifier of the catalog.
|
|
@@ -3,5 +3,8 @@ import Resource from '../Resource.js';
|
|
|
3
3
|
import { ProductsRequestModel, ProductsResultModel } from './ProductInterfaces.js';
|
|
4
4
|
export default class Products extends Resource {
|
|
5
5
|
static baseUrl: string;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated
|
|
8
|
+
*/
|
|
6
9
|
get(productsRequest: New<ProductsRequestModel>, refreshCache?: boolean): Promise<ProductsResultModel>;
|
|
7
10
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { ProductsFacetRequestSortType, ProductsSortByType, SortingOrder } from '../Enums.js';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated
|
|
4
|
+
*/
|
|
2
5
|
export interface AdvancedFiltersModel {
|
|
3
6
|
queryFilter: string;
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated
|
|
10
|
+
*/
|
|
5
11
|
export interface AdvancedParametersModel {
|
|
6
12
|
/**
|
|
7
13
|
* Used to retrieve debug information. Will have an impact on query performance.
|
|
@@ -12,6 +18,9 @@ export interface AdvancedParametersModel {
|
|
|
12
18
|
*/
|
|
13
19
|
viewAllContent?: boolean;
|
|
14
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated
|
|
23
|
+
*/
|
|
15
24
|
export interface FacetRequestOptions {
|
|
16
25
|
/**
|
|
17
26
|
* Whether to take into account the scores generated by the index when reordering facets.
|
|
@@ -22,6 +31,9 @@ export interface FacetRequestOptions {
|
|
|
22
31
|
*/
|
|
23
32
|
freezeFacetOrder?: boolean;
|
|
24
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated
|
|
36
|
+
*/
|
|
25
37
|
export interface FacetRequestItem {
|
|
26
38
|
/**
|
|
27
39
|
* The values displayed by the facet in the search interface at the moment of the request.
|
|
@@ -56,6 +68,9 @@ export interface FacetRequestItem {
|
|
|
56
68
|
*/
|
|
57
69
|
sortCriteria?: ProductsFacetRequestSortType;
|
|
58
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated
|
|
73
|
+
*/
|
|
59
74
|
export interface FacetsRequestModel {
|
|
60
75
|
/**
|
|
61
76
|
* The facet options to add to the request.
|
|
@@ -66,6 +81,9 @@ export interface FacetsRequestModel {
|
|
|
66
81
|
*/
|
|
67
82
|
requests: FacetRequestItem[];
|
|
68
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* @deprecated
|
|
86
|
+
*/
|
|
69
87
|
export interface PaginatedModel {
|
|
70
88
|
/**
|
|
71
89
|
* The number of elements to list per page.
|
|
@@ -76,6 +94,9 @@ export interface PaginatedModel {
|
|
|
76
94
|
*/
|
|
77
95
|
page?: number;
|
|
78
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated
|
|
99
|
+
*/
|
|
79
100
|
export interface SortByFields {
|
|
80
101
|
/**
|
|
81
102
|
* The name of the field.
|
|
@@ -86,6 +107,9 @@ export interface SortByFields {
|
|
|
86
107
|
*/
|
|
87
108
|
direction: SortingOrder;
|
|
88
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* @deprecated
|
|
112
|
+
*/
|
|
89
113
|
export interface SortModel {
|
|
90
114
|
/**
|
|
91
115
|
* The name of the field to sort by.
|
|
@@ -96,6 +120,9 @@ export interface SortModel {
|
|
|
96
120
|
*/
|
|
97
121
|
fields?: SortByFields[];
|
|
98
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated
|
|
125
|
+
*/
|
|
99
126
|
export interface ProductsRequestModel {
|
|
100
127
|
/**
|
|
101
128
|
* Additional fields allow you to collect additional information, besides the standard data.
|
|
@@ -130,6 +157,9 @@ export interface ProductsRequestModel {
|
|
|
130
157
|
*/
|
|
131
158
|
url: string;
|
|
132
159
|
}
|
|
160
|
+
/**
|
|
161
|
+
* @deprecated
|
|
162
|
+
*/
|
|
133
163
|
export interface FacetResultModel {
|
|
134
164
|
facetId: string;
|
|
135
165
|
field: string;
|
|
@@ -139,18 +169,27 @@ export interface FacetResultModel {
|
|
|
139
169
|
moreValuesAvailable: boolean;
|
|
140
170
|
values: any[];
|
|
141
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* @deprecated
|
|
174
|
+
*/
|
|
142
175
|
export interface FacetResponseModel {
|
|
143
176
|
/**
|
|
144
177
|
* A list of facet results.
|
|
145
178
|
*/
|
|
146
179
|
results: FacetResultModel[];
|
|
147
180
|
}
|
|
181
|
+
/**
|
|
182
|
+
* @deprecated
|
|
183
|
+
*/
|
|
148
184
|
export interface PaginationResultModel {
|
|
149
185
|
/**
|
|
150
186
|
* The number of elements.
|
|
151
187
|
*/
|
|
152
188
|
totalCount: number;
|
|
153
189
|
}
|
|
190
|
+
/**
|
|
191
|
+
* @deprecated
|
|
192
|
+
*/
|
|
154
193
|
export interface ProductListingIdentityModel {
|
|
155
194
|
/**
|
|
156
195
|
* Associated catalog id.
|
|
@@ -161,6 +200,9 @@ export interface ProductListingIdentityModel {
|
|
|
161
200
|
*/
|
|
162
201
|
id: string;
|
|
163
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
* @deprecated
|
|
205
|
+
*/
|
|
164
206
|
export interface ProductModel {
|
|
165
207
|
additionalFields: Map<string, any>;
|
|
166
208
|
childResults: ProductModel[];
|
|
@@ -181,6 +223,9 @@ export interface ProductModel {
|
|
|
181
223
|
permanentid: string;
|
|
182
224
|
totalNumberOfChildResults: number;
|
|
183
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* @deprecated
|
|
228
|
+
*/
|
|
184
229
|
export interface ProductsResultModel {
|
|
185
230
|
/**
|
|
186
231
|
* The execution report.
|