@revenexx/sdk 0.0.10 → 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 +772 -32
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +772 -32
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +772 -32
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/services/carts.ts +64 -1
- package/src/services/customers.ts +57 -1
- package/src/services/orderlists.ts +64 -1
- package/src/services/products.ts +688 -16
- 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/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
|
/**
|
|
@@ -7524,12 +7524,69 @@
|
|
|
7524
7524
|
|
|
7525
7525
|
/**
|
|
7526
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'.
|
|
7527
7545
|
* @throws {RevenexxException}
|
|
7528
7546
|
* @returns {Promise<{}>}
|
|
7547
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
7529
7548
|
*/
|
|
7530
|
-
|
|
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;
|
|
7531
7570
|
const apiPath = '/v1/carts';
|
|
7532
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
|
+
}
|
|
7533
7590
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7534
7591
|
const apiHeaders = {};
|
|
7535
7592
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -9155,12 +9212,62 @@
|
|
|
9155
9212
|
|
|
9156
9213
|
/**
|
|
9157
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'.
|
|
9158
9231
|
* @throws {RevenexxException}
|
|
9159
9232
|
* @returns {Promise<{}>}
|
|
9233
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
9160
9234
|
*/
|
|
9161
|
-
|
|
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;
|
|
9162
9254
|
const apiPath = '/v1/customers/addresses';
|
|
9163
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
|
+
}
|
|
9164
9271
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9165
9272
|
const apiHeaders = {};
|
|
9166
9273
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -15684,12 +15791,69 @@
|
|
|
15684
15791
|
|
|
15685
15792
|
/**
|
|
15686
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'.
|
|
15687
15812
|
* @throws {RevenexxException}
|
|
15688
15813
|
* @returns {Promise<{}>}
|
|
15814
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
15689
15815
|
*/
|
|
15690
|
-
|
|
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;
|
|
15691
15837
|
const apiPath = '/v1/orderlists';
|
|
15692
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
|
+
}
|
|
15693
15857
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
15694
15858
|
const apiHeaders = {};
|
|
15695
15859
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -21883,12 +22047,48 @@
|
|
|
21883
22047
|
|
|
21884
22048
|
/**
|
|
21885
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'.
|
|
21886
22062
|
* @throws {RevenexxException}
|
|
21887
22063
|
* @returns {Promise<{}>}
|
|
22064
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
21888
22065
|
*/
|
|
21889
|
-
|
|
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;
|
|
21890
22081
|
const apiPath = '/v1/products';
|
|
21891
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
|
+
}
|
|
21892
22092
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21893
22093
|
const apiHeaders = {};
|
|
21894
22094
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -22006,12 +22206,48 @@
|
|
|
22006
22206
|
|
|
22007
22207
|
/**
|
|
22008
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'.
|
|
22009
22221
|
* @throws {RevenexxException}
|
|
22010
22222
|
* @returns {Promise<{}>}
|
|
22223
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
22011
22224
|
*/
|
|
22012
|
-
|
|
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;
|
|
22013
22240
|
const apiPath = '/v1/products/asset_families';
|
|
22014
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
|
+
}
|
|
22015
22251
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22016
22252
|
const apiHeaders = {};
|
|
22017
22253
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -22201,12 +22437,48 @@
|
|
|
22201
22437
|
|
|
22202
22438
|
/**
|
|
22203
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'.
|
|
22443
|
+
* @throws {RevenexxException}
|
|
22444
|
+
* @returns {Promise<{}>}
|
|
22445
|
+
*/
|
|
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'.
|
|
22204
22452
|
* @throws {RevenexxException}
|
|
22205
22453
|
* @returns {Promise<{}>}
|
|
22454
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
22206
22455
|
*/
|
|
22207
|
-
|
|
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;
|
|
22208
22471
|
const apiPath = '/v1/products/assets';
|
|
22209
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
|
+
}
|
|
22210
22482
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22211
22483
|
const apiHeaders = {};
|
|
22212
22484
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -22413,28 +22685,64 @@
|
|
|
22413
22685
|
|
|
22414
22686
|
/**
|
|
22415
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'.
|
|
22416
22691
|
* @throws {RevenexxException}
|
|
22417
22692
|
* @returns {Promise<{}>}
|
|
22418
22693
|
*/
|
|
22419
|
-
productsAssociationTypesList() {
|
|
22420
|
-
const apiPath = '/v1/products/association_types';
|
|
22421
|
-
const apiPayload = {};
|
|
22422
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22423
|
-
const apiHeaders = {};
|
|
22424
|
-
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
22425
|
-
}
|
|
22426
22694
|
|
|
22427
22695
|
/**
|
|
22428
22696
|
*
|
|
22429
|
-
* @param {
|
|
22430
|
-
* @param {
|
|
22431
|
-
* @param {
|
|
22432
|
-
* @param {object} params.labels -
|
|
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'.
|
|
22433
22700
|
* @throws {RevenexxException}
|
|
22434
|
-
* @returns {Promise<
|
|
22701
|
+
* @returns {Promise<{}>}
|
|
22702
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
22435
22703
|
*/
|
|
22436
22704
|
|
|
22437
|
-
|
|
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;
|
|
22719
|
+
const apiPath = '/v1/products/association_types';
|
|
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
|
+
}
|
|
22730
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22731
|
+
const apiHeaders = {};
|
|
22732
|
+
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
22733
|
+
}
|
|
22734
|
+
|
|
22735
|
+
/**
|
|
22736
|
+
*
|
|
22737
|
+
* @param {string} params.code -
|
|
22738
|
+
* @param {boolean} params.isQuantified -
|
|
22739
|
+
* @param {boolean} params.isTwoWay -
|
|
22740
|
+
* @param {object} params.labels -
|
|
22741
|
+
* @throws {RevenexxException}
|
|
22742
|
+
* @returns {Promise<Models.AssociationTypes>}
|
|
22743
|
+
*/
|
|
22744
|
+
|
|
22745
|
+
/**
|
|
22438
22746
|
*
|
|
22439
22747
|
* @param {string} code -
|
|
22440
22748
|
* @param {boolean} isQuantified -
|
|
@@ -22622,12 +22930,48 @@
|
|
|
22622
22930
|
|
|
22623
22931
|
/**
|
|
22624
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'.
|
|
22625
22936
|
* @throws {RevenexxException}
|
|
22626
22937
|
* @returns {Promise<{}>}
|
|
22627
22938
|
*/
|
|
22628
|
-
|
|
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'.
|
|
22945
|
+
* @throws {RevenexxException}
|
|
22946
|
+
* @returns {Promise<{}>}
|
|
22947
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
22948
|
+
*/
|
|
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;
|
|
22629
22964
|
const apiPath = '/v1/products/attribute_groups';
|
|
22630
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
|
+
}
|
|
22631
22975
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22632
22976
|
const apiHeaders = {};
|
|
22633
22977
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -22817,12 +23161,48 @@
|
|
|
22817
23161
|
|
|
22818
23162
|
/**
|
|
22819
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'.
|
|
23167
|
+
* @throws {RevenexxException}
|
|
23168
|
+
* @returns {Promise<{}>}
|
|
23169
|
+
*/
|
|
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'.
|
|
22820
23176
|
* @throws {RevenexxException}
|
|
22821
23177
|
* @returns {Promise<{}>}
|
|
23178
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
22822
23179
|
*/
|
|
22823
|
-
|
|
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;
|
|
22824
23195
|
const apiPath = '/v1/products/attribute_options';
|
|
22825
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
|
+
}
|
|
22826
23206
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22827
23207
|
const apiHeaders = {};
|
|
22828
23208
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -23043,12 +23423,48 @@
|
|
|
23043
23423
|
|
|
23044
23424
|
/**
|
|
23045
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'.
|
|
23046
23429
|
* @throws {RevenexxException}
|
|
23047
23430
|
* @returns {Promise<{}>}
|
|
23048
23431
|
*/
|
|
23049
|
-
|
|
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'.
|
|
23438
|
+
* @throws {RevenexxException}
|
|
23439
|
+
* @returns {Promise<{}>}
|
|
23440
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
23441
|
+
*/
|
|
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;
|
|
23050
23457
|
const apiPath = '/v1/products/attributes';
|
|
23051
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
|
+
}
|
|
23052
23468
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23053
23469
|
const apiHeaders = {};
|
|
23054
23470
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -23439,12 +23855,48 @@
|
|
|
23439
23855
|
|
|
23440
23856
|
/**
|
|
23441
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'.
|
|
23442
23870
|
* @throws {RevenexxException}
|
|
23443
23871
|
* @returns {Promise<{}>}
|
|
23872
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
23444
23873
|
*/
|
|
23445
|
-
|
|
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;
|
|
23446
23889
|
const apiPath = '/v1/products/categories';
|
|
23447
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
|
+
}
|
|
23448
23900
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23449
23901
|
const apiHeaders = {};
|
|
23450
23902
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -23676,12 +24128,48 @@
|
|
|
23676
24128
|
|
|
23677
24129
|
/**
|
|
23678
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'.
|
|
23679
24134
|
* @throws {RevenexxException}
|
|
23680
24135
|
* @returns {Promise<{}>}
|
|
23681
24136
|
*/
|
|
23682
|
-
|
|
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;
|
|
23683
24162
|
const apiPath = '/v1/products/families';
|
|
23684
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
|
+
}
|
|
23685
24173
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23686
24174
|
const apiHeaders = {};
|
|
23687
24175
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -23885,12 +24373,48 @@
|
|
|
23885
24373
|
|
|
23886
24374
|
/**
|
|
23887
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'.
|
|
23888
24379
|
* @throws {RevenexxException}
|
|
23889
24380
|
* @returns {Promise<{}>}
|
|
23890
24381
|
*/
|
|
23891
|
-
|
|
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'.
|
|
24388
|
+
* @throws {RevenexxException}
|
|
24389
|
+
* @returns {Promise<{}>}
|
|
24390
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
24391
|
+
*/
|
|
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;
|
|
23892
24407
|
const apiPath = '/v1/products/family_attributes';
|
|
23893
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
|
+
}
|
|
23894
24418
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23895
24419
|
const apiHeaders = {};
|
|
23896
24420
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -24111,12 +24635,48 @@
|
|
|
24111
24635
|
|
|
24112
24636
|
/**
|
|
24113
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'.
|
|
24114
24650
|
* @throws {RevenexxException}
|
|
24115
24651
|
* @returns {Promise<{}>}
|
|
24652
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
24116
24653
|
*/
|
|
24117
|
-
|
|
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;
|
|
24118
24669
|
const apiPath = '/v1/products/family_variants';
|
|
24119
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
|
+
}
|
|
24120
24680
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24121
24681
|
const apiHeaders = {};
|
|
24122
24682
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -24323,12 +24883,48 @@
|
|
|
24323
24883
|
|
|
24324
24884
|
/**
|
|
24325
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'.
|
|
24889
|
+
* @throws {RevenexxException}
|
|
24890
|
+
* @returns {Promise<{}>}
|
|
24891
|
+
*/
|
|
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'.
|
|
24326
24898
|
* @throws {RevenexxException}
|
|
24327
24899
|
* @returns {Promise<{}>}
|
|
24900
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
24328
24901
|
*/
|
|
24329
|
-
|
|
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;
|
|
24330
24917
|
const apiPath = '/v1/products/measurement_families';
|
|
24331
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
|
+
}
|
|
24332
24928
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24333
24929
|
const apiHeaders = {};
|
|
24334
24930
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -24535,12 +25131,48 @@
|
|
|
24535
25131
|
|
|
24536
25132
|
/**
|
|
24537
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'.
|
|
24538
25137
|
* @throws {RevenexxException}
|
|
24539
25138
|
* @returns {Promise<{}>}
|
|
24540
25139
|
*/
|
|
24541
|
-
|
|
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;
|
|
24542
25165
|
const apiPath = '/v1/products/product_associations';
|
|
24543
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
|
+
}
|
|
24544
25176
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24545
25177
|
const apiHeaders = {};
|
|
24546
25178
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -24764,12 +25396,48 @@
|
|
|
24764
25396
|
|
|
24765
25397
|
/**
|
|
24766
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'.
|
|
24767
25402
|
* @throws {RevenexxException}
|
|
24768
25403
|
* @returns {Promise<{}>}
|
|
24769
25404
|
*/
|
|
24770
|
-
|
|
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'.
|
|
25411
|
+
* @throws {RevenexxException}
|
|
25412
|
+
* @returns {Promise<{}>}
|
|
25413
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
25414
|
+
*/
|
|
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;
|
|
24771
25430
|
const apiPath = '/v1/products/product_categories';
|
|
24772
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
|
+
}
|
|
24773
25441
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24774
25442
|
const apiHeaders = {};
|
|
24775
25443
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -24962,12 +25630,48 @@
|
|
|
24962
25630
|
|
|
24963
25631
|
/**
|
|
24964
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'.
|
|
24965
25645
|
* @throws {RevenexxException}
|
|
24966
25646
|
* @returns {Promise<{}>}
|
|
25647
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
24967
25648
|
*/
|
|
24968
|
-
|
|
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;
|
|
24969
25664
|
const apiPath = '/v1/products/reference_entities';
|
|
24970
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
|
+
}
|
|
24971
25675
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24972
25676
|
const apiHeaders = {};
|
|
24973
25677
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -25157,12 +25861,48 @@
|
|
|
25157
25861
|
|
|
25158
25862
|
/**
|
|
25159
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'.
|
|
25160
25876
|
* @throws {RevenexxException}
|
|
25161
25877
|
* @returns {Promise<{}>}
|
|
25878
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
25162
25879
|
*/
|
|
25163
|
-
|
|
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;
|
|
25164
25895
|
const apiPath = '/v1/products/reference_entity_records';
|
|
25165
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
|
+
}
|
|
25166
25906
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
25167
25907
|
const apiHeaders = {};
|
|
25168
25908
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|