@revenexx/sdk 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/sdk.js +772 -32
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +772 -32
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +772 -32
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/services/carts.ts +64 -1
- package/src/services/customers.ts +57 -1
- package/src/services/orderlists.ts +64 -1
- package/src/services/products.ts +688 -16
- package/types/services/carts.d.ts +27 -1
- package/types/services/customers.d.ts +24 -1
- package/types/services/orderlists.d.ts +27 -1
- package/types/services/products.d.ts +288 -16
package/dist/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.11'
|
|
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);
|
|
@@ -11920,12 +12027,69 @@ class Orderlists {
|
|
|
11920
12027
|
|
|
11921
12028
|
/**
|
|
11922
12029
|
*
|
|
12030
|
+
* @param {string} params.ownerId - Filter to one owning contact.
|
|
12031
|
+
* @param {string} params.organizationId - Filter to one organization.
|
|
12032
|
+
* @param {string} params.kind - Filter by list kind (shopping | label).
|
|
12033
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
12034
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
12035
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
12036
|
+
* @throws {RevenexxException}
|
|
12037
|
+
* @returns {Promise<{}>}
|
|
12038
|
+
*/
|
|
12039
|
+
|
|
12040
|
+
/**
|
|
12041
|
+
*
|
|
12042
|
+
* @param {string} ownerId - Filter to one owning contact.
|
|
12043
|
+
* @param {string} organizationId - Filter to one organization.
|
|
12044
|
+
* @param {string} kind - Filter by list kind (shopping | label).
|
|
12045
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
12046
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
12047
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
11923
12048
|
* @throws {RevenexxException}
|
|
11924
12049
|
* @returns {Promise<{}>}
|
|
12050
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
11925
12051
|
*/
|
|
11926
|
-
|
|
12052
|
+
|
|
12053
|
+
orderlistsList(paramsOrFirst, ...rest) {
|
|
12054
|
+
let params;
|
|
12055
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
12056
|
+
params = paramsOrFirst || {};
|
|
12057
|
+
} else {
|
|
12058
|
+
params = {
|
|
12059
|
+
ownerId: paramsOrFirst,
|
|
12060
|
+
organizationId: rest[0],
|
|
12061
|
+
kind: rest[1],
|
|
12062
|
+
limit: rest[2],
|
|
12063
|
+
offset: rest[3],
|
|
12064
|
+
order: rest[4]
|
|
12065
|
+
};
|
|
12066
|
+
}
|
|
12067
|
+
const ownerId = params.ownerId;
|
|
12068
|
+
const organizationId = params.organizationId;
|
|
12069
|
+
const kind = params.kind;
|
|
12070
|
+
const limit = params.limit;
|
|
12071
|
+
const offset = params.offset;
|
|
12072
|
+
const order = params.order;
|
|
11927
12073
|
const apiPath = '/v1/orderlists';
|
|
11928
12074
|
const apiPayload = {};
|
|
12075
|
+
if (typeof ownerId !== 'undefined') {
|
|
12076
|
+
apiPayload['owner_id'] = ownerId;
|
|
12077
|
+
}
|
|
12078
|
+
if (typeof organizationId !== 'undefined') {
|
|
12079
|
+
apiPayload['organization_id'] = organizationId;
|
|
12080
|
+
}
|
|
12081
|
+
if (typeof kind !== 'undefined') {
|
|
12082
|
+
apiPayload['kind'] = kind;
|
|
12083
|
+
}
|
|
12084
|
+
if (typeof limit !== 'undefined') {
|
|
12085
|
+
apiPayload['limit'] = limit;
|
|
12086
|
+
}
|
|
12087
|
+
if (typeof offset !== 'undefined') {
|
|
12088
|
+
apiPayload['offset'] = offset;
|
|
12089
|
+
}
|
|
12090
|
+
if (typeof order !== 'undefined') {
|
|
12091
|
+
apiPayload['order'] = order;
|
|
12092
|
+
}
|
|
11929
12093
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11930
12094
|
const apiHeaders = {};
|
|
11931
12095
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -18119,12 +18283,48 @@ class Products {
|
|
|
18119
18283
|
|
|
18120
18284
|
/**
|
|
18121
18285
|
*
|
|
18286
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
18287
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
18288
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18289
|
+
* @throws {RevenexxException}
|
|
18290
|
+
* @returns {Promise<{}>}
|
|
18291
|
+
*/
|
|
18292
|
+
|
|
18293
|
+
/**
|
|
18294
|
+
*
|
|
18295
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
18296
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
18297
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18122
18298
|
* @throws {RevenexxException}
|
|
18123
18299
|
* @returns {Promise<{}>}
|
|
18300
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
18124
18301
|
*/
|
|
18125
|
-
|
|
18302
|
+
|
|
18303
|
+
productsList(paramsOrFirst, ...rest) {
|
|
18304
|
+
let params;
|
|
18305
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
18306
|
+
params = paramsOrFirst || {};
|
|
18307
|
+
} else {
|
|
18308
|
+
params = {
|
|
18309
|
+
limit: paramsOrFirst,
|
|
18310
|
+
offset: rest[0],
|
|
18311
|
+
order: rest[1]
|
|
18312
|
+
};
|
|
18313
|
+
}
|
|
18314
|
+
const limit = params.limit;
|
|
18315
|
+
const offset = params.offset;
|
|
18316
|
+
const order = params.order;
|
|
18126
18317
|
const apiPath = '/v1/products';
|
|
18127
18318
|
const apiPayload = {};
|
|
18319
|
+
if (typeof limit !== 'undefined') {
|
|
18320
|
+
apiPayload['limit'] = limit;
|
|
18321
|
+
}
|
|
18322
|
+
if (typeof offset !== 'undefined') {
|
|
18323
|
+
apiPayload['offset'] = offset;
|
|
18324
|
+
}
|
|
18325
|
+
if (typeof order !== 'undefined') {
|
|
18326
|
+
apiPayload['order'] = order;
|
|
18327
|
+
}
|
|
18128
18328
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18129
18329
|
const apiHeaders = {};
|
|
18130
18330
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -18242,12 +18442,48 @@ class Products {
|
|
|
18242
18442
|
|
|
18243
18443
|
/**
|
|
18244
18444
|
*
|
|
18445
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
18446
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
18447
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18448
|
+
* @throws {RevenexxException}
|
|
18449
|
+
* @returns {Promise<{}>}
|
|
18450
|
+
*/
|
|
18451
|
+
|
|
18452
|
+
/**
|
|
18453
|
+
*
|
|
18454
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
18455
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
18456
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18245
18457
|
* @throws {RevenexxException}
|
|
18246
18458
|
* @returns {Promise<{}>}
|
|
18459
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
18247
18460
|
*/
|
|
18248
|
-
|
|
18461
|
+
|
|
18462
|
+
productsAssetFamiliesList(paramsOrFirst, ...rest) {
|
|
18463
|
+
let params;
|
|
18464
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
18465
|
+
params = paramsOrFirst || {};
|
|
18466
|
+
} else {
|
|
18467
|
+
params = {
|
|
18468
|
+
limit: paramsOrFirst,
|
|
18469
|
+
offset: rest[0],
|
|
18470
|
+
order: rest[1]
|
|
18471
|
+
};
|
|
18472
|
+
}
|
|
18473
|
+
const limit = params.limit;
|
|
18474
|
+
const offset = params.offset;
|
|
18475
|
+
const order = params.order;
|
|
18249
18476
|
const apiPath = '/v1/products/asset_families';
|
|
18250
18477
|
const apiPayload = {};
|
|
18478
|
+
if (typeof limit !== 'undefined') {
|
|
18479
|
+
apiPayload['limit'] = limit;
|
|
18480
|
+
}
|
|
18481
|
+
if (typeof offset !== 'undefined') {
|
|
18482
|
+
apiPayload['offset'] = offset;
|
|
18483
|
+
}
|
|
18484
|
+
if (typeof order !== 'undefined') {
|
|
18485
|
+
apiPayload['order'] = order;
|
|
18486
|
+
}
|
|
18251
18487
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18252
18488
|
const apiHeaders = {};
|
|
18253
18489
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -18437,12 +18673,48 @@ class Products {
|
|
|
18437
18673
|
|
|
18438
18674
|
/**
|
|
18439
18675
|
*
|
|
18676
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
18677
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
18678
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18679
|
+
* @throws {RevenexxException}
|
|
18680
|
+
* @returns {Promise<{}>}
|
|
18681
|
+
*/
|
|
18682
|
+
|
|
18683
|
+
/**
|
|
18684
|
+
*
|
|
18685
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
18686
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
18687
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18440
18688
|
* @throws {RevenexxException}
|
|
18441
18689
|
* @returns {Promise<{}>}
|
|
18690
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
18442
18691
|
*/
|
|
18443
|
-
|
|
18692
|
+
|
|
18693
|
+
productsAssetsList(paramsOrFirst, ...rest) {
|
|
18694
|
+
let params;
|
|
18695
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
18696
|
+
params = paramsOrFirst || {};
|
|
18697
|
+
} else {
|
|
18698
|
+
params = {
|
|
18699
|
+
limit: paramsOrFirst,
|
|
18700
|
+
offset: rest[0],
|
|
18701
|
+
order: rest[1]
|
|
18702
|
+
};
|
|
18703
|
+
}
|
|
18704
|
+
const limit = params.limit;
|
|
18705
|
+
const offset = params.offset;
|
|
18706
|
+
const order = params.order;
|
|
18444
18707
|
const apiPath = '/v1/products/assets';
|
|
18445
18708
|
const apiPayload = {};
|
|
18709
|
+
if (typeof limit !== 'undefined') {
|
|
18710
|
+
apiPayload['limit'] = limit;
|
|
18711
|
+
}
|
|
18712
|
+
if (typeof offset !== 'undefined') {
|
|
18713
|
+
apiPayload['offset'] = offset;
|
|
18714
|
+
}
|
|
18715
|
+
if (typeof order !== 'undefined') {
|
|
18716
|
+
apiPayload['order'] = order;
|
|
18717
|
+
}
|
|
18446
18718
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18447
18719
|
const apiHeaders = {};
|
|
18448
18720
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -18649,28 +18921,64 @@ class Products {
|
|
|
18649
18921
|
|
|
18650
18922
|
/**
|
|
18651
18923
|
*
|
|
18924
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
18925
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
18926
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18652
18927
|
* @throws {RevenexxException}
|
|
18653
18928
|
* @returns {Promise<{}>}
|
|
18654
18929
|
*/
|
|
18655
|
-
productsAssociationTypesList() {
|
|
18656
|
-
const apiPath = '/v1/products/association_types';
|
|
18657
|
-
const apiPayload = {};
|
|
18658
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18659
|
-
const apiHeaders = {};
|
|
18660
|
-
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
18661
|
-
}
|
|
18662
18930
|
|
|
18663
18931
|
/**
|
|
18664
18932
|
*
|
|
18665
|
-
* @param {
|
|
18666
|
-
* @param {
|
|
18667
|
-
* @param {
|
|
18668
|
-
* @param {object} params.labels -
|
|
18933
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
18934
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
18935
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18669
18936
|
* @throws {RevenexxException}
|
|
18670
|
-
* @returns {Promise<
|
|
18937
|
+
* @returns {Promise<{}>}
|
|
18938
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
18671
18939
|
*/
|
|
18672
18940
|
|
|
18673
|
-
|
|
18941
|
+
productsAssociationTypesList(paramsOrFirst, ...rest) {
|
|
18942
|
+
let params;
|
|
18943
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
18944
|
+
params = paramsOrFirst || {};
|
|
18945
|
+
} else {
|
|
18946
|
+
params = {
|
|
18947
|
+
limit: paramsOrFirst,
|
|
18948
|
+
offset: rest[0],
|
|
18949
|
+
order: rest[1]
|
|
18950
|
+
};
|
|
18951
|
+
}
|
|
18952
|
+
const limit = params.limit;
|
|
18953
|
+
const offset = params.offset;
|
|
18954
|
+
const order = params.order;
|
|
18955
|
+
const apiPath = '/v1/products/association_types';
|
|
18956
|
+
const apiPayload = {};
|
|
18957
|
+
if (typeof limit !== 'undefined') {
|
|
18958
|
+
apiPayload['limit'] = limit;
|
|
18959
|
+
}
|
|
18960
|
+
if (typeof offset !== 'undefined') {
|
|
18961
|
+
apiPayload['offset'] = offset;
|
|
18962
|
+
}
|
|
18963
|
+
if (typeof order !== 'undefined') {
|
|
18964
|
+
apiPayload['order'] = order;
|
|
18965
|
+
}
|
|
18966
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18967
|
+
const apiHeaders = {};
|
|
18968
|
+
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
18969
|
+
}
|
|
18970
|
+
|
|
18971
|
+
/**
|
|
18972
|
+
*
|
|
18973
|
+
* @param {string} params.code -
|
|
18974
|
+
* @param {boolean} params.isQuantified -
|
|
18975
|
+
* @param {boolean} params.isTwoWay -
|
|
18976
|
+
* @param {object} params.labels -
|
|
18977
|
+
* @throws {RevenexxException}
|
|
18978
|
+
* @returns {Promise<Models.AssociationTypes>}
|
|
18979
|
+
*/
|
|
18980
|
+
|
|
18981
|
+
/**
|
|
18674
18982
|
*
|
|
18675
18983
|
* @param {string} code -
|
|
18676
18984
|
* @param {boolean} isQuantified -
|
|
@@ -18858,12 +19166,48 @@ class Products {
|
|
|
18858
19166
|
|
|
18859
19167
|
/**
|
|
18860
19168
|
*
|
|
19169
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
19170
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
19171
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
18861
19172
|
* @throws {RevenexxException}
|
|
18862
19173
|
* @returns {Promise<{}>}
|
|
18863
19174
|
*/
|
|
18864
|
-
|
|
19175
|
+
|
|
19176
|
+
/**
|
|
19177
|
+
*
|
|
19178
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
19179
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
19180
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19181
|
+
* @throws {RevenexxException}
|
|
19182
|
+
* @returns {Promise<{}>}
|
|
19183
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
19184
|
+
*/
|
|
19185
|
+
|
|
19186
|
+
productsAttributeGroupsList(paramsOrFirst, ...rest) {
|
|
19187
|
+
let params;
|
|
19188
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
19189
|
+
params = paramsOrFirst || {};
|
|
19190
|
+
} else {
|
|
19191
|
+
params = {
|
|
19192
|
+
limit: paramsOrFirst,
|
|
19193
|
+
offset: rest[0],
|
|
19194
|
+
order: rest[1]
|
|
19195
|
+
};
|
|
19196
|
+
}
|
|
19197
|
+
const limit = params.limit;
|
|
19198
|
+
const offset = params.offset;
|
|
19199
|
+
const order = params.order;
|
|
18865
19200
|
const apiPath = '/v1/products/attribute_groups';
|
|
18866
19201
|
const apiPayload = {};
|
|
19202
|
+
if (typeof limit !== 'undefined') {
|
|
19203
|
+
apiPayload['limit'] = limit;
|
|
19204
|
+
}
|
|
19205
|
+
if (typeof offset !== 'undefined') {
|
|
19206
|
+
apiPayload['offset'] = offset;
|
|
19207
|
+
}
|
|
19208
|
+
if (typeof order !== 'undefined') {
|
|
19209
|
+
apiPayload['order'] = order;
|
|
19210
|
+
}
|
|
18867
19211
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18868
19212
|
const apiHeaders = {};
|
|
18869
19213
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -19053,12 +19397,48 @@ class Products {
|
|
|
19053
19397
|
|
|
19054
19398
|
/**
|
|
19055
19399
|
*
|
|
19400
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
19401
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
19402
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19403
|
+
* @throws {RevenexxException}
|
|
19404
|
+
* @returns {Promise<{}>}
|
|
19405
|
+
*/
|
|
19406
|
+
|
|
19407
|
+
/**
|
|
19408
|
+
*
|
|
19409
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
19410
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
19411
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19056
19412
|
* @throws {RevenexxException}
|
|
19057
19413
|
* @returns {Promise<{}>}
|
|
19414
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
19058
19415
|
*/
|
|
19059
|
-
|
|
19416
|
+
|
|
19417
|
+
productsAttributeOptionsList(paramsOrFirst, ...rest) {
|
|
19418
|
+
let params;
|
|
19419
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
19420
|
+
params = paramsOrFirst || {};
|
|
19421
|
+
} else {
|
|
19422
|
+
params = {
|
|
19423
|
+
limit: paramsOrFirst,
|
|
19424
|
+
offset: rest[0],
|
|
19425
|
+
order: rest[1]
|
|
19426
|
+
};
|
|
19427
|
+
}
|
|
19428
|
+
const limit = params.limit;
|
|
19429
|
+
const offset = params.offset;
|
|
19430
|
+
const order = params.order;
|
|
19060
19431
|
const apiPath = '/v1/products/attribute_options';
|
|
19061
19432
|
const apiPayload = {};
|
|
19433
|
+
if (typeof limit !== 'undefined') {
|
|
19434
|
+
apiPayload['limit'] = limit;
|
|
19435
|
+
}
|
|
19436
|
+
if (typeof offset !== 'undefined') {
|
|
19437
|
+
apiPayload['offset'] = offset;
|
|
19438
|
+
}
|
|
19439
|
+
if (typeof order !== 'undefined') {
|
|
19440
|
+
apiPayload['order'] = order;
|
|
19441
|
+
}
|
|
19062
19442
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19063
19443
|
const apiHeaders = {};
|
|
19064
19444
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -19279,12 +19659,48 @@ class Products {
|
|
|
19279
19659
|
|
|
19280
19660
|
/**
|
|
19281
19661
|
*
|
|
19662
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
19663
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
19664
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19282
19665
|
* @throws {RevenexxException}
|
|
19283
19666
|
* @returns {Promise<{}>}
|
|
19284
19667
|
*/
|
|
19285
|
-
|
|
19668
|
+
|
|
19669
|
+
/**
|
|
19670
|
+
*
|
|
19671
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
19672
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
19673
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19674
|
+
* @throws {RevenexxException}
|
|
19675
|
+
* @returns {Promise<{}>}
|
|
19676
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
19677
|
+
*/
|
|
19678
|
+
|
|
19679
|
+
productsAttributesList(paramsOrFirst, ...rest) {
|
|
19680
|
+
let params;
|
|
19681
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
19682
|
+
params = paramsOrFirst || {};
|
|
19683
|
+
} else {
|
|
19684
|
+
params = {
|
|
19685
|
+
limit: paramsOrFirst,
|
|
19686
|
+
offset: rest[0],
|
|
19687
|
+
order: rest[1]
|
|
19688
|
+
};
|
|
19689
|
+
}
|
|
19690
|
+
const limit = params.limit;
|
|
19691
|
+
const offset = params.offset;
|
|
19692
|
+
const order = params.order;
|
|
19286
19693
|
const apiPath = '/v1/products/attributes';
|
|
19287
19694
|
const apiPayload = {};
|
|
19695
|
+
if (typeof limit !== 'undefined') {
|
|
19696
|
+
apiPayload['limit'] = limit;
|
|
19697
|
+
}
|
|
19698
|
+
if (typeof offset !== 'undefined') {
|
|
19699
|
+
apiPayload['offset'] = offset;
|
|
19700
|
+
}
|
|
19701
|
+
if (typeof order !== 'undefined') {
|
|
19702
|
+
apiPayload['order'] = order;
|
|
19703
|
+
}
|
|
19288
19704
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19289
19705
|
const apiHeaders = {};
|
|
19290
19706
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -19675,12 +20091,48 @@ class Products {
|
|
|
19675
20091
|
|
|
19676
20092
|
/**
|
|
19677
20093
|
*
|
|
20094
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
20095
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
20096
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20097
|
+
* @throws {RevenexxException}
|
|
20098
|
+
* @returns {Promise<{}>}
|
|
20099
|
+
*/
|
|
20100
|
+
|
|
20101
|
+
/**
|
|
20102
|
+
*
|
|
20103
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
20104
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
20105
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19678
20106
|
* @throws {RevenexxException}
|
|
19679
20107
|
* @returns {Promise<{}>}
|
|
20108
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
19680
20109
|
*/
|
|
19681
|
-
|
|
20110
|
+
|
|
20111
|
+
productsCategoriesList(paramsOrFirst, ...rest) {
|
|
20112
|
+
let params;
|
|
20113
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
20114
|
+
params = paramsOrFirst || {};
|
|
20115
|
+
} else {
|
|
20116
|
+
params = {
|
|
20117
|
+
limit: paramsOrFirst,
|
|
20118
|
+
offset: rest[0],
|
|
20119
|
+
order: rest[1]
|
|
20120
|
+
};
|
|
20121
|
+
}
|
|
20122
|
+
const limit = params.limit;
|
|
20123
|
+
const offset = params.offset;
|
|
20124
|
+
const order = params.order;
|
|
19682
20125
|
const apiPath = '/v1/products/categories';
|
|
19683
20126
|
const apiPayload = {};
|
|
20127
|
+
if (typeof limit !== 'undefined') {
|
|
20128
|
+
apiPayload['limit'] = limit;
|
|
20129
|
+
}
|
|
20130
|
+
if (typeof offset !== 'undefined') {
|
|
20131
|
+
apiPayload['offset'] = offset;
|
|
20132
|
+
}
|
|
20133
|
+
if (typeof order !== 'undefined') {
|
|
20134
|
+
apiPayload['order'] = order;
|
|
20135
|
+
}
|
|
19684
20136
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19685
20137
|
const apiHeaders = {};
|
|
19686
20138
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -19912,12 +20364,48 @@ class Products {
|
|
|
19912
20364
|
|
|
19913
20365
|
/**
|
|
19914
20366
|
*
|
|
20367
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
20368
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
20369
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
19915
20370
|
* @throws {RevenexxException}
|
|
19916
20371
|
* @returns {Promise<{}>}
|
|
19917
20372
|
*/
|
|
19918
|
-
|
|
20373
|
+
|
|
20374
|
+
/**
|
|
20375
|
+
*
|
|
20376
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
20377
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
20378
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20379
|
+
* @throws {RevenexxException}
|
|
20380
|
+
* @returns {Promise<{}>}
|
|
20381
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
20382
|
+
*/
|
|
20383
|
+
|
|
20384
|
+
productsFamiliesList(paramsOrFirst, ...rest) {
|
|
20385
|
+
let params;
|
|
20386
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
20387
|
+
params = paramsOrFirst || {};
|
|
20388
|
+
} else {
|
|
20389
|
+
params = {
|
|
20390
|
+
limit: paramsOrFirst,
|
|
20391
|
+
offset: rest[0],
|
|
20392
|
+
order: rest[1]
|
|
20393
|
+
};
|
|
20394
|
+
}
|
|
20395
|
+
const limit = params.limit;
|
|
20396
|
+
const offset = params.offset;
|
|
20397
|
+
const order = params.order;
|
|
19919
20398
|
const apiPath = '/v1/products/families';
|
|
19920
20399
|
const apiPayload = {};
|
|
20400
|
+
if (typeof limit !== 'undefined') {
|
|
20401
|
+
apiPayload['limit'] = limit;
|
|
20402
|
+
}
|
|
20403
|
+
if (typeof offset !== 'undefined') {
|
|
20404
|
+
apiPayload['offset'] = offset;
|
|
20405
|
+
}
|
|
20406
|
+
if (typeof order !== 'undefined') {
|
|
20407
|
+
apiPayload['order'] = order;
|
|
20408
|
+
}
|
|
19921
20409
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19922
20410
|
const apiHeaders = {};
|
|
19923
20411
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -20121,12 +20609,48 @@ class Products {
|
|
|
20121
20609
|
|
|
20122
20610
|
/**
|
|
20123
20611
|
*
|
|
20612
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
20613
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
20614
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20124
20615
|
* @throws {RevenexxException}
|
|
20125
20616
|
* @returns {Promise<{}>}
|
|
20126
20617
|
*/
|
|
20127
|
-
|
|
20618
|
+
|
|
20619
|
+
/**
|
|
20620
|
+
*
|
|
20621
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
20622
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
20623
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20624
|
+
* @throws {RevenexxException}
|
|
20625
|
+
* @returns {Promise<{}>}
|
|
20626
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
20627
|
+
*/
|
|
20628
|
+
|
|
20629
|
+
productsFamilyAttributesList(paramsOrFirst, ...rest) {
|
|
20630
|
+
let params;
|
|
20631
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
20632
|
+
params = paramsOrFirst || {};
|
|
20633
|
+
} else {
|
|
20634
|
+
params = {
|
|
20635
|
+
limit: paramsOrFirst,
|
|
20636
|
+
offset: rest[0],
|
|
20637
|
+
order: rest[1]
|
|
20638
|
+
};
|
|
20639
|
+
}
|
|
20640
|
+
const limit = params.limit;
|
|
20641
|
+
const offset = params.offset;
|
|
20642
|
+
const order = params.order;
|
|
20128
20643
|
const apiPath = '/v1/products/family_attributes';
|
|
20129
20644
|
const apiPayload = {};
|
|
20645
|
+
if (typeof limit !== 'undefined') {
|
|
20646
|
+
apiPayload['limit'] = limit;
|
|
20647
|
+
}
|
|
20648
|
+
if (typeof offset !== 'undefined') {
|
|
20649
|
+
apiPayload['offset'] = offset;
|
|
20650
|
+
}
|
|
20651
|
+
if (typeof order !== 'undefined') {
|
|
20652
|
+
apiPayload['order'] = order;
|
|
20653
|
+
}
|
|
20130
20654
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20131
20655
|
const apiHeaders = {};
|
|
20132
20656
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -20347,12 +20871,48 @@ class Products {
|
|
|
20347
20871
|
|
|
20348
20872
|
/**
|
|
20349
20873
|
*
|
|
20874
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
20875
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
20876
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20877
|
+
* @throws {RevenexxException}
|
|
20878
|
+
* @returns {Promise<{}>}
|
|
20879
|
+
*/
|
|
20880
|
+
|
|
20881
|
+
/**
|
|
20882
|
+
*
|
|
20883
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
20884
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
20885
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20350
20886
|
* @throws {RevenexxException}
|
|
20351
20887
|
* @returns {Promise<{}>}
|
|
20888
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
20352
20889
|
*/
|
|
20353
|
-
|
|
20890
|
+
|
|
20891
|
+
productsFamilyVariantsList(paramsOrFirst, ...rest) {
|
|
20892
|
+
let params;
|
|
20893
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
20894
|
+
params = paramsOrFirst || {};
|
|
20895
|
+
} else {
|
|
20896
|
+
params = {
|
|
20897
|
+
limit: paramsOrFirst,
|
|
20898
|
+
offset: rest[0],
|
|
20899
|
+
order: rest[1]
|
|
20900
|
+
};
|
|
20901
|
+
}
|
|
20902
|
+
const limit = params.limit;
|
|
20903
|
+
const offset = params.offset;
|
|
20904
|
+
const order = params.order;
|
|
20354
20905
|
const apiPath = '/v1/products/family_variants';
|
|
20355
20906
|
const apiPayload = {};
|
|
20907
|
+
if (typeof limit !== 'undefined') {
|
|
20908
|
+
apiPayload['limit'] = limit;
|
|
20909
|
+
}
|
|
20910
|
+
if (typeof offset !== 'undefined') {
|
|
20911
|
+
apiPayload['offset'] = offset;
|
|
20912
|
+
}
|
|
20913
|
+
if (typeof order !== 'undefined') {
|
|
20914
|
+
apiPayload['order'] = order;
|
|
20915
|
+
}
|
|
20356
20916
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20357
20917
|
const apiHeaders = {};
|
|
20358
20918
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -20559,12 +21119,48 @@ class Products {
|
|
|
20559
21119
|
|
|
20560
21120
|
/**
|
|
20561
21121
|
*
|
|
21122
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
21123
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
21124
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21125
|
+
* @throws {RevenexxException}
|
|
21126
|
+
* @returns {Promise<{}>}
|
|
21127
|
+
*/
|
|
21128
|
+
|
|
21129
|
+
/**
|
|
21130
|
+
*
|
|
21131
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
21132
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
21133
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20562
21134
|
* @throws {RevenexxException}
|
|
20563
21135
|
* @returns {Promise<{}>}
|
|
21136
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
20564
21137
|
*/
|
|
20565
|
-
|
|
21138
|
+
|
|
21139
|
+
productsMeasurementFamiliesList(paramsOrFirst, ...rest) {
|
|
21140
|
+
let params;
|
|
21141
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
21142
|
+
params = paramsOrFirst || {};
|
|
21143
|
+
} else {
|
|
21144
|
+
params = {
|
|
21145
|
+
limit: paramsOrFirst,
|
|
21146
|
+
offset: rest[0],
|
|
21147
|
+
order: rest[1]
|
|
21148
|
+
};
|
|
21149
|
+
}
|
|
21150
|
+
const limit = params.limit;
|
|
21151
|
+
const offset = params.offset;
|
|
21152
|
+
const order = params.order;
|
|
20566
21153
|
const apiPath = '/v1/products/measurement_families';
|
|
20567
21154
|
const apiPayload = {};
|
|
21155
|
+
if (typeof limit !== 'undefined') {
|
|
21156
|
+
apiPayload['limit'] = limit;
|
|
21157
|
+
}
|
|
21158
|
+
if (typeof offset !== 'undefined') {
|
|
21159
|
+
apiPayload['offset'] = offset;
|
|
21160
|
+
}
|
|
21161
|
+
if (typeof order !== 'undefined') {
|
|
21162
|
+
apiPayload['order'] = order;
|
|
21163
|
+
}
|
|
20568
21164
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20569
21165
|
const apiHeaders = {};
|
|
20570
21166
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -20771,12 +21367,48 @@ class Products {
|
|
|
20771
21367
|
|
|
20772
21368
|
/**
|
|
20773
21369
|
*
|
|
21370
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
21371
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
21372
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
20774
21373
|
* @throws {RevenexxException}
|
|
20775
21374
|
* @returns {Promise<{}>}
|
|
20776
21375
|
*/
|
|
20777
|
-
|
|
21376
|
+
|
|
21377
|
+
/**
|
|
21378
|
+
*
|
|
21379
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
21380
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
21381
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21382
|
+
* @throws {RevenexxException}
|
|
21383
|
+
* @returns {Promise<{}>}
|
|
21384
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
21385
|
+
*/
|
|
21386
|
+
|
|
21387
|
+
productsProductAssociationsList(paramsOrFirst, ...rest) {
|
|
21388
|
+
let params;
|
|
21389
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
21390
|
+
params = paramsOrFirst || {};
|
|
21391
|
+
} else {
|
|
21392
|
+
params = {
|
|
21393
|
+
limit: paramsOrFirst,
|
|
21394
|
+
offset: rest[0],
|
|
21395
|
+
order: rest[1]
|
|
21396
|
+
};
|
|
21397
|
+
}
|
|
21398
|
+
const limit = params.limit;
|
|
21399
|
+
const offset = params.offset;
|
|
21400
|
+
const order = params.order;
|
|
20778
21401
|
const apiPath = '/v1/products/product_associations';
|
|
20779
21402
|
const apiPayload = {};
|
|
21403
|
+
if (typeof limit !== 'undefined') {
|
|
21404
|
+
apiPayload['limit'] = limit;
|
|
21405
|
+
}
|
|
21406
|
+
if (typeof offset !== 'undefined') {
|
|
21407
|
+
apiPayload['offset'] = offset;
|
|
21408
|
+
}
|
|
21409
|
+
if (typeof order !== 'undefined') {
|
|
21410
|
+
apiPayload['order'] = order;
|
|
21411
|
+
}
|
|
20780
21412
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20781
21413
|
const apiHeaders = {};
|
|
20782
21414
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -21000,12 +21632,48 @@ class Products {
|
|
|
21000
21632
|
|
|
21001
21633
|
/**
|
|
21002
21634
|
*
|
|
21635
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
21636
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
21637
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21003
21638
|
* @throws {RevenexxException}
|
|
21004
21639
|
* @returns {Promise<{}>}
|
|
21005
21640
|
*/
|
|
21006
|
-
|
|
21641
|
+
|
|
21642
|
+
/**
|
|
21643
|
+
*
|
|
21644
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
21645
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
21646
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21647
|
+
* @throws {RevenexxException}
|
|
21648
|
+
* @returns {Promise<{}>}
|
|
21649
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
21650
|
+
*/
|
|
21651
|
+
|
|
21652
|
+
productsProductCategoriesList(paramsOrFirst, ...rest) {
|
|
21653
|
+
let params;
|
|
21654
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
21655
|
+
params = paramsOrFirst || {};
|
|
21656
|
+
} else {
|
|
21657
|
+
params = {
|
|
21658
|
+
limit: paramsOrFirst,
|
|
21659
|
+
offset: rest[0],
|
|
21660
|
+
order: rest[1]
|
|
21661
|
+
};
|
|
21662
|
+
}
|
|
21663
|
+
const limit = params.limit;
|
|
21664
|
+
const offset = params.offset;
|
|
21665
|
+
const order = params.order;
|
|
21007
21666
|
const apiPath = '/v1/products/product_categories';
|
|
21008
21667
|
const apiPayload = {};
|
|
21668
|
+
if (typeof limit !== 'undefined') {
|
|
21669
|
+
apiPayload['limit'] = limit;
|
|
21670
|
+
}
|
|
21671
|
+
if (typeof offset !== 'undefined') {
|
|
21672
|
+
apiPayload['offset'] = offset;
|
|
21673
|
+
}
|
|
21674
|
+
if (typeof order !== 'undefined') {
|
|
21675
|
+
apiPayload['order'] = order;
|
|
21676
|
+
}
|
|
21009
21677
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21010
21678
|
const apiHeaders = {};
|
|
21011
21679
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -21198,12 +21866,48 @@ class Products {
|
|
|
21198
21866
|
|
|
21199
21867
|
/**
|
|
21200
21868
|
*
|
|
21869
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
21870
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
21871
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21872
|
+
* @throws {RevenexxException}
|
|
21873
|
+
* @returns {Promise<{}>}
|
|
21874
|
+
*/
|
|
21875
|
+
|
|
21876
|
+
/**
|
|
21877
|
+
*
|
|
21878
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
21879
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
21880
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21201
21881
|
* @throws {RevenexxException}
|
|
21202
21882
|
* @returns {Promise<{}>}
|
|
21883
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
21203
21884
|
*/
|
|
21204
|
-
|
|
21885
|
+
|
|
21886
|
+
productsReferenceEntitiesList(paramsOrFirst, ...rest) {
|
|
21887
|
+
let params;
|
|
21888
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
21889
|
+
params = paramsOrFirst || {};
|
|
21890
|
+
} else {
|
|
21891
|
+
params = {
|
|
21892
|
+
limit: paramsOrFirst,
|
|
21893
|
+
offset: rest[0],
|
|
21894
|
+
order: rest[1]
|
|
21895
|
+
};
|
|
21896
|
+
}
|
|
21897
|
+
const limit = params.limit;
|
|
21898
|
+
const offset = params.offset;
|
|
21899
|
+
const order = params.order;
|
|
21205
21900
|
const apiPath = '/v1/products/reference_entities';
|
|
21206
21901
|
const apiPayload = {};
|
|
21902
|
+
if (typeof limit !== 'undefined') {
|
|
21903
|
+
apiPayload['limit'] = limit;
|
|
21904
|
+
}
|
|
21905
|
+
if (typeof offset !== 'undefined') {
|
|
21906
|
+
apiPayload['offset'] = offset;
|
|
21907
|
+
}
|
|
21908
|
+
if (typeof order !== 'undefined') {
|
|
21909
|
+
apiPayload['order'] = order;
|
|
21910
|
+
}
|
|
21207
21911
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21208
21912
|
const apiHeaders = {};
|
|
21209
21913
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|
|
@@ -21393,12 +22097,48 @@ class Products {
|
|
|
21393
22097
|
|
|
21394
22098
|
/**
|
|
21395
22099
|
*
|
|
22100
|
+
* @param {number} params.limit - Page size (default 50, max 200).
|
|
22101
|
+
* @param {number} params.offset - Row offset for pagination (default 0).
|
|
22102
|
+
* @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
22103
|
+
* @throws {RevenexxException}
|
|
22104
|
+
* @returns {Promise<{}>}
|
|
22105
|
+
*/
|
|
22106
|
+
|
|
22107
|
+
/**
|
|
22108
|
+
*
|
|
22109
|
+
* @param {number} limit - Page size (default 50, max 200).
|
|
22110
|
+
* @param {number} offset - Row offset for pagination (default 0).
|
|
22111
|
+
* @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
|
|
21396
22112
|
* @throws {RevenexxException}
|
|
21397
22113
|
* @returns {Promise<{}>}
|
|
22114
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
21398
22115
|
*/
|
|
21399
|
-
|
|
22116
|
+
|
|
22117
|
+
productsReferenceEntityRecordsList(paramsOrFirst, ...rest) {
|
|
22118
|
+
let params;
|
|
22119
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
|
|
22120
|
+
params = paramsOrFirst || {};
|
|
22121
|
+
} else {
|
|
22122
|
+
params = {
|
|
22123
|
+
limit: paramsOrFirst,
|
|
22124
|
+
offset: rest[0],
|
|
22125
|
+
order: rest[1]
|
|
22126
|
+
};
|
|
22127
|
+
}
|
|
22128
|
+
const limit = params.limit;
|
|
22129
|
+
const offset = params.offset;
|
|
22130
|
+
const order = params.order;
|
|
21400
22131
|
const apiPath = '/v1/products/reference_entity_records';
|
|
21401
22132
|
const apiPayload = {};
|
|
22133
|
+
if (typeof limit !== 'undefined') {
|
|
22134
|
+
apiPayload['limit'] = limit;
|
|
22135
|
+
}
|
|
22136
|
+
if (typeof offset !== 'undefined') {
|
|
22137
|
+
apiPayload['offset'] = offset;
|
|
22138
|
+
}
|
|
22139
|
+
if (typeof order !== 'undefined') {
|
|
22140
|
+
apiPayload['order'] = order;
|
|
22141
|
+
}
|
|
21402
22142
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21403
22143
|
const apiHeaders = {};
|
|
21404
22144
|
return this.client.call('get', uri, apiHeaders, apiPayload);
|