@revenexx/sdk 0.0.4 → 0.0.5

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.
Files changed (90) hide show
  1. package/dist/cjs/sdk.js +7445 -1584
  2. package/dist/cjs/sdk.js.map +1 -1
  3. package/dist/esm/sdk.js +7422 -1585
  4. package/dist/esm/sdk.js.map +1 -1
  5. package/dist/iife/sdk.js +7445 -1584
  6. package/package.json +1 -1
  7. package/src/client.ts +1 -1
  8. package/src/enums/address-type.ts +4 -0
  9. package/src/enums/cart-export-format.ts +4 -0
  10. package/src/enums/cart-io-apply-mode.ts +5 -0
  11. package/src/enums/cart-io-direction.ts +4 -0
  12. package/src/enums/cart-io-entity.ts +4 -0
  13. package/src/enums/cart-io-format.ts +4 -0
  14. package/src/enums/cart-item-type.ts +5 -0
  15. package/src/enums/channel-status.ts +4 -0
  16. package/src/enums/channel-type.ts +7 -0
  17. package/src/enums/contact-role.ts +6 -0
  18. package/src/enums/contact-status.ts +5 -0
  19. package/src/enums/location-type.ts +6 -0
  20. package/src/enums/market-status.ts +4 -0
  21. package/src/enums/order-comment-visibility.ts +4 -0
  22. package/src/enums/order-item-type.ts +5 -0
  23. package/src/enums/order-payment-status.ts +9 -0
  24. package/src/enums/organization-status.ts +4 -0
  25. package/src/enums/page-status.ts +5 -0
  26. package/src/enums/payment-fee-type.ts +5 -0
  27. package/src/enums/payment-method-kind.ts +4 -0
  28. package/src/enums/price-entry-type.ts +4 -0
  29. package/src/enums/price-list-status.ts +4 -0
  30. package/src/enums/shipping-method-matrix-basis.ts +6 -0
  31. package/src/enums/shipping-method-pricing-type.ts +5 -0
  32. package/src/index.ts +24 -0
  33. package/src/models.ts +4303 -941
  34. package/src/services/apps.ts +154 -154
  35. package/src/services/avatars.ts +57 -57
  36. package/src/services/carts.ts +739 -104
  37. package/src/services/channels.ts +147 -19
  38. package/src/services/customers.ts +801 -69
  39. package/src/services/greetings.ts +18 -18
  40. package/src/services/inventories.ts +620 -65
  41. package/src/services/locale.ts +16 -16
  42. package/src/services/markets.ts +373 -75
  43. package/src/services/messaging.ts +273 -273
  44. package/src/services/orders.ts +692 -137
  45. package/src/services/pages.ts +377 -157
  46. package/src/services/payments.ts +591 -64
  47. package/src/services/prices.ts +524 -59
  48. package/src/services/products.ts +1836 -272
  49. package/src/services/search.ts +24 -24
  50. package/src/services/shipping.ts +444 -59
  51. package/src/services/sites.ts +116 -116
  52. package/src/services/storage.ts +72 -72
  53. package/src/services/tokens.ts +14 -14
  54. package/types/enums/address-type.d.ts +4 -0
  55. package/types/enums/cart-export-format.d.ts +4 -0
  56. package/types/enums/cart-io-apply-mode.d.ts +5 -0
  57. package/types/enums/cart-io-direction.d.ts +4 -0
  58. package/types/enums/cart-io-entity.d.ts +4 -0
  59. package/types/enums/cart-io-format.d.ts +4 -0
  60. package/types/enums/cart-item-type.d.ts +5 -0
  61. package/types/enums/channel-status.d.ts +4 -0
  62. package/types/enums/channel-type.d.ts +7 -0
  63. package/types/enums/contact-role.d.ts +6 -0
  64. package/types/enums/contact-status.d.ts +5 -0
  65. package/types/enums/location-type.d.ts +6 -0
  66. package/types/enums/market-status.d.ts +4 -0
  67. package/types/enums/order-comment-visibility.d.ts +4 -0
  68. package/types/enums/order-item-type.d.ts +5 -0
  69. package/types/enums/order-payment-status.d.ts +9 -0
  70. package/types/enums/organization-status.d.ts +4 -0
  71. package/types/enums/page-status.d.ts +5 -0
  72. package/types/enums/payment-fee-type.d.ts +5 -0
  73. package/types/enums/payment-method-kind.d.ts +4 -0
  74. package/types/enums/price-entry-type.d.ts +4 -0
  75. package/types/enums/price-list-status.d.ts +4 -0
  76. package/types/enums/shipping-method-matrix-basis.d.ts +6 -0
  77. package/types/enums/shipping-method-pricing-type.d.ts +5 -0
  78. package/types/index.d.ts +24 -0
  79. package/types/models.d.ts +4214 -970
  80. package/types/services/carts.d.ts +271 -12
  81. package/types/services/channels.d.ts +54 -2
  82. package/types/services/customers.d.ts +295 -12
  83. package/types/services/inventories.d.ts +225 -11
  84. package/types/services/markets.d.ts +123 -6
  85. package/types/services/orders.d.ts +238 -16
  86. package/types/services/pages.d.ts +95 -6
  87. package/types/services/payments.d.ts +221 -7
  88. package/types/services/prices.d.ts +198 -6
  89. package/types/services/products.d.ts +646 -32
  90. package/types/services/shipping.d.ts +165 -6
