@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 CHANGED
@@ -657,7 +657,7 @@ class Client {
657
657
  'x-sdk-name': 'Revenexx Web',
658
658
  'x-sdk-platform': '',
659
659
  'x-sdk-language': 'web',
660
- 'x-sdk-version': '0.0.10'
660
+ 'x-sdk-version': '0.0.11'
661
661
  };
662
662
 
663
663
  /**
@@ -3766,12 +3766,69 @@ class Carts {
3766
3766
 
3767
3767
  /**
3768
3768
  *
3769
+ * @param {string} params.contactId - Filter to one owning contact.
3770
+ * @param {string} params.sessionKey - Filter to one guest session.
3771
+ * @param {string} params.status - Filter by cart status (e.g. active).
3772
+ * @param {number} params.limit - Page size (default 50, max 200).
3773
+ * @param {number} params.offset - Row offset for pagination (default 0).
3774
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
3775
+ * @throws {RevenexxException}
3776
+ * @returns {Promise<{}>}
3777
+ */
3778
+
3779
+ /**
3780
+ *
3781
+ * @param {string} contactId - Filter to one owning contact.
3782
+ * @param {string} sessionKey - Filter to one guest session.
3783
+ * @param {string} status - Filter by cart status (e.g. active).
3784
+ * @param {number} limit - Page size (default 50, max 200).
3785
+ * @param {number} offset - Row offset for pagination (default 0).
3786
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
3769
3787
  * @throws {RevenexxException}
3770
3788
  * @returns {Promise<{}>}
3789
+ * @deprecated Use the object parameter style method for a better developer experience.
3771
3790
  */
