@revenexx/sdk 0.0.9 → 0.0.11
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/sdk.js +1051 -49
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +1050 -50
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +1051 -49
- package/package.json +1 -1
- package/src/client.ts +30 -1
- package/src/enums/order-fulfillment-status.ts +5 -0
- package/src/enums/order-status.ts +7 -0
- package/src/index.ts +3 -1
- package/src/services/carts.ts +65 -2
- package/src/services/customers.ts +57 -1
- package/src/services/inventories.ts +5 -5
- package/src/services/orderlists.ts +66 -3
- package/src/services/orders.ts +23 -21
- package/src/services/prices.ts +3 -3
- package/src/services/products.ts +688 -16
- package/src/services/search.ts +1 -1
- package/src/services/shipping.ts +1 -1
- package/types/client.d.ts +11 -0
- package/types/enums/order-fulfillment-status.d.ts +5 -0
- package/types/enums/order-status.d.ts +7 -0
- package/types/index.d.ts +3 -1
- package/types/services/carts.d.ts +27 -1
- package/types/services/customers.d.ts +24 -1
- package/types/services/orderlists.d.ts +27 -1
- package/types/services/orders.d.ts +13 -11
- package/types/services/products.d.ts +288 -16
package/dist/iife/sdk.js
CHANGED
|
@@ -4415,7 +4415,7 @@
|
|
|
4415
4415
|
'x-sdk-name': 'Revenexx Web',
|
|
4416
4416
|
'x-sdk-platform': '',
|
|
4417
4417
|
'x-sdk-language': 'web',
|
|
4418
|
-
'x-sdk-version': '0.0.
|
|
4418
|
+
'x-sdk-version': '0.0.11'
|
|
4419
4419
|
};
|
|
4420
4420
|
|
|
4421
4421
|
/**
|
|
@@ -4895,6 +4895,29 @@
|
|
|
4895
4895
|
}
|
|
4896
4896
|
return data;
|
|
4897
4897
|
}
|
|
4898
|
+
|
|
4899
|
+
/**
|
|
4900
|
+
* Recursively renames an argument's DECLARED keys to their snake_case wire
|
|
4901
|
+
* names, using a map generated from the API contract. Free-form subtrees
|
|
4902
|
+
* (metadata / user_data — keys absent from the map, with no `children`) are
|
|
4903
|
+
* passed through untouched, so user data is never mangled. For arrays the
|
|
4904
|
+
* same element map is applied to every item.
|
|
4905
|
+
*/
|
|
4906
|
+
static toWireKeys(value, map) {
|
|
4907
|
+
if (Array.isArray(value)) {
|
|
4908
|
+
return value.map(item => Client.toWireKeys(item, map));
|
|
4909
|
+
}
|
|
4910
|
+
if (value === null || typeof value !== 'object' || value instanceof File || value instanceof Blob || value instanceof Date) {
|
|
4911
|
+
return value;
|
|
4912
|
+
}
|
|
4913
|
+
const output = {};
|
|
4914
|
+
for (const [key, item] of Object.entries(value)) {
|
|
4915
|
+
const entry = map[key];
|
|
4916
|
+
const wireKey = entry ? entry.wire : key;
|
|
4917
|
+
output[wireKey] = entry && entry.children ? Client.toWireKeys(item, entry.children) : item;
|
|
4918
|
+
}
|
|
4919
|
+
return output;
|
|
4920
|
+
}
|
|
4898
4921
|
static flatten(data, prefix = '') {
|
|
4899
4922
|
let output = {};
|
|
4900
4923
|
for (const [key, value] of Object.entries(data)) {
|
|
@@ -7501,12 +7524,69 @@
|
|
|
7501
7524
|
|
|
7502
7525
|
/**
|
|
7503
7526
|
*
|
|
7527
|
+
* @param {string} params.contactId - Filter to one owning contact.
|
|
7528
|
+
* @param {string} params.sessionKey - Filter to one guest session.
|
|
7529
|
+
* @param {string} params.status - Filter by cart status (e.g. active).
|
|
7530
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
7531
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
7532
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
7533
|
+
* @throws {RevenexxException}
|
|
7534
|
+
* @returns {Promise<{}>}
|
|
7535
|
+
*/
|
|
7536
|
+
|
|
7537
|
+
/**
|
|
7538
|
+
*
|
|
7539
|
+
* @param {string} contactId - Filter to one owning contact.
|
|
7540
|
+
* @param {string} sessionKey - Filter to one guest session.
|
|
7541
|
+
* @param {string} status - Filter by cart status (e.g. active).
|
|
7542
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
7543
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
7544
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
7504
7545
|
* @throws {RevenexxException}
|
|
7505
7546
|
* @returns {Promise<{}>}
|
|
7547
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
7506
7548
|
*/
|
|
7507
|
-
|
|
7549
|
+
|
|
7550
|
+
cartsList(paramsOrFirst, ...rest) {
|
|
7551
|
+
let params;
|
|
7552
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
7553
|
+
params = paramsOrFirst || {};
|
|
7554
|
+
} else {
|
|
7555
|
+
params = {
|
|
7556
|
+
contactId: paramsOrFirst,
|
|
7557
|
+
sessionKey: rest[0],
|
|
7558
|
+
status: rest[1],
|
|
7559
|
+
limit: rest[2],
|
|
7560
|
+
offset: rest[3],
|
|
7561
|
+
order: rest[4]
|
|
7562
|
+
};
|
|
7563
|
+
}
|
|
7564
|
+
const contactId = params.contactId;
|
|
7565
|
+
const sessionKey = params.sessionKey;
|
|
7566
|
+
const status = params.status;
|
|
7567
|
+
const limit = params.limit;
|
|
7568
|
+
const offset = params.offset;
|
|
7569
|
+
const order = params.order;
|
|
7508
7570
|
const apiPath = '/v1/carts';
|
|
7509
7571
|
const apiPayload = {};
|
|
7572
|
+
if (typeof contactId !== 'undefined') {
|
|
7573
|
+
apiPayload['contact_id'] = contactId;
|
|
7574
|
+
}
|
|
7575
|
+
if (typeof sessionKey !== 'undefined') {
|
|
7576
|
+
apiPayload['session_key'] = sessionKey;
|
|
7577
|
+
}
|
|
7578
|
+
if (typeof status !== 'undefined') {
|
|
7579
|
+
apiPayload['status'] = status;
|
|
7580
|
+
}
|
|
7581
|
+
if (typeof limit !== 'undefined') {
|
|
7582
|
+
apiPayload['limit'] = limit;
|
|
7583
|
+
}
|
|
7584
|
+
if (typeof offset !== 'undefined') {
|
|
7585
|
+
apiPayload['offset'] = offset;
|
|
7586
|
+
}
|
|
7587
|
+
if (typeof order !== 'undefined') {
|
|
7588
|
+
apiPayload['order'] = order;
|
|
7589
|
+
}
|
|
7510
7590
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7511
7591
|
const apiHeaders = {};
|
|
7512
7592
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -8266,7 +8346,20 @@
|
|
|
8266
8346
|
const apiPath = '/v1/carts/{cart_id}/items'.replace('{cart_id}', cartId);
|
|
8267
8347
|
const apiPayload = {};
|
|
8268
8348
|
if (typeof items !== 'undefined') {
|
|
8269
|
-
apiPayload['items'] = items
|
|
8349
|
+
apiPayload['items'] = Client.toWireKeys(items, {
|
|
8350
|
+
"productId": {
|
|
8351
|
+
"wire": "product_id",
|
|
8352
|
+
"children": null
|
|
8353
|
+
},
|
|
8354
|
+
"taxRate": {
|
|
8355
|
+
"wire": "tax_rate",
|
|
8356
|
+
"children": null
|
|
8357
|
+
},
|
|
8358
|
+
"unitPrice": {
|
|
8359
|
+
"wire": "unit_price",
|
|
8360
|
+
"children": null
|
|
8361
|
+
}
|
|
8362
|
+
});
|
|
8270
8363
|
}
|
|
8271
8364
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
8272
8365
|
const apiHeaders = {
|
|
@@ -9119,12 +9212,62 @@
|
|
|
9119
9212
|
|
|
9120
9213
|
/**
|
|
9121
9214
|
*
|
|
9215
|
+
* @param {string} params.contactId - Filter to one owning contact.
|
|
9216
|
+
* @param {string} params.organizationId - Filter to one organization.
|
|
9217
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
9218
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
9219
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
9220
|
+
* @throws {RevenexxException}
|
|
9221
|
+
* @returns {Promise<{}>}
|
|
9222
|
+
*/
|
|
9223
|
+
|
|
9224
|
+
/**
|
|
9225
|
+
*
|
|
9226
|
+
* @param {string} contactId - Filter to one owning contact.
|
|
9227
|
+
* @param {string} organizationId - Filter to one organization.
|
|
9228
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
9229
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
9230
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
9122
9231
|
* @throws {RevenexxException}
|
|
9123
9232
|
* @returns {Promise<{}>}
|
|
9233
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
9124
9234
|
*/
|
|
9125
|
-
|
|
9235
|
+
|
|
9236
|
+
customersAddressesList(paramsOrFirst, ...rest) {
|
|
9237
|
+
let params;
|
|
9238
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
9239
|
+
params = paramsOrFirst || {};
|
|
9240
|
+
} else {
|
|
9241
|
+
params = {
|
|
9242
|
+
contactId: paramsOrFirst,
|
|
9243
|
+
organizationId: rest[0],
|
|
9244
|
+
limit: rest[1],
|
|
9245
|
+
offset: rest[2],
|
|
9246
|
+
order: rest[3]
|
|
9247
|
+
};
|
|
9248
|
+
}
|
|
9249
|
+
const contactId = params.contactId;
|
|
9250
|
+
const organizationId = params.organizationId;
|
|
9251
|
+
const limit = params.limit;
|
|
9252
|
+
const offset = params.offset;
|
|
9253
|
+
const order = params.order;
|
|
9126
9254
|
const apiPath = '/v1/customers/addresses';
|
|
9127
9255
|
const apiPayload = {};
|
|
9256
|
+
if (typeof contactId !== 'undefined') {
|
|
9257
|
+
apiPayload['contact_id'] = contactId;
|
|
9258
|
+
}
|
|
9259
|
+
if (typeof organizationId !== 'undefined') {
|
|
9260
|
+
apiPayload['organization_id'] = organizationId;
|
|
9261
|
+
}
|
|
9262
|
+
if (typeof limit !== 'undefined') {
|
|
9263
|
+
apiPayload['limit'] = limit;
|
|
9264
|
+
}
|
|
9265
|
+
if (typeof offset !== 'undefined') {
|
|
9266
|
+
apiPayload['offset'] = offset;
|
|
9267
|
+
}
|
|
9268
|
+
if (typeof order !== 'undefined') {
|
|
9269
|
+
apiPayload['order'] = order;
|
|
9270
|
+
}
|
|
9128
9271
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9129
9272
|
const apiHeaders = {};
|
|
9130
9273
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -10555,7 +10698,12 @@
|
|
|
10555
10698
|
const apiPath = '/v1/inventories/adjust';
|
|
10556
10699
|
const apiPayload = {};
|
|
10557
10700
|
if (typeof items !== 'undefined') {
|
|
10558
|
-
apiPayload['items'] = items
|
|
10701
|
+
apiPayload['items'] = Client.toWireKeys(items, {
|
|
10702
|
+
"productId": {
|
|
10703
|
+
"wire": "product_id",
|
|
10704
|
+
"children": null
|
|
10705
|
+
}
|
|
10706
|
+
});
|
|
10559
10707
|
}
|
|
10560
10708
|
if (typeof locationCode !== 'undefined') {
|
|
10561
10709
|
apiPayload['location_code'] = locationCode;
|
|
@@ -10605,7 +10753,12 @@
|
|
|
10605
10753
|
const apiPath = '/v1/inventories/availability';
|
|
10606
10754
|
const apiPayload = {};
|
|
10607
10755
|
if (typeof items !== 'undefined') {
|
|
10608
|
-
apiPayload['items'] = items
|
|
10756
|
+
apiPayload['items'] = Client.toWireKeys(items, {
|
|
10757
|
+
"productId": {
|
|
10758
|
+
"wire": "product_id",
|
|
10759
|
+
"children": null
|
|
10760
|
+
}
|
|
10761
|
+
});
|
|
10609
10762
|
}
|
|
10610
10763
|
if (typeof locationCode !== 'undefined') {
|
|
10611
10764
|
apiPayload['location_code'] = locationCode;
|
|
@@ -11025,7 +11178,12 @@
|
|
|
11025
11178
|
const apiPath = '/v1/inventories/receive';
|
|
11026
11179
|
const apiPayload = {};
|
|
11027
11180
|
if (typeof items !== 'undefined') {
|
|
11028
|
-
apiPayload['items'] = items
|
|
11181
|
+
apiPayload['items'] = Client.toWireKeys(items, {
|
|
11182
|
+
"productId": {
|
|
11183
|
+
"wire": "product_id",
|
|
11184
|
+
"children": null
|
|
11185
|
+
}
|
|
11186
|
+
});
|
|
11029
11187
|
}
|
|
11030
11188
|
if (typeof locationCode !== 'undefined') {
|
|
11031
11189
|
apiPayload['location_code'] = locationCode;
|
|
@@ -11173,7 +11331,12 @@
|
|
|
11173
11331
|
apiPayload['expires_at'] = expiresAt;
|
|
11174
11332
|
}
|
|
11175
11333
|
if (typeof items !== 'undefined') {
|
|
11176
|
-
apiPayload['items'] = items
|
|
11334
|
+
apiPayload['items'] = Client.toWireKeys(items, {
|
|
11335
|
+
"productId": {
|
|
11336
|
+
"wire": "product_id",
|
|
11337
|
+
"children": null
|
|
11338
|
+
}
|
|
11339
|
+
});
|
|
11177
11340
|
}
|
|
11178
11341
|
if (typeof orderRef !== 'undefined') {
|
|
11179
11342
|
apiPayload['order_ref'] = orderRef;
|
|
@@ -11228,7 +11391,12 @@
|
|
|
11228
11391
|
const apiPath = '/v1/inventories/restock';
|
|
11229
11392
|
const apiPayload = {};
|
|
11230
11393
|
if (typeof items !== 'undefined') {
|
|
11231
|
-
apiPayload['items'] = items
|
|
11394
|
+
apiPayload['items'] = Client.toWireKeys(items, {
|
|
11395
|
+
"productId": {
|
|
11396
|
+
"wire": "product_id",
|
|
11397
|
+
"children": null
|
|
11398
|
+
}
|
|
11399
|
+
});
|
|
11232
11400
|
}
|
|
11233
11401
|
if (typeof locationCode !== 'undefined') {
|
|
11234
11402
|
apiPayload['location_code'] = locationCode;
|
|
@@ -15623,12 +15791,69 @@
|
|
|
15623
15791
|
|
|
15624
15792
|
/**
|
|
15625
15793
|
*
|
|
15794
|
+
* @param {string} params.ownerId - Filter to one owning contact.
|
|
15795
|
+
* @param {string} params.organizationId - Filter to one organization.
|
|
15796
|
+
* @param {string} params.kind - Filter by list kind (shopping | label).
|
|
15797
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
15798
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
15799
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
15800
|
+
* @throws {RevenexxException}
|
|
15801
|
+
* @returns {Promise<{}>}
|
|
15802
|
+
*/
|
|
15803
|
+
|
|
15804
|
+
/**
|
|
15805
|
+
*
|
|
15806
|
+
* @param {string} ownerId - Filter to one owning contact.
|
|
15807
|
+
* @param {string} organizationId - Filter to one organization.
|
|
15808
|
+
* @param {string} kind - Filter by list kind (shopping | label).
|
|
15809
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
15810
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
15811
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
15626
15812
|
* @throws {RevenexxException}
|
|
15627
15813
|
* @returns {Promise<{}>}
|
|
15814
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
15628
15815
|
*/
|
|
15629
|
-
|
|
15816
|
+
|
|
15817
|
+
orderlistsList(paramsOrFirst, ...rest) {
|
|
15818
|
+
let params;
|
|
15819
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
15820
|
+
params = paramsOrFirst || {};
|
|
15821
|
+
} else {
|
|
15822
|
+
params = {
|
|
15823
|
+
ownerId: paramsOrFirst,
|
|
15824
|
+
organizationId: rest[0],
|
|
15825
|
+
kind: rest[1],
|
|
15826
|
+
limit: rest[2],
|
|
15827
|
+
offset: rest[3],
|
|
15828
|
+
order: rest[4]
|
|
15829
|
+
};
|
|
15830
|
+
}
|
|
15831
|
+
const ownerId = params.ownerId;
|
|
15832
|
+
const organizationId = params.organizationId;
|
|
15833
|
+
const kind = params.kind;
|
|
15834
|
+
const limit = params.limit;
|
|
15835
|
+
const offset = params.offset;
|
|
15836
|
+
const order = params.order;
|
|
15630
15837
|
const apiPath = '/v1/orderlists';
|
|
15631
15838
|
const apiPayload = {};
|
|
15839
|
+
if (typeof ownerId !== 'undefined') {
|
|
15840
|
+
apiPayload['owner_id'] = ownerId;
|
|
15841
|
+
}
|
|
15842
|
+
if (typeof organizationId !== 'undefined') {
|
|
15843
|
+
apiPayload['organization_id'] = organizationId;
|
|
15844
|
+
}
|
|
15845
|
+
if (typeof kind !== 'undefined') {
|
|
15846
|
+
apiPayload['kind'] = kind;
|
|
15847
|
+
}
|
|
15848
|
+
if (typeof limit !== 'undefined') {
|
|
15849
|
+
apiPayload['limit'] = limit;
|
|
15850
|
+
}
|
|
15851
|
+
if (typeof offset !== 'undefined') {
|
|
15852
|
+
apiPayload['offset'] = offset;
|
|
15853
|
+
}
|
|
15854
|
+
if (typeof order !== 'undefined') {
|
|
15855
|
+
apiPayload['order'] = order;
|
|
15856
|
+
}
|
|
15632
15857
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
15633
15858
|
const apiHeaders = {};
|
|
15634
15859
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -15699,7 +15924,36 @@
|
|
|
15699
15924
|
const apiPath = '/v1/orderlists';
|
|
15700
15925
|
const apiPayload = {};
|
|
15701
15926
|
if (typeof items !== 'undefined') {
|
|
15702
|
-
apiPayload['items'] = items
|
|
15927
|
+
apiPayload['items'] = Client.toWireKeys(items, {
|
|
15928
|
+
"categorySlug": {
|
|
15929
|
+
"wire": "category_slug",
|
|
15930
|
+
"children": null
|
|
15931
|
+
},
|
|
15932
|
+
"costCenterId": {
|
|
15933
|
+
"wire": "cost_center_id",
|
|
15934
|
+
"children": null
|
|
15935
|
+
},
|
|
15936
|
+
"customSku": {
|
|
15937
|
+
"wire": "custom_sku",
|
|
15938
|
+
"children": null
|
|
15939
|
+
},
|
|
15940
|
+
"positionTexts": {
|
|
15941
|
+
"wire": "position_texts",
|
|
15942
|
+
"children": null
|
|
15943
|
+
},
|
|
15944
|
+
"productId": {
|
|
15945
|
+
"wire": "product_id",
|
|
15946
|
+
"children": null
|
|
15947
|
+
},
|
|
15948
|
+
"subcategorySlug": {
|
|
15949
|
+
"wire": "subcategory_slug",
|
|
15950
|
+
"children": null
|
|
15951
|
+
},
|
|
15952
|
+
"taxRate": {
|
|
15953
|
+
"wire": "tax_rate",
|
|
15954
|
+
"children": null
|
|
15955
|
+
}
|
|
15956
|
+
});
|
|
15703
15957
|
}
|
|
15704
15958
|
if (typeof kind !== 'undefined') {
|
|
15705
15959
|
apiPayload['kind'] = kind;
|
|
@@ -16095,7 +16349,36 @@
|
|
|
16095
16349
|
const apiPath = '/v1/orderlists/{list_id}/items'.replace('{list_id}', listId);
|
|
16096
16350
|
const apiPayload = {};
|
|
16097
16351
|
if (typeof items !== 'undefined') {
|
|
16098
|
-
apiPayload['items'] = items
|
|
16352
|
+
apiPayload['items'] = Client.toWireKeys(items, {
|
|
16353
|
+
"categorySlug": {
|
|
16354
|
+
"wire": "category_slug",
|
|
16355
|
+
"children": null
|
|
16356
|
+
},
|
|
16357
|
+
"costCenterId": {
|
|
16358
|
+
"wire": "cost_center_id",
|
|
16359
|
+
"children": null
|
|
16360
|
+
},
|
|
16361
|
+
"customSku": {
|
|
16362
|
+
"wire": "custom_sku",
|
|
16363
|
+
"children": null
|
|
16364
|
+
},
|
|
16365
|
+
"positionTexts": {
|
|
16366
|
+
"wire": "position_texts",
|
|
16367
|
+
"children": null
|
|
16368
|
+
},
|
|
16369
|
+
"productId": {
|
|
16370
|
+
"wire": "product_id",
|
|
16371
|
+
"children": null
|
|
16372
|
+
},
|
|
16373
|
+
"subcategorySlug": {
|
|
16374
|
+
"wire": "subcategory_slug",
|
|
16375
|
+
"children": null
|
|
16376
|
+
},
|
|
16377
|
+
"taxRate": {
|
|
16378
|
+
"wire": "tax_rate",
|
|
16379
|
+
"children": null
|
|
16380
|
+
}
|
|
16381
|
+
});
|
|
16099
16382
|
}
|
|
16100
16383
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
16101
16384
|
const apiHeaders = {
|
|
@@ -16346,9 +16629,9 @@
|
|
|
16346
16629
|
|
|
16347
16630
|
/**
|
|
16348
16631
|
*
|
|
16349
|
-
* @param {
|
|
16350
|
-
* @param {
|
|
16351
|
-
* @param {
|
|
16632
|
+
* @param {OrderStatus} params.status - Filter by order status (exact match).
|
|
16633
|
+
* @param {OrderPaymentStatus} params.paymentStatus - Filter by payment status (exact match).
|
|
16634
|
+
* @param {OrderFulfillmentStatus} params.fulfillmentStatus - Filter by fulfillment status (exact match).
|
|
16352
16635
|
* @param {string} params.contactId - Filter to one ordering contact.
|
|
16353
16636
|
* @param {string} params.organizationId - Filter to one B2B organization.
|
|
16354
16637
|
* @param {string} params.channelId - Filter to one sales channel.
|
|
@@ -16363,9 +16646,9 @@
|
|
|
16363
16646
|
|
|
16364
16647
|
/**
|
|
16365
16648
|
*
|
|
16366
|
-
* @param {
|
|
16367
|
-
* @param {
|
|
16368
|
-
* @param {
|
|
16649
|
+
* @param {OrderStatus} status - Filter by order status (exact match).
|
|
16650
|
+
* @param {OrderPaymentStatus} paymentStatus - Filter by payment status (exact match).
|
|
16651
|
+
* @param {OrderFulfillmentStatus} fulfillmentStatus - Filter by fulfillment status (exact match).
|
|
16369
16652
|
* @param {string} contactId - Filter to one ordering contact.
|
|
16370
16653
|
* @param {string} organizationId - Filter to one B2B organization.
|
|
16371
16654
|
* @param {string} channelId - Filter to one sales channel.
|
|
@@ -16381,7 +16664,7 @@
|
|
|
16381
16664
|
|
|
16382
16665
|
ordersList(paramsOrFirst, ...rest) {
|
|
16383
16666
|
let params;
|
|
16384
|
-
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
16667
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('status' in paramsOrFirst || 'paymentStatus' in paramsOrFirst || 'fulfillmentStatus' in paramsOrFirst || 'contactId' in paramsOrFirst || 'organizationId' in paramsOrFirst || 'channelId' in paramsOrFirst || 'marketId' in paramsOrFirst || 'number' in paramsOrFirst || 'limit' in paramsOrFirst || 'offset' in paramsOrFirst || 'order' in paramsOrFirst)) {
|
|
16385
16668
|
params = paramsOrFirst || {};
|
|
16386
16669
|
} else {
|
|
16387
16670
|
params = {
|
|
@@ -16860,7 +17143,36 @@
|
|
|
16860
17143
|
apiPayload['grand_total'] = grandTotal;
|
|
16861
17144
|
}
|
|
16862
17145
|
if (typeof items !== 'undefined') {
|
|
16863
|
-
apiPayload['items'] = items
|
|
17146
|
+
apiPayload['items'] = Client.toWireKeys(items, {
|
|
17147
|
+
"costCenter": {
|
|
17148
|
+
"wire": "cost_center",
|
|
17149
|
+
"children": null
|
|
17150
|
+
},
|
|
17151
|
+
"positionText": {
|
|
17152
|
+
"wire": "position_text",
|
|
17153
|
+
"children": null
|
|
17154
|
+
},
|
|
17155
|
+
"productId": {
|
|
17156
|
+
"wire": "product_id",
|
|
17157
|
+
"children": null
|
|
17158
|
+
},
|
|
17159
|
+
"taxAmount": {
|
|
17160
|
+
"wire": "tax_amount",
|
|
17161
|
+
"children": null
|
|
17162
|
+
},
|
|
17163
|
+
"taxRate": {
|
|
17164
|
+
"wire": "tax_rate",
|
|
17165
|
+
"children": null
|
|
17166
|
+
},
|
|
17167
|
+
"unitPrice": {
|
|
17168
|
+
"wire": "unit_price",
|
|
17169
|
+
"children": null
|
|
17170
|
+
},
|
|
17171
|
+
"userData": {
|
|
17172
|
+
"wire": "user_data",
|
|
17173
|
+
"children": null
|
|
17174
|
+
}
|
|
17175
|
+
});
|
|
16864
17176
|
}
|
|
16865
17177
|
if (typeof marketId !== 'undefined') {
|
|
16866
17178
|
apiPayload['market_id'] = marketId;
|
|
@@ -17326,7 +17638,12 @@
|
|
|
17326
17638
|
apiPayload['cancelled_by'] = cancelledBy;
|
|
17327
17639
|
}
|
|
17328
17640
|
if (typeof positions !== 'undefined') {
|
|
17329
|
-
apiPayload['positions'] = positions
|
|
17641
|
+
apiPayload['positions'] = Client.toWireKeys(positions, {
|
|
17642
|
+
"orderItemId": {
|
|
17643
|
+
"wire": "order_item_id",
|
|
17644
|
+
"children": null
|
|
17645
|
+
}
|
|
17646
|
+
});
|
|
17330
17647
|
}
|
|
17331
17648
|
if (typeof reason !== 'undefined') {
|
|
17332
17649
|
apiPayload['reason'] = reason;
|
|
@@ -17441,7 +17758,12 @@
|
|
|
17441
17758
|
apiPayload['metadata'] = metadata;
|
|
17442
17759
|
}
|
|
17443
17760
|
if (typeof positions !== 'undefined') {
|
|
17444
|
-
apiPayload['positions'] = positions
|
|
17761
|
+
apiPayload['positions'] = Client.toWireKeys(positions, {
|
|
17762
|
+
"orderItemId": {
|
|
17763
|
+
"wire": "order_item_id",
|
|
17764
|
+
"children": null
|
|
17765
|
+
}
|
|
17766
|
+
});
|
|
17445
17767
|
}
|
|
17446
17768
|
if (typeof reason !== 'undefined') {
|
|
17447
17769
|
apiPayload['reason'] = reason;
|
|
@@ -17684,7 +18006,12 @@
|
|
|
17684
18006
|
apiPayload['number'] = number;
|
|
17685
18007
|
}
|
|
17686
18008
|
if (typeof positions !== 'undefined') {
|
|
17687
|
-
apiPayload['positions'] = positions
|
|
18009
|
+
apiPayload['positions'] = Client.toWireKeys(positions, {
|
|
18010
|
+
"orderItemId": {
|
|
18011
|
+
"wire": "order_item_id",
|
|
18012
|
+
"children": null
|
|
18013
|
+
}
|
|
18014
|
+
});
|
|
17688
18015
|
}
|
|
17689
18016
|
if (typeof shippedAt !== 'undefined') {
|
|
17690
18017
|
apiPayload['shipped_at'] = shippedAt;
|
|
@@ -21327,7 +21654,32 @@
|
|
|
21327
21654
|
const apiPath = '/v1/prices/lists/{list_id}/entries'.replace('{list_id}', listId);
|
|
21328
21655
|
const apiPayload = {};
|
|
21329
21656
|
if (typeof entries !== 'undefined') {
|
|
21330
|
-
apiPayload['entries'] = entries
|
|
21657
|
+
apiPayload['entries'] = Client.toWireKeys(entries, {
|
|
21658
|
+
"priceType": {
|
|
21659
|
+
"wire": "price_type",
|
|
21660
|
+
"children": null
|
|
21661
|
+
},
|
|
21662
|
+
"productId": {
|
|
21663
|
+
"wire": "product_id",
|
|
21664
|
+
"children": null
|
|
21665
|
+
},
|
|
21666
|
+
"quantityMin": {
|
|
21667
|
+
"wire": "quantity_min",
|
|
21668
|
+
"children": null
|
|
21669
|
+
},
|
|
21670
|
+
"unitPrice": {
|
|
21671
|
+
"wire": "unit_price",
|
|
21672
|
+
"children": null
|
|
21673
|
+
},
|
|
21674
|
+
"validFrom": {
|
|
21675
|
+
"wire": "valid_from",
|
|
21676
|
+
"children": null
|
|
21677
|
+
},
|
|
21678
|
+
"validUntil": {
|
|
21679
|
+
"wire": "valid_until",
|
|
21680
|
+
"children": null
|
|
21681
|
+
}
|
|
21682
|
+
});
|
|
21331
21683
|
}
|
|
21332
21684
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21333
21685
|
const apiHeaders = {
|
|
@@ -21374,7 +21726,32 @@
|
|
|
21374
21726
|
const apiPath = '/v1/prices/lists/{list_id}/entries/bulk'.replace('{list_id}', listId);
|
|
21375
21727
|
const apiPayload = {};
|
|
21376
21728
|
if (typeof entries !== 'undefined') {
|
|
21377
|
-
apiPayload['entries'] = entries
|
|
21729
|
+
apiPayload['entries'] = Client.toWireKeys(entries, {
|
|
21730
|
+
"priceType": {
|
|
21731
|
+
"wire": "price_type",
|
|
21732
|
+
"children": null
|
|
21733
|
+
},
|
|
21734
|
+
"productId": {
|
|
21735
|
+
"wire": "product_id",
|
|
21736
|
+
"children": null
|
|
21737
|
+
},
|
|
21738
|
+
"quantityMin": {
|
|
21739
|
+
"wire": "quantity_min",
|
|
21740
|
+
"children": null
|
|
21741
|
+
},
|
|
21742
|
+
"unitPrice": {
|
|
21743
|
+
"wire": "unit_price",
|
|
21744
|
+
"children": null
|
|
21745
|
+
},
|
|
21746
|
+
"validFrom": {
|
|
21747
|
+
"wire": "valid_from",
|
|
21748
|
+
"children": null
|
|
21749
|
+
},
|
|
21750
|
+
"validUntil": {
|
|
21751
|
+
"wire": "valid_until",
|
|
21752
|
+
"children": null
|
|
21753
|
+
}
|
|
21754
|
+
});
|
|
21378
21755
|
}
|
|
21379
21756
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21380
21757
|
const apiHeaders = {
|
|
@@ -21641,7 +22018,12 @@
|
|
|
21641
22018
|
apiPayload['currency'] = currency;
|
|
21642
22019
|
}
|
|
21643
22020
|
if (typeof items !== 'undefined') {
|
|
21644
|
-
apiPayload['items'] = items
|
|
22021
|
+
apiPayload['items'] = Client.toWireKeys(items, {
|
|
22022
|
+
"productId": {
|
|
22023
|
+
"wire": "product_id",
|
|
22024
|
+
"children": null
|
|
22025
|
+
}
|
|
22026
|
+
});
|
|
21645
22027
|
}
|
|
21646
22028
|
if (typeof marketId !== 'undefined') {
|
|
21647
22029
|
apiPayload['market_id'] = marketId;
|
|
@@ -21665,12 +22047,48 @@
|
|
|
21665
22047
|
|
|
21666
22048
|
/**
|
|
21667
22049
|
*
|
|
22050
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
22051
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
22052
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22053
|
+
* @throws {RevenexxException}
|
|
22054
|
+
* @returns {Promise<{}>}
|
|
22055
|
+
*/
|
|
22056
|
+
|
|
22057
|
+
/**
|
|
22058
|
+
*
|
|
22059
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
22060
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
22061
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21668
22062
|
* @throws {RevenexxException}
|
|
21669
22063
|
* @returns {Promise<{}>}
|
|
22064
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
21670
22065
|
*/
|
|
21671
|
-
|
|
22066
|
+
|
|
22067
|
+
productsList(paramsOrFirst, ...rest) {
|
|
22068
|
+
let params;
|
|
22069
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
22070
|
+
params = paramsOrFirst || {};
|
|
22071
|
+
} else {
|
|
22072
|
+
params = {
|
|
22073
|
+
limit: paramsOrFirst,
|
|
22074
|
+
offset: rest[0],
|
|
22075
|
+
order: rest[1]
|
|
22076
|
+
};
|
|
22077
|
+
}
|
|
22078
|
+
const limit = params.limit;
|
|
22079
|
+
const offset = params.offset;
|
|
22080
|
+
const order = params.order;
|
|
21672
22081
|
const apiPath = '/v1/products';
|
|
21673
22082
|
const apiPayload = {};
|
|
22083
|
+
if (typeof limit !== 'undefined') {
|
|
22084
|
+
apiPayload['limit'] = limit;
|
|
22085
|
+
}
|
|
22086
|
+
if (typeof offset !== 'undefined') {
|
|
22087
|
+
apiPayload['offset'] = offset;
|
|
22088
|
+
}
|
|
22089
|
+
if (typeof order !== 'undefined') {
|
|
22090
|
+
apiPayload['order'] = order;
|
|
22091
|
+
}
|
|
21674
22092
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21675
22093
|
const apiHeaders = {};
|
|
21676
22094
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -21788,12 +22206,48 @@
|
|
|
21788
22206
|
|
|
21789
22207
|
/**
|
|
21790
22208
|
*
|
|
22209
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
22210
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
22211
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22212
|
+
* @throws {RevenexxException}
|
|
22213
|
+
* @returns {Promise<{}>}
|
|
22214
|
+
*/
|
|
22215
|
+
|
|
22216
|
+
/**
|
|
22217
|
+
*
|
|
22218
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
22219
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
22220
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21791
22221
|
* @throws {RevenexxException}
|
|
21792
22222
|
* @returns {Promise<{}>}
|
|
22223
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
21793
22224
|
*/
|
|
21794
|
-
|
|
22225
|
+
|
|
22226
|
+
productsAssetFamiliesList(paramsOrFirst, ...rest) {
|
|
22227
|
+
let params;
|
|
22228
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
22229
|
+
params = paramsOrFirst || {};
|
|
22230
|
+
} else {
|
|
22231
|
+
params = {
|
|
22232
|
+
limit: paramsOrFirst,
|
|
22233
|
+
offset: rest[0],
|
|
22234
|
+
order: rest[1]
|
|
22235
|
+
};
|
|
22236
|
+
}
|
|
22237
|
+
const limit = params.limit;
|
|
22238
|
+
const offset = params.offset;
|
|
22239
|
+
const order = params.order;
|
|
21795
22240
|
const apiPath = '/v1/products/asset_families';
|
|
21796
22241
|
const apiPayload = {};
|
|
22242
|
+
if (typeof limit !== 'undefined') {
|
|
22243
|
+
apiPayload['limit'] = limit;
|
|
22244
|
+
}
|
|
22245
|
+
if (typeof offset !== 'undefined') {
|
|
22246
|
+
apiPayload['offset'] = offset;
|
|
22247
|
+
}
|
|
22248
|
+
if (typeof order !== 'undefined') {
|
|
22249
|
+
apiPayload['order'] = order;
|
|
22250
|
+
}
|
|
21797
22251
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21798
22252
|
const apiHeaders = {};
|
|
21799
22253
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -21983,12 +22437,48 @@
|
|
|
21983
22437
|
|
|
21984
22438
|
/**
|
|
21985
22439
|
*
|
|
22440
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
22441
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
22442
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21986
22443
|
* @throws {RevenexxException}
|
|
21987
22444
|
* @returns {Promise<{}>}
|
|
21988
22445
|
*/
|
|
21989
|
-
|
|
21990
|
-
|
|
22446
|
+
|
|
22447
|
+
/**
|
|
22448
|
+
*
|
|
22449
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
22450
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
22451
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22452
|
+
* @throws {RevenexxException}
|
|
22453
|
+
* @returns {Promise<{}>}
|
|
22454
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
22455
|
+
*/
|
|
22456
|
+
|
|
22457
|
+
productsAssetsList(paramsOrFirst, ...rest) {
|
|
22458
|
+
let params;
|
|
22459
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
22460
|
+
params = paramsOrFirst || {};
|
|
22461
|
+
} else {
|
|
22462
|
+
params = {
|
|
22463
|
+
limit: paramsOrFirst,
|
|
22464
|
+
offset: rest[0],
|
|
22465
|
+
order: rest[1]
|
|
22466
|
+
};
|
|
22467
|
+
}
|
|
22468
|
+
const limit = params.limit;
|
|
22469
|
+
const offset = params.offset;
|
|
22470
|
+
const order = params.order;
|
|
22471
|
+
const apiPath = '/v1/products/assets';
|
|
21991
22472
|
const apiPayload = {};
|
|
22473
|
+
if (typeof limit !== 'undefined') {
|
|
22474
|
+
apiPayload['limit'] = limit;
|
|
22475
|
+
}
|
|
22476
|
+
if (typeof offset !== 'undefined') {
|
|
22477
|
+
apiPayload['offset'] = offset;
|
|
22478
|
+
}
|
|
22479
|
+
if (typeof order !== 'undefined') {
|
|
22480
|
+
apiPayload['order'] = order;
|
|
22481
|
+
}
|
|
21992
22482
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21993
22483
|
const apiHeaders = {};
|
|
21994
22484
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -22195,12 +22685,48 @@
|
|
|
22195
22685
|
|
|
22196
22686
|
/**
|
|
22197
22687
|
*
|
|
22688
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
22689
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
22690
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22198
22691
|
* @throws {RevenexxException}
|
|
22199
22692
|
* @returns {Promise<{}>}
|
|
22200
22693
|
*/
|
|
22201
|
-
|
|
22694
|
+
|
|
22695
|
+
/**
|
|
22696
|
+
*
|
|
22697
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
22698
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
22699
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22700
|
+
* @throws {RevenexxException}
|
|
22701
|
+
* @returns {Promise<{}>}
|
|
22702
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
22703
|
+
*/
|
|
22704
|
+
|
|
22705
|
+
productsAssociationTypesList(paramsOrFirst, ...rest) {
|
|
22706
|
+
let params;
|
|
22707
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
22708
|
+
params = paramsOrFirst || {};
|
|
22709
|
+
} else {
|
|
22710
|
+
params = {
|
|
22711
|
+
limit: paramsOrFirst,
|
|
22712
|
+
offset: rest[0],
|
|
22713
|
+
order: rest[1]
|
|
22714
|
+
};
|
|
22715
|
+
}
|
|
22716
|
+
const limit = params.limit;
|
|
22717
|
+
const offset = params.offset;
|
|
22718
|
+
const order = params.order;
|
|
22202
22719
|
const apiPath = '/v1/products/association_types';
|
|
22203
22720
|
const apiPayload = {};
|
|
22721
|
+
if (typeof limit !== 'undefined') {
|
|
22722
|
+
apiPayload['limit'] = limit;
|
|
22723
|
+
}
|
|
22724
|
+
if (typeof offset !== 'undefined') {
|
|
22725
|
+
apiPayload['offset'] = offset;
|
|
22726
|
+
}
|
|
22727
|
+
if (typeof order !== 'undefined') {
|
|
22728
|
+
apiPayload['order'] = order;
|
|
22729
|
+
}
|
|
22204
22730
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22205
22731
|
const apiHeaders = {};
|
|
22206
22732
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -22404,12 +22930,48 @@
|
|
|
22404
22930
|
|
|
22405
22931
|
/**
|
|
22406
22932
|
*
|
|
22933
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
22934
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
22935
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22936
|
+
* @throws {RevenexxException}
|
|
22937
|
+
* @returns {Promise<{}>}
|
|
22938
|
+
*/
|
|
22939
|
+
|
|
22940
|
+
/**
|
|
22941
|
+
*
|
|
22942
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
22943
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
22944
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22407
22945
|
* @throws {RevenexxException}
|
|
22408
22946
|
* @returns {Promise<{}>}
|
|
22947
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
22409
22948
|
*/
|
|
22410
|
-
|
|
22949
|
+
|
|
22950
|
+
productsAttributeGroupsList(paramsOrFirst, ...rest) {
|
|
22951
|
+
let params;
|
|
22952
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
22953
|
+
params = paramsOrFirst || {};
|
|
22954
|
+
} else {
|
|
22955
|
+
params = {
|
|
22956
|
+
limit: paramsOrFirst,
|
|
22957
|
+
offset: rest[0],
|
|
22958
|
+
order: rest[1]
|
|
22959
|
+
};
|
|
22960
|
+
}
|
|
22961
|
+
const limit = params.limit;
|
|
22962
|
+
const offset = params.offset;
|
|
22963
|
+
const order = params.order;
|
|
22411
22964
|
const apiPath = '/v1/products/attribute_groups';
|
|
22412
22965
|
const apiPayload = {};
|
|
22966
|
+
if (typeof limit !== 'undefined') {
|
|
22967
|
+
apiPayload['limit'] = limit;
|
|
22968
|
+
}
|
|
22969
|
+
if (typeof offset !== 'undefined') {
|
|
22970
|
+
apiPayload['offset'] = offset;
|
|
22971
|
+
}
|
|
22972
|
+
if (typeof order !== 'undefined') {
|
|
22973
|
+
apiPayload['order'] = order;
|
|
22974
|
+
}
|
|
22413
22975
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22414
22976
|
const apiHeaders = {};
|
|
22415
22977
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -22599,12 +23161,48 @@
|
|
|
22599
23161
|
|
|
22600
23162
|
/**
|
|
22601
23163
|
*
|
|
23164
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
23165
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
23166
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22602
23167
|
* @throws {RevenexxException}
|
|
22603
23168
|
* @returns {Promise<{}>}
|
|
22604
23169
|
*/
|
|
22605
|
-
|
|
23170
|
+
|
|
23171
|
+
/**
|
|
23172
|
+
*
|
|
23173
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
23174
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
23175
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
23176
|
+
* @throws {RevenexxException}
|
|
23177
|
+
* @returns {Promise<{}>}
|
|
23178
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
23179
|
+
*/
|
|
23180
|
+
|
|
23181
|
+
productsAttributeOptionsList(paramsOrFirst, ...rest) {
|
|
23182
|
+
let params;
|
|
23183
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
23184
|
+
params = paramsOrFirst || {};
|
|
23185
|
+
} else {
|
|
23186
|
+
params = {
|
|
23187
|
+
limit: paramsOrFirst,
|
|
23188
|
+
offset: rest[0],
|
|
23189
|
+
order: rest[1]
|
|
23190
|
+
};
|
|
23191
|
+
}
|
|
23192
|
+
const limit = params.limit;
|
|
23193
|
+
const offset = params.offset;
|
|
23194
|
+
const order = params.order;
|
|
22606
23195
|
const apiPath = '/v1/products/attribute_options';
|
|
22607
23196
|
const apiPayload = {};
|
|
23197
|
+
if (typeof limit !== 'undefined') {
|
|
23198
|
+
apiPayload['limit'] = limit;
|
|
23199
|
+
}
|
|
23200
|
+
if (typeof offset !== 'undefined') {
|
|
23201
|
+
apiPayload['offset'] = offset;
|
|
23202
|
+
}
|
|
23203
|
+
if (typeof order !== 'undefined') {
|
|
23204
|
+
apiPayload['order'] = order;
|
|
23205
|
+
}
|
|
22608
23206
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22609
23207
|
const apiHeaders = {};
|
|
22610
23208
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -22825,12 +23423,48 @@
|
|
|
22825
23423
|
|
|
22826
23424
|
/**
|
|
22827
23425
|
*
|
|
23426
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
23427
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
23428
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
23429
|
+
* @throws {RevenexxException}
|
|
23430
|
+
* @returns {Promise<{}>}
|
|
23431
|
+
*/
|
|
23432
|
+
|
|
23433
|
+
/**
|
|
23434
|
+
*
|
|
23435
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
23436
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
23437
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22828
23438
|
* @throws {RevenexxException}
|
|
22829
23439
|
* @returns {Promise<{}>}
|
|
23440
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
22830
23441
|
*/
|
|
22831
|
-
|
|
23442
|
+
|
|
23443
|
+
productsAttributesList(paramsOrFirst, ...rest) {
|
|
23444
|
+
let params;
|
|
23445
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
23446
|
+
params = paramsOrFirst || {};
|
|
23447
|
+
} else {
|
|
23448
|
+
params = {
|
|
23449
|
+
limit: paramsOrFirst,
|
|
23450
|
+
offset: rest[0],
|
|
23451
|
+
order: rest[1]
|
|
23452
|
+
};
|
|
23453
|
+
}
|
|
23454
|
+
const limit = params.limit;
|
|
23455
|
+
const offset = params.offset;
|
|
23456
|
+
const order = params.order;
|
|
22832
23457
|
const apiPath = '/v1/products/attributes';
|
|
22833
23458
|
const apiPayload = {};
|
|
23459
|
+
if (typeof limit !== 'undefined') {
|
|
23460
|
+
apiPayload['limit'] = limit;
|
|
23461
|
+
}
|
|
23462
|
+
if (typeof offset !== 'undefined') {
|
|
23463
|
+
apiPayload['offset'] = offset;
|
|
23464
|
+
}
|
|
23465
|
+
if (typeof order !== 'undefined') {
|
|
23466
|
+
apiPayload['order'] = order;
|
|
23467
|
+
}
|
|
22834
23468
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22835
23469
|
const apiHeaders = {};
|
|
22836
23470
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -23221,12 +23855,48 @@
|
|
|
23221
23855
|
|
|
23222
23856
|
/**
|
|
23223
23857
|
*
|
|
23858
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
23859
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
23860
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
23861
|
+
* @throws {RevenexxException}
|
|
23862
|
+
* @returns {Promise<{}>}
|
|
23863
|
+
*/
|
|
23864
|
+
|
|
23865
|
+
/**
|
|
23866
|
+
*
|
|
23867
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
23868
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
23869
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
23224
23870
|
* @throws {RevenexxException}
|
|
23225
23871
|
* @returns {Promise<{}>}
|
|
23872
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
23226
23873
|
*/
|
|
23227
|
-
|
|
23874
|
+
|
|
23875
|
+
productsCategoriesList(paramsOrFirst, ...rest) {
|
|
23876
|
+
let params;
|
|
23877
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
23878
|
+
params = paramsOrFirst || {};
|
|
23879
|
+
} else {
|
|
23880
|
+
params = {
|
|
23881
|
+
limit: paramsOrFirst,
|
|
23882
|
+
offset: rest[0],
|
|
23883
|
+
order: rest[1]
|
|
23884
|
+
};
|
|
23885
|
+
}
|
|
23886
|
+
const limit = params.limit;
|
|
23887
|
+
const offset = params.offset;
|
|
23888
|
+
const order = params.order;
|
|
23228
23889
|
const apiPath = '/v1/products/categories';
|
|
23229
23890
|
const apiPayload = {};
|
|
23891
|
+
if (typeof limit !== 'undefined') {
|
|
23892
|
+
apiPayload['limit'] = limit;
|
|
23893
|
+
}
|
|
23894
|
+
if (typeof offset !== 'undefined') {
|
|
23895
|
+
apiPayload['offset'] = offset;
|
|
23896
|
+
}
|
|
23897
|
+
if (typeof order !== 'undefined') {
|
|
23898
|
+
apiPayload['order'] = order;
|
|
23899
|
+
}
|
|
23230
23900
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23231
23901
|
const apiHeaders = {};
|
|
23232
23902
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -23458,12 +24128,48 @@
|
|
|
23458
24128
|
|
|
23459
24129
|
/**
|
|
23460
24130
|
*
|
|
24131
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
24132
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
24133
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
23461
24134
|
* @throws {RevenexxException}
|
|
23462
24135
|
* @returns {Promise<{}>}
|
|
23463
24136
|
*/
|
|
23464
|
-
|
|
24137
|
+
|
|
24138
|
+
/**
|
|
24139
|
+
*
|
|
24140
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
24141
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
24142
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
24143
|
+
* @throws {RevenexxException}
|
|
24144
|
+
* @returns {Promise<{}>}
|
|
24145
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
24146
|
+
*/
|
|
24147
|
+
|
|
24148
|
+
productsFamiliesList(paramsOrFirst, ...rest) {
|
|
24149
|
+
let params;
|
|
24150
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
24151
|
+
params = paramsOrFirst || {};
|
|
24152
|
+
} else {
|
|
24153
|
+
params = {
|
|
24154
|
+
limit: paramsOrFirst,
|
|
24155
|
+
offset: rest[0],
|
|
24156
|
+
order: rest[1]
|
|
24157
|
+
};
|
|
24158
|
+
}
|
|
24159
|
+
const limit = params.limit;
|
|
24160
|
+
const offset = params.offset;
|
|
24161
|
+
const order = params.order;
|
|
23465
24162
|
const apiPath = '/v1/products/families';
|
|
23466
24163
|
const apiPayload = {};
|
|
24164
|
+
if (typeof limit !== 'undefined') {
|
|
24165
|
+
apiPayload['limit'] = limit;
|
|
24166
|
+
}
|
|
24167
|
+
if (typeof offset !== 'undefined') {
|
|
24168
|
+
apiPayload['offset'] = offset;
|
|
24169
|
+
}
|
|
24170
|
+
if (typeof order !== 'undefined') {
|
|
24171
|
+
apiPayload['order'] = order;
|
|
24172
|
+
}
|
|
23467
24173
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23468
24174
|
const apiHeaders = {};
|
|
23469
24175
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -23667,12 +24373,48 @@
|
|
|
23667
24373
|
|
|
23668
24374
|
/**
|
|
23669
24375
|
*
|
|
24376
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
24377
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
24378
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
24379
|
+
* @throws {RevenexxException}
|
|
24380
|
+
* @returns {Promise<{}>}
|
|
24381
|
+
*/
|
|
24382
|
+
|
|
24383
|
+
/**
|
|
24384
|
+
*
|
|
24385
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
24386
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
24387
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
23670
24388
|
* @throws {RevenexxException}
|
|
23671
24389
|
* @returns {Promise<{}>}
|
|
24390
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
23672
24391
|
*/
|
|
23673
|
-
|
|
24392
|
+
|
|
24393
|
+
productsFamilyAttributesList(paramsOrFirst, ...rest) {
|
|
24394
|
+
let params;
|
|
24395
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
24396
|
+
params = paramsOrFirst || {};
|
|
24397
|
+
} else {
|
|
24398
|
+
params = {
|
|
24399
|
+
limit: paramsOrFirst,
|
|
24400
|
+
offset: rest[0],
|
|
24401
|
+
order: rest[1]
|
|
24402
|
+
};
|
|
24403
|
+
}
|
|
24404
|
+
const limit = params.limit;
|
|
24405
|
+
const offset = params.offset;
|
|
24406
|
+
const order = params.order;
|
|
23674
24407
|
const apiPath = '/v1/products/family_attributes';
|
|
23675
24408
|
const apiPayload = {};
|
|
24409
|
+
if (typeof limit !== 'undefined') {
|
|
24410
|
+
apiPayload['limit'] = limit;
|
|
24411
|
+
}
|
|
24412
|
+
if (typeof offset !== 'undefined') {
|
|
24413
|
+
apiPayload['offset'] = offset;
|
|
24414
|
+
}
|
|
24415
|
+
if (typeof order !== 'undefined') {
|
|
24416
|
+
apiPayload['order'] = order;
|
|
24417
|
+
}
|
|
23676
24418
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23677
24419
|
const apiHeaders = {};
|
|
23678
24420
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -23893,12 +24635,48 @@
|
|
|
23893
24635
|
|
|
23894
24636
|
/**
|
|
23895
24637
|
*
|
|
24638
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
24639
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
24640
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
24641
|
+
* @throws {RevenexxException}
|
|
24642
|
+
* @returns {Promise<{}>}
|
|
24643
|
+
*/
|
|
24644
|
+
|
|
24645
|
+
/**
|
|
24646
|
+
*
|
|
24647
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
24648
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
24649
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
23896
24650
|
* @throws {RevenexxException}
|
|
23897
24651
|
* @returns {Promise<{}>}
|
|
24652
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
23898
24653
|
*/
|
|
23899
|
-
|
|
24654
|
+
|
|
24655
|
+
productsFamilyVariantsList(paramsOrFirst, ...rest) {
|
|
24656
|
+
let params;
|
|
24657
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
24658
|
+
params = paramsOrFirst || {};
|
|
24659
|
+
} else {
|
|
24660
|
+
params = {
|
|
24661
|
+
limit: paramsOrFirst,
|
|
24662
|
+
offset: rest[0],
|
|
24663
|
+
order: rest[1]
|
|
24664
|
+
};
|
|
24665
|
+
}
|
|
24666
|
+
const limit = params.limit;
|
|
24667
|
+
const offset = params.offset;
|
|
24668
|
+
const order = params.order;
|
|
23900
24669
|
const apiPath = '/v1/products/family_variants';
|
|
23901
24670
|
const apiPayload = {};
|
|
24671
|
+
if (typeof limit !== 'undefined') {
|
|
24672
|
+
apiPayload['limit'] = limit;
|
|
24673
|
+
}
|
|
24674
|
+
if (typeof offset !== 'undefined') {
|
|
24675
|
+
apiPayload['offset'] = offset;
|
|
24676
|
+
}
|
|
24677
|
+
if (typeof order !== 'undefined') {
|
|
24678
|
+
apiPayload['order'] = order;
|
|
24679
|
+
}
|
|
23902
24680
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23903
24681
|
const apiHeaders = {};
|
|
23904
24682
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -24105,12 +24883,48 @@
|
|
|
24105
24883
|
|
|
24106
24884
|
/**
|
|
24107
24885
|
*
|
|
24886
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
24887
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
24888
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
24108
24889
|
* @throws {RevenexxException}
|
|
24109
24890
|
* @returns {Promise<{}>}
|
|
24110
24891
|
*/
|
|
24111
|
-
|
|
24892
|
+
|
|
24893
|
+
/**
|
|
24894
|
+
*
|
|
24895
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
24896
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
24897
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
24898
|
+
* @throws {RevenexxException}
|
|
24899
|
+
* @returns {Promise<{}>}
|
|
24900
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
24901
|
+
*/
|
|
24902
|
+
|
|
24903
|
+
productsMeasurementFamiliesList(paramsOrFirst, ...rest) {
|
|
24904
|
+
let params;
|
|
24905
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
24906
|
+
params = paramsOrFirst || {};
|
|
24907
|
+
} else {
|
|
24908
|
+
params = {
|
|
24909
|
+
limit: paramsOrFirst,
|
|
24910
|
+
offset: rest[0],
|
|
24911
|
+
order: rest[1]
|
|
24912
|
+
};
|
|
24913
|
+
}
|
|
24914
|
+
const limit = params.limit;
|
|
24915
|
+
const offset = params.offset;
|
|
24916
|
+
const order = params.order;
|
|
24112
24917
|
const apiPath = '/v1/products/measurement_families';
|
|
24113
24918
|
const apiPayload = {};
|
|
24919
|
+
if (typeof limit !== 'undefined') {
|
|
24920
|
+
apiPayload['limit'] = limit;
|
|
24921
|
+
}
|
|
24922
|
+
if (typeof offset !== 'undefined') {
|
|
24923
|
+
apiPayload['offset'] = offset;
|
|
24924
|
+
}
|
|
24925
|
+
if (typeof order !== 'undefined') {
|
|
24926
|
+
apiPayload['order'] = order;
|
|
24927
|
+
}
|
|
24114
24928
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24115
24929
|
const apiHeaders = {};
|
|
24116
24930
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -24317,12 +25131,48 @@
|
|
|
24317
25131
|
|
|
24318
25132
|
/**
|
|
24319
25133
|
*
|
|
25134
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
25135
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
25136
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
24320
25137
|
* @throws {RevenexxException}
|
|
24321
25138
|
* @returns {Promise<{}>}
|
|
24322
25139
|
*/
|
|
24323
|
-
|
|
25140
|
+
|
|
25141
|
+
/**
|
|
25142
|
+
*
|
|
25143
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
25144
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
25145
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
25146
|
+
* @throws {RevenexxException}
|
|
25147
|
+
* @returns {Promise<{}>}
|
|
25148
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
25149
|
+
*/
|
|
25150
|
+
|
|
25151
|
+
productsProductAssociationsList(paramsOrFirst, ...rest) {
|
|
25152
|
+
let params;
|
|
25153
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
25154
|
+
params = paramsOrFirst || {};
|
|
25155
|
+
} else {
|
|
25156
|
+
params = {
|
|
25157
|
+
limit: paramsOrFirst,
|
|
25158
|
+
offset: rest[0],
|
|
25159
|
+
order: rest[1]
|
|
25160
|
+
};
|
|
25161
|
+
}
|
|
25162
|
+
const limit = params.limit;
|
|
25163
|
+
const offset = params.offset;
|
|
25164
|
+
const order = params.order;
|
|
24324
25165
|
const apiPath = '/v1/products/product_associations';
|
|
24325
25166
|
const apiPayload = {};
|
|
25167
|
+
if (typeof limit !== 'undefined') {
|
|
25168
|
+
apiPayload['limit'] = limit;
|
|
25169
|
+
}
|
|
25170
|
+
if (typeof offset !== 'undefined') {
|
|
25171
|
+
apiPayload['offset'] = offset;
|
|
25172
|
+
}
|
|
25173
|
+
if (typeof order !== 'undefined') {
|
|
25174
|
+
apiPayload['order'] = order;
|
|
25175
|
+
}
|
|
24326
25176
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24327
25177
|
const apiHeaders = {};
|
|
24328
25178
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -24546,12 +25396,48 @@
|
|
|
24546
25396
|
|
|
24547
25397
|
/**
|
|
24548
25398
|
*
|
|
25399
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
25400
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
25401
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
25402
|
+
* @throws {RevenexxException}
|
|
25403
|
+
* @returns {Promise<{}>}
|
|
25404
|
+
*/
|
|
25405
|
+
|
|
25406
|
+
/**
|
|
25407
|
+
*
|
|
25408
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
25409
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
25410
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
24549
25411
|
* @throws {RevenexxException}
|
|
24550
25412
|
* @returns {Promise<{}>}
|
|
25413
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
24551
25414
|
*/
|
|
24552
|
-
|
|
25415
|
+
|
|
25416
|
+
productsProductCategoriesList(paramsOrFirst, ...rest) {
|
|
25417
|
+
let params;
|
|
25418
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
25419
|
+
params = paramsOrFirst || {};
|
|
25420
|
+
} else {
|
|
25421
|
+
params = {
|
|
25422
|
+
limit: paramsOrFirst,
|
|
25423
|
+
offset: rest[0],
|
|
25424
|
+
order: rest[1]
|
|
25425
|
+
};
|
|
25426
|
+
}
|
|
25427
|
+
const limit = params.limit;
|
|
25428
|
+
const offset = params.offset;
|
|
25429
|
+
const order = params.order;
|
|
24553
25430
|
const apiPath = '/v1/products/product_categories';
|
|
24554
25431
|
const apiPayload = {};
|
|
25432
|
+
if (typeof limit !== 'undefined') {
|
|
25433
|
+
apiPayload['limit'] = limit;
|
|
25434
|
+
}
|
|
25435
|
+
if (typeof offset !== 'undefined') {
|
|
25436
|
+
apiPayload['offset'] = offset;
|
|
25437
|
+
}
|
|
25438
|
+
if (typeof order !== 'undefined') {
|
|
25439
|
+
apiPayload['order'] = order;
|
|
25440
|
+
}
|
|
24555
25441
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24556
25442
|
const apiHeaders = {};
|
|
24557
25443
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -24744,12 +25630,48 @@
|
|
|
24744
25630
|
|
|
24745
25631
|
/**
|
|
24746
25632
|
*
|
|
25633
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
25634
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
25635
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
25636
|
+
* @throws {RevenexxException}
|
|
25637
|
+
* @returns {Promise<{}>}
|
|
25638
|
+
*/
|
|
25639
|
+
|
|
25640
|
+
/**
|
|
25641
|
+
*
|
|
25642
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
25643
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
25644
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
24747
25645
|
* @throws {RevenexxException}
|
|
24748
25646
|
* @returns {Promise<{}>}
|
|
25647
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
24749
25648
|
*/
|
|
24750
|
-
|
|
25649
|
+
|
|
25650
|
+
productsReferenceEntitiesList(paramsOrFirst, ...rest) {
|
|
25651
|
+
let params;
|
|
25652
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
25653
|
+
params = paramsOrFirst || {};
|
|
25654
|
+
} else {
|
|
25655
|
+
params = {
|
|
25656
|
+
limit: paramsOrFirst,
|
|
25657
|
+
offset: rest[0],
|
|
25658
|
+
order: rest[1]
|
|
25659
|
+
};
|
|
25660
|
+
}
|
|
25661
|
+
const limit = params.limit;
|
|
25662
|
+
const offset = params.offset;
|
|
25663
|
+
const order = params.order;
|
|
24751
25664
|
const apiPath = '/v1/products/reference_entities';
|
|
24752
25665
|
const apiPayload = {};
|
|
25666
|
+
if (typeof limit !== 'undefined') {
|
|
25667
|
+
apiPayload['limit'] = limit;
|
|
25668
|
+
}
|
|
25669
|
+
if (typeof offset !== 'undefined') {
|
|
25670
|
+
apiPayload['offset'] = offset;
|
|
25671
|
+
}
|
|
25672
|
+
if (typeof order !== 'undefined') {
|
|
25673
|
+
apiPayload['order'] = order;
|
|
25674
|
+
}
|
|
24753
25675
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24754
25676
|
const apiHeaders = {};
|
|
24755
25677
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -24939,12 +25861,48 @@
|
|
|
24939
25861
|
|
|
24940
25862
|
/**
|
|
24941
25863
|
*
|
|
25864
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
25865
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
25866
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
25867
|
+
* @throws {RevenexxException}
|
|
25868
|
+
* @returns {Promise<{}>}
|
|
25869
|
+
*/
|
|
25870
|
+
|
|
25871
|
+
/**
|
|
25872
|
+
*
|
|
25873
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
25874
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
25875
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
24942
25876
|
* @throws {RevenexxException}
|
|
24943
25877
|
* @returns {Promise<{}>}
|
|
25878
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
24944
25879
|
*/
|
|
24945
|
-
|
|
25880
|
+
|
|
25881
|
+
productsReferenceEntityRecordsList(paramsOrFirst, ...rest) {
|
|
25882
|
+
let params;
|
|
25883
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
25884
|
+
params = paramsOrFirst || {};
|
|
25885
|
+
} else {
|
|
25886
|
+
params = {
|
|
25887
|
+
limit: paramsOrFirst,
|
|
25888
|
+
offset: rest[0],
|
|
25889
|
+
order: rest[1]
|
|
25890
|
+
};
|
|
25891
|
+
}
|
|
25892
|
+
const limit = params.limit;
|
|
25893
|
+
const offset = params.offset;
|
|
25894
|
+
const order = params.order;
|
|
24946
25895
|
const apiPath = '/v1/products/reference_entity_records';
|
|
24947
25896
|
const apiPayload = {};
|
|
25897
|
+
if (typeof limit !== 'undefined') {
|
|
25898
|
+
apiPayload['limit'] = limit;
|
|
25899
|
+
}
|
|
25900
|
+
if (typeof offset !== 'undefined') {
|
|
25901
|
+
apiPayload['offset'] = offset;
|
|
25902
|
+
}
|
|
25903
|
+
if (typeof order !== 'undefined') {
|
|
25904
|
+
apiPayload['order'] = order;
|
|
25905
|
+
}
|
|
24948
25906
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24949
25907
|
const apiHeaders = {};
|
|
24950
25908
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -25598,7 +26556,28 @@
|
|
|
25598
26556
|
const apiPath = '/v1/search/multi_search';
|
|
25599
26557
|
const apiPayload = {};
|
|
25600
26558
|
if (typeof searches !== 'undefined') {
|
|
25601
|
-
apiPayload['searches'] = searches
|
|
26559
|
+
apiPayload['searches'] = Client.toWireKeys(searches, {
|
|
26560
|
+
"facetBy": {
|
|
26561
|
+
"wire": "facet_by",
|
|
26562
|
+
"children": null
|
|
26563
|
+
},
|
|
26564
|
+
"filterBy": {
|
|
26565
|
+
"wire": "filter_by",
|
|
26566
|
+
"children": null
|
|
26567
|
+
},
|
|
26568
|
+
"perPage": {
|
|
26569
|
+
"wire": "per_page",
|
|
26570
|
+
"children": null
|
|
26571
|
+
},
|
|
26572
|
+
"queryBy": {
|
|
26573
|
+
"wire": "query_by",
|
|
26574
|
+
"children": null
|
|
26575
|
+
},
|
|
26576
|
+
"sortBy": {
|
|
26577
|
+
"wire": "sort_by",
|
|
26578
|
+
"children": null
|
|
26579
|
+
}
|
|
26580
|
+
});
|
|
25602
26581
|
}
|
|
25603
26582
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
25604
26583
|
const apiHeaders = {
|
|
@@ -26152,7 +27131,12 @@
|
|
|
26152
27131
|
const apiPath = '/v1/shipping/methods/{method_id}/tiers'.replace('{method_id}', methodId);
|
|
26153
27132
|
const apiPayload = {};
|
|
26154
27133
|
if (typeof tiers !== 'undefined') {
|
|
26155
|
-
apiPayload['tiers'] = tiers
|
|
27134
|
+
apiPayload['tiers'] = Client.toWireKeys(tiers, {
|
|
27135
|
+
"fromValue": {
|
|
27136
|
+
"wire": "from_value",
|
|
27137
|
+
"children": null
|
|
27138
|
+
}
|
|
27139
|
+
});
|
|
26156
27140
|
}
|
|
26157
27141
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26158
27142
|
const apiHeaders = {
|
|
@@ -31033,10 +32017,13 @@
|
|
|
31033
32017
|
return OrderListKind;
|
|
31034
32018
|
}({});
|
|
31035
32019
|
|
|
31036
|
-
let
|
|
31037
|
-
|
|
31038
|
-
|
|
31039
|
-
|
|
32020
|
+
let OrderStatus = /*#__PURE__*/function (OrderStatus) {
|
|
32021
|
+
OrderStatus["Pending"] = "pending";
|
|
32022
|
+
OrderStatus["Placed"] = "placed";
|
|
32023
|
+
OrderStatus["InFulfillment"] = "in_fulfillment";
|
|
32024
|
+
OrderStatus["Completed"] = "completed";
|
|
32025
|
+
OrderStatus["Cancelled"] = "cancelled";
|
|
32026
|
+
return OrderStatus;
|
|
31040
32027
|
}({});
|
|
31041
32028
|
|
|
31042
32029
|
let OrderPaymentStatus = /*#__PURE__*/function (OrderPaymentStatus) {
|
|
@@ -31050,6 +32037,19 @@
|
|
|
31050
32037
|
return OrderPaymentStatus;
|
|
31051
32038
|
}({});
|
|
31052
32039
|
|
|
32040
|
+
let OrderFulfillmentStatus = /*#__PURE__*/function (OrderFulfillmentStatus) {
|
|
32041
|
+
OrderFulfillmentStatus["Unfulfilled"] = "unfulfilled";
|
|
32042
|
+
OrderFulfillmentStatus["Partial"] = "partial";
|
|
32043
|
+
OrderFulfillmentStatus["Fulfilled"] = "fulfilled";
|
|
32044
|
+
return OrderFulfillmentStatus;
|
|
32045
|
+
}({});
|
|
32046
|
+
|
|
32047
|
+
let OrderCommentVisibility = /*#__PURE__*/function (OrderCommentVisibility) {
|
|
32048
|
+
OrderCommentVisibility["Internal"] = "internal";
|
|
32049
|
+
OrderCommentVisibility["Customer"] = "customer";
|
|
32050
|
+
return OrderCommentVisibility;
|
|
32051
|
+
}({});
|
|
32052
|
+
|
|
31053
32053
|
let PageStatus = /*#__PURE__*/function (PageStatus) {
|
|
31054
32054
|
PageStatus["Draft"] = "draft";
|
|
31055
32055
|
PageStatus["Published"] = "published";
|
|
@@ -31668,9 +32668,11 @@
|
|
|
31668
32668
|
exports.Method = Method;
|
|
31669
32669
|
exports.Operator = Operator;
|
|
31670
32670
|
exports.OrderCommentVisibility = OrderCommentVisibility;
|
|
32671
|
+
exports.OrderFulfillmentStatus = OrderFulfillmentStatus;
|
|
31671
32672
|
exports.OrderItemType = OrderItemType;
|
|
31672
32673
|
exports.OrderListKind = OrderListKind;
|
|
31673
32674
|
exports.OrderPaymentStatus = OrderPaymentStatus;
|
|
32675
|
+
exports.OrderStatus = OrderStatus;
|
|
31674
32676
|
exports.Orderlists = Orderlists;
|
|
31675
32677
|
exports.Orders = Orders;
|
|
31676
32678
|
exports.OrganizationStatus = OrganizationStatus;
|