@@ -69,15 +69,15 @@ export class Avatars {
69
69
  }
70
70
 
71
71
  const apiPath = '/v1/avatars/browsers/{code}'.replace('{code}', code);
72
- const payload: Payload = {};
72
+ const apiPayload: Payload = {};
73
73
  if (typeof width !== 'undefined') {
74
- payload['width'] = width;
74
+ apiPayload['width'] = width;
75
75
  }
76
76
  if (typeof height !== 'undefined') {
77
- payload['height'] = height;
77
+ apiPayload['height'] = height;
78
78
  }
79
79
  if (typeof quality !== 'undefined') {
80
- payload['quality'] = quality;
80
+ apiPayload['quality'] = quality;
81
81
  }
82
82
  const uri = new URL(this.client.config.endpoint + apiPath);
83
83
 
@@ -88,7 +88,7 @@ export class Avatars {
88
88
  'get',
89
89
  uri,
90
90
  apiHeaders,
91
- payload
91
+ apiPayload
92
92
  );
93
93
  }
94
94
 
@@ -148,15 +148,15 @@ export class Avatars {
148
148
  }
149
149
 
150
150
  const apiPath = '/v1/avatars/credit-cards/{code}'.replace('{code}', code);
151
- const payload: Payload = {};
151
+ const apiPayload: Payload = {};
152
152
  if (typeof width !== 'undefined') {
153
- payload['width'] = width;
153
+ apiPayload['width'] = width;
154
154
  }
155
155
  if (typeof height !== 'undefined') {
156
- payload['height'] = height;
156
+ apiPayload['height'] = height;
157
157
  }
158
158
  if (typeof quality !== 'undefined') {
159
- payload['quality'] = quality;
159
+ apiPayload['quality'] = quality;
160
160
  }
161
161
  const uri = new URL(this.client.config.endpoint + apiPath);
162
162
 
@@ -167,7 +167,7 @@ export class Avatars {
167
167
  'get',
168
168
  uri,
169
169
  apiHeaders,
170
- payload
170
+ apiPayload
171
171
  );
172
172
  }
173
173
 
@@ -212,9 +212,9 @@ export class Avatars {
212
212
  }
213
213
 
214
214
  const apiPath = '/v1/avatars/favicon';
215
- const payload: Payload = {};
215
+ const apiPayload: Payload = {};
216
216
  if (typeof url !== 'undefined') {
217
- payload['url'] = url;
217
+ apiPayload['url'] = url;
218
218
  }
219
219
  const uri = new URL(this.client.config.endpoint + apiPath);
220
220
 
@@ -225,7 +225,7 @@ export class Avatars {
225
225
  'get',
226
226
  uri,
227
227
  apiHeaders,
228
- payload
228
+ apiPayload
229
229
  );
230
230
  }
231
231
 
