@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/esm/sdk.js
CHANGED
|
@@ -651,7 +651,7 @@ class Client {
|
|
|
651
651
|
'x-sdk-name': 'Revenexx Web',
|
|
652
652
|
'x-sdk-platform': '',
|
|
653
653
|
'x-sdk-language': 'web',
|
|
654
|
-
'x-sdk-version': '0.0.
|
|
654
|
+
'x-sdk-version': '0.0.12'
|
|
655
655
|
};
|
|
656
656
|
|
|
657
657
|
/**
|
|
@@ -3760,12 +3760,69 @@ class Carts {
|
|
|
3760
3760
|
|
|
3761
3761
|
/**
|
|
3762
3762
|
*
|
|
3763
|
+
* @param {string} params.contactId - Filter to one owning contact.
|
|
3764
|
+
* @param {string} params.sessionKey - Filter to one guest session.
|
|
3765
|
+
* @param {string} params.status - Filter by cart status (e.g. active).
|
|
3766
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
3767
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
3768
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
3769
|
+
* @throws {RevenexxException}
|
|
3770
|
+
* @returns {Promise<{}>}
|
|
3771
|
+
*/
|
|
3772
|
+
|
|
3773
|
+
/**
|
|
3774
|
+
*
|
|
3775
|
+
* @param {string} contactId - Filter to one owning contact.
|
|
3776
|
+
* @param {string} sessionKey - Filter to one guest session.
|
|
3777
|
+
* @param {string} status - Filter by cart status (e.g. active).
|
|
3778
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
3779
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
3780
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
3763
3781
|
* @throws {RevenexxException}
|
|
3764
3782
|
* @returns {Promise<{}>}
|
|
3783
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
3765
3784
|
*/
|
|
3766
|
-
|
|
3785
|
+
|
|
3786
|
+
cartsList(paramsOrFirst, ...rest) {
|
|
3787
|
+
let params;
|
|
3788
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
3789
|
+
params = paramsOrFirst || {};
|
|
3790
|
+
} else {
|
|
3791
|
+
params = {
|
|
3792
|
+
contactId: paramsOrFirst,
|
|
3793
|
+
sessionKey: rest[0],
|
|
3794
|
+
status: rest[1],
|
|
3795
|
+
limit: rest[2],
|
|
3796
|
+
offset: rest[3],
|
|
3797
|
+
order: rest[4]
|
|
3798
|
+
};
|
|
3799
|
+
}
|
|
3800
|
+
const contactId = params.contactId;
|
|
3801
|
+
const sessionKey = params.sessionKey;
|
|
3802
|
+
const status = params.status;
|
|
3803
|
+
const limit = params.limit;
|
|
3804
|
+
const offset = params.offset;
|
|
3805
|
+
const order = params.order;
|
|
3767
3806
|
const apiPath = '/v1/carts';
|
|
3768
3807
|
const apiPayload = {};
|
|
3808
|
+
if (typeof contactId !== 'undefined') {
|
|
3809
|
+
apiPayload['contact_id'] = contactId;
|
|
3810
|
+
}
|
|
3811
|
+
if (typeof sessionKey !== 'undefined') {
|
|
3812
|
+
apiPayload['session_key'] = sessionKey;
|
|
3813
|
+
}
|
|
3814
|
+
if (typeof status !== 'undefined') {
|
|
3815
|
+
apiPayload['status'] = status;
|
|
3816
|
+
}
|
|
3817
|
+
if (typeof limit !== 'undefined') {
|
|
3818
|
+
apiPayload['limit'] = limit;
|
|
3819
|
+
}
|
|
3820
|
+
if (typeof offset !== 'undefined') {
|
|
3821
|
+
apiPayload['offset'] = offset;
|
|
3822
|
+
}
|
|
3823
|
+
if (typeof order !== 'undefined') {
|
|
3824
|
+
apiPayload['order'] = order;
|
|
3825
|
+
}
|
|
3769
3826
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3770
3827
|
const apiHeaders = {};
|
|
3771
3828
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -5391,12 +5448,62 @@ class Customers {
|
|
|
5391
5448
|
|
|
5392
5449
|
/**
|
|
5393
5450
|
*
|
|
5451
|
+
* @param {string} params.contactId - Filter to one owning contact.
|
|
5452
|
+
* @param {string} params.organizationId - Filter to one organization.
|
|
5453
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
5454
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
5455
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
5456
|
+
* @throws {RevenexxException}
|
|
5457
|
+
* @returns {Promise<{}>}
|
|
5458
|
+
*/
|
|
5459
|
+
|
|
5460
|
+
/**
|
|
5461
|
+
*
|
|
5462
|
+
* @param {string} contactId - Filter to one owning contact.
|
|
5463
|
+
* @param {string} organizationId - Filter to one organization.
|
|
5464
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
5465
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
5466
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
5394
5467
|
* @throws {RevenexxException}
|
|
5395
5468
|
* @returns {Promise<{}>}
|
|
5469
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
5396
5470
|
*/
|
|
5397
|
-
|
|
5471
|
+
|
|
5472
|
+
customersAddressesList(paramsOrFirst, ...rest) {
|
|
5473
|
+
let params;
|
|
5474
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
5475
|
+
params = paramsOrFirst || {};
|
|
5476
|
+
} else {
|
|
5477
|
+
params = {
|
|
5478
|
+
contactId: paramsOrFirst,
|
|
5479
|
+
organizationId: rest[0],
|
|
5480
|
+
limit: rest[1],
|
|
5481
|
+
offset: rest[2],
|
|
5482
|
+
order: rest[3]
|
|
5483
|
+
};
|
|
5484
|
+
}
|
|
5485
|
+
const contactId = params.contactId;
|
|
5486
|
+
const organizationId = params.organizationId;
|
|
5487
|
+
const limit = params.limit;
|
|
5488
|
+
const offset = params.offset;
|
|
5489
|
+
const order = params.order;
|
|
5398
5490
|
const apiPath = '/v1/customers/addresses';
|
|
5399
5491
|
const apiPayload = {};
|
|
5492
|
+
if (typeof contactId !== 'undefined') {
|
|
5493
|
+
apiPayload['contact_id'] = contactId;
|
|
5494
|
+
}
|
|
5495
|
+
if (typeof organizationId !== 'undefined') {
|
|
5496
|
+
apiPayload['organization_id'] = organizationId;
|
|
5497
|
+
}
|
|
5498
|
+
if (typeof limit !== 'undefined') {
|
|
5499
|
+
apiPayload['limit'] = limit;
|
|
5500
|
+
}
|
|
5501
|
+
if (typeof offset !== 'undefined') {
|
|
5502
|
+
apiPayload['offset'] = offset;
|
|
5503
|
+
}
|
|
5504
|
+
if (typeof order !== 'undefined') {
|
|
5505
|
+
apiPayload['order'] = order;
|
|
5506
|
+
}
|
|
5400
5507
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5401
5508
|
const apiHeaders = {};
|
|
5402
5509
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -6077,12 +6184,76 @@ class Customers {
|
|
|
6077
6184
|
|
|
6078
6185
|
/**
|
|
6079
6186
|
*
|
|
6187
|
+
* @param {string} params.organizationId - Filter to one organization.
|
|
6188
|
+
* @param {string} params.role - Filter by role (buyer | approver | admin | requester).
|
|
6189
|
+
* @param {string} params.status - Filter by status (invited | active | blocked).
|
|
6190
|
+
* @param {string} params.email - Filter by exact email.
|
|
6191
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
6192
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
6193
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
6194
|
+
* @throws {RevenexxException}
|
|
6195
|
+
* @returns {Promise<{}>}
|
|
6196
|
+
*/
|
|
6197
|
+
|
|
6198
|
+
/**
|
|
6199
|
+
*
|
|
6200
|
+
* @param {string} organizationId - Filter to one organization.
|
|
6201
|
+
* @param {string} role - Filter by role (buyer | approver | admin | requester).
|
|
6202
|
+
* @param {string} status - Filter by status (invited | active | blocked).
|
|
6203
|
+
* @param {string} email - Filter by exact email.
|
|
6204
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
6205
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
6206
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
6080
6207
|
* @throws {RevenexxException}
|
|
6081
6208
|
* @returns {Promise<{}>}
|
|
6209
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
6082
6210
|
*/
|
|
6083
|
-
|
|
6211
|
+
|
|
6212
|
+
customersContactsList(paramsOrFirst, ...rest) {
|
|
6213
|
+
let params;
|
|
6214
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
6215
|
+
params = paramsOrFirst || {};
|
|
6216
|
+
} else {
|
|
6217
|
+
params = {
|
|
6218
|
+
organizationId: paramsOrFirst,
|
|
6219
|
+
role: rest[0],
|
|
6220
|
+
status: rest[1],
|
|
6221
|
+
email: rest[2],
|
|
6222
|
+
limit: rest[3],
|
|
6223
|
+
offset: rest[4],
|
|
6224
|
+
order: rest[5]
|
|
6225
|
+
};
|
|
6226
|
+
}
|
|
6227
|
+
const organizationId = params.organizationId;
|
|
6228
|
+
const role = params.role;
|
|
6229
|
+
const status = params.status;
|
|
6230
|
+
const email = params.email;
|
|
6231
|
+
const limit = params.limit;
|
|
6232
|
+
const offset = params.offset;
|
|
6233
|
+
const order = params.order;
|
|
6084
6234
|
const apiPath = '/v1/customers/contacts';
|
|
6085
6235
|
const apiPayload = {};
|
|
6236
|
+
if (typeof organizationId !== 'undefined') {
|
|
6237
|
+
apiPayload['organization_id'] = organizationId;
|
|
6238
|
+
}
|
|
6239
|
+
if (typeof role !== 'undefined') {
|
|
6240
|
+
apiPayload['role'] = role;
|
|
6241
|
+
}
|
|
6242
|
+
if (typeof status !== 'undefined') {
|
|
6243
|
+
apiPayload['status'] = status;
|
|
6244
|
+
}
|
|
6245
|
+
if (typeof email !== 'undefined') {
|
|
6246
|
+
apiPayload['email'] = email;
|
|
6247
|
+
}
|
|
6248
|
+
if (typeof limit !== 'undefined') {
|
|
6249
|
+
apiPayload['limit'] = limit;
|
|
6250
|
+
}
|
|
6251
|
+
if (typeof offset !== 'undefined') {
|
|
6252
|
+
apiPayload['offset'] = offset;
|
|
6253
|
+
}
|
|
6254
|
+
if (typeof order !== 'undefined') {
|
|
6255
|
+
apiPayload['order'] = order;
|
|
6256
|
+
}
|
|
6086
6257
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6087
6258
|
const apiHeaders = {};
|
|
6088
6259
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -11920,12 +12091,69 @@ class Orderlists {
|
|
|
11920
12091
|
|
|
11921
12092
|
/**
|
|
11922
12093
|
*
|
|
12094
|
+
* @param {string} params.ownerId - Filter to one owning contact.
|
|
12095
|
+
* @param {string} params.organizationId - Filter to one organization.
|
|
12096
|
+
* @param {string} params.kind - Filter by list kind (shopping | label).
|
|
12097
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
12098
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
12099
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
12100
|
+
* @throws {RevenexxException}
|
|
12101
|
+
* @returns {Promise<{}>}
|
|
12102
|
+
*/
|
|
12103
|
+
|
|
12104
|
+
/**
|
|
12105
|
+
*
|
|
12106
|
+
* @param {string} ownerId - Filter to one owning contact.
|
|
12107
|
+
* @param {string} organizationId - Filter to one organization.
|
|
12108
|
+
* @param {string} kind - Filter by list kind (shopping | label).
|
|
12109
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
12110
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
12111
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
11923
12112
|
* @throws {RevenexxException}
|
|
11924
12113
|
* @returns {Promise<{}>}
|
|
12114
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
11925
12115
|
*/
|
|
11926
|
-
|
|
12116
|
+
|
|
12117
|
+
orderlistsList(paramsOrFirst, ...rest) {
|
|
12118
|
+
let params;
|
|
12119
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
12120
|
+
params = paramsOrFirst || {};
|
|
12121
|
+
} else {
|
|
12122
|
+
params = {
|
|
12123
|
+
ownerId: paramsOrFirst,
|
|
12124
|
+
organizationId: rest[0],
|
|
12125
|
+
kind: rest[1],
|
|
12126
|
+
limit: rest[2],
|
|
12127
|
+
offset: rest[3],
|
|
12128
|
+
order: rest[4]
|
|
12129
|
+
};
|
|
12130
|
+
}
|
|
12131
|
+
const ownerId = params.ownerId;
|
|
12132
|
+
const organizationId = params.organizationId;
|
|
12133
|
+
const kind = params.kind;
|
|
12134
|
+
const limit = params.limit;
|
|
12135
|
+
const offset = params.offset;
|
|
12136
|
+
const order = params.order;
|
|
11927
12137
|
const apiPath = '/v1/orderlists';
|
|
11928
12138
|
const apiPayload = {};
|
|
12139
|
+
if (typeof ownerId !== 'undefined') {
|
|
12140
|
+
apiPayload['owner_id'] = ownerId;
|
|
12141
|
+
}
|
|
12142
|
+
if (typeof organizationId !== 'undefined') {
|
|
12143
|
+
apiPayload['organization_id'] = organizationId;
|
|
12144
|
+
}
|
|
12145
|
+
if (typeof kind !== 'undefined') {
|
|
12146
|
+
apiPayload['kind'] = kind;
|
|
12147
|
+
}
|
|
12148
|
+
if (typeof limit !== 'undefined') {
|
|
12149
|
+
apiPayload['limit'] = limit;
|
|
12150
|
+
}
|
|
12151
|
+
if (typeof offset !== 'undefined') {
|
|
12152
|
+
apiPayload['offset'] = offset;
|
|
12153
|
+
}
|
|
12154
|
+
if (typeof order !== 'undefined') {
|
|
12155
|
+
apiPayload['order'] = order;
|
|
12156
|
+
}
|
|
11929
12157
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11930
12158
|
const apiHeaders = {};
|
|
11931
12159
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -18119,12 +18347,48 @@ class Products {
|
|
|
18119
18347
|
|
|
18120
18348
|
/**
|
|
18121
18349
|
*
|
|
18350
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
18351
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
18352
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18353
|
+
* @throws {RevenexxException}
|
|
18354
|
+
* @returns {Promise<{}>}
|
|
18355
|
+
*/
|
|
18356
|
+
|
|
18357
|
+
/**
|
|
18358
|
+
*
|
|
18359
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
18360
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
18361
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18122
18362
|
* @throws {RevenexxException}
|
|
18123
18363
|
* @returns {Promise<{}>}
|
|
18364
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
18124
18365
|
*/
|
|
18125
|
-
|
|
18366
|
+
|
|
18367
|
+
productsList(paramsOrFirst, ...rest) {
|
|
18368
|
+
let params;
|
|
18369
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
18370
|
+
params = paramsOrFirst || {};
|
|
18371
|
+
} else {
|
|
18372
|
+
params = {
|
|
18373
|
+
limit: paramsOrFirst,
|
|
18374
|
+
offset: rest[0],
|
|
18375
|
+
order: rest[1]
|
|
18376
|
+
};
|
|
18377
|
+
}
|
|
18378
|
+
const limit = params.limit;
|
|
18379
|
+
const offset = params.offset;
|
|
18380
|
+
const order = params.order;
|
|
18126
18381
|
const apiPath = '/v1/products';
|
|
18127
18382
|
const apiPayload = {};
|
|
18383
|
+
if (typeof limit !== 'undefined') {
|
|
18384
|
+
apiPayload['limit'] = limit;
|
|
18385
|
+
}
|
|
18386
|
+
if (typeof offset !== 'undefined') {
|
|
18387
|
+
apiPayload['offset'] = offset;
|
|
18388
|
+
}
|
|
18389
|
+
if (typeof order !== 'undefined') {
|
|
18390
|
+
apiPayload['order'] = order;
|
|
18391
|
+
}
|
|
18128
18392
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18129
18393
|
const apiHeaders = {};
|
|
18130
18394
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -18242,12 +18506,48 @@ class Products {
|
|
|
18242
18506
|
|
|
18243
18507
|
/**
|
|
18244
18508
|
*
|
|
18509
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
18510
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
18511
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18512
|
+
* @throws {RevenexxException}
|
|
18513
|
+
* @returns {Promise<{}>}
|
|
18514
|
+
*/
|
|
18515
|
+
|
|
18516
|
+
/**
|
|
18517
|
+
*
|
|
18518
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
18519
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
18520
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18245
18521
|
* @throws {RevenexxException}
|
|
18246
18522
|
* @returns {Promise<{}>}
|
|
18523
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
18247
18524
|
*/
|
|
18248
|
-
|
|
18525
|
+
|
|
18526
|
+
productsAssetFamiliesList(paramsOrFirst, ...rest) {
|
|
18527
|
+
let params;
|
|
18528
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
18529
|
+
params = paramsOrFirst || {};
|
|
18530
|
+
} else {
|
|
18531
|
+
params = {
|
|
18532
|
+
limit: paramsOrFirst,
|
|
18533
|
+
offset: rest[0],
|
|
18534
|
+
order: rest[1]
|
|
18535
|
+
};
|
|
18536
|
+
}
|
|
18537
|
+
const limit = params.limit;
|
|
18538
|
+
const offset = params.offset;
|
|
18539
|
+
const order = params.order;
|
|
18249
18540
|
const apiPath = '/v1/products/asset_families';
|
|
18250
18541
|
const apiPayload = {};
|
|
18542
|
+
if (typeof limit !== 'undefined') {
|
|
18543
|
+
apiPayload['limit'] = limit;
|
|
18544
|
+
}
|
|
18545
|
+
if (typeof offset !== 'undefined') {
|
|
18546
|
+
apiPayload['offset'] = offset;
|
|
18547
|
+
}
|
|
18548
|
+
if (typeof order !== 'undefined') {
|
|
18549
|
+
apiPayload['order'] = order;
|
|
18550
|
+
}
|
|
18251
18551
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18252
18552
|
const apiHeaders = {};
|
|
18253
18553
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -18437,12 +18737,48 @@ class Products {
|
|
|
18437
18737
|
|
|
18438
18738
|
/**
|
|
18439
18739
|
*
|
|
18740
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
18741
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
18742
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18440
18743
|
* @throws {RevenexxException}
|
|
18441
18744
|
* @returns {Promise<{}>}
|
|
18442
18745
|
*/
|
|
18443
|
-
|
|
18746
|
+
|
|
18747
|
+
/**
|
|
18748
|
+
*
|
|
18749
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
18750
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
18751
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18752
|
+
* @throws {RevenexxException}
|
|
18753
|
+
* @returns {Promise<{}>}
|
|
18754
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
18755
|
+
*/
|
|
18756
|
+
|
|
18757
|
+
productsAssetsList(paramsOrFirst, ...rest) {
|
|
18758
|
+
let params;
|
|
18759
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
18760
|
+
params = paramsOrFirst || {};
|
|
18761
|
+
} else {
|
|
18762
|
+
params = {
|
|
18763
|
+
limit: paramsOrFirst,
|
|
18764
|
+
offset: rest[0],
|
|
18765
|
+
order: rest[1]
|
|
18766
|
+
};
|
|
18767
|
+
}
|
|
18768
|
+
const limit = params.limit;
|
|
18769
|
+
const offset = params.offset;
|
|
18770
|
+
const order = params.order;
|
|
18444
18771
|
const apiPath = '/v1/products/assets';
|
|
18445
18772
|
const apiPayload = {};
|
|
18773
|
+
if (typeof limit !== 'undefined') {
|
|
18774
|
+
apiPayload['limit'] = limit;
|
|
18775
|
+
}
|
|
18776
|
+
if (typeof offset !== 'undefined') {
|
|
18777
|
+
apiPayload['offset'] = offset;
|
|
18778
|
+
}
|
|
18779
|
+
if (typeof order !== 'undefined') {
|
|
18780
|
+
apiPayload['order'] = order;
|
|
18781
|
+
}
|
|
18446
18782
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18447
18783
|
const apiHeaders = {};
|
|
18448
18784
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -18649,12 +18985,48 @@ class Products {
|
|
|
18649
18985
|
|
|
18650
18986
|
/**
|
|
18651
18987
|
*
|
|
18988
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
18989
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
18990
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18652
18991
|
* @throws {RevenexxException}
|
|
18653
18992
|
* @returns {Promise<{}>}
|
|
18654
18993
|
*/
|
|
18655
|
-
|
|
18994
|
+
|
|
18995
|
+
/**
|
|
18996
|
+
*
|
|
18997
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
18998
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
18999
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19000
|
+
* @throws {RevenexxException}
|
|
19001
|
+
* @returns {Promise<{}>}
|
|
19002
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
19003
|
+
*/
|
|
19004
|
+
|
|
19005
|
+
productsAssociationTypesList(paramsOrFirst, ...rest) {
|
|
19006
|
+
let params;
|
|
19007
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
19008
|
+
params = paramsOrFirst || {};
|
|
19009
|
+
} else {
|
|
19010
|
+
params = {
|
|
19011
|
+
limit: paramsOrFirst,
|
|
19012
|
+
offset: rest[0],
|
|
19013
|
+
order: rest[1]
|
|
19014
|
+
};
|
|
19015
|
+
}
|
|
19016
|
+
const limit = params.limit;
|
|
19017
|
+
const offset = params.offset;
|
|
19018
|
+
const order = params.order;
|
|
18656
19019
|
const apiPath = '/v1/products/association_types';
|
|
18657
19020
|
const apiPayload = {};
|
|
19021
|
+
if (typeof limit !== 'undefined') {
|
|
19022
|
+
apiPayload['limit'] = limit;
|
|
19023
|
+
}
|
|
19024
|
+
if (typeof offset !== 'undefined') {
|
|
19025
|
+
apiPayload['offset'] = offset;
|
|
19026
|
+
}
|
|
19027
|
+
if (typeof order !== 'undefined') {
|
|
19028
|
+
apiPayload['order'] = order;
|
|
19029
|
+
}
|
|
18658
19030
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18659
19031
|
const apiHeaders = {};
|
|
18660
19032
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -18858,12 +19230,48 @@ class Products {
|
|
|
18858
19230
|
|
|
18859
19231
|
/**
|
|
18860
19232
|
*
|
|
19233
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
19234
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
19235
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18861
19236
|
* @throws {RevenexxException}
|
|
18862
19237
|
* @returns {Promise<{}>}
|
|
18863
19238
|
*/
|
|
18864
|
-
|
|
19239
|
+
|
|
19240
|
+
/**
|
|
19241
|
+
*
|
|
19242
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
19243
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
19244
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19245
|
+
* @throws {RevenexxException}
|
|
19246
|
+
* @returns {Promise<{}>}
|
|
19247
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
19248
|
+
*/
|
|
19249
|
+
|
|
19250
|
+
productsAttributeGroupsList(paramsOrFirst, ...rest) {
|
|
19251
|
+
let params;
|
|
19252
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
19253
|
+
params = paramsOrFirst || {};
|
|
19254
|
+
} else {
|
|
19255
|
+
params = {
|
|
19256
|
+
limit: paramsOrFirst,
|
|
19257
|
+
offset: rest[0],
|
|
19258
|
+
order: rest[1]
|
|
19259
|
+
};
|
|
19260
|
+
}
|
|
19261
|
+
const limit = params.limit;
|
|
19262
|
+
const offset = params.offset;
|
|
19263
|
+
const order = params.order;
|
|
18865
19264
|
const apiPath = '/v1/products/attribute_groups';
|
|
18866
19265
|
const apiPayload = {};
|
|
19266
|
+
if (typeof limit !== 'undefined') {
|
|
19267
|
+
apiPayload['limit'] = limit;
|
|
19268
|
+
}
|
|
19269
|
+
if (typeof offset !== 'undefined') {
|
|
19270
|
+
apiPayload['offset'] = offset;
|
|
19271
|
+
}
|
|
19272
|
+
if (typeof order !== 'undefined') {
|
|
19273
|
+
apiPayload['order'] = order;
|
|
19274
|
+
}
|
|
18867
19275
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18868
19276
|
const apiHeaders = {};
|
|
18869
19277
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -19053,12 +19461,48 @@ class Products {
|
|
|
19053
19461
|
|
|
19054
19462
|
/**
|
|
19055
19463
|
*
|
|
19464
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
19465
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
19466
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19467
|
+
* @throws {RevenexxException}
|
|
19468
|
+
* @returns {Promise<{}>}
|
|
19469
|
+
*/
|
|
19470
|
+
|
|
19471
|
+
/**
|
|
19472
|
+
*
|
|
19473
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
19474
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
19475
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19056
19476
|
* @throws {RevenexxException}
|
|
19057
19477
|
* @returns {Promise<{}>}
|
|
19478
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
19058
19479
|
*/
|
|
19059
|
-
|
|
19480
|
+
|
|
19481
|
+
productsAttributeOptionsList(paramsOrFirst, ...rest) {
|
|
19482
|
+
let params;
|
|
19483
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
19484
|
+
params = paramsOrFirst || {};
|
|
19485
|
+
} else {
|
|
19486
|
+
params = {
|
|
19487
|
+
limit: paramsOrFirst,
|
|
19488
|
+
offset: rest[0],
|
|
19489
|
+
order: rest[1]
|
|
19490
|
+
};
|
|
19491
|
+
}
|
|
19492
|
+
const limit = params.limit;
|
|
19493
|
+
const offset = params.offset;
|
|
19494
|
+
const order = params.order;
|
|
19060
19495
|
const apiPath = '/v1/products/attribute_options';
|
|
19061
19496
|
const apiPayload = {};
|
|
19497
|
+
if (typeof limit !== 'undefined') {
|
|
19498
|
+
apiPayload['limit'] = limit;
|
|
19499
|
+
}
|
|
19500
|
+
if (typeof offset !== 'undefined') {
|
|
19501
|
+
apiPayload['offset'] = offset;
|
|
19502
|
+
}
|
|
19503
|
+
if (typeof order !== 'undefined') {
|
|
19504
|
+
apiPayload['order'] = order;
|
|
19505
|
+
}
|
|
19062
19506
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19063
19507
|
const apiHeaders = {};
|
|
19064
19508
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -19279,12 +19723,48 @@ class Products {
|
|
|
19279
19723
|
|
|
19280
19724
|
/**
|
|
19281
19725
|
*
|
|
19726
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
19727
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
19728
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19729
|
+
* @throws {RevenexxException}
|
|
19730
|
+
* @returns {Promise<{}>}
|
|
19731
|
+
*/
|
|
19732
|
+
|
|
19733
|
+
/**
|
|
19734
|
+
*
|
|
19735
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
19736
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
19737
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19282
19738
|
* @throws {RevenexxException}
|
|
19283
19739
|
* @returns {Promise<{}>}
|
|
19740
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
19284
19741
|
*/
|
|
19285
|
-
|
|
19742
|
+
|
|
19743
|
+
productsAttributesList(paramsOrFirst, ...rest) {
|
|
19744
|
+
let params;
|
|
19745
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
19746
|
+
params = paramsOrFirst || {};
|
|
19747
|
+
} else {
|
|
19748
|
+
params = {
|
|
19749
|
+
limit: paramsOrFirst,
|
|
19750
|
+
offset: rest[0],
|
|
19751
|
+
order: rest[1]
|
|
19752
|
+
};
|
|
19753
|
+
}
|
|
19754
|
+
const limit = params.limit;
|
|
19755
|
+
const offset = params.offset;
|
|
19756
|
+
const order = params.order;
|
|
19286
19757
|
const apiPath = '/v1/products/attributes';
|
|
19287
19758
|
const apiPayload = {};
|
|
19759
|
+
if (typeof limit !== 'undefined') {
|
|
19760
|
+
apiPayload['limit'] = limit;
|
|
19761
|
+
}
|
|
19762
|
+
if (typeof offset !== 'undefined') {
|
|
19763
|
+
apiPayload['offset'] = offset;
|
|
19764
|
+
}
|
|
19765
|
+
if (typeof order !== 'undefined') {
|
|
19766
|
+
apiPayload['order'] = order;
|
|
19767
|
+
}
|
|
19288
19768
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19289
19769
|
const apiHeaders = {};
|
|
19290
19770
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -19675,12 +20155,48 @@ class Products {
|
|
|
19675
20155
|
|
|
19676
20156
|
/**
|
|
19677
20157
|
*
|
|
20158
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
20159
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
20160
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19678
20161
|
* @throws {RevenexxException}
|
|
19679
20162
|
* @returns {Promise<{}>}
|
|
19680
20163
|
*/
|
|
19681
|
-
|
|
20164
|
+
|
|
20165
|
+
/**
|
|
20166
|
+
*
|
|
20167
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
20168
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
20169
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20170
|
+
* @throws {RevenexxException}
|
|
20171
|
+
* @returns {Promise<{}>}
|
|
20172
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
20173
|
+
*/
|
|
20174
|
+
|
|
20175
|
+
productsCategoriesList(paramsOrFirst, ...rest) {
|
|
20176
|
+
let params;
|
|
20177
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
20178
|
+
params = paramsOrFirst || {};
|
|
20179
|
+
} else {
|
|
20180
|
+
params = {
|
|
20181
|
+
limit: paramsOrFirst,
|
|
20182
|
+
offset: rest[0],
|
|
20183
|
+
order: rest[1]
|
|
20184
|
+
};
|
|
20185
|
+
}
|
|
20186
|
+
const limit = params.limit;
|
|
20187
|
+
const offset = params.offset;
|
|
20188
|
+
const order = params.order;
|
|
19682
20189
|
const apiPath = '/v1/products/categories';
|
|
19683
20190
|
const apiPayload = {};
|
|
20191
|
+
if (typeof limit !== 'undefined') {
|
|
20192
|
+
apiPayload['limit'] = limit;
|
|
20193
|
+
}
|
|
20194
|
+
if (typeof offset !== 'undefined') {
|
|
20195
|
+
apiPayload['offset'] = offset;
|
|
20196
|
+
}
|
|
20197
|
+
if (typeof order !== 'undefined') {
|
|
20198
|
+
apiPayload['order'] = order;
|
|
20199
|
+
}
|
|
19684
20200
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19685
20201
|
const apiHeaders = {};
|
|
19686
20202
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -19912,12 +20428,48 @@ class Products {
|
|
|
19912
20428
|
|
|
19913
20429
|
/**
|
|
19914
20430
|
*
|
|
20431
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
20432
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
20433
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19915
20434
|
* @throws {RevenexxException}
|
|
19916
20435
|
* @returns {Promise<{}>}
|
|
19917
20436
|
*/
|
|
19918
|
-
|
|
20437
|
+
|
|
20438
|
+
/**
|
|
20439
|
+
*
|
|
20440
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
20441
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
20442
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20443
|
+
* @throws {RevenexxException}
|
|
20444
|
+
* @returns {Promise<{}>}
|
|
20445
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
20446
|
+
*/
|
|
20447
|
+
|
|
20448
|
+
productsFamiliesList(paramsOrFirst, ...rest) {
|
|
20449
|
+
let params;
|
|
20450
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
20451
|
+
params = paramsOrFirst || {};
|
|
20452
|
+
} else {
|
|
20453
|
+
params = {
|
|
20454
|
+
limit: paramsOrFirst,
|
|
20455
|
+
offset: rest[0],
|
|
20456
|
+
order: rest[1]
|
|
20457
|
+
};
|
|
20458
|
+
}
|
|
20459
|
+
const limit = params.limit;
|
|
20460
|
+
const offset = params.offset;
|
|
20461
|
+
const order = params.order;
|
|
19919
20462
|
const apiPath = '/v1/products/families';
|
|
19920
20463
|
const apiPayload = {};
|
|
20464
|
+
if (typeof limit !== 'undefined') {
|
|
20465
|
+
apiPayload['limit'] = limit;
|
|
20466
|
+
}
|
|
20467
|
+
if (typeof offset !== 'undefined') {
|
|
20468
|
+
apiPayload['offset'] = offset;
|
|
20469
|
+
}
|
|
20470
|
+
if (typeof order !== 'undefined') {
|
|
20471
|
+
apiPayload['order'] = order;
|
|
20472
|
+
}
|
|
19921
20473
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19922
20474
|
const apiHeaders = {};
|
|
19923
20475
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -20121,12 +20673,48 @@ class Products {
|
|
|
20121
20673
|
|
|
20122
20674
|
/**
|
|
20123
20675
|
*
|
|
20676
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
20677
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
20678
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20124
20679
|
* @throws {RevenexxException}
|
|
20125
20680
|
* @returns {Promise<{}>}
|
|
20126
20681
|
*/
|
|
20127
|
-
|
|
20682
|
+
|
|
20683
|
+
/**
|
|
20684
|
+
*
|
|
20685
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
20686
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
20687
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20688
|
+
* @throws {RevenexxException}
|
|
20689
|
+
* @returns {Promise<{}>}
|
|
20690
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
20691
|
+
*/
|
|
20692
|
+
|
|
20693
|
+
productsFamilyAttributesList(paramsOrFirst, ...rest) {
|
|
20694
|
+
let params;
|
|
20695
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
20696
|
+
params = paramsOrFirst || {};
|
|
20697
|
+
} else {
|
|
20698
|
+
params = {
|
|
20699
|
+
limit: paramsOrFirst,
|
|
20700
|
+
offset: rest[0],
|
|
20701
|
+
order: rest[1]
|
|
20702
|
+
};
|
|
20703
|
+
}
|
|
20704
|
+
const limit = params.limit;
|
|
20705
|
+
const offset = params.offset;
|
|
20706
|
+
const order = params.order;
|
|
20128
20707
|
const apiPath = '/v1/products/family_attributes';
|
|
20129
20708
|
const apiPayload = {};
|
|
20709
|
+
if (typeof limit !== 'undefined') {
|
|
20710
|
+
apiPayload['limit'] = limit;
|
|
20711
|
+
}
|
|
20712
|
+
if (typeof offset !== 'undefined') {
|
|
20713
|
+
apiPayload['offset'] = offset;
|
|
20714
|
+
}
|
|
20715
|
+
if (typeof order !== 'undefined') {
|
|
20716
|
+
apiPayload['order'] = order;
|
|
20717
|
+
}
|
|
20130
20718
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20131
20719
|
const apiHeaders = {};
|
|
20132
20720
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -20347,12 +20935,48 @@ class Products {
|
|
|
20347
20935
|
|
|
20348
20936
|
/**
|
|
20349
20937
|
*
|
|
20938
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
20939
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
20940
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20350
20941
|
* @throws {RevenexxException}
|
|
20351
20942
|
* @returns {Promise<{}>}
|
|
20352
20943
|
*/
|
|
20353
|
-
|
|
20944
|
+
|
|
20945
|
+
/**
|
|
20946
|
+
*
|
|
20947
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
20948
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
20949
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20950
|
+
* @throws {RevenexxException}
|
|
20951
|
+
* @returns {Promise<{}>}
|
|
20952
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
20953
|
+
*/
|
|
20954
|
+
|
|
20955
|
+
productsFamilyVariantsList(paramsOrFirst, ...rest) {
|
|
20956
|
+
let params;
|
|
20957
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
20958
|
+
params = paramsOrFirst || {};
|
|
20959
|
+
} else {
|
|
20960
|
+
params = {
|
|
20961
|
+
limit: paramsOrFirst,
|
|
20962
|
+
offset: rest[0],
|
|
20963
|
+
order: rest[1]
|
|
20964
|
+
};
|
|
20965
|
+
}
|
|
20966
|
+
const limit = params.limit;
|
|
20967
|
+
const offset = params.offset;
|
|
20968
|
+
const order = params.order;
|
|
20354
20969
|
const apiPath = '/v1/products/family_variants';
|
|
20355
20970
|
const apiPayload = {};
|
|
20971
|
+
if (typeof limit !== 'undefined') {
|
|
20972
|
+
apiPayload['limit'] = limit;
|
|
20973
|
+
}
|
|
20974
|
+
if (typeof offset !== 'undefined') {
|
|
20975
|
+
apiPayload['offset'] = offset;
|
|
20976
|
+
}
|
|
20977
|
+
if (typeof order !== 'undefined') {
|
|
20978
|
+
apiPayload['order'] = order;
|
|
20979
|
+
}
|
|
20356
20980
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20357
20981
|
const apiHeaders = {};
|
|
20358
20982
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -20559,12 +21183,48 @@ class Products {
|
|
|
20559
21183
|
|
|
20560
21184
|
/**
|
|
20561
21185
|
*
|
|
21186
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
21187
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
21188
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20562
21189
|
* @throws {RevenexxException}
|
|
20563
21190
|
* @returns {Promise<{}>}
|
|
20564
21191
|
*/
|
|
20565
|
-
|
|
21192
|
+
|
|
21193
|
+
/**
|
|
21194
|
+
*
|
|
21195
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
21196
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
21197
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21198
|
+
* @throws {RevenexxException}
|
|
21199
|
+
* @returns {Promise<{}>}
|
|
21200
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
21201
|
+
*/
|
|
21202
|
+
|
|
21203
|
+
productsMeasurementFamiliesList(paramsOrFirst, ...rest) {
|
|
21204
|
+
let params;
|
|
21205
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
21206
|
+
params = paramsOrFirst || {};
|
|
21207
|
+
} else {
|
|
21208
|
+
params = {
|
|
21209
|
+
limit: paramsOrFirst,
|
|
21210
|
+
offset: rest[0],
|
|
21211
|
+
order: rest[1]
|
|
21212
|
+
};
|
|
21213
|
+
}
|
|
21214
|
+
const limit = params.limit;
|
|
21215
|
+
const offset = params.offset;
|
|
21216
|
+
const order = params.order;
|
|
20566
21217
|
const apiPath = '/v1/products/measurement_families';
|
|
20567
21218
|
const apiPayload = {};
|
|
21219
|
+
if (typeof limit !== 'undefined') {
|
|
21220
|
+
apiPayload['limit'] = limit;
|
|
21221
|
+
}
|
|
21222
|
+
if (typeof offset !== 'undefined') {
|
|
21223
|
+
apiPayload['offset'] = offset;
|
|
21224
|
+
}
|
|
21225
|
+
if (typeof order !== 'undefined') {
|
|
21226
|
+
apiPayload['order'] = order;
|
|
21227
|
+
}
|
|
20568
21228
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20569
21229
|
const apiHeaders = {};
|
|
20570
21230
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -20771,12 +21431,48 @@ class Products {
|
|
|
20771
21431
|
|
|
20772
21432
|
/**
|
|
20773
21433
|
*
|
|
21434
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
21435
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
21436
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21437
|
+
* @throws {RevenexxException}
|
|
21438
|
+
* @returns {Promise<{}>}
|
|
21439
|
+
*/
|
|
21440
|
+
|
|
21441
|
+
/**
|
|
21442
|
+
*
|
|
21443
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
21444
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
21445
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20774
21446
|
* @throws {RevenexxException}
|
|
20775
21447
|
* @returns {Promise<{}>}
|
|
21448
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
20776
21449
|
*/
|
|
20777
|
-
|
|
21450
|
+
|
|
21451
|
+
productsProductAssociationsList(paramsOrFirst, ...rest) {
|
|
21452
|
+
let params;
|
|
21453
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
21454
|
+
params = paramsOrFirst || {};
|
|
21455
|
+
} else {
|
|
21456
|
+
params = {
|
|
21457
|
+
limit: paramsOrFirst,
|
|
21458
|
+
offset: rest[0],
|
|
21459
|
+
order: rest[1]
|
|
21460
|
+
};
|
|
21461
|
+
}
|
|
21462
|
+
const limit = params.limit;
|
|
21463
|
+
const offset = params.offset;
|
|
21464
|
+
const order = params.order;
|
|
20778
21465
|
const apiPath = '/v1/products/product_associations';
|
|
20779
21466
|
const apiPayload = {};
|
|
21467
|
+
if (typeof limit !== 'undefined') {
|
|
21468
|
+
apiPayload['limit'] = limit;
|
|
21469
|
+
}
|
|
21470
|
+
if (typeof offset !== 'undefined') {
|
|
21471
|
+
apiPayload['offset'] = offset;
|
|
21472
|
+
}
|
|
21473
|
+
if (typeof order !== 'undefined') {
|
|
21474
|
+
apiPayload['order'] = order;
|
|
21475
|
+
}
|
|
20780
21476
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20781
21477
|
const apiHeaders = {};
|
|
20782
21478
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -21000,12 +21696,48 @@ class Products {
|
|
|
21000
21696
|
|
|
21001
21697
|
/**
|
|
21002
21698
|
*
|
|
21699
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
21700
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
21701
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21702
|
+
* @throws {RevenexxException}
|
|
21703
|
+
* @returns {Promise<{}>}
|
|
21704
|
+
*/
|
|
21705
|
+
|
|
21706
|
+
/**
|
|
21707
|
+
*
|
|
21708
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
21709
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
21710
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21003
21711
|
* @throws {RevenexxException}
|
|
21004
21712
|
* @returns {Promise<{}>}
|
|
21713
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
21005
21714
|
*/
|
|
21006
|
-
|
|
21715
|
+
|
|
21716
|
+
productsProductCategoriesList(paramsOrFirst, ...rest) {
|
|
21717
|
+
let params;
|
|
21718
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
21719
|
+
params = paramsOrFirst || {};
|
|
21720
|
+
} else {
|
|
21721
|
+
params = {
|
|
21722
|
+
limit: paramsOrFirst,
|
|
21723
|
+
offset: rest[0],
|
|
21724
|
+
order: rest[1]
|
|
21725
|
+
};
|
|
21726
|
+
}
|
|
21727
|
+
const limit = params.limit;
|
|
21728
|
+
const offset = params.offset;
|
|
21729
|
+
const order = params.order;
|
|
21007
21730
|
const apiPath = '/v1/products/product_categories';
|
|
21008
21731
|
const apiPayload = {};
|
|
21732
|
+
if (typeof limit !== 'undefined') {
|
|
21733
|
+
apiPayload['limit'] = limit;
|
|
21734
|
+
}
|
|
21735
|
+
if (typeof offset !== 'undefined') {
|
|
21736
|
+
apiPayload['offset'] = offset;
|
|
21737
|
+
}
|
|
21738
|
+
if (typeof order !== 'undefined') {
|
|
21739
|
+
apiPayload['order'] = order;
|
|
21740
|
+
}
|
|
21009
21741
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21010
21742
|
const apiHeaders = {};
|
|
21011
21743
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -21198,12 +21930,48 @@ class Products {
|
|
|
21198
21930
|
|
|
21199
21931
|
/**
|
|
21200
21932
|
*
|
|
21933
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
21934
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
21935
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21936
|
+
* @throws {RevenexxException}
|
|
21937
|
+
* @returns {Promise<{}>}
|
|
21938
|
+
*/
|
|
21939
|
+
|
|
21940
|
+
/**
|
|
21941
|
+
*
|
|
21942
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
21943
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
21944
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21201
21945
|
* @throws {RevenexxException}
|
|
21202
21946
|
* @returns {Promise<{}>}
|
|
21947
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
21203
21948
|
*/
|
|
21204
|
-
|
|
21949
|
+
|
|
21950
|
+
productsReferenceEntitiesList(paramsOrFirst, ...rest) {
|
|
21951
|
+
let params;
|
|
21952
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
21953
|
+
params = paramsOrFirst || {};
|
|
21954
|
+
} else {
|
|
21955
|
+
params = {
|
|
21956
|
+
limit: paramsOrFirst,
|
|
21957
|
+
offset: rest[0],
|
|
21958
|
+
order: rest[1]
|
|
21959
|
+
};
|
|
21960
|
+
}
|
|
21961
|
+
const limit = params.limit;
|
|
21962
|
+
const offset = params.offset;
|
|
21963
|
+
const order = params.order;
|
|
21205
21964
|
const apiPath = '/v1/products/reference_entities';
|
|
21206
21965
|
const apiPayload = {};
|
|
21966
|
+
if (typeof limit !== 'undefined') {
|
|
21967
|
+
apiPayload['limit'] = limit;
|
|
21968
|
+
}
|
|
21969
|
+
if (typeof offset !== 'undefined') {
|
|
21970
|
+
apiPayload['offset'] = offset;
|
|
21971
|
+
}
|
|
21972
|
+
if (typeof order !== 'undefined') {
|
|
21973
|
+
apiPayload['order'] = order;
|
|
21974
|
+
}
|
|
21207
21975
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21208
21976
|
const apiHeaders = {};
|
|
21209
21977
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -21393,12 +22161,48 @@ class Products {
|
|
|
21393
22161
|
|
|
21394
22162
|
/**
|
|
21395
22163
|
*
|
|
22164
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
22165
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
22166
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21396
22167
|
* @throws {RevenexxException}
|
|
21397
22168
|
* @returns {Promise<{}>}
|
|
21398
22169
|
*/
|
|
21399
|
-
|
|
22170
|
+
|
|
22171
|
+
/**
|
|
22172
|
+
*
|
|
22173
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
22174
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
22175
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22176
|
+
* @throws {RevenexxException}
|
|
22177
|
+
* @returns {Promise<{}>}
|
|
22178
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
22179
|
+
*/
|
|
22180
|
+
|
|
22181
|
+
productsReferenceEntityRecordsList(paramsOrFirst, ...rest) {
|
|
22182
|
+
let params;
|
|
22183
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
22184
|
+
params = paramsOrFirst || {};
|
|
22185
|
+
} else {
|
|
22186
|
+
params = {
|
|
22187
|
+
limit: paramsOrFirst,
|
|
22188
|
+
offset: rest[0],
|
|
22189
|
+
order: rest[1]
|
|
22190
|
+
};
|
|
22191
|
+
}
|
|
22192
|
+
const limit = params.limit;
|
|
22193
|
+
const offset = params.offset;
|
|
22194
|
+
const order = params.order;
|
|
21400
22195
|
const apiPath = '/v1/products/reference_entity_records';
|
|
21401
22196
|
const apiPayload = {};
|
|
22197
|
+
if (typeof limit !== 'undefined') {
|
|
22198
|
+
apiPayload['limit'] = limit;
|
|
22199
|
+
}
|
|
22200
|
+
if (typeof offset !== 'undefined') {
|
|
22201
|
+
apiPayload['offset'] = offset;
|
|
22202
|
+
}
|
|
22203
|
+
if (typeof order !== 'undefined') {
|
|
22204
|
+
apiPayload['order'] = order;
|
|
22205
|
+
}
|
|
21402
22206
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21403
22207
|
const apiHeaders = {};
|
|
21404
22208
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|