@revenexx/sdk 0.0.10 → 0.0.12
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 +825 -21
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +825 -21
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +825 -21
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/services/carts.ts +64 -1
- package/src/services/customers.ts +128 -2
- 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 +54 -2
- 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.12'
|
|
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);
|
|
@@ -9841,12 +9948,76 @@
|
|
|
9841
9948
|
|
|
9842
9949
|
/**
|
|
9843
9950
|
*
|
|
9951
|
+
* @param {string} params.organizationId - Filter to one organization.
|
|
9952
|
+
* @param {string} params.role - Filter by role (buyer | approver | admin | requester).
|
|
9953
|
+
* @param {string} params.status - Filter by status (invited | active | blocked).
|
|
9954
|
+
* @param {string} params.email - Filter by exact email.
|
|
9955
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
9956
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
9957
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
9958
|
+
* @throws {RevenexxException}
|
|
9959
|
+
* @returns {Promise<{}>}
|
|
9960
|
+
*/
|
|
9961
|
+
|
|
9962
|
+
/**
|
|
9963
|
+
*
|
|
9964
|
+
* @param {string} organizationId - Filter to one organization.
|
|
9965
|
+
* @param {string} role - Filter by role (buyer | approver | admin | requester).
|
|
9966
|
+
* @param {string} status - Filter by status (invited | active | blocked).
|
|
9967
|
+
* @param {string} email - Filter by exact email.
|
|
9968
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
9969
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
9970
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
9844
9971
|
* @throws {RevenexxException}
|
|
9845
9972
|
* @returns {Promise<{}>}
|
|
9973
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
9846
9974
|
*/
|
|
9847
|
-
|
|
9975
|
+
|
|
9976
|
+
customersContactsList(paramsOrFirst, ...rest) {
|
|
9977
|
+
let params;
|
|
9978
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
9979
|
+
params = paramsOrFirst || {};
|
|
9980
|
+
} else {
|
|
9981
|
+
params = {
|
|
9982
|
+
organizationId: paramsOrFirst,
|
|
9983
|
+
role: rest[0],
|
|
9984
|
+
status: rest[1],
|
|
9985
|
+
email: rest[2],
|
|
9986
|
+
limit: rest[3],
|
|
9987
|
+
offset: rest[4],
|
|
9988
|
+
order: rest[5]
|
|
9989
|
+
};
|
|
9990
|
+
}
|
|
9991
|
+
const organizationId = params.organizationId;
|
|
9992
|
+
const role = params.role;
|
|
9993
|
+
const status = params.status;
|
|
9994
|
+
const email = params.email;
|
|
9995
|
+
const limit = params.limit;
|
|
9996
|
+
const offset = params.offset;
|
|
9997
|
+
const order = params.order;
|
|
9848
9998
|
const apiPath = '/v1/customers/contacts';
|
|
9849
9999
|
const apiPayload = {};
|
|
10000
|
+
if (typeof organizationId !== 'undefined') {
|
|
10001
|
+
apiPayload['organization_id'] = organizationId;
|
|
10002
|
+
}
|
|
10003
|
+
if (typeof role !== 'undefined') {
|
|
10004
|
+
apiPayload['role'] = role;
|
|
10005
|
+
}
|
|
10006
|
+
if (typeof status !== 'undefined') {
|
|
10007
|
+
apiPayload['status'] = status;
|
|
10008
|
+
}
|
|
10009
|
+
if (typeof email !== 'undefined') {
|
|
10010
|
+
apiPayload['email'] = email;
|
|
10011
|
+
}
|
|
10012
|
+
if (typeof limit !== 'undefined') {
|
|
10013
|
+
apiPayload['limit'] = limit;
|
|
10014
|
+
}
|
|
10015
|
+
if (typeof offset !== 'undefined') {
|
|
10016
|
+
apiPayload['offset'] = offset;
|
|
10017
|
+
}
|
|
10018
|
+
if (typeof order !== 'undefined') {
|
|
10019
|
+
apiPayload['order'] = order;
|
|
10020
|
+
}
|
|
9850
10021
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9851
10022
|
const apiHeaders = {};
|
|
9852
10023
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -15684,12 +15855,69 @@
|
|
|
15684
15855
|
|
|
15685
15856
|
/**
|
|
15686
15857
|
*
|
|
15858
|
+
* @param {string} params.ownerId - Filter to one owning contact.
|
|
15859
|
+
* @param {string} params.organizationId - Filter to one organization.
|
|
15860
|
+
* @param {string} params.kind - Filter by list kind (shopping | label).
|
|
15861
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
15862
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
15863
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
15864
|
+
* @throws {RevenexxException}
|
|
15865
|
+
* @returns {Promise<{}>}
|
|
15866
|
+
*/
|
|
15867
|
+
|
|
15868
|
+
/**
|
|
15869
|
+
*
|
|
15870
|
+
* @param {string} ownerId - Filter to one owning contact.
|
|
15871
|
+
* @param {string} organizationId - Filter to one organization.
|
|
15872
|
+
* @param {string} kind - Filter by list kind (shopping | label).
|
|
15873
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
15874
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
15875
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
15687
15876
|
* @throws {RevenexxException}
|
|
15688
15877
|
* @returns {Promise<{}>}
|
|
15878
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
15689
15879
|
*/
|
|
15690
|
-
|
|
15880
|
+
|
|
15881
|
+
orderlistsList(paramsOrFirst, ...rest) {
|
|
15882
|
+
let params;
|
|
15883
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
15884
|
+
params = paramsOrFirst || {};
|
|
15885
|
+
} else {
|
|
15886
|
+
params = {
|
|
15887
|
+
ownerId: paramsOrFirst,
|
|
15888
|
+
organizationId: rest[0],
|
|
15889
|
+
kind: rest[1],
|
|
15890
|
+
limit: rest[2],
|
|
15891
|
+
offset: rest[3],
|
|
15892
|
+
order: rest[4]
|
|
15893
|
+
};
|
|
15894
|
+
}
|
|
15895
|
+
const ownerId = params.ownerId;
|
|
15896
|
+
const organizationId = params.organizationId;
|
|
15897
|
+
const kind = params.kind;
|
|
15898
|
+
const limit = params.limit;
|
|
15899
|
+
const offset = params.offset;
|
|
15900
|
+
const order = params.order;
|
|
15691
15901
|
const apiPath = '/v1/orderlists';
|
|
15692
15902
|
const apiPayload = {};
|
|
15903
|
+
if (typeof ownerId !== 'undefined') {
|
|
15904
|
+
apiPayload['owner_id'] = ownerId;
|
|
15905
|
+
}
|
|
15906
|
+
if (typeof organizationId !== 'undefined') {
|
|
15907
|
+
apiPayload['organization_id'] = organizationId;
|
|
15908
|
+
}
|
|
15909
|
+
if (typeof kind !== 'undefined') {
|
|
15910
|
+
apiPayload['kind'] = kind;
|
|
15911
|
+
}
|
|
15912
|
+
if (typeof limit !== 'undefined') {
|
|
15913
|
+
apiPayload['limit'] = limit;
|
|
15914
|
+
}
|
|
15915
|
+
if (typeof offset !== 'undefined') {
|
|
15916
|
+
apiPayload['offset'] = offset;
|
|
15917
|
+
}
|
|
15918
|
+
if (typeof order !== 'undefined') {
|
|
15919
|
+
apiPayload['order'] = order;
|
|
15920
|
+
}
|
|
15693
15921
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
15694
15922
|
const apiHeaders = {};
|
|
15695
15923
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -21883,12 +22111,48 @@
|
|
|
21883
22111
|
|
|
21884
22112
|
/**
|
|
21885
22113
|
*
|
|
22114
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
22115
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
22116
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22117
|
+
* @throws {RevenexxException}
|
|
22118
|
+
* @returns {Promise<{}>}
|
|
22119
|
+
*/
|
|
22120
|
+
|
|
22121
|
+
/**
|
|
22122
|
+
*
|
|
22123
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
22124
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
22125
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21886
22126
|
* @throws {RevenexxException}
|
|
21887
22127
|
* @returns {Promise<{}>}
|
|
22128
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
21888
22129
|
*/
|
|
21889
|
-
|
|
22130
|
+
|
|
22131
|
+
productsList(paramsOrFirst, ...rest) {
|
|
22132
|
+
let params;
|
|
22133
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
22134
|
+
params = paramsOrFirst || {};
|
|
22135
|
+
} else {
|
|
22136
|
+
params = {
|
|
22137
|
+
limit: paramsOrFirst,
|
|
22138
|
+
offset: rest[0],
|
|
22139
|
+
order: rest[1]
|
|
22140
|
+
};
|
|
22141
|
+
}
|
|
22142
|
+
const limit = params.limit;
|
|
22143
|
+
const offset = params.offset;
|
|
22144
|
+
const order = params.order;
|
|
21890
22145
|
const apiPath = '/v1/products';
|
|
21891
22146
|
const apiPayload = {};
|
|
22147
|
+
if (typeof limit !== 'undefined') {
|
|
22148
|
+
apiPayload['limit'] = limit;
|
|
22149
|
+
}
|
|
22150
|
+
if (typeof offset !== 'undefined') {
|
|
22151
|
+
apiPayload['offset'] = offset;
|
|
22152
|
+
}
|
|
22153
|
+
if (typeof order !== 'undefined') {
|
|
22154
|
+
apiPayload['order'] = order;
|
|
22155
|
+
}
|
|
21892
22156
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21893
22157
|
const apiHeaders = {};
|
|
21894
22158
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -22006,12 +22270,48 @@
|
|
|
22006
22270
|
|
|
22007
22271
|
/**
|
|
22008
22272
|
*
|
|
22273
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
22274
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
22275
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22276
|
+
* @throws {RevenexxException}
|
|
22277
|
+
* @returns {Promise<{}>}
|
|
22278
|
+
*/
|
|
22279
|
+
|
|
22280
|
+
/**
|
|
22281
|
+
*
|
|
22282
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
22283
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
22284
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22009
22285
|
* @throws {RevenexxException}
|
|
22010
22286
|
* @returns {Promise<{}>}
|
|
22287
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
22011
22288
|
*/
|
|
22012
|
-
|
|
22289
|
+
|
|
22290
|
+
productsAssetFamiliesList(paramsOrFirst, ...rest) {
|
|
22291
|
+
let params;
|
|
22292
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
22293
|
+
params = paramsOrFirst || {};
|
|
22294
|
+
} else {
|
|
22295
|
+
params = {
|
|
22296
|
+
limit: paramsOrFirst,
|
|
22297
|
+
offset: rest[0],
|
|
22298
|
+
order: rest[1]
|
|
22299
|
+
};
|
|
22300
|
+
}
|
|
22301
|
+
const limit = params.limit;
|
|
22302
|
+
const offset = params.offset;
|
|
22303
|
+
const order = params.order;
|
|
22013
22304
|
const apiPath = '/v1/products/asset_families';
|
|
22014
22305
|
const apiPayload = {};
|
|
22306
|
+
if (typeof limit !== 'undefined') {
|
|
22307
|
+
apiPayload['limit'] = limit;
|
|
22308
|
+
}
|
|
22309
|
+
if (typeof offset !== 'undefined') {
|
|
22310
|
+
apiPayload['offset'] = offset;
|
|
22311
|
+
}
|
|
22312
|
+
if (typeof order !== 'undefined') {
|
|
22313
|
+
apiPayload['order'] = order;
|
|
22314
|
+
}
|
|
22015
22315
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22016
22316
|
const apiHeaders = {};
|
|
22017
22317
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -22201,12 +22501,48 @@
|
|
|
22201
22501
|
|
|
22202
22502
|
/**
|
|
22203
22503
|
*
|
|
22504
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
22505
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
22506
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22204
22507
|
* @throws {RevenexxException}
|
|
22205
22508
|
* @returns {Promise<{}>}
|
|
22206
22509
|
*/
|
|
22207
|
-
|
|
22510
|
+
|
|
22511
|
+
/**
|
|
22512
|
+
*
|
|
22513
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
22514
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
22515
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22516
|
+
* @throws {RevenexxException}
|
|
22517
|
+
* @returns {Promise<{}>}
|
|
22518
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
22519
|
+
*/
|
|
22520
|
+
|
|
22521
|
+
productsAssetsList(paramsOrFirst, ...rest) {
|
|
22522
|
+
let params;
|
|
22523
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
22524
|
+
params = paramsOrFirst || {};
|
|
22525
|
+
} else {
|
|
22526
|
+
params = {
|
|
22527
|
+
limit: paramsOrFirst,
|
|
22528
|
+
offset: rest[0],
|
|
22529
|
+
order: rest[1]
|
|
22530
|
+
};
|
|
22531
|
+
}
|
|
22532
|
+
const limit = params.limit;
|
|
22533
|
+
const offset = params.offset;
|
|
22534
|
+
const order = params.order;
|
|
22208
22535
|
const apiPath = '/v1/products/assets';
|
|
22209
22536
|
const apiPayload = {};
|
|
22537
|
+
if (typeof limit !== 'undefined') {
|
|
22538
|
+
apiPayload['limit'] = limit;
|
|
22539
|
+
}
|
|
22540
|
+
if (typeof offset !== 'undefined') {
|
|
22541
|
+
apiPayload['offset'] = offset;
|
|
22542
|
+
}
|
|
22543
|
+
if (typeof order !== 'undefined') {
|
|
22544
|
+
apiPayload['order'] = order;
|
|
22545
|
+
}
|
|
22210
22546
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22211
22547
|
const apiHeaders = {};
|
|
22212
22548
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -22413,12 +22749,48 @@
|
|
|
22413
22749
|
|
|
22414
22750
|
/**
|
|
22415
22751
|
*
|
|
22752
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
22753
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
22754
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22416
22755
|
* @throws {RevenexxException}
|
|
22417
22756
|
* @returns {Promise<{}>}
|
|
22418
22757
|
*/
|
|
22419
|
-
|
|
22758
|
+
|
|
22759
|
+
/**
|
|
22760
|
+
*
|
|
22761
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
22762
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
22763
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22764
|
+
* @throws {RevenexxException}
|
|
22765
|
+
* @returns {Promise<{}>}
|
|
22766
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
22767
|
+
*/
|
|
22768
|
+
|
|
22769
|
+
productsAssociationTypesList(paramsOrFirst, ...rest) {
|
|
22770
|
+
let params;
|
|
22771
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
22772
|
+
params = paramsOrFirst || {};
|
|
22773
|
+
} else {
|
|
22774
|
+
params = {
|
|
22775
|
+
limit: paramsOrFirst,
|
|
22776
|
+
offset: rest[0],
|
|
22777
|
+
order: rest[1]
|
|
22778
|
+
};
|
|
22779
|
+
}
|
|
22780
|
+
const limit = params.limit;
|
|
22781
|
+
const offset = params.offset;
|
|
22782
|
+
const order = params.order;
|
|
22420
22783
|
const apiPath = '/v1/products/association_types';
|
|
22421
22784
|
const apiPayload = {};
|
|
22785
|
+
if (typeof limit !== 'undefined') {
|
|
22786
|
+
apiPayload['limit'] = limit;
|
|
22787
|
+
}
|
|
22788
|
+
if (typeof offset !== 'undefined') {
|
|
22789
|
+
apiPayload['offset'] = offset;
|
|
22790
|
+
}
|
|
22791
|
+
if (typeof order !== 'undefined') {
|
|
22792
|
+
apiPayload['order'] = order;
|
|
22793
|
+
}
|
|
22422
22794
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22423
22795
|
const apiHeaders = {};
|
|
22424
22796
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -22622,12 +22994,48 @@
|
|
|
22622
22994
|
|
|
22623
22995
|
/**
|
|
22624
22996
|
*
|
|
22997
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
22998
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
22999
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22625
23000
|
* @throws {RevenexxException}
|
|
22626
23001
|
* @returns {Promise<{}>}
|
|
22627
23002
|
*/
|
|
22628
|
-
|
|
23003
|
+
|
|
23004
|
+
/**
|
|
23005
|
+
*
|
|
23006
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
23007
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
23008
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
23009
|
+
* @throws {RevenexxException}
|
|
23010
|
+
* @returns {Promise<{}>}
|
|
23011
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
23012
|
+
*/
|
|
23013
|
+
|
|
23014
|
+
productsAttributeGroupsList(paramsOrFirst, ...rest) {
|
|
23015
|
+
let params;
|
|
23016
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
23017
|
+
params = paramsOrFirst || {};
|
|
23018
|
+
} else {
|
|
23019
|
+
params = {
|
|
23020
|
+
limit: paramsOrFirst,
|
|
23021
|
+
offset: rest[0],
|
|
23022
|
+
order: rest[1]
|
|
23023
|
+
};
|
|
23024
|
+
}
|
|
23025
|
+
const limit = params.limit;
|
|
23026
|
+
const offset = params.offset;
|
|
23027
|
+
const order = params.order;
|
|
22629
23028
|
const apiPath = '/v1/products/attribute_groups';
|
|
22630
23029
|
const apiPayload = {};
|
|
23030
|
+
if (typeof limit !== 'undefined') {
|
|
23031
|
+
apiPayload['limit'] = limit;
|
|
23032
|
+
}
|
|
23033
|
+
if (typeof offset !== 'undefined') {
|
|
23034
|
+
apiPayload['offset'] = offset;
|
|
23035
|
+
}
|
|
23036
|
+
if (typeof order !== 'undefined') {
|
|
23037
|
+
apiPayload['order'] = order;
|
|
23038
|
+
}
|
|
22631
23039
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22632
23040
|
const apiHeaders = {};
|
|
22633
23041
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -22817,12 +23225,48 @@
|
|
|
22817
23225
|
|
|
22818
23226
|
/**
|
|
22819
23227
|
*
|
|
23228
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
23229
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
23230
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
23231
|
+
* @throws {RevenexxException}
|
|
23232
|
+
* @returns {Promise<{}>}
|
|
23233
|
+
*/
|
|
23234
|
+
|
|
23235
|
+
/**
|
|
23236
|
+
*
|
|
23237
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
23238
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
23239
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22820
23240
|
* @throws {RevenexxException}
|
|
22821
23241
|
* @returns {Promise<{}>}
|
|
23242
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
22822
23243
|
*/
|
|
22823
|
-
|
|
23244
|
+
|
|
23245
|
+
productsAttributeOptionsList(paramsOrFirst, ...rest) {
|
|
23246
|
+
let params;
|
|
23247
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
23248
|
+
params = paramsOrFirst || {};
|
|
23249
|
+
} else {
|
|
23250
|
+
params = {
|
|
23251
|
+
limit: paramsOrFirst,
|
|
23252
|
+
offset: rest[0],
|
|
23253
|
+
order: rest[1]
|
|
23254
|
+
};
|
|
23255
|
+
}
|
|
23256
|
+
const limit = params.limit;
|
|
23257
|
+
const offset = params.offset;
|
|
23258
|
+
const order = params.order;
|
|
22824
23259
|
const apiPath = '/v1/products/attribute_options';
|
|
22825
23260
|
const apiPayload = {};
|
|
23261
|
+
if (typeof limit !== 'undefined') {
|
|
23262
|
+
apiPayload['limit'] = limit;
|
|
23263
|
+
}
|
|
23264
|
+
if (typeof offset !== 'undefined') {
|
|
23265
|
+
apiPayload['offset'] = offset;
|
|
23266
|
+
}
|
|
23267
|
+
if (typeof order !== 'undefined') {
|
|
23268
|
+
apiPayload['order'] = order;
|
|
23269
|
+
}
|
|
22826
23270
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22827
23271
|
const apiHeaders = {};
|
|
22828
23272
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -23043,12 +23487,48 @@
|
|
|
23043
23487
|
|
|
23044
23488
|
/**
|
|
23045
23489
|
*
|
|
23490
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
23491
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
23492
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
23493
|
+
* @throws {RevenexxException}
|
|
23494
|
+
* @returns {Promise<{}>}
|
|
23495
|
+
*/
|
|
23496
|
+
|
|
23497
|
+
/**
|
|
23498
|
+
*
|
|
23499
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
23500
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
23501
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
23046
23502
|
* @throws {RevenexxException}
|
|
23047
23503
|
* @returns {Promise<{}>}
|
|
23504
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
23048
23505
|
*/
|
|
23049
|
-
|
|
23506
|
+
|
|
23507
|
+
productsAttributesList(paramsOrFirst, ...rest) {
|
|
23508
|
+
let params;
|
|
23509
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
23510
|
+
params = paramsOrFirst || {};
|
|
23511
|
+
} else {
|
|
23512
|
+
params = {
|
|
23513
|
+
limit: paramsOrFirst,
|
|
23514
|
+
offset: rest[0],
|
|
23515
|
+
order: rest[1]
|
|
23516
|
+
};
|
|
23517
|
+
}
|
|
23518
|
+
const limit = params.limit;
|
|
23519
|
+
const offset = params.offset;
|
|
23520
|
+
const order = params.order;
|
|
23050
23521
|
const apiPath = '/v1/products/attributes';
|
|
23051
23522
|
const apiPayload = {};
|
|
23523
|
+
if (typeof limit !== 'undefined') {
|
|
23524
|
+
apiPayload['limit'] = limit;
|
|
23525
|
+
}
|
|
23526
|
+
if (typeof offset !== 'undefined') {
|
|
23527
|
+
apiPayload['offset'] = offset;
|
|
23528
|
+
}
|
|
23529
|
+
if (typeof order !== 'undefined') {
|
|
23530
|
+
apiPayload['order'] = order;
|
|
23531
|
+
}
|
|
23052
23532
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23053
23533
|
const apiHeaders = {};
|
|
23054
23534
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -23439,12 +23919,48 @@
|
|
|
23439
23919
|
|
|
23440
23920
|
/**
|
|
23441
23921
|
*
|
|
23922
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
23923
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
23924
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
23442
23925
|
* @throws {RevenexxException}
|
|
23443
23926
|
* @returns {Promise<{}>}
|
|
23444
23927
|
*/
|
|
23445
|
-
|
|
23928
|
+
|
|
23929
|
+
/**
|
|
23930
|
+
*
|
|
23931
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
23932
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
23933
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
23934
|
+
* @throws {RevenexxException}
|
|
23935
|
+
* @returns {Promise<{}>}
|
|
23936
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
23937
|
+
*/
|
|
23938
|
+
|
|
23939
|
+
productsCategoriesList(paramsOrFirst, ...rest) {
|
|
23940
|
+
let params;
|
|
23941
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
23942
|
+
params = paramsOrFirst || {};
|
|
23943
|
+
} else {
|
|
23944
|
+
params = {
|
|
23945
|
+
limit: paramsOrFirst,
|
|
23946
|
+
offset: rest[0],
|
|
23947
|
+
order: rest[1]
|
|
23948
|
+
};
|
|
23949
|
+
}
|
|
23950
|
+
const limit = params.limit;
|
|
23951
|
+
const offset = params.offset;
|
|
23952
|
+
const order = params.order;
|
|
23446
23953
|
const apiPath = '/v1/products/categories';
|
|
23447
23954
|
const apiPayload = {};
|
|
23955
|
+
if (typeof limit !== 'undefined') {
|
|
23956
|
+
apiPayload['limit'] = limit;
|
|
23957
|
+
}
|
|
23958
|
+
if (typeof offset !== 'undefined') {
|
|
23959
|
+
apiPayload['offset'] = offset;
|
|
23960
|
+
}
|
|
23961
|
+
if (typeof order !== 'undefined') {
|
|
23962
|
+
apiPayload['order'] = order;
|
|
23963
|
+
}
|
|
23448
23964
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23449
23965
|
const apiHeaders = {};
|
|
23450
23966
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -23676,12 +24192,48 @@
|
|
|
23676
24192
|
|
|
23677
24193
|
/**
|
|
23678
24194
|
*
|
|
24195
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
24196
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
24197
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
23679
24198
|
* @throws {RevenexxException}
|
|
23680
24199
|
* @returns {Promise<{}>}
|
|
23681
24200
|
*/
|
|
23682
|
-
|
|
24201
|
+
|
|
24202
|
+
/**
|
|
24203
|
+
*
|
|
24204
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
24205
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
24206
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
24207
|
+
* @throws {RevenexxException}
|
|
24208
|
+
* @returns {Promise<{}>}
|
|
24209
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
24210
|
+
*/
|
|
24211
|
+
|
|
24212
|
+
productsFamiliesList(paramsOrFirst, ...rest) {
|
|
24213
|
+
let params;
|
|
24214
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
24215
|
+
params = paramsOrFirst || {};
|
|
24216
|
+
} else {
|
|
24217
|
+
params = {
|
|
24218
|
+
limit: paramsOrFirst,
|
|
24219
|
+
offset: rest[0],
|
|
24220
|
+
order: rest[1]
|
|
24221
|
+
};
|
|
24222
|
+
}
|
|
24223
|
+
const limit = params.limit;
|
|
24224
|
+
const offset = params.offset;
|
|
24225
|
+
const order = params.order;
|
|
23683
24226
|
const apiPath = '/v1/products/families';
|
|
23684
24227
|
const apiPayload = {};
|
|
24228
|
+
if (typeof limit !== 'undefined') {
|
|
24229
|
+
apiPayload['limit'] = limit;
|
|
24230
|
+
}
|
|
24231
|
+
if (typeof offset !== 'undefined') {
|
|
24232
|
+
apiPayload['offset'] = offset;
|
|
24233
|
+
}
|
|
24234
|
+
if (typeof order !== 'undefined') {
|
|
24235
|
+
apiPayload['order'] = order;
|
|
24236
|
+
}
|
|
23685
24237
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23686
24238
|
const apiHeaders = {};
|
|
23687
24239
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -23885,12 +24437,48 @@
|
|
|
23885
24437
|
|
|
23886
24438
|
/**
|
|
23887
24439
|
*
|
|
24440
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
24441
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
24442
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
23888
24443
|
* @throws {RevenexxException}
|
|
23889
24444
|
* @returns {Promise<{}>}
|
|
23890
24445
|
*/
|
|
23891
|
-
|
|
24446
|
+
|
|
24447
|
+
/**
|
|
24448
|
+
*
|
|
24449
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
24450
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
24451
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
24452
|
+
* @throws {RevenexxException}
|
|
24453
|
+
* @returns {Promise<{}>}
|
|
24454
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
24455
|
+
*/
|
|
24456
|
+
|
|
24457
|
+
productsFamilyAttributesList(paramsOrFirst, ...rest) {
|
|
24458
|
+
let params;
|
|
24459
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
24460
|
+
params = paramsOrFirst || {};
|
|
24461
|
+
} else {
|
|
24462
|
+
params = {
|
|
24463
|
+
limit: paramsOrFirst,
|
|
24464
|
+
offset: rest[0],
|
|
24465
|
+
order: rest[1]
|
|
24466
|
+
};
|
|
24467
|
+
}
|
|
24468
|
+
const limit = params.limit;
|
|
24469
|
+
const offset = params.offset;
|
|
24470
|
+
const order = params.order;
|
|
23892
24471
|
const apiPath = '/v1/products/family_attributes';
|
|
23893
24472
|
const apiPayload = {};
|
|
24473
|
+
if (typeof limit !== 'undefined') {
|
|
24474
|
+
apiPayload['limit'] = limit;
|
|
24475
|
+
}
|
|
24476
|
+
if (typeof offset !== 'undefined') {
|
|
24477
|
+
apiPayload['offset'] = offset;
|
|
24478
|
+
}
|
|
24479
|
+
if (typeof order !== 'undefined') {
|
|
24480
|
+
apiPayload['order'] = order;
|
|
24481
|
+
}
|
|
23894
24482
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23895
24483
|
const apiHeaders = {};
|
|
23896
24484
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -24111,12 +24699,48 @@
|
|
|
24111
24699
|
|
|
24112
24700
|
/**
|
|
24113
24701
|
*
|
|
24702
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
24703
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
24704
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
24114
24705
|
* @throws {RevenexxException}
|
|
24115
24706
|
* @returns {Promise<{}>}
|
|
24116
24707
|
*/
|
|
24117
|
-
|
|
24708
|
+
|
|
24709
|
+
/**
|
|
24710
|
+
*
|
|
24711
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
24712
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
24713
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
24714
|
+
* @throws {RevenexxException}
|
|
24715
|
+
* @returns {Promise<{}>}
|
|
24716
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
24717
|
+
*/
|
|
24718
|
+
|
|
24719
|
+
productsFamilyVariantsList(paramsOrFirst, ...rest) {
|
|
24720
|
+
let params;
|
|
24721
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
24722
|
+
params = paramsOrFirst || {};
|
|
24723
|
+
} else {
|
|
24724
|
+
params = {
|
|
24725
|
+
limit: paramsOrFirst,
|
|
24726
|
+
offset: rest[0],
|
|
24727
|
+
order: rest[1]
|
|
24728
|
+
};
|
|
24729
|
+
}
|
|
24730
|
+
const limit = params.limit;
|
|
24731
|
+
const offset = params.offset;
|
|
24732
|
+
const order = params.order;
|
|
24118
24733
|
const apiPath = '/v1/products/family_variants';
|
|
24119
24734
|
const apiPayload = {};
|
|
24735
|
+
if (typeof limit !== 'undefined') {
|
|
24736
|
+
apiPayload['limit'] = limit;
|
|
24737
|
+
}
|
|
24738
|
+
if (typeof offset !== 'undefined') {
|
|
24739
|
+
apiPayload['offset'] = offset;
|
|
24740
|
+
}
|
|
24741
|
+
if (typeof order !== 'undefined') {
|
|
24742
|
+
apiPayload['order'] = order;
|
|
24743
|
+
}
|
|
24120
24744
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24121
24745
|
const apiHeaders = {};
|
|
24122
24746
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -24323,12 +24947,48 @@
|
|
|
24323
24947
|
|
|
24324
24948
|
/**
|
|
24325
24949
|
*
|
|
24950
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
24951
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
24952
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
24326
24953
|
* @throws {RevenexxException}
|
|
24327
24954
|
* @returns {Promise<{}>}
|
|
24328
24955
|
*/
|
|
24329
|
-
|
|
24956
|
+
|
|
24957
|
+
/**
|
|
24958
|
+
*
|
|
24959
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
24960
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
24961
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
24962
|
+
* @throws {RevenexxException}
|
|
24963
|
+
* @returns {Promise<{}>}
|
|
24964
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
24965
|
+
*/
|
|
24966
|
+
|
|
24967
|
+
productsMeasurementFamiliesList(paramsOrFirst, ...rest) {
|
|
24968
|
+
let params;
|
|
24969
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
24970
|
+
params = paramsOrFirst || {};
|
|
24971
|
+
} else {
|
|
24972
|
+
params = {
|
|
24973
|
+
limit: paramsOrFirst,
|
|
24974
|
+
offset: rest[0],
|
|
24975
|
+
order: rest[1]
|
|
24976
|
+
};
|
|
24977
|
+
}
|
|
24978
|
+
const limit = params.limit;
|
|
24979
|
+
const offset = params.offset;
|
|
24980
|
+
const order = params.order;
|
|
24330
24981
|
const apiPath = '/v1/products/measurement_families';
|
|
24331
24982
|
const apiPayload = {};
|
|
24983
|
+
if (typeof limit !== 'undefined') {
|
|
24984
|
+
apiPayload['limit'] = limit;
|
|
24985
|
+
}
|
|
24986
|
+
if (typeof offset !== 'undefined') {
|
|
24987
|
+
apiPayload['offset'] = offset;
|
|
24988
|
+
}
|
|
24989
|
+
if (typeof order !== 'undefined') {
|
|
24990
|
+
apiPayload['order'] = order;
|
|
24991
|
+
}
|
|
24332
24992
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24333
24993
|
const apiHeaders = {};
|
|
24334
24994
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -24535,12 +25195,48 @@
|
|
|
24535
25195
|
|
|
24536
25196
|
/**
|
|
24537
25197
|
*
|
|
25198
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
25199
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
25200
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
25201
|
+
* @throws {RevenexxException}
|
|
25202
|
+
* @returns {Promise<{}>}
|
|
25203
|
+
*/
|
|
25204
|
+
|
|
25205
|
+
/**
|
|
25206
|
+
*
|
|
25207
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
25208
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
25209
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
24538
25210
|
* @throws {RevenexxException}
|
|
24539
25211
|
* @returns {Promise<{}>}
|
|
25212
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
24540
25213
|
*/
|
|
24541
|
-
|
|
25214
|
+
|
|
25215
|
+
productsProductAssociationsList(paramsOrFirst, ...rest) {
|
|
25216
|
+
let params;
|
|
25217
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
25218
|
+
params = paramsOrFirst || {};
|
|
25219
|
+
} else {
|
|
25220
|
+
params = {
|
|
25221
|
+
limit: paramsOrFirst,
|
|
25222
|
+
offset: rest[0],
|
|
25223
|
+
order: rest[1]
|
|
25224
|
+
};
|
|
25225
|
+
}
|
|
25226
|
+
const limit = params.limit;
|
|
25227
|
+
const offset = params.offset;
|
|
25228
|
+
const order = params.order;
|
|
24542
25229
|
const apiPath = '/v1/products/product_associations';
|
|
24543
25230
|
const apiPayload = {};
|
|
25231
|
+
if (typeof limit !== 'undefined') {
|
|
25232
|
+
apiPayload['limit'] = limit;
|
|
25233
|
+
}
|
|
25234
|
+
if (typeof offset !== 'undefined') {
|
|
25235
|
+
apiPayload['offset'] = offset;
|
|
25236
|
+
}
|
|
25237
|
+
if (typeof order !== 'undefined') {
|
|
25238
|
+
apiPayload['order'] = order;
|
|
25239
|
+
}
|
|
24544
25240
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24545
25241
|
const apiHeaders = {};
|
|
24546
25242
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -24764,12 +25460,48 @@
|
|
|
24764
25460
|
|
|
24765
25461
|
/**
|
|
24766
25462
|
*
|
|
25463
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
25464
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
25465
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
25466
|
+
* @throws {RevenexxException}
|
|
25467
|
+
* @returns {Promise<{}>}
|
|
25468
|
+
*/
|
|
25469
|
+
|
|
25470
|
+
/**
|
|
25471
|
+
*
|
|
25472
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
25473
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
25474
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
24767
25475
|
* @throws {RevenexxException}
|
|
24768
25476
|
* @returns {Promise<{}>}
|
|
25477
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
24769
25478
|
*/
|
|
24770
|
-
|
|
25479
|
+
|
|
25480
|
+
productsProductCategoriesList(paramsOrFirst, ...rest) {
|
|
25481
|
+
let params;
|
|
25482
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
25483
|
+
params = paramsOrFirst || {};
|
|
25484
|
+
} else {
|
|
25485
|
+
params = {
|
|
25486
|
+
limit: paramsOrFirst,
|
|
25487
|
+
offset: rest[0],
|
|
25488
|
+
order: rest[1]
|
|
25489
|
+
};
|
|
25490
|
+
}
|
|
25491
|
+
const limit = params.limit;
|
|
25492
|
+
const offset = params.offset;
|
|
25493
|
+
const order = params.order;
|
|
24771
25494
|
const apiPath = '/v1/products/product_categories';
|
|
24772
25495
|
const apiPayload = {};
|
|
25496
|
+
if (typeof limit !== 'undefined') {
|
|
25497
|
+
apiPayload['limit'] = limit;
|
|
25498
|
+
}
|
|
25499
|
+
if (typeof offset !== 'undefined') {
|
|
25500
|
+
apiPayload['offset'] = offset;
|
|
25501
|
+
}
|
|
25502
|
+
if (typeof order !== 'undefined') {
|
|
25503
|
+
apiPayload['order'] = order;
|
|
25504
|
+
}
|
|
24773
25505
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24774
25506
|
const apiHeaders = {};
|
|
24775
25507
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -24962,12 +25694,48 @@
|
|
|
24962
25694
|
|
|
24963
25695
|
/**
|
|
24964
25696
|
*
|
|
25697
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
25698
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
25699
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
25700
|
+
* @throws {RevenexxException}
|
|
25701
|
+
* @returns {Promise<{}>}
|
|
25702
|
+
*/
|
|
25703
|
+
|
|
25704
|
+
/**
|
|
25705
|
+
*
|
|
25706
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
25707
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
25708
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
24965
25709
|
* @throws {RevenexxException}
|
|
24966
25710
|
* @returns {Promise<{}>}
|
|
25711
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
24967
25712
|
*/
|
|
24968
|
-
|
|
25713
|
+
|
|
25714
|
+
productsReferenceEntitiesList(paramsOrFirst, ...rest) {
|
|
25715
|
+
let params;
|
|
25716
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
25717
|
+
params = paramsOrFirst || {};
|
|
25718
|
+
} else {
|
|
25719
|
+
params = {
|
|
25720
|
+
limit: paramsOrFirst,
|
|
25721
|
+
offset: rest[0],
|
|
25722
|
+
order: rest[1]
|
|
25723
|
+
};
|
|
25724
|
+
}
|
|
25725
|
+
const limit = params.limit;
|
|
25726
|
+
const offset = params.offset;
|
|
25727
|
+
const order = params.order;
|
|
24969
25728
|
const apiPath = '/v1/products/reference_entities';
|
|
24970
25729
|
const apiPayload = {};
|
|
25730
|
+
if (typeof limit !== 'undefined') {
|
|
25731
|
+
apiPayload['limit'] = limit;
|
|
25732
|
+
}
|
|
25733
|
+
if (typeof offset !== 'undefined') {
|
|
25734
|
+
apiPayload['offset'] = offset;
|
|
25735
|
+
}
|
|
25736
|
+
if (typeof order !== 'undefined') {
|
|
25737
|
+
apiPayload['order'] = order;
|
|
25738
|
+
}
|
|
24971
25739
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24972
25740
|
const apiHeaders = {};
|
|
24973
25741
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -25157,12 +25925,48 @@
|
|
|
25157
25925
|
|
|
25158
25926
|
/**
|
|
25159
25927
|
*
|
|
25928
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
25929
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
25930
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
25160
25931
|
* @throws {RevenexxException}
|
|
25161
25932
|
* @returns {Promise<{}>}
|
|
25162
25933
|
*/
|
|
25163
|
-
|
|
25934
|
+
|
|
25935
|
+
/**
|
|
25936
|
+
*
|
|
25937
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
25938
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
25939
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
25940
|
+
* @throws {RevenexxException}
|
|
25941
|
+
* @returns {Promise<{}>}
|
|
25942
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
25943
|
+
*/
|
|
25944
|
+
|
|
25945
|
+
productsReferenceEntityRecordsList(paramsOrFirst, ...rest) {
|
|
25946
|
+
let params;
|
|
25947
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
25948
|
+
params = paramsOrFirst || {};
|
|
25949
|
+
} else {
|
|
25950
|
+
params = {
|
|
25951
|
+
limit: paramsOrFirst,
|
|
25952
|
+
offset: rest[0],
|
|
25953
|
+
order: rest[1]
|
|
25954
|
+
};
|
|
25955
|
+
}
|
|
25956
|
+
const limit = params.limit;
|
|
25957
|
+
const offset = params.offset;
|
|
25958
|
+
const order = params.order;
|
|
25164
25959
|
const apiPath = '/v1/products/reference_entity_records';
|
|
25165
25960
|
const apiPayload = {};
|
|
25961
|
+
if (typeof limit !== 'undefined') {
|
|
25962
|
+
apiPayload['limit'] = limit;
|
|
25963
|
+
}
|
|
25964
|
+
if (typeof offset !== 'undefined') {
|
|
25965
|
+
apiPayload['offset'] = offset;
|
|
25966
|
+
}
|
|
25967
|
+
if (typeof order !== 'undefined') {
|
|
25968
|
+
apiPayload['order'] = order;
|
|
25969
|
+
}
|
|
25166
25970
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
25167
25971
|
const apiHeaders = {};
|
|
25168
25972
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|