@@ -285,15 +285,15 @@ export class Avatars {
285
285
  }
286
286
 
287
287
  const apiPath = '/v1/avatars/flags/{code}'.replace('{code}', code);
288
- const payload: Payload = {};
288
+ const apiPayload: Payload = {};
289
289
  if (typeof width !== 'undefined') {
290
- payload['width'] = width;
290
+ apiPayload['width'] = width;
291
291
  }
292
292
  if (typeof height !== 'undefined') {
293
- payload['height'] = height;
293
+ apiPayload['height'] = height;
294
294
  }
295
295
  if (typeof quality !== 'undefined') {
296
- payload['quality'] = quality;
296
+ apiPayload['quality'] = quality;
297
297
  }
298
298
  const uri = new URL(this.client.config.endpoint + apiPath);
299
299
 
@@ -304,7 +304,7 @@ export class Avatars {
304
304
  'get',
305
305
  uri,
306
306
  apiHeaders,
307
- payload
307
+ apiPayload
308
308
  );
309
309
  }
310
310
 
@@ -362,15 +362,15 @@ export class Avatars {
362
362
  }
363
363
 
364
364
  const apiPath = '/v1/avatars/image';
365
- const payload: Payload = {};
365
+ const apiPayload: Payload = {};
366
366
  if (typeof url !== 'undefined') {
367
- payload['url'] = url;
367
+ apiPayload['url'] = url;
368
368
  }
369
369
  if (typeof width !== 'undefined') {
370
- payload['width'] = width;
370
+ apiPayload['width'] = width;
371
371
  }
372
372
  if (typeof height !== 'undefined') {
373
- payload['height'] = height;
373
+ apiPayload['height'] = height;
374
374
  }
375
375
  const uri = new URL(this.client.config.endpoint + apiPath);
376
376
 
@@ -381,7 +381,7 @@ export class Avatars {
381
381
  'get',
382
382
  uri,
383
383
  apiHeaders,
384
- payload
384
+ apiPayload
385
385
  );
386
386
  }
387
387
 
@@ -442,18 +442,18 @@ export class Avatars {
442
442
 
443
443
 
444
444
  const apiPath = '/v1/avatars/initials';
445
- const payload: Payload = {};
445
+ const apiPayload: Payload = {};
446
446
  if (typeof name !== 'undefined') {
447
- payload['name'] = name;
447
+ apiPayload['name'] = name;
448
448
  }
449
449
  if (typeof width !== 'undefined') {
450
- payload['width'] = width;
450
+ apiPayload['width'] = width;
451
451
  }
452
452
  if (typeof height !== 'undefined') {
453
- payload['height'] = height;
453
+ apiPayload['height'] = height;
454
454
  }
455
455
  if (typeof background !== 'undefined') {
456
- payload['background'] = background;
456
+ apiPayload['background'] = background;
457
457
  }
458
458
  const uri = new URL(this.client.config.endpoint + apiPath);
459
459
 
@@ -464,7 +464,7 @@ export class Avatars {
464
464
  'get',
465
465
  uri,
466
466
  apiHeaders,
467
- payload
467
+ apiPayload
468
468
  );
469
469
  }
470
470
 
@@ -520,18 +520,18 @@ export class Avatars {
520
520
  }
521
521
 
522
522
  const apiPath = '/v1/avatars/qr';
523
- const payload: Payload = {};
523
+ const apiPayload: Payload = {};
524
524
  if (typeof text !== 'undefined') {
525
- payload['text'] = text;
525
+ apiPayload['text'] = text;
526
526
  }
527
527
  if (typeof size !== 'undefined') {
528
- payload['size'] = size;
528
+ apiPayload['size'] = size;
529
529
  }
530
530
  if (typeof margin !== 'undefined') {
531
- payload['margin'] = margin;
531
+ apiPayload['margin'] = margin;
532
532
  }
533
533
  if (typeof download !== 'undefined') {
534
- payload['download'] = download;
534
+ apiPayload['download'] = download;
535
535
  }
536
536
  const uri = new URL(this.client.config.endpoint + apiPath);
537
537
 
