@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/cjs/sdk.js
CHANGED
|
@@ -657,7 +657,7 @@ class Client {
|
|
|
657
657
|
'x-sdk-name': 'Revenexx Web',
|
|
658
658
|
'x-sdk-platform': '',
|
|
659
659
|
'x-sdk-language': 'web',
|
|
660
|
-
'x-sdk-version': '0.0.
|
|
660
|
+
'x-sdk-version': '0.0.12'
|
|
661
661
|
};
|
|
662
662
|
|
|
663
663
|
/**
|
|
@@ -3766,12 +3766,69 @@ class Carts {
|
|
|
3766
3766
|
|
|
3767
3767
|
/**
|
|
3768
3768
|
*
|
|
3769
|
+
* @param {string} params.contactId - Filter to one owning contact.
|
|
3770
|
+
* @param {string} params.sessionKey - Filter to one guest session.
|
|
3771
|
+
* @param {string} params.status - Filter by cart status (e.g. active).
|
|
3772
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
3773
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
3774
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
3775
|
+
* @throws {RevenexxException}
|
|
3776
|
+
* @returns {Promise<{}>}
|
|
3777
|
+
*/
|
|
3778
|
+
|
|
3779
|
+
/**
|
|
3780
|
+
*
|
|
3781
|
+
* @param {string} contactId - Filter to one owning contact.
|
|
3782
|
+
* @param {string} sessionKey - Filter to one guest session.
|
|
3783
|
+
* @param {string} status - Filter by cart status (e.g. active).
|
|
3784
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
3785
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
3786
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
3769
3787
|
* @throws {RevenexxException}
|
|
3770
3788
|
* @returns {Promise<{}>}
|
|
3789
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
3771
3790
|
*/
|
|
3772
|
-
|
|
3791
|
+
|
|
3792
|
+
cartsList(paramsOrFirst, ...rest) {
|
|
3793
|
+
let params;
|
|
3794
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
3795
|
+
params = paramsOrFirst || {};
|
|
3796
|
+
} else {
|
|
3797
|
+
params = {
|
|
3798
|
+
contactId: paramsOrFirst,
|
|
3799
|
+
sessionKey: rest[0],
|
|
3800
|
+
status: rest[1],
|
|
3801
|
+
limit: rest[2],
|
|
3802
|
+
offset: rest[3],
|
|
3803
|
+
order: rest[4]
|
|
3804
|
+
};
|
|
3805
|
+
}
|
|
3806
|
+
const contactId = params.contactId;
|
|
3807
|
+
const sessionKey = params.sessionKey;
|
|
3808
|
+
const status = params.status;
|
|
3809
|
+
const limit = params.limit;
|
|
3810
|
+
const offset = params.offset;
|
|
3811
|
+
const order = params.order;
|
|
3773
3812
|
const apiPath = '/v1/carts';
|
|
3774
3813
|
const apiPayload = {};
|
|
3814
|
+
if (typeof contactId !== 'undefined') {
|
|
3815
|
+
apiPayload['contact_id'] = contactId;
|
|
3816
|
+
}
|
|
3817
|
+
if (typeof sessionKey !== 'undefined') {
|
|
3818
|
+
apiPayload['session_key'] = sessionKey;
|
|
3819
|
+
}
|
|
3820
|
+
if (typeof status !== 'undefined') {
|
|
3821
|
+
apiPayload['status'] = status;
|
|
3822
|
+
}
|
|
3823
|
+
if (typeof limit !== 'undefined') {
|
|
3824
|
+
apiPayload['limit'] = limit;
|
|
3825
|
+
}
|
|
3826
|
+
if (typeof offset !== 'undefined') {
|
|
3827
|
+
apiPayload['offset'] = offset;
|
|
3828
|
+
}
|
|
3829
|
+
if (typeof order !== 'undefined') {
|
|
3830
|
+
apiPayload['order'] = order;
|
|
3831
|
+
}
|
|
3775
3832
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3776
3833
|
const apiHeaders = {};
|
|
3777
3834
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -5397,12 +5454,62 @@ class Customers {
|
|
|
5397
5454
|
|
|
5398
5455
|
/**
|
|
5399
5456
|
*
|
|
5457
|
+
* @param {string} params.contactId - Filter to one owning contact.
|
|
5458
|
+
* @param {string} params.organizationId - Filter to one organization.
|
|
5459
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
5460
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
5461
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
5462
|
+
* @throws {RevenexxException}
|
|
5463
|
+
* @returns {Promise<{}>}
|
|
5464
|
+
*/
|
|
5465
|
+
|
|
5466
|
+
/**
|
|
5467
|
+
*
|
|
5468
|
+
* @param {string} contactId - Filter to one owning contact.
|
|
5469
|
+
* @param {string} organizationId - Filter to one organization.
|
|
5470
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
5471
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
5472
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
5400
5473
|
* @throws {RevenexxException}
|
|
5401
5474
|
* @returns {Promise<{}>}
|
|
5475
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
5402
5476
|
*/
|
|
5403
|
-
|
|
5477
|
+
|
|
5478
|
+
customersAddressesList(paramsOrFirst, ...rest) {
|
|
5479
|
+
let params;
|
|
5480
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
5481
|
+
params = paramsOrFirst || {};
|
|
5482
|
+
} else {
|
|
5483
|
+
params = {
|
|
5484
|
+
contactId: paramsOrFirst,
|
|
5485
|
+
organizationId: rest[0],
|
|
5486
|
+
limit: rest[1],
|
|
5487
|
+
offset: rest[2],
|
|
5488
|
+
order: rest[3]
|
|
5489
|
+
};
|
|
5490
|
+
}
|
|
5491
|
+
const contactId = params.contactId;
|
|
5492
|
+
const organizationId = params.organizationId;
|
|
5493
|
+
const limit = params.limit;
|
|
5494
|
+
const offset = params.offset;
|
|
5495
|
+
const order = params.order;
|
|
5404
5496
|
const apiPath = '/v1/customers/addresses';
|
|
5405
5497
|
const apiPayload = {};
|
|
5498
|
+
if (typeof contactId !== 'undefined') {
|
|
5499
|
+
apiPayload['contact_id'] = contactId;
|
|
5500
|
+
}
|
|
5501
|
+
if (typeof organizationId !== 'undefined') {
|
|
5502
|
+
apiPayload['organization_id'] = organizationId;
|
|
5503
|
+
}
|
|
5504
|
+
if (typeof limit !== 'undefined') {
|
|
5505
|
+
apiPayload['limit'] = limit;
|
|
5506
|
+
}
|
|
5507
|
+
if (typeof offset !== 'undefined') {
|
|
5508
|
+
apiPayload['offset'] = offset;
|
|
5509
|
+
}
|
|
5510
|
+
if (typeof order !== 'undefined') {
|
|
5511
|
+
apiPayload['order'] = order;
|
|
5512
|
+
}
|
|
5406
5513
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5407
5514
|
const apiHeaders = {};
|
|
5408
5515
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -6083,12 +6190,76 @@ class Customers {
|
|
|
6083
6190
|
|
|
6084
6191
|
/**
|
|
6085
6192
|
*
|
|
6193
|
+
* @param {string} params.organizationId - Filter to one organization.
|
|
6194
|
+
* @param {string} params.role - Filter by role (buyer | approver | admin | requester).
|
|
6195
|
+
* @param {string} params.status - Filter by status (invited | active | blocked).
|
|
6196
|
+
* @param {string} params.email - Filter by exact email.
|
|
6197
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
6198
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
6199
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
6200
|
+
* @throws {RevenexxException}
|
|
6201
|
+
* @returns {Promise<{}>}
|
|
6202
|
+
*/
|
|
6203
|
+
|
|
6204
|
+
/**
|
|
6205
|
+
*
|
|
6206
|
+
* @param {string} organizationId - Filter to one organization.
|
|
6207
|
+
* @param {string} role - Filter by role (buyer | approver | admin | requester).
|
|
6208
|
+
* @param {string} status - Filter by status (invited | active | blocked).
|
|
6209
|
+
* @param {string} email - Filter by exact email.
|
|
6210
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
6211
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
6212
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
6086
6213
|
* @throws {RevenexxException}
|
|
6087
6214
|
* @returns {Promise<{}>}
|
|
6215
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
6088
6216
|
*/
|
|
6089
|
-
|
|
6217
|
+
|
|
6218
|
+
customersContactsList(paramsOrFirst, ...rest) {
|
|
6219
|
+
let params;
|
|
6220
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
6221
|
+
params = paramsOrFirst || {};
|
|
6222
|
+
} else {
|
|
6223
|
+
params = {
|
|
6224
|
+
organizationId: paramsOrFirst,
|
|
6225
|
+
role: rest[0],
|
|
6226
|
+
status: rest[1],
|
|
6227
|
+
email: rest[2],
|
|
6228
|
+
limit: rest[3],
|
|
6229
|
+
offset: rest[4],
|
|
6230
|
+
order: rest[5]
|
|
6231
|
+
};
|
|
6232
|
+
}
|
|
6233
|
+
const organizationId = params.organizationId;
|
|
6234
|
+
const role = params.role;
|
|
6235
|
+
const status = params.status;
|
|
6236
|
+
const email = params.email;
|
|
6237
|
+
const limit = params.limit;
|
|
6238
|
+
const offset = params.offset;
|
|
6239
|
+
const order = params.order;
|
|
6090
6240
|
const apiPath = '/v1/customers/contacts';
|
|
6091
6241
|
const apiPayload = {};
|
|
6242
|
+
if (typeof organizationId !== 'undefined') {
|
|
6243
|
+
apiPayload['organization_id'] = organizationId;
|
|
6244
|
+
}
|
|
6245
|
+
if (typeof role !== 'undefined') {
|
|
6246
|
+
apiPayload['role'] = role;
|
|
6247
|
+
}
|
|
6248
|
+
if (typeof status !== 'undefined') {
|
|
6249
|
+
apiPayload['status'] = status;
|
|
6250
|
+
}
|
|
6251
|
+
if (typeof email !== 'undefined') {
|
|
6252
|
+
apiPayload['email'] = email;
|
|
6253
|
+
}
|
|
6254
|
+
if (typeof limit !== 'undefined') {
|
|
6255
|
+
apiPayload['limit'] = limit;
|
|
6256
|
+
}
|
|
6257
|
+
if (typeof offset !== 'undefined') {
|
|
6258
|
+
apiPayload['offset'] = offset;
|
|
6259
|
+
}
|
|
6260
|
+
if (typeof order !== 'undefined') {
|
|
6261
|
+
apiPayload['order'] = order;
|
|
6262
|
+
}
|
|
6092
6263
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6093
6264
|
const apiHeaders = {};
|
|
6094
6265
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -11926,12 +12097,69 @@ class Orderlists {
|
|
|
11926
12097
|
|
|
11927
12098
|
/**
|
|
11928
12099
|
*
|
|
12100
|
+
* @param {string} params.ownerId - Filter to one owning contact.
|
|
12101
|
+
* @param {string} params.organizationId - Filter to one organization.
|
|
12102
|
+
* @param {string} params.kind - Filter by list kind (shopping | label).
|
|
12103
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
12104
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
12105
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
12106
|
+
* @throws {RevenexxException}
|
|
12107
|
+
* @returns {Promise<{}>}
|
|
12108
|
+
*/
|
|
12109
|
+
|
|
12110
|
+
/**
|
|
12111
|
+
*
|
|
12112
|
+
* @param {string} ownerId - Filter to one owning contact.
|
|
12113
|
+
* @param {string} organizationId - Filter to one organization.
|
|
12114
|
+
* @param {string} kind - Filter by list kind (shopping | label).
|
|
12115
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
12116
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
12117
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
11929
12118
|
* @throws {RevenexxException}
|
|
11930
12119
|
* @returns {Promise<{}>}
|
|
12120
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
11931
12121
|
*/
|
|
11932
|
-
|
|
12122
|
+
|
|
12123
|
+
orderlistsList(paramsOrFirst, ...rest) {
|
|
12124
|
+
let params;
|
|
12125
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
12126
|
+
params = paramsOrFirst || {};
|
|
12127
|
+
} else {
|
|
12128
|
+
params = {
|
|
12129
|
+
ownerId: paramsOrFirst,
|
|
12130
|
+
organizationId: rest[0],
|
|
12131
|
+
kind: rest[1],
|
|
12132
|
+
limit: rest[2],
|
|
12133
|
+
offset: rest[3],
|
|
12134
|
+
order: rest[4]
|
|
12135
|
+
};
|
|
12136
|
+
}
|
|
12137
|
+
const ownerId = params.ownerId;
|
|
12138
|
+
const organizationId = params.organizationId;
|
|
12139
|
+
const kind = params.kind;
|
|
12140
|
+
const limit = params.limit;
|
|
12141
|
+
const offset = params.offset;
|
|
12142
|
+
const order = params.order;
|
|
11933
12143
|
const apiPath = '/v1/orderlists';
|
|
11934
12144
|
const apiPayload = {};
|
|
12145
|
+
if (typeof ownerId !== 'undefined') {
|
|
12146
|
+
apiPayload['owner_id'] = ownerId;
|
|
12147
|
+
}
|
|
12148
|
+
if (typeof organizationId !== 'undefined') {
|
|
12149
|
+
apiPayload['organization_id'] = organizationId;
|
|
12150
|
+
}
|
|
12151
|
+
if (typeof kind !== 'undefined') {
|
|
12152
|
+
apiPayload['kind'] = kind;
|
|
12153
|
+
}
|
|
12154
|
+
if (typeof limit !== 'undefined') {
|
|
12155
|
+
apiPayload['limit'] = limit;
|
|
12156
|
+
}
|
|
12157
|
+
if (typeof offset !== 'undefined') {
|
|
12158
|
+
apiPayload['offset'] = offset;
|
|
12159
|
+
}
|
|
12160
|
+
if (typeof order !== 'undefined') {
|
|
12161
|
+
apiPayload['order'] = order;
|
|
12162
|
+
}
|
|
11935
12163
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11936
12164
|
const apiHeaders = {};
|
|
11937
12165
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -18125,12 +18353,48 @@ class Products {
|
|
|
18125
18353
|
|
|
18126
18354
|
/**
|
|
18127
18355
|
*
|
|
18356
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
18357
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
18358
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18359
|
+
* @throws {RevenexxException}
|
|
18360
|
+
* @returns {Promise<{}>}
|
|
18361
|
+
*/
|
|
18362
|
+
|
|
18363
|
+
/**
|
|
18364
|
+
*
|
|
18365
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
18366
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
18367
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18128
18368
|
* @throws {RevenexxException}
|
|
18129
18369
|
* @returns {Promise<{}>}
|
|
18370
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
18130
18371
|
*/
|
|
18131
|
-
|
|
18372
|
+
|
|
18373
|
+
productsList(paramsOrFirst, ...rest) {
|
|
18374
|
+
let params;
|
|
18375
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
18376
|
+
params = paramsOrFirst || {};
|
|
18377
|
+
} else {
|
|
18378
|
+
params = {
|
|
18379
|
+
limit: paramsOrFirst,
|
|
18380
|
+
offset: rest[0],
|
|
18381
|
+
order: rest[1]
|
|
18382
|
+
};
|
|
18383
|
+
}
|
|
18384
|
+
const limit = params.limit;
|
|
18385
|
+
const offset = params.offset;
|
|
18386
|
+
const order = params.order;
|
|
18132
18387
|
const apiPath = '/v1/products';
|
|
18133
18388
|
const apiPayload = {};
|
|
18389
|
+
if (typeof limit !== 'undefined') {
|
|
18390
|
+
apiPayload['limit'] = limit;
|
|
18391
|
+
}
|
|
18392
|
+
if (typeof offset !== 'undefined') {
|
|
18393
|
+
apiPayload['offset'] = offset;
|
|
18394
|
+
}
|
|
18395
|
+
if (typeof order !== 'undefined') {
|
|
18396
|
+
apiPayload['order'] = order;
|
|
18397
|
+
}
|
|
18134
18398
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18135
18399
|
const apiHeaders = {};
|
|
18136
18400
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -18248,12 +18512,48 @@ class Products {
|
|
|
18248
18512
|
|
|
18249
18513
|
/**
|
|
18250
18514
|
*
|
|
18515
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
18516
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
18517
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18518
|
+
* @throws {RevenexxException}
|
|
18519
|
+
* @returns {Promise<{}>}
|
|
18520
|
+
*/
|
|
18521
|
+
|
|
18522
|
+
/**
|
|
18523
|
+
*
|
|
18524
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
18525
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
18526
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18251
18527
|
* @throws {RevenexxException}
|
|
18252
18528
|
* @returns {Promise<{}>}
|
|
18529
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
18253
18530
|
*/
|
|
18254
|
-
|
|
18531
|
+
|
|
18532
|
+
productsAssetFamiliesList(paramsOrFirst, ...rest) {
|
|
18533
|
+
let params;
|
|
18534
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
18535
|
+
params = paramsOrFirst || {};
|
|
18536
|
+
} else {
|
|
18537
|
+
params = {
|
|
18538
|
+
limit: paramsOrFirst,
|
|
18539
|
+
offset: rest[0],
|
|
18540
|
+
order: rest[1]
|
|
18541
|
+
};
|
|
18542
|
+
}
|
|
18543
|
+
const limit = params.limit;
|
|
18544
|
+
const offset = params.offset;
|
|
18545
|
+
const order = params.order;
|
|
18255
18546
|
const apiPath = '/v1/products/asset_families';
|
|
18256
18547
|
const apiPayload = {};
|
|
18548
|
+
if (typeof limit !== 'undefined') {
|
|
18549
|
+
apiPayload['limit'] = limit;
|
|
18550
|
+
}
|
|
18551
|
+
if (typeof offset !== 'undefined') {
|
|
18552
|
+
apiPayload['offset'] = offset;
|
|
18553
|
+
}
|
|
18554
|
+
if (typeof order !== 'undefined') {
|
|
18555
|
+
apiPayload['order'] = order;
|
|
18556
|
+
}
|
|
18257
18557
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18258
18558
|
const apiHeaders = {};
|
|
18259
18559
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -18443,12 +18743,48 @@ class Products {
|
|
|
18443
18743
|
|
|
18444
18744
|
/**
|
|
18445
18745
|
*
|
|
18746
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
18747
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
18748
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18446
18749
|
* @throws {RevenexxException}
|
|
18447
18750
|
* @returns {Promise<{}>}
|
|
18448
18751
|
*/
|
|
18449
|
-
|
|
18752
|
+
|
|
18753
|
+
/**
|
|
18754
|
+
*
|
|
18755
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
18756
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
18757
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18758
|
+
* @throws {RevenexxException}
|
|
18759
|
+
* @returns {Promise<{}>}
|
|
18760
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
18761
|
+
*/
|
|
18762
|
+
|
|
18763
|
+
productsAssetsList(paramsOrFirst, ...rest) {
|
|
18764
|
+
let params;
|
|
18765
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
18766
|
+
params = paramsOrFirst || {};
|
|
18767
|
+
} else {
|
|
18768
|
+
params = {
|
|
18769
|
+
limit: paramsOrFirst,
|
|
18770
|
+
offset: rest[0],
|
|
18771
|
+
order: rest[1]
|
|
18772
|
+
};
|
|
18773
|
+
}
|
|
18774
|
+
const limit = params.limit;
|
|
18775
|
+
const offset = params.offset;
|
|
18776
|
+
const order = params.order;
|
|
18450
18777
|
const apiPath = '/v1/products/assets';
|
|
18451
18778
|
const apiPayload = {};
|
|
18779
|
+
if (typeof limit !== 'undefined') {
|
|
18780
|
+
apiPayload['limit'] = limit;
|
|
18781
|
+
}
|
|
18782
|
+
if (typeof offset !== 'undefined') {
|
|
18783
|
+
apiPayload['offset'] = offset;
|
|
18784
|
+
}
|
|
18785
|
+
if (typeof order !== 'undefined') {
|
|
18786
|
+
apiPayload['order'] = order;
|
|
18787
|
+
}
|
|
18452
18788
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18453
18789
|
const apiHeaders = {};
|
|
18454
18790
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -18655,12 +18991,48 @@ class Products {
|
|
|
18655
18991
|
|
|
18656
18992
|
/**
|
|
18657
18993
|
*
|
|
18994
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
18995
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
18996
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18658
18997
|
* @throws {RevenexxException}
|
|
18659
18998
|
* @returns {Promise<{}>}
|
|
18660
18999
|
*/
|
|
18661
|
-
|
|
19000
|
+
|
|
19001
|
+
/**
|
|
19002
|
+
*
|
|
19003
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
19004
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
19005
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19006
|
+
* @throws {RevenexxException}
|
|
19007
|
+
* @returns {Promise<{}>}
|
|
19008
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
19009
|
+
*/
|
|
19010
|
+
|
|
19011
|
+
productsAssociationTypesList(paramsOrFirst, ...rest) {
|
|
19012
|
+
let params;
|
|
19013
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
19014
|
+
params = paramsOrFirst || {};
|
|
19015
|
+
} else {
|
|
19016
|
+
params = {
|
|
19017
|
+
limit: paramsOrFirst,
|
|
19018
|
+
offset: rest[0],
|
|
19019
|
+
order: rest[1]
|
|
19020
|
+
};
|
|
19021
|
+
}
|
|
19022
|
+
const limit = params.limit;
|
|
19023
|
+
const offset = params.offset;
|
|
19024
|
+
const order = params.order;
|
|
18662
19025
|
const apiPath = '/v1/products/association_types';
|
|
18663
19026
|
const apiPayload = {};
|
|
19027
|
+
if (typeof limit !== 'undefined') {
|
|
19028
|
+
apiPayload['limit'] = limit;
|
|
19029
|
+
}
|
|
19030
|
+
if (typeof offset !== 'undefined') {
|
|
19031
|
+
apiPayload['offset'] = offset;
|
|
19032
|
+
}
|
|
19033
|
+
if (typeof order !== 'undefined') {
|
|
19034
|
+
apiPayload['order'] = order;
|
|
19035
|
+
}
|
|
18664
19036
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18665
19037
|
const apiHeaders = {};
|
|
18666
19038
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -18864,12 +19236,48 @@ class Products {
|
|
|
18864
19236
|
|
|
18865
19237
|
/**
|
|
18866
19238
|
*
|
|
19239
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
19240
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
19241
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18867
19242
|
* @throws {RevenexxException}
|
|
18868
19243
|
* @returns {Promise<{}>}
|
|
18869
19244
|
*/
|
|
18870
|
-
|
|
19245
|
+
|
|
19246
|
+
/**
|
|
19247
|
+
*
|
|
19248
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
19249
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
19250
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19251
|
+
* @throws {RevenexxException}
|
|
19252
|
+
* @returns {Promise<{}>}
|
|
19253
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
19254
|
+
*/
|
|
19255
|
+
|
|
19256
|
+
productsAttributeGroupsList(paramsOrFirst, ...rest) {
|
|
19257
|
+
let params;
|
|
19258
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
19259
|
+
params = paramsOrFirst || {};
|
|
19260
|
+
} else {
|
|
19261
|
+
params = {
|
|
19262
|
+
limit: paramsOrFirst,
|
|
19263
|
+
offset: rest[0],
|
|
19264
|
+
order: rest[1]
|
|
19265
|
+
};
|
|
19266
|
+
}
|
|
19267
|
+
const limit = params.limit;
|
|
19268
|
+
const offset = params.offset;
|
|
19269
|
+
const order = params.order;
|
|
18871
19270
|
const apiPath = '/v1/products/attribute_groups';
|
|
18872
19271
|
const apiPayload = {};
|
|
19272
|
+
if (typeof limit !== 'undefined') {
|
|
19273
|
+
apiPayload['limit'] = limit;
|
|
19274
|
+
}
|
|
19275
|
+
if (typeof offset !== 'undefined') {
|
|
19276
|
+
apiPayload['offset'] = offset;
|
|
19277
|
+
}
|
|
19278
|
+
if (typeof order !== 'undefined') {
|
|
19279
|
+
apiPayload['order'] = order;
|
|
19280
|
+
}
|
|
18873
19281
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18874
19282
|
const apiHeaders = {};
|
|
18875
19283
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -19059,12 +19467,48 @@ class Products {
|
|
|
19059
19467
|
|
|
19060
19468
|
/**
|
|
19061
19469
|
*
|
|
19470
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
19471
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
19472
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19473
|
+
* @throws {RevenexxException}
|
|
19474
|
+
* @returns {Promise<{}>}
|
|
19475
|
+
*/
|
|
19476
|
+
|
|
19477
|
+
/**
|
|
19478
|
+
*
|
|
19479
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
19480
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
19481
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19062
19482
|
* @throws {RevenexxException}
|
|
19063
19483
|
* @returns {Promise<{}>}
|
|
19484
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
19064
19485
|
*/
|
|
19065
|
-
|
|
19486
|
+
|
|
19487
|
+
productsAttributeOptionsList(paramsOrFirst, ...rest) {
|
|
19488
|
+
let params;
|
|
19489
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
19490
|
+
params = paramsOrFirst || {};
|
|
19491
|
+
} else {
|
|
19492
|
+
params = {
|
|
19493
|
+
limit: paramsOrFirst,
|
|
19494
|
+
offset: rest[0],
|
|
19495
|
+
order: rest[1]
|
|
19496
|
+
};
|
|
19497
|
+
}
|
|
19498
|
+
const limit = params.limit;
|
|
19499
|
+
const offset = params.offset;
|
|
19500
|
+
const order = params.order;
|
|
19066
19501
|
const apiPath = '/v1/products/attribute_options';
|
|
19067
19502
|
const apiPayload = {};
|
|
19503
|
+
if (typeof limit !== 'undefined') {
|
|
19504
|
+
apiPayload['limit'] = limit;
|
|
19505
|
+
}
|
|
19506
|
+
if (typeof offset !== 'undefined') {
|
|
19507
|
+
apiPayload['offset'] = offset;
|
|
19508
|
+
}
|
|
19509
|
+
if (typeof order !== 'undefined') {
|
|
19510
|
+
apiPayload['order'] = order;
|
|
19511
|
+
}
|
|
19068
19512
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19069
19513
|
const apiHeaders = {};
|
|
19070
19514
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -19285,12 +19729,48 @@ class Products {
|
|
|
19285
19729
|
|
|
19286
19730
|
/**
|
|
19287
19731
|
*
|
|
19732
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
19733
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
19734
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19735
|
+
* @throws {RevenexxException}
|
|
19736
|
+
* @returns {Promise<{}>}
|
|
19737
|
+
*/
|
|
19738
|
+
|
|
19739
|
+
/**
|
|
19740
|
+
*
|
|
19741
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
19742
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
19743
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19288
19744
|
* @throws {RevenexxException}
|
|
19289
19745
|
* @returns {Promise<{}>}
|
|
19746
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
19290
19747
|
*/
|
|
19291
|
-
|
|
19748
|
+
|
|
19749
|
+
productsAttributesList(paramsOrFirst, ...rest) {
|
|
19750
|
+
let params;
|
|
19751
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
19752
|
+
params = paramsOrFirst || {};
|
|
19753
|
+
} else {
|
|
19754
|
+
params = {
|
|
19755
|
+
limit: paramsOrFirst,
|
|
19756
|
+
offset: rest[0],
|
|
19757
|
+
order: rest[1]
|
|
19758
|
+
};
|
|
19759
|
+
}
|
|
19760
|
+
const limit = params.limit;
|
|
19761
|
+
const offset = params.offset;
|
|
19762
|
+
const order = params.order;
|
|
19292
19763
|
const apiPath = '/v1/products/attributes';
|
|
19293
19764
|
const apiPayload = {};
|
|
19765
|
+
if (typeof limit !== 'undefined') {
|
|
19766
|
+
apiPayload['limit'] = limit;
|
|
19767
|
+
}
|
|
19768
|
+
if (typeof offset !== 'undefined') {
|
|
19769
|
+
apiPayload['offset'] = offset;
|
|
19770
|
+
}
|
|
19771
|
+
if (typeof order !== 'undefined') {
|
|
19772
|
+
apiPayload['order'] = order;
|
|
19773
|
+
}
|
|
19294
19774
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19295
19775
|
const apiHeaders = {};
|
|
19296
19776
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -19681,12 +20161,48 @@ class Products {
|
|
|
19681
20161
|
|
|
19682
20162
|
/**
|
|
19683
20163
|
*
|
|
20164
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
20165
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
20166
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19684
20167
|
* @throws {RevenexxException}
|
|
19685
20168
|
* @returns {Promise<{}>}
|
|
19686
20169
|
*/
|
|
19687
|
-
|
|
20170
|
+
|
|
20171
|
+
/**
|
|
20172
|
+
*
|
|
20173
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
20174
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
20175
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20176
|
+
* @throws {RevenexxException}
|
|
20177
|
+
* @returns {Promise<{}>}
|
|
20178
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
20179
|
+
*/
|
|
20180
|
+
|
|
20181
|
+
productsCategoriesList(paramsOrFirst, ...rest) {
|
|
20182
|
+
let params;
|
|
20183
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
20184
|
+
params = paramsOrFirst || {};
|
|
20185
|
+
} else {
|
|
20186
|
+
params = {
|
|
20187
|
+
limit: paramsOrFirst,
|
|
20188
|
+
offset: rest[0],
|
|
20189
|
+
order: rest[1]
|
|
20190
|
+
};
|
|
20191
|
+
}
|
|
20192
|
+
const limit = params.limit;
|
|
20193
|
+
const offset = params.offset;
|
|
20194
|
+
const order = params.order;
|
|
19688
20195
|
const apiPath = '/v1/products/categories';
|
|
19689
20196
|
const apiPayload = {};
|
|
20197
|
+
if (typeof limit !== 'undefined') {
|
|
20198
|
+
apiPayload['limit'] = limit;
|
|
20199
|
+
}
|
|
20200
|
+
if (typeof offset !== 'undefined') {
|
|
20201
|
+
apiPayload['offset'] = offset;
|
|
20202
|
+
}
|
|
20203
|
+
if (typeof order !== 'undefined') {
|
|
20204
|
+
apiPayload['order'] = order;
|
|
20205
|
+
}
|
|
19690
20206
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19691
20207
|
const apiHeaders = {};
|
|
19692
20208
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -19918,12 +20434,48 @@ class Products {
|
|
|
19918
20434
|
|
|
19919
20435
|
/**
|
|
19920
20436
|
*
|
|
20437
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
20438
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
20439
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19921
20440
|
* @throws {RevenexxException}
|
|
19922
20441
|
* @returns {Promise<{}>}
|
|
19923
20442
|
*/
|
|
19924
|
-
|
|
20443
|
+
|
|
20444
|
+
/**
|
|
20445
|
+
*
|
|
20446
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
20447
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
20448
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20449
|
+
* @throws {RevenexxException}
|
|
20450
|
+
* @returns {Promise<{}>}
|
|
20451
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
20452
|
+
*/
|
|
20453
|
+
|
|
20454
|
+
productsFamiliesList(paramsOrFirst, ...rest) {
|
|
20455
|
+
let params;
|
|
20456
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
20457
|
+
params = paramsOrFirst || {};
|
|
20458
|
+
} else {
|
|
20459
|
+
params = {
|
|
20460
|
+
limit: paramsOrFirst,
|
|
20461
|
+
offset: rest[0],
|
|
20462
|
+
order: rest[1]
|
|
20463
|
+
};
|
|
20464
|
+
}
|
|
20465
|
+
const limit = params.limit;
|
|
20466
|
+
const offset = params.offset;
|
|
20467
|
+
const order = params.order;
|
|
19925
20468
|
const apiPath = '/v1/products/families';
|
|
19926
20469
|
const apiPayload = {};
|
|
20470
|
+
if (typeof limit !== 'undefined') {
|
|
20471
|
+
apiPayload['limit'] = limit;
|
|
20472
|
+
}
|
|
20473
|
+
if (typeof offset !== 'undefined') {
|
|
20474
|
+
apiPayload['offset'] = offset;
|
|
20475
|
+
}
|
|
20476
|
+
if (typeof order !== 'undefined') {
|
|
20477
|
+
apiPayload['order'] = order;
|
|
20478
|
+
}
|
|
19927
20479
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19928
20480
|
const apiHeaders = {};
|
|
19929
20481
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -20127,12 +20679,48 @@ class Products {
|
|
|
20127
20679
|
|
|
20128
20680
|
/**
|
|
20129
20681
|
*
|
|
20682
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
20683
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
20684
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20130
20685
|
* @throws {RevenexxException}
|
|
20131
20686
|
* @returns {Promise<{}>}
|
|
20132
20687
|
*/
|
|
20133
|
-
|
|
20688
|
+
|
|
20689
|
+
/**
|
|
20690
|
+
*
|
|
20691
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
20692
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
20693
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20694
|
+
* @throws {RevenexxException}
|
|
20695
|
+
* @returns {Promise<{}>}
|
|
20696
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
20697
|
+
*/
|
|
20698
|
+
|
|
20699
|
+
productsFamilyAttributesList(paramsOrFirst, ...rest) {
|
|
20700
|
+
let params;
|
|
20701
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
20702
|
+
params = paramsOrFirst || {};
|
|
20703
|
+
} else {
|
|
20704
|
+
params = {
|
|
20705
|
+
limit: paramsOrFirst,
|
|
20706
|
+
offset: rest[0],
|
|
20707
|
+
order: rest[1]
|
|
20708
|
+
};
|
|
20709
|
+
}
|
|
20710
|
+
const limit = params.limit;
|
|
20711
|
+
const offset = params.offset;
|
|
20712
|
+
const order = params.order;
|
|
20134
20713
|
const apiPath = '/v1/products/family_attributes';
|
|
20135
20714
|
const apiPayload = {};
|
|
20715
|
+
if (typeof limit !== 'undefined') {
|
|
20716
|
+
apiPayload['limit'] = limit;
|
|
20717
|
+
}
|
|
20718
|
+
if (typeof offset !== 'undefined') {
|
|
20719
|
+
apiPayload['offset'] = offset;
|
|
20720
|
+
}
|
|
20721
|
+
if (typeof order !== 'undefined') {
|
|
20722
|
+
apiPayload['order'] = order;
|
|
20723
|
+
}
|
|
20136
20724
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20137
20725
|
const apiHeaders = {};
|
|
20138
20726
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -20353,12 +20941,48 @@ class Products {
|
|
|
20353
20941
|
|
|
20354
20942
|
/**
|
|
20355
20943
|
*
|
|
20944
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
20945
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
20946
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20356
20947
|
* @throws {RevenexxException}
|
|
20357
20948
|
* @returns {Promise<{}>}
|
|
20358
20949
|
*/
|
|
20359
|
-
|
|
20950
|
+
|
|
20951
|
+
/**
|
|
20952
|
+
*
|
|
20953
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
20954
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
20955
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20956
|
+
* @throws {RevenexxException}
|
|
20957
|
+
* @returns {Promise<{}>}
|
|
20958
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
20959
|
+
*/
|
|
20960
|
+
|
|
20961
|
+
productsFamilyVariantsList(paramsOrFirst, ...rest) {
|
|
20962
|
+
let params;
|
|
20963
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
20964
|
+
params = paramsOrFirst || {};
|
|
20965
|
+
} else {
|
|
20966
|
+
params = {
|
|
20967
|
+
limit: paramsOrFirst,
|
|
20968
|
+
offset: rest[0],
|
|
20969
|
+
order: rest[1]
|
|
20970
|
+
};
|
|
20971
|
+
}
|
|
20972
|
+
const limit = params.limit;
|
|
20973
|
+
const offset = params.offset;
|
|
20974
|
+
const order = params.order;
|
|
20360
20975
|
const apiPath = '/v1/products/family_variants';
|
|
20361
20976
|
const apiPayload = {};
|
|
20977
|
+
if (typeof limit !== 'undefined') {
|
|
20978
|
+
apiPayload['limit'] = limit;
|
|
20979
|
+
}
|
|
20980
|
+
if (typeof offset !== 'undefined') {
|
|
20981
|
+
apiPayload['offset'] = offset;
|
|
20982
|
+
}
|
|
20983
|
+
if (typeof order !== 'undefined') {
|
|
20984
|
+
apiPayload['order'] = order;
|
|
20985
|
+
}
|
|
20362
20986
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20363
20987
|
const apiHeaders = {};
|
|
20364
20988
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -20565,12 +21189,48 @@ class Products {
|
|
|
20565
21189
|
|
|
20566
21190
|
/**
|
|
20567
21191
|
*
|
|
21192
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
21193
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
21194
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20568
21195
|
* @throws {RevenexxException}
|
|
20569
21196
|
* @returns {Promise<{}>}
|
|
20570
21197
|
*/
|
|
20571
|
-
|
|
21198
|
+
|
|
21199
|
+
/**
|
|
21200
|
+
*
|
|
21201
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
21202
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
21203
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21204
|
+
* @throws {RevenexxException}
|
|
21205
|
+
* @returns {Promise<{}>}
|
|
21206
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
21207
|
+
*/
|
|
21208
|
+
|
|
21209
|
+
productsMeasurementFamiliesList(paramsOrFirst, ...rest) {
|
|
21210
|
+
let params;
|
|
21211
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
21212
|
+
params = paramsOrFirst || {};
|
|
21213
|
+
} else {
|
|
21214
|
+
params = {
|
|
21215
|
+
limit: paramsOrFirst,
|
|
21216
|
+
offset: rest[0],
|
|
21217
|
+
order: rest[1]
|
|
21218
|
+
};
|
|
21219
|
+
}
|
|
21220
|
+
const limit = params.limit;
|
|
21221
|
+
const offset = params.offset;
|
|
21222
|
+
const order = params.order;
|
|
20572
21223
|
const apiPath = '/v1/products/measurement_families';
|
|
20573
21224
|
const apiPayload = {};
|
|
21225
|
+
if (typeof limit !== 'undefined') {
|
|
21226
|
+
apiPayload['limit'] = limit;
|
|
21227
|
+
}
|
|
21228
|
+
if (typeof offset !== 'undefined') {
|
|
21229
|
+
apiPayload['offset'] = offset;
|
|
21230
|
+
}
|
|
21231
|
+
if (typeof order !== 'undefined') {
|
|
21232
|
+
apiPayload['order'] = order;
|
|
21233
|
+
}
|
|
20574
21234
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20575
21235
|
const apiHeaders = {};
|
|
20576
21236
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -20777,12 +21437,48 @@ class Products {
|
|
|
20777
21437
|
|
|
20778
21438
|
/**
|
|
20779
21439
|
*
|
|
21440
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
21441
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
21442
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21443
|
+
* @throws {RevenexxException}
|
|
21444
|
+
* @returns {Promise<{}>}
|
|
21445
|
+
*/
|
|
21446
|
+
|
|
21447
|
+
/**
|
|
21448
|
+
*
|
|
21449
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
21450
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
21451
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20780
21452
|
* @throws {RevenexxException}
|
|
20781
21453
|
* @returns {Promise<{}>}
|
|
21454
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
20782
21455
|
*/
|
|
20783
|
-
|
|
21456
|
+
|
|
21457
|
+
productsProductAssociationsList(paramsOrFirst, ...rest) {
|
|
21458
|
+
let params;
|
|
21459
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
21460
|
+
params = paramsOrFirst || {};
|
|
21461
|
+
} else {
|
|
21462
|
+
params = {
|
|
21463
|
+
limit: paramsOrFirst,
|
|
21464
|
+
offset: rest[0],
|
|
21465
|
+
order: rest[1]
|
|
21466
|
+
};
|
|
21467
|
+
}
|
|
21468
|
+
const limit = params.limit;
|
|
21469
|
+
const offset = params.offset;
|
|
21470
|
+
const order = params.order;
|
|
20784
21471
|
const apiPath = '/v1/products/product_associations';
|
|
20785
21472
|
const apiPayload = {};
|
|
21473
|
+
if (typeof limit !== 'undefined') {
|
|
21474
|
+
apiPayload['limit'] = limit;
|
|
21475
|
+
}
|
|
21476
|
+
if (typeof offset !== 'undefined') {
|
|
21477
|
+
apiPayload['offset'] = offset;
|
|
21478
|
+
}
|
|
21479
|
+
if (typeof order !== 'undefined') {
|
|
21480
|
+
apiPayload['order'] = order;
|
|
21481
|
+
}
|
|
20786
21482
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20787
21483
|
const apiHeaders = {};
|
|
20788
21484
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -21006,12 +21702,48 @@ class Products {
|
|
|
21006
21702
|
|
|
21007
21703
|
/**
|
|
21008
21704
|
*
|
|
21705
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
21706
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
21707
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21708
|
+
* @throws {RevenexxException}
|
|
21709
|
+
* @returns {Promise<{}>}
|
|
21710
|
+
*/
|
|
21711
|
+
|
|
21712
|
+
/**
|
|
21713
|
+
*
|
|
21714
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
21715
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
21716
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21009
21717
|
* @throws {RevenexxException}
|
|
21010
21718
|
* @returns {Promise<{}>}
|
|
21719
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
21011
21720
|
*/
|
|
21012
|
-
|
|
21721
|
+
|
|
21722
|
+
productsProductCategoriesList(paramsOrFirst, ...rest) {
|
|
21723
|
+
let params;
|
|
21724
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
21725
|
+
params = paramsOrFirst || {};
|
|
21726
|
+
} else {
|
|
21727
|
+
params = {
|
|
21728
|
+
limit: paramsOrFirst,
|
|
21729
|
+
offset: rest[0],
|
|
21730
|
+
order: rest[1]
|
|
21731
|
+
};
|
|
21732
|
+
}
|
|
21733
|
+
const limit = params.limit;
|
|
21734
|
+
const offset = params.offset;
|
|
21735
|
+
const order = params.order;
|
|
21013
21736
|
const apiPath = '/v1/products/product_categories';
|
|
21014
21737
|
const apiPayload = {};
|
|
21738
|
+
if (typeof limit !== 'undefined') {
|
|
21739
|
+
apiPayload['limit'] = limit;
|
|
21740
|
+
}
|
|
21741
|
+
if (typeof offset !== 'undefined') {
|
|
21742
|
+
apiPayload['offset'] = offset;
|
|
21743
|
+
}
|
|
21744
|
+
if (typeof order !== 'undefined') {
|
|
21745
|
+
apiPayload['order'] = order;
|
|
21746
|
+
}
|
|
21015
21747
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21016
21748
|
const apiHeaders = {};
|
|
21017
21749
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -21204,12 +21936,48 @@ class Products {
|
|
|
21204
21936
|
|
|
21205
21937
|
/**
|
|
21206
21938
|
*
|
|
21939
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
21940
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
21941
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21942
|
+
* @throws {RevenexxException}
|
|
21943
|
+
* @returns {Promise<{}>}
|
|
21944
|
+
*/
|
|
21945
|
+
|
|
21946
|
+
/**
|
|
21947
|
+
*
|
|
21948
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
21949
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
21950
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21207
21951
|
* @throws {RevenexxException}
|
|
21208
21952
|
* @returns {Promise<{}>}
|
|
21953
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
21209
21954
|
*/
|
|
21210
|
-
|
|
21955
|
+
|
|
21956
|
+
productsReferenceEntitiesList(paramsOrFirst, ...rest) {
|
|
21957
|
+
let params;
|
|
21958
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
21959
|
+
params = paramsOrFirst || {};
|
|
21960
|
+
} else {
|
|
21961
|
+
params = {
|
|
21962
|
+
limit: paramsOrFirst,
|
|
21963
|
+
offset: rest[0],
|
|
21964
|
+
order: rest[1]
|
|
21965
|
+
};
|
|
21966
|
+
}
|
|
21967
|
+
const limit = params.limit;
|
|
21968
|
+
const offset = params.offset;
|
|
21969
|
+
const order = params.order;
|
|
21211
21970
|
const apiPath = '/v1/products/reference_entities';
|
|
21212
21971
|
const apiPayload = {};
|
|
21972
|
+
if (typeof limit !== 'undefined') {
|
|
21973
|
+
apiPayload['limit'] = limit;
|
|
21974
|
+
}
|
|
21975
|
+
if (typeof offset !== 'undefined') {
|
|
21976
|
+
apiPayload['offset'] = offset;
|
|
21977
|
+
}
|
|
21978
|
+
if (typeof order !== 'undefined') {
|
|
21979
|
+
apiPayload['order'] = order;
|
|
21980
|
+
}
|
|
21213
21981
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21214
21982
|
const apiHeaders = {};
|
|
21215
21983
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -21399,12 +22167,48 @@ class Products {
|
|
|
21399
22167
|
|
|
21400
22168
|
/**
|
|
21401
22169
|
*
|
|
22170
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
22171
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
22172
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21402
22173
|
* @throws {RevenexxException}
|
|
21403
22174
|
* @returns {Promise<{}>}
|
|
21404
22175
|
*/
|
|
21405
|
-
|
|
22176
|
+
|
|
22177
|
+
/**
|
|
22178
|
+
*
|
|
22179
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
22180
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
22181
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22182
|
+
* @throws {RevenexxException}
|
|
22183
|
+
* @returns {Promise<{}>}
|
|
22184
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
22185
|
+
*/
|
|
22186
|
+
|
|
22187
|
+
productsReferenceEntityRecordsList(paramsOrFirst, ...rest) {
|
|
22188
|
+
let params;
|
|
22189
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
22190
|
+
params = paramsOrFirst || {};
|
|
22191
|
+
} else {
|
|
22192
|
+
params = {
|
|
22193
|
+
limit: paramsOrFirst,
|
|
22194
|
+
offset: rest[0],
|
|
22195
|
+
order: rest[1]
|
|
22196
|
+
};
|
|
22197
|
+
}
|
|
22198
|
+
const limit = params.limit;
|
|
22199
|
+
const offset = params.offset;
|
|
22200
|
+
const order = params.order;
|
|
21406
22201
|
const apiPath = '/v1/products/reference_entity_records';
|
|
21407
22202
|
const apiPayload = {};
|
|
22203
|
+
if (typeof limit !== 'undefined') {
|
|
22204
|
+
apiPayload['limit'] = limit;
|
|
22205
|
+
}
|
|
22206
|
+
if (typeof offset !== 'undefined') {
|
|
22207
|
+
apiPayload['offset'] = offset;
|
|
22208
|
+
}
|
|
22209
|
+
if (typeof order !== 'undefined') {
|
|
22210
|
+
apiPayload['order'] = order;
|
|
22211
|
+
}
|
|
21408
22212
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21409
22213
|
const apiHeaders = {};
|
|
21410
22214
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|