3772
- cartsList() {
3791
+
3792
+ cartsList(paramsOrFirst, ...rest) {
3793
+ let params;
3794
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
3795
+ params = paramsOrFirst || {};
3796
+ } else {
3797
+ params = {
3798
+ contactId: paramsOrFirst,
3799
+ sessionKey: rest[0],
3800
+ status: rest[1],
3801
+ limit: rest[2],
3802
+ offset: rest[3],
3803
+ order: rest[4]
3804
+ };
3805
+ }
3806
+ const contactId = params.contactId;
3807
+ const sessionKey = params.sessionKey;
3808
+ const status = params.status;
3809
+ const limit = params.limit;
3810
+ const offset = params.offset;
3811
+ const order = params.order;
3773
3812
  const apiPath = '/v1/carts';
3774
3813
  const apiPayload = {};
3814
+ if (typeof contactId !== 'undefined') {
3815
+ apiPayload['contact_id'] = contactId;
3816
+ }
3817
+ if (typeof sessionKey !== 'undefined') {
3818
+ apiPayload['session_key'] = sessionKey;
3819
+ }
3820
+ if (typeof status !== 'undefined') {
3821
+ apiPayload['status'] = status;
3822
+ }
3823
+ if (typeof limit !== 'undefined') {
3824
+ apiPayload['limit'] = limit;
3825
+ }
3826
+ if (typeof offset !== 'undefined') {
3827
+ apiPayload['offset'] = offset;
3828
+ }
3829
+ if (typeof order !== 'undefined') {
3830
+ apiPayload['order'] = order;
3831
+ }
3775
3832
  const uri = new URL(this.client.config.endpoint + apiPath);
3776
3833
  const apiHeaders = {};
3777
3834
  return this.client.call('get', uri, apiHeaders, apiPayload);
@@ -5397,12 +5454,62 @@ class Customers {
5397
5454
 
5398
5455
  /**
5399
5456
  *
5457
+ * @param {string} params.contactId - Filter to one owning contact.
5458
+ * @param {string} params.organizationId - Filter to one organization.
5459
+ * @param {number} params.limit - Page size (default 50, max 200).
5460
+ * @param {number} params.offset - Row offset for pagination (default 0).
5461
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
5462
+ * @throws {RevenexxException}
5463
+ * @returns {Promise<{}>}
5464
+ */
5465
+
5466
+ /**
5467
+ *
5468
+ * @param {string} contactId - Filter to one owning contact.
5469
+ * @param {string} organizationId - Filter to one organization.
5470
+ * @param {number} limit - Page size (default 50, max 200).
5471
+ * @param {number} offset - Row offset for pagination (default 0).
5472
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
5400
5473
  * @throws {RevenexxException}
5401
5474
  * @returns {Promise<{}>}
5475
+ * @deprecated Use the object parameter style method for a better developer experience.
5402
5476
  */
5403
- customersAddressesList() {
5477
+
5478
+ customersAddressesList(paramsOrFirst, ...rest) {
5479
+ let params;
5480
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
5481
+ params = paramsOrFirst || {};
5482
+ } else {
5483
+ params = {
5484
+ contactId: paramsOrFirst,
5485
+ organizationId: rest[0],
5486
+ limit: rest[1],
5487
+ offset: rest[2],
5488
+ order: rest[3]
5489
+ };
5490
+ }
5491
+ const contactId = params.contactId;
5492
+ const organizationId = params.organizationId;
5493
+ const limit = params.limit;
5494
+ const offset = params.offset;
5495
+ const order = params.order;
5404
5496
  const apiPath = '/v1/customers/addresses';
5405
5497
  const apiPayload = {};
5498
+ if (typeof contactId !== 'undefined') {
5499
+ apiPayload['contact_id'] = contactId;
5500
+ }
5501
+ if (typeof organizationId !== 'undefined') {
5502
+ apiPayload['organization_id'] = organizationId;
5503
+ }
5504
+ if (typeof limit !== 'undefined') {
5505
+ apiPayload['limit'] = limit;
5506
+ }
5507
+ if (typeof offset !== 'undefined') {
5508
+ apiPayload['offset'] = offset;
5509
+ }
5510
+ if (typeof order !== 'undefined') {
5511
+ apiPayload['order'] = order;
5512
+ }
5406
5513
  const uri = new URL(this.client.config.endpoint + apiPath);
5407
5514
  const apiHeaders = {};
5408
5515
  return this.client.call('get', uri, apiHeaders, apiPayload);
@@ -11926,12 +12033,69 @@ class Orderlists {
11926
12033
 
11927
12034
  /**
11928
12035
  *
12036
+ * @param {string} params.ownerId - Filter to one owning contact.
12037
+ * @param {string} params.organizationId - Filter to one organization.
12038
+ * @param {string} params.kind - Filter by list kind (shopping | label).
12039
+ * @param {number} params.limit - Page size (default 50, max 200).
12040
+ * @param {number} params.offset - Row offset for pagination (default 0).
12041
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
12042
+ * @throws {RevenexxException}
12043
+ * @returns {Promise<{}>}
12044
+ */
12045
+
12046
+ /**
12047
+ *
12048
+ * @param {string} ownerId - Filter to one owning contact.
12049
+ * @param {string} organizationId - Filter to one organization.
12050
+ * @param {string} kind - Filter by list kind (shopping | label).
12051
+ * @param {number} limit - Page size (default 50, max 200).
12052
+ * @param {number} offset - Row offset for pagination (default 0).
12053
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
11929
12054
  * @throws {RevenexxException}
11930
12055
  * @returns {Promise<{}>}
12056
+ * @deprecated Use the object parameter style method for a better developer experience.
11931
12057
  */
11932
- orderlistsList() {
12058
+
12059
+ orderlistsList(paramsOrFirst, ...rest) {
12060
+ let params;
12061
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
12062
+ params = paramsOrFirst || {};
12063
+ } else {
12064
+ params = {
12065
+ ownerId: paramsOrFirst,
12066
+ organizationId: rest[0],
12067
+ kind: rest[1],
12068
+ limit: rest[2],
12069
+ offset: rest[3],
12070
+ order: rest[4]
12071
+ };
12072
+ }
12073
+ const ownerId = params.ownerId;
12074
+ const organizationId = params.organizationId;
12075
+ const kind = params.kind;
12076
+ const limit = params.limit;
12077
+ const offset = params.offset;
12078
+ const order = params.order;
11933
12079
  const apiPath = '/v1/orderlists';
11934
12080
  const apiPayload = {};
12081
+ if (typeof ownerId !== 'undefined') {
12082
+ apiPayload['owner_id'] = ownerId;
12083
+ }
12084
+ if (typeof organizationId !== 'undefined') {
12085
+ apiPayload['organization_id'] = organizationId;
12086
+ }
12087
+ if (typeof kind !== 'undefined') {
12088
+ apiPayload['kind'] = kind;
12089
+ }
12090
+ if (typeof limit !== 'undefined') {
12091
+ apiPayload['limit'] = limit;
12092
+ }
12093
+ if (typeof offset !== 'undefined') {
12094
+ apiPayload['offset'] = offset;
12095
+ }
12096
+ if (typeof order !== 'undefined') {
12097
+ apiPayload['order'] = order;
12098
+ }
11935
12099
  const uri = new URL(this.client.config.endpoint + apiPath);
11936
12100
  const apiHeaders = {};
11937
12101
  return this.client.call('get', uri, apiHeaders, apiPayload);
@@ -18125,12 +18289,48 @@ class Products {
18125
18289
 
18126
18290
  /**
18127
18291
  *
18292
+ * @param {number} params.limit - Page size (default 50, max 200).
18293
+ * @param {number} params.offset - Row offset for pagination (default 0).
18294
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
18295
+ * @throws {RevenexxException}
18296
+ * @returns {Promise<{}>}
18297
+ */
18298
+
18299
+ /**
18300
+ *
18301
+ * @param {number} limit - Page size (default 50, max 200).
18302
+ * @param {number} offset - Row offset for pagination (default 0).
18303
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
18128
18304
  * @throws {RevenexxException}
18129
18305
  * @returns {Promise<{}>}
18306
+ * @deprecated Use the object parameter style method for a better developer experience.
18130
18307
  */
18131
- productsList() {
18308
+
18309
+ productsList(paramsOrFirst, ...rest) {
18310
+ let params;
18311
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
18312
+ params = paramsOrFirst || {};
18313
+ } else {
18314
+ params = {
18315
+ limit: paramsOrFirst,
18316
+ offset: rest[0],
18317
+ order: rest[1]
18318
+ };
18319
+ }
18320
+ const limit = params.limit;
18321
+ const offset = params.offset;
18322
+ const order = params.order;
18132
18323
  const apiPath = '/v1/products';
18133
18324
  const apiPayload = {};
18325
+ if (typeof limit !== 'undefined') {
18326
+ apiPayload['limit'] = limit;
18327
+ }
18328
+ if (typeof offset !== 'undefined') {
18329
+ apiPayload['offset'] = offset;
18330
+ }
18331
+ if (typeof order !== 'undefined') {
18332
+ apiPayload['order'] = order;
18333
+ }
18134
18334
  const uri = new URL(this.client.config.endpoint + apiPath);
18135
18335
  const apiHeaders = {};
18136
18336
  return this.client.call('get', uri, apiHeaders, apiPayload);
@@ -18248,12 +18448,48 @@ class Products {
18248
18448
 
18249
18449
  /**
18250
18450
  *
18451
+ * @param {number} params.limit - Page size (default 50, max 200).
18452
+ * @param {number} params.offset - Row offset for pagination (default 0).
18453
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
18454
+ * @throws {RevenexxException}
18455
+ * @returns {Promise<{}>}
18456
+ */
18457
+
18458
+ /**
18459
+ *
18460
+ * @param {number} limit - Page size (default 50, max 200).
18461
+ * @param {number} offset - Row offset for pagination (default 0).
18462
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
18251
18463
  * @throws {RevenexxException}
18252
18464
  * @returns {Promise<{}>}
18465
+ * @deprecated Use the object parameter style method for a better developer experience.
18253
18466
  */
18254
- productsAssetFamiliesList() {
18467
+
18468
+ productsAssetFamiliesList(paramsOrFirst, ...rest) {
18469
+ let params;
18470
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
18471
+ params = paramsOrFirst || {};
18472
+ } else {
18473
+ params = {
18474
+ limit: paramsOrFirst,
18475
+ offset: rest[0],
18476
+ order: rest[1]
18477
+ };
18478
+ }
18479
+ const limit = params.limit;
18480
+ const offset = params.offset;
18481
+ const order = params.order;
18255
18482
  const apiPath = '/v1/products/asset_families';
18256
18483
  const apiPayload = {};
18484
+ if (typeof limit !== 'undefined') {
18485
+ apiPayload['limit'] = limit;
18486
+ }
18487
+ if (typeof offset !== 'undefined') {
18488
+ apiPayload['offset'] = offset;
18489
+ }
18490
+ if (typeof order !== 'undefined') {
18491
+ apiPayload['order'] = order;
18492
+ }
18257
18493
  const uri = new URL(this.client.config.endpoint + apiPath);
18258
18494
  const apiHeaders = {};
18259
18495
  return this.client.call('get', uri, apiHeaders, apiPayload);
@@ -18443,12 +18679,48 @@ class Products {
18443
18679
 
18444
18680
  /**
18445
18681
  *
18682
+ * @param {number} params.limit - Page size (default 50, max 200).
18683
+ * @param {number} params.offset - Row offset for pagination (default 0).
18684
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
18685
+ * @throws {RevenexxException}
18686
+ * @returns {Promise<{}>}
18687
+ */
18688
+
18689
+ /**
18690
+ *
18691
+ * @param {number} limit - Page size (default 50, max 200).
18692
+ * @param {number} offset - Row offset for pagination (default 0).
18693
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
18446
18694
  * @throws {RevenexxException}
18447
18695
  * @returns {Promise<{}>}
18696
+ * @deprecated Use the object parameter style method for a better developer experience.
18448
18697
  */
18449
- productsAssetsList() {
18698
+
18699
+ productsAssetsList(paramsOrFirst, ...rest) {
18700
+ let params;
18701
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
18702
+ params = paramsOrFirst || {};
18703
+ } else {
18704
+ params = {
18705
+ limit: paramsOrFirst,
18706
+ offset: rest[0],
18707
+ order: rest[1]
18708
+ };
18709
+ }
18710
+ const limit = params.limit;
18711
+ const offset = params.offset;
18712
+ const order = params.order;
18450
18713
  const apiPath = '/v1/products/assets';
18451
18714
  const apiPayload = {};
18715
+ if (typeof limit !== 'undefined') {
18716
+ apiPayload['limit'] = limit;
18717
+ }
18718
+ if (typeof offset !== 'undefined') {
18719
+ apiPayload['offset'] = offset;
18720
+ }
18721
+ if (typeof order !== 'undefined') {
18722
+ apiPayload['order'] = order;
18723
+ }
18452
18724
  const uri = new URL(this.client.config.endpoint + apiPath);
18453
18725
  const apiHeaders = {};
18454
18726
  return this.client.call('get', uri, apiHeaders, apiPayload);
@@ -18655,28 +18927,64 @@ class Products {
18655
18927
 
18656
18928
  /**
18657
18929
  *
18930
+ * @param {number} params.limit - Page size (default 50, max 200).
18931
+ * @param {number} params.offset - Row offset for pagination (default 0).
18932
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
18658
18933
  * @throws {RevenexxException}
18659
18934
  * @returns {Promise<{}>}
18660
18935
  */
18661
- productsAssociationTypesList() {
18662
- const apiPath = '/v1/products/association_types';
18663
- const apiPayload = {};
18664
- const uri = new URL(this.client.config.endpoint + apiPath);
18665
- const apiHeaders = {};
18666
- return this.client.call('get', uri, apiHeaders, apiPayload);
18667
- }
18668
18936
 
18669
18937
  /**
18670
18938
  *
18671
- * @param {string} params.code -
18672
- * @param {boolean} params.isQuantified -
18673
- * @param {boolean} params.isTwoWay -
18674
- * @param {object} params.labels -
18939
+ * @param {number} limit - Page size (default 50, max 200).
18940
+ * @param {number} offset - Row offset for pagination (default 0).
18941
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
18675
18942
  * @throws {RevenexxException}
18676
- * @returns {Promise<Models.AssociationTypes>}
18943
+ * @returns {Promise<{}>}
18944
+ * @deprecated Use the object parameter style method for a better developer experience.
18677
18945
  */
18678
18946
 
18679
- /**
18947
+ productsAssociationTypesList(paramsOrFirst, ...rest) {
18948
+ let params;
18949
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
18950
+ params = paramsOrFirst || {};
18951
+ } else {
18952
+ params = {
18953
+ limit: paramsOrFirst,
18954
+ offset: rest[0],
18955
+ order: rest[1]
18956
+ };
18957
+ }
18958
+ const limit = params.limit;
18959
+ const offset = params.offset;
18960
+ const order = params.order;
18961
+ const apiPath = '/v1/products/association_types';
18962
+ const apiPayload = {};
18963
+ if (typeof limit !== 'undefined') {
18964
+ apiPayload['limit'] = limit;
18965
+ }
18966
+ if (typeof offset !== 'undefined') {
18967
+ apiPayload['offset'] = offset;
18968
+ }
18969
+ if (typeof order !== 'undefined') {
18970
+ apiPayload['order'] = order;
18971
+ }
18972
+ const uri = new URL(this.client.config.endpoint + apiPath);
18973
+ const apiHeaders = {};
18974
+ return this.client.call('get', uri, apiHeaders, apiPayload);
18975
+ }
18976
+
18977
+ /**
18978
+ *
18979
+ * @param {string} params.code -
18980
+ * @param {boolean} params.isQuantified -
18981
+ * @param {boolean} params.isTwoWay -
18982
+ * @param {object} params.labels -
18983
+ * @throws {RevenexxException}
18984
+ * @returns {Promise<Models.AssociationTypes>}
18985
+ */
18986
+
18987
+ /**
18680
18988
  *
18681
18989
  * @param {string} code -
18682
18990
  * @param {boolean} isQuantified -
@@ -18864,12 +19172,48 @@ class Products {
18864
19172
 
18865
19173
  /**
18866
19174
  *
19175
+ * @param {number} params.limit - Page size (default 50, max 200).
19176
+ * @param {number} params.offset - Row offset for pagination (default 0).
19177
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
18867
19178
  * @throws {RevenexxException}
18868
19179
  * @returns {Promise<{}>}
18869
19180
  */
18870
- productsAttributeGroupsList() {
19181
+
19182
+ /**
19183
+ *
19184
+ * @param {number} limit - Page size (default 50, max 200).
19185
+ * @param {number} offset - Row offset for pagination (default 0).
19186
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
19187
+ * @throws {RevenexxException}
19188
+ * @returns {Promise<{}>}
19189
+ * @deprecated Use the object parameter style method for a better developer experience.
19190
+ */
19191
+
19192
+ productsAttributeGroupsList(paramsOrFirst, ...rest) {
19193
+ let params;
19194
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
19195
+ params = paramsOrFirst || {};
19196
+ } else {
19197
+ params = {
19198
+ limit: paramsOrFirst,
19199
+ offset: rest[0],
19200
+ order: rest[1]
19201
+ };
19202
+ }
19203
+ const limit = params.limit;
19204
+ const offset = params.offset;
19205
+ const order = params.order;
18871
19206
  const apiPath = '/v1/products/attribute_groups';
18872
19207
  const apiPayload = {};
19208
+ if (typeof limit !== 'undefined') {
19209
+ apiPayload['limit'] = limit;
19210
+ }
19211
+ if (typeof offset !== 'undefined') {
19212
+ apiPayload['offset'] = offset;
19213
+ }
19214
+ if (typeof order !== 'undefined') {
19215
+ apiPayload['order'] = order;
19216
+ }
18873
19217
  const uri = new URL(this.client.config.endpoint + apiPath);
18874
19218
  const apiHeaders = {};
18875
19219
  return this.client.call('get', uri, apiHeaders, apiPayload);
@@ -19059,12 +19403,48 @@ class Products {
19059
19403
 
19060
19404
  /**
19061
19405
  *
19406
+ * @param {number} params.limit - Page size (default 50, max 200).
19407
+ * @param {number} params.offset - Row offset for pagination (default 0).
19408
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
19409
+ * @throws {RevenexxException}
19410
+ * @returns {Promise<{}>}
19411
+ */
19412
+
19413
+ /**
19414
+ *
19415
+ * @param {number} limit - Page size (default 50, max 200).
19416
+ * @param {number} offset - Row offset for pagination (default 0).
19417
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
19062
19418
  * @throws {RevenexxException}
19063
19419
  * @returns {Promise<{}>}
19420
+ * @deprecated Use the object parameter style method for a better developer experience.
19064
19421
  */
19065
- productsAttributeOptionsList() {
19422
+
19423
+ productsAttributeOptionsList(paramsOrFirst, ...rest) {
19424
+ let params;
19425
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
19426
+ params = paramsOrFirst || {};
19427
+ } else {
19428
+ params = {
19429
+ limit: paramsOrFirst,
19430
+ offset: rest[0],
19431
+ order: rest[1]
19432
+ };
19433
+ }
19434
+ const limit = params.limit;
19435
+ const offset = params.offset;
19436
+ const order = params.order;
19066
19437
  const apiPath = '/v1/products/attribute_options';
19067
19438
  const apiPayload = {};
19439
+ if (typeof limit !== 'undefined') {
19440
+ apiPayload['limit'] = limit;
19441
+ }
19442
+ if (typeof offset !== 'undefined') {
19443
+ apiPayload['offset'] = offset;
19444
+ }
19445
+ if (typeof order !== 'undefined') {
19446
+ apiPayload['order'] = order;
19447
+ }
19068
19448
  const uri = new URL(this.client.config.endpoint + apiPath);
19069
19449
  const apiHeaders = {};
19070
19450
  return this.client.call('get', uri, apiHeaders, apiPayload);
@@ -19285,12 +19665,48 @@ class Products {
19285
19665
 
19286
19666
  /**
19287
19667
  *
19668
+ * @param {number} params.limit - Page size (default 50, max 200).
19669
+ * @param {number} params.offset - Row offset for pagination (default 0).
19670
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
19288
19671
  * @throws {RevenexxException}
19289
19672
  * @returns {Promise<{}>}
19290
19673
  */
19291
- productsAttributesList() {
19674
+
19675
+ /**
19676
+ *
19677
+ * @param {number} limit - Page size (default 50, max 200).
19678
+ * @param {number} offset - Row offset for pagination (default 0).
19679
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
19680
+ * @throws {RevenexxException}
19681
+ * @returns {Promise<{}>}
19682
+ * @deprecated Use the object parameter style method for a better developer experience.
19683
+ */
19684
+
19685
+ productsAttributesList(paramsOrFirst, ...rest) {
19686
+ let params;
19687
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
19688
+ params = paramsOrFirst || {};
19689
+ } else {
19690
+ params = {
19691
+ limit: paramsOrFirst,
19692
+ offset: rest[0],
19693
+ order: rest[1]
19694
+ };
19695
+ }
19696
+ const limit = params.limit;
19697
+ const offset = params.offset;
19698
+ const order = params.order;
19292
19699
  const apiPath = '/v1/products/attributes';
19293
19700
  const apiPayload = {};
19701
+ if (typeof limit !== 'undefined') {
19702
+ apiPayload['limit'] = limit;
19703
+ }
19704
+ if (typeof offset !== 'undefined') {
19705
+ apiPayload['offset'] = offset;
19706
+ }
19707
+ if (typeof order !== 'undefined') {
19708
+ apiPayload['order'] = order;
19709
+ }
19294
19710
  const uri = new URL(this.client.config.endpoint + apiPath);
19295
19711
  const apiHeaders = {};
19296
19712
  return this.client.call('get', uri, apiHeaders, apiPayload);
@@ -19681,12 +20097,48 @@ class Products {
19681
20097
 
19682
20098
  /**
19683
20099
  *
20100
+ * @param {number} params.limit - Page size (default 50, max 200).
20101
+ * @param {number} params.offset - Row offset for pagination (default 0).
20102
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
20103
+ * @throws {RevenexxException}
20104
+ * @returns {Promise<{}>}
20105
+ */
20106
+
20107
+ /**
20108
+ *
20109
+ * @param {number} limit - Page size (default 50, max 200).
20110
+ * @param {number} offset - Row offset for pagination (default 0).
20111
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
19684
20112
  * @throws {RevenexxException}
19685
20113
  * @returns {Promise<{}>}
20114
+ * @deprecated Use the object parameter style method for a better developer experience.
19686
20115
  */
19687
- productsCategoriesList() {
20116
+
20117
+ productsCategoriesList(paramsOrFirst, ...rest) {
20118
+ let params;
20119
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
20120
+ params = paramsOrFirst || {};
20121
+ } else {
20122
+ params = {
20123
+ limit: paramsOrFirst,
20124
+ offset: rest[0],
20125
+ order: rest[1]
20126
+ };
20127
+ }
20128
+ const limit = params.limit;
20129
+ const offset = params.offset;
20130
+ const order = params.order;
19688
20131
  const apiPath = '/v1/products/categories';
19689
20132
  const apiPayload = {};
20133
+ if (typeof limit !== 'undefined') {
20134
+ apiPayload['limit'] = limit;
20135
+ }
20136
+ if (typeof offset !== 'undefined') {
20137
+ apiPayload['offset'] = offset;
20138
+ }
20139
+ if (typeof order !== 'undefined') {
20140
+ apiPayload['order'] = order;
20141
+ }
19690
20142
  const uri = new URL(this.client.config.endpoint + apiPath);
19691
20143
  const apiHeaders = {};
19692
20144
  return this.client.call('get', uri, apiHeaders, apiPayload);
@@ -19918,12 +20370,48 @@ class Products {
19918
20370
 
19919
20371
  /**
19920
20372
  *
20373
+ * @param {number} params.limit - Page size (default 50, max 200).
20374
+ * @param {number} params.offset - Row offset for pagination (default 0).
20375
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
19921
20376
  * @throws {RevenexxException}
19922
20377
  * @returns {Promise<{}>}
19923
20378
  */
19924
- productsFamiliesList() {
20379
+
20380
+ /**
20381
+ *
20382
+ * @param {number} limit - Page size (default 50, max 200).
20383
+ * @param {number} offset - Row offset for pagination (default 0).
20384
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
20385
+ * @throws {RevenexxException}
20386
+ * @returns {Promise<{}>}
20387
+ * @deprecated Use the object parameter style method for a better developer experience.
20388
+ */
20389
+
20390
+ productsFamiliesList(paramsOrFirst, ...rest) {
20391
+ let params;
20392
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
20393
+ params = paramsOrFirst || {};
20394
+ } else {
20395
+ params = {
20396
+ limit: paramsOrFirst,
20397
+ offset: rest[0],
20398
+ order: rest[1]
20399
+ };
20400
+ }
20401
+ const limit = params.limit;
20402
+ const offset = params.offset;
20403
+ const order = params.order;
19925
20404
  const apiPath = '/v1/products/families';
19926
20405
  const apiPayload = {};
20406
+ if (typeof limit !== 'undefined') {
20407
+ apiPayload['limit'] = limit;
20408
+ }
20409
+ if (typeof offset !== 'undefined') {
20410
+ apiPayload['offset'] = offset;
20411
+ }
20412
+ if (typeof order !== 'undefined') {
20413
+ apiPayload['order'] = order;
20414
+ }
19927
20415
  const uri = new URL(this.client.config.endpoint + apiPath);
19928
20416
  const apiHeaders = {};
19929
20417
  return this.client.call('get', uri, apiHeaders, apiPayload);
@@ -20127,12 +20615,48 @@ class Products {
20127
20615
 
20128
20616
  /**
20129
20617
  *
20618
+ * @param {number} params.limit - Page size (default 50, max 200).
20619
+ * @param {number} params.offset - Row offset for pagination (default 0).
20620
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
20130
20621
  * @throws {RevenexxException}
20131
20622
  * @returns {Promise<{}>}
20132
20623
  */
20133
- productsFamilyAttributesList() {
20624
+
20625
+ /**
20626
+ *
20627
+ * @param {number} limit - Page size (default 50, max 200).
20628
+ * @param {number} offset - Row offset for pagination (default 0).
20629
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
20630
+ * @throws {RevenexxException}
20631
+ * @returns {Promise<{}>}
20632
+ * @deprecated Use the object parameter style method for a better developer experience.
20633
+ */
20634
+
20635
+ productsFamilyAttributesList(paramsOrFirst, ...rest) {
20636
+ let params;
20637
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
20638
+ params = paramsOrFirst || {};
20639
+ } else {
20640
+ params = {
20641
+ limit: paramsOrFirst,
20642
+ offset: rest[0],
20643
+ order: rest[1]
20644
+ };
20645
+ }
20646
+ const limit = params.limit;
20647
+ const offset = params.offset;
20648
+ const order = params.order;
20134
20649
  const apiPath = '/v1/products/family_attributes';
20135
20650
  const apiPayload = {};
20651
+ if (typeof limit !== 'undefined') {
20652
+ apiPayload['limit'] = limit;
20653
+ }
20654
+ if (typeof offset !== 'undefined') {
20655
+ apiPayload['offset'] = offset;
20656
+ }
20657
+ if (typeof order !== 'undefined') {
20658
+ apiPayload['order'] = order;
20659
+ }
20136
20660
  const uri = new URL(this.client.config.endpoint + apiPath);
20137
20661
  const apiHeaders = {};
20138
20662
  return this.client.call('get', uri, apiHeaders, apiPayload);
@@ -20353,12 +20877,48 @@ class Products {
20353
20877
 
20354
20878
  /**
20355
20879
  *
20880
+ * @param {number} params.limit - Page size (default 50, max 200).
20881
+ * @param {number} params.offset - Row offset for pagination (default 0).
20882
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
20883
+ * @throws {RevenexxException}
20884
+ * @returns {Promise<{}>}
20885
+ */
20886
+
20887
+ /**
20888
+ *
20889
+ * @param {number} limit - Page size (default 50, max 200).
20890
+ * @param {number} offset - Row offset for pagination (default 0).
20891
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
20356
20892
  * @throws {RevenexxException}
20357
20893
  * @returns {Promise<{}>}
20894
+ * @deprecated Use the object parameter style method for a better developer experience.
20358
20895
  */
20359
- productsFamilyVariantsList() {
20896
+
20897
+ productsFamilyVariantsList(paramsOrFirst, ...rest) {
20898
+ let params;
20899
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
20900
+ params = paramsOrFirst || {};
20901
+ } else {
20902
+ params = {
20903
+ limit: paramsOrFirst,
20904
+ offset: rest[0],
20905
+ order: rest[1]
20906
+ };
20907
+ }
20908
+ const limit = params.limit;
20909
+ const offset = params.offset;
20910
+ const order = params.order;
20360
20911
  const apiPath = '/v1/products/family_variants';
20361
20912
  const apiPayload = {};
20913
+ if (typeof limit !== 'undefined') {
20914
+ apiPayload['limit'] = limit;
20915
+ }
20916
+ if (typeof offset !== 'undefined') {
20917
+ apiPayload['offset'] = offset;
20918
+ }
20919
+ if (typeof order !== 'undefined') {
20920
+ apiPayload['order'] = order;
20921
+ }
20362
20922
  const uri = new URL(this.client.config.endpoint + apiPath);
20363
20923
  const apiHeaders = {};
20364
20924
  return this.client.call('get', uri, apiHeaders, apiPayload);
@@ -20565,12 +21125,48 @@ class Products {
20565
21125
 
20566
21126
  /**
20567
21127
  *
21128
+ * @param {number} params.limit - Page size (default 50, max 200).
21129
+ * @param {number} params.offset - Row offset for pagination (default 0).
21130
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
21131
+ * @throws {RevenexxException}
21132
+ * @returns {Promise<{}>}
21133
+ */
21134
+
21135
+ /**
21136
+ *
21137
+ * @param {number} limit - Page size (default 50, max 200).
21138
+ * @param {number} offset - Row offset for pagination (default 0).
21139
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
20568
21140
  * @throws {RevenexxException}
20569
21141
  * @returns {Promise<{}>}
21142
+ * @deprecated Use the object parameter style method for a better developer experience.
20570
21143
  */
20571
- productsMeasurementFamiliesList() {
21144
+
21145
+ productsMeasurementFamiliesList(paramsOrFirst, ...rest) {
21146
+ let params;
21147
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
21148
+ params = paramsOrFirst || {};
21149
+ } else {
21150
+ params = {
21151
+ limit: paramsOrFirst,
21152
+ offset: rest[0],
21153
+ order: rest[1]
21154
+ };
21155
+ }
21156
+ const limit = params.limit;
21157
+ const offset = params.offset;
21158
+ const order = params.order;
20572
21159
  const apiPath = '/v1/products/measurement_families';
20573
21160
  const apiPayload = {};
21161
+ if (typeof limit !== 'undefined') {
21162
+ apiPayload['limit'] = limit;
21163
+ }
21164
+ if (typeof offset !== 'undefined') {
21165
+ apiPayload['offset'] = offset;
21166
+ }
21167
+ if (typeof order !== 'undefined') {
21168
+ apiPayload['order'] = order;
21169
+ }
20574
21170
  const uri = new URL(this.client.config.endpoint + apiPath);
20575
21171
  const apiHeaders = {};
20576
21172
  return this.client.call('get', uri, apiHeaders, apiPayload);
@@ -20777,12 +21373,48 @@ class Products {
20777
21373
 
20778
21374
  /**
20779
21375
  *
21376
+ * @param {number} params.limit - Page size (default 50, max 200).
21377
+ * @param {number} params.offset - Row offset for pagination (default 0).
21378
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
20780
21379
  * @throws {RevenexxException}
20781
21380
  * @returns {Promise<{}>}
20782
21381
  */
20783
- productsProductAssociationsList() {
21382
+
21383
+ /**
21384
+ *
21385
+ * @param {number} limit - Page size (default 50, max 200).
21386
+ * @param {number} offset - Row offset for pagination (default 0).
21387
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
21388
+ * @throws {RevenexxException}
21389
+ * @returns {Promise<{}>}
21390
+ * @deprecated Use the object parameter style method for a better developer experience.
21391
+ */
21392
+
21393
+ productsProductAssociationsList(paramsOrFirst, ...rest) {
21394
+ let params;
21395
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
21396
+ params = paramsOrFirst || {};
21397
+ } else {
21398
+ params = {
21399
+ limit: paramsOrFirst,
21400
+ offset: rest[0],
21401
+ order: rest[1]
21402
+ };
21403
+ }
21404
+ const limit = params.limit;
21405
+ const offset = params.offset;
21406
+ const order = params.order;
20784
21407
  const apiPath = '/v1/products/product_associations';
20785
21408
  const apiPayload = {};
21409
+ if (typeof limit !== 'undefined') {
21410
+ apiPayload['limit'] = limit;
21411
+ }
21412
+ if (typeof offset !== 'undefined') {
21413
+ apiPayload['offset'] = offset;
21414
+ }
21415
+ if (typeof order !== 'undefined') {
21416
+ apiPayload['order'] = order;
21417
+ }
20786
21418
  const uri = new URL(this.client.config.endpoint + apiPath);
20787
21419
  const apiHeaders = {};
20788
21420
  return this.client.call('get', uri, apiHeaders, apiPayload);
@@ -21006,12 +21638,48 @@ class Products {
21006
21638
 
21007
21639
  /**
21008
21640
  *
21641
+ * @param {number} params.limit - Page size (default 50, max 200).
21642
+ * @param {number} params.offset - Row offset for pagination (default 0).
21643
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
21009
21644
  * @throws {RevenexxException}
21010
21645
  * @returns {Promise<{}>}
21011
21646
  */
21012
- productsProductCategoriesList() {
21647
+
21648
+ /**
21649
+ *
21650
+ * @param {number} limit - Page size (default 50, max 200).
21651
+ * @param {number} offset - Row offset for pagination (default 0).
21652
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
21653
+ * @throws {RevenexxException}
21654
+ * @returns {Promise<{}>}
21655
+ * @deprecated Use the object parameter style method for a better developer experience.
21656
+ */
21657
+
21658
+ productsProductCategoriesList(paramsOrFirst, ...rest) {
21659
+ let params;
21660
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
21661
+ params = paramsOrFirst || {};
21662
+ } else {
21663
+ params = {
21664
+ limit: paramsOrFirst,
21665
+ offset: rest[0],
21666
+ order: rest[1]
21667
+ };
21668
+ }
21669
+ const limit = params.limit;
21670
+ const offset = params.offset;
21671
+ const order = params.order;
21013
21672
  const apiPath = '/v1/products/product_categories';
21014
21673
  const apiPayload = {};
21674
+ if (typeof limit !== 'undefined') {
21675
+ apiPayload['limit'] = limit;
21676
+ }
21677
+ if (typeof offset !== 'undefined') {
21678
+ apiPayload['offset'] = offset;
21679
+ }
21680
+ if (typeof order !== 'undefined') {
21681
+ apiPayload['order'] = order;
21682
+ }
21015
21683
  const uri = new URL(this.client.config.endpoint + apiPath);
21016
21684
  const apiHeaders = {};
21017
21685
  return this.client.call('get', uri, apiHeaders, apiPayload);
@@ -21204,12 +21872,48 @@ class Products {
21204
21872
 
21205
21873
  /**
21206
21874
  *
21875
+ * @param {number} params.limit - Page size (default 50, max 200).
21876
+ * @param {number} params.offset - Row offset for pagination (default 0).
21877
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
21878
+ * @throws {RevenexxException}
21879
+ * @returns {Promise<{}>}
21880
+ */
21881
+
21882
+ /**
21883
+ *
21884
+ * @param {number} limit - Page size (default 50, max 200).
21885
+ * @param {number} offset - Row offset for pagination (default 0).
21886
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
21207
21887
  * @throws {RevenexxException}
21208
21888
  * @returns {Promise<{}>}
21889
+ * @deprecated Use the object parameter style method for a better developer experience.
21209
21890
  */
21210
- productsReferenceEntitiesList() {
21891
+
21892
+ productsReferenceEntitiesList(paramsOrFirst, ...rest) {
21893
+ let params;
21894
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
21895
+ params = paramsOrFirst || {};
21896
+ } else {
21897
+ params = {
21898
+ limit: paramsOrFirst,
21899
+ offset: rest[0],
21900
+ order: rest[1]
21901
+ };
21902
+ }
21903
+ const limit = params.limit;
21904
+ const offset = params.offset;
21905
+ const order = params.order;
21211
21906
  const apiPath = '/v1/products/reference_entities';
21212
21907
  const apiPayload = {};
21908
+ if (typeof limit !== 'undefined') {
21909
+ apiPayload['limit'] = limit;
21910
+ }
21911
+ if (typeof offset !== 'undefined') {
21912
+ apiPayload['offset'] = offset;
21913
+ }
21914
+ if (typeof order !== 'undefined') {
21915
+ apiPayload['order'] = order;
21916
+ }
21213
21917
  const uri = new URL(this.client.config.endpoint + apiPath);
21214
21918
  const apiHeaders = {};
21215
21919
  return this.client.call('get', uri, apiHeaders, apiPayload);
@@ -21399,12 +22103,48 @@ class Products {
21399
22103
 
21400
22104
  /**
21401
22105
  *
22106
+ * @param {number} params.limit - Page size (default 50, max 200).
22107
+ * @param {number} params.offset - Row offset for pagination (default 0).
22108
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
22109
+ * @throws {RevenexxException}
22110
+ * @returns {Promise<{}>}
22111
+ */
22112
+
22113
+ /**
22114
+ *
22115
+ * @param {number} limit - Page size (default 50, max 200).
22116
+ * @param {number} offset - Row offset for pagination (default 0).
22117
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
21402
22118
  * @throws {RevenexxException}
21403
22119
  * @returns {Promise<{}>}
22120
+ * @deprecated Use the object parameter style method for a better developer experience.
21404
22121
  */
21405
- productsReferenceEntityRecordsList() {
22122
+
22123
+ productsReferenceEntityRecordsList(paramsOrFirst, ...rest) {
22124
+ let params;
22125
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)) {
22126
+ params = paramsOrFirst || {};
22127
+ } else {
22128
+ params = {
22129
+ limit: paramsOrFirst,
22130
+ offset: rest[0],
22131
+ order: rest[1]
22132
+ };
22133
+ }
22134
+ const limit = params.limit;
22135
+ const offset = params.offset;
22136
+ const order = params.order;
21406
22137
  const apiPath = '/v1/products/reference_entity_records';
21407
22138
  const apiPayload = {};
22139
+ if (typeof limit !== 'undefined') {
22140
+ apiPayload['limit'] = limit;
22141
+ }
22142
+ if (typeof offset !== 'undefined') {
22143
+ apiPayload['offset'] = offset;
22144
+ }
22145
+ if (typeof order !== 'undefined') {
22146
+ apiPayload['order'] = order;
22147
+ }
21408
22148
  const uri = new URL(this.client.config.endpoint + apiPath);
21409
22149
  const apiHeaders = {};
21410
22150
  return this.client.call('get', uri, apiHeaders, apiPayload);