@@ -542,7 +542,7 @@ export class Avatars {
542
542
  'get',
543
543
  uri,
544
544
  apiHeaders,
545
- payload
545
+ apiPayload
546
546
  );
547
547
  }
548
548
 
@@ -668,66 +668,66 @@ export class Avatars {
668
668
  }
669
669
 
670
670
  const apiPath = '/v1/avatars/screenshots';
671
- const payload: Payload = {};
671
+ const apiPayload: Payload = {};
672
672
  if (typeof url !== 'undefined') {
673
- payload['url'] = url;
673
+ apiPayload['url'] = url;
674
674
  }
675
675
  if (typeof headers !== 'undefined') {
676
- payload['headers'] = headers;
676
+ apiPayload['headers'] = headers;
677
677
  }
678
678
  if (typeof viewportWidth !== 'undefined') {
679
- payload['viewportWidth'] = viewportWidth;
679
+ apiPayload['viewportWidth'] = viewportWidth;
680
680
  }
681
681
  if (typeof viewportHeight !== 'undefined') {
682
- payload['viewportHeight'] = viewportHeight;
682
+ apiPayload['viewportHeight'] = viewportHeight;
683
683
  }
684
684
  if (typeof scale !== 'undefined') {
685
- payload['scale'] = scale;
685
+ apiPayload['scale'] = scale;
686
686
  }
687
687
  if (typeof theme !== 'undefined') {
688
- payload['theme'] = theme;
688
+ apiPayload['theme'] = theme;
689
689
  }
690
690
  if (typeof userAgent !== 'undefined') {
691
- payload['userAgent'] = userAgent;
691
+ apiPayload['userAgent'] = userAgent;
692
692
  }
693
693
  if (typeof fullpage !== 'undefined') {
694
- payload['fullpage'] = fullpage;
694
+ apiPayload['fullpage'] = fullpage;
695
695
  }
696
696
  if (typeof locale !== 'undefined') {
697
- payload['locale'] = locale;
697
+ apiPayload['locale'] = locale;
698
698
  }
699
699
  if (typeof timezone !== 'undefined') {
700
- payload['timezone'] = timezone;
700
+ apiPayload['timezone'] = timezone;
701
701
  }
702
702
  if (typeof latitude !== 'undefined') {
703
- payload['latitude'] = latitude;
703
+ apiPayload['latitude'] = latitude;
704
704
  }
705
705
  if (typeof longitude !== 'undefined') {
706
- payload['longitude'] = longitude;
706
+ apiPayload['longitude'] = longitude;
707
707
  }
708
708
  if (typeof accuracy !== 'undefined') {
709
- payload['accuracy'] = accuracy;
709
+ apiPayload['accuracy'] = accuracy;
710
710
  }
711
711
  if (typeof touch !== 'undefined') {
712
- payload['touch'] = touch;
712
+ apiPayload['touch'] = touch;
713
713
  }
714
714
  if (typeof permissions !== 'undefined') {
715
- payload['permissions'] = permissions;
715
+ apiPayload['permissions'] = permissions;
716
716
  }
717
717
  if (typeof sleep !== 'undefined') {
718
- payload['sleep'] = sleep;
718
+ apiPayload['sleep'] = sleep;
719
719
  }
720
720
  if (typeof width !== 'undefined') {
721
- payload['width'] = width;
721
+ apiPayload['width'] = width;
722
722
  }
723
723
  if (typeof height !== 'undefined') {
724
- payload['height'] = height;
724
+ apiPayload['height'] = height;
725
725
  }
726
726
  if (typeof quality !== 'undefined') {
727
- payload['quality'] = quality;
727
+ apiPayload['quality'] = quality;
728
728
  }
729
729
  if (typeof output !== 'undefined') {
730
- payload['output'] = output;
730
+ apiPayload['output'] = output;
731
731
  }
732
732
  const uri = new URL(this.client.config.endpoint + apiPath);
733
733
 
@@ -738,7 +738,7 @@ export class Avatars {
738
738
  'get',
739
739
  uri,
740
740
  apiHeaders,
741
- payload
741
+ apiPayload
742
742
  );
743
743
  }
744
744
  }