@revenexx/sdk 0.0.4 → 0.0.6
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 +13491 -6163
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +13464 -6162
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +13491 -6163
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/address-type.ts +4 -0
- package/src/enums/cart-export-format.ts +4 -0
- package/src/enums/cart-io-apply-mode.ts +5 -0
- package/src/enums/cart-io-direction.ts +4 -0
- package/src/enums/cart-io-entity.ts +4 -0
- package/src/enums/cart-io-format.ts +4 -0
- package/src/enums/cart-item-type.ts +5 -0
- package/src/enums/channel-status.ts +4 -0
- package/src/enums/channel-type.ts +7 -0
- package/src/enums/contact-role.ts +6 -0
- package/src/enums/contact-status.ts +5 -0
- package/src/enums/location-type.ts +6 -0
- package/src/enums/market-status.ts +4 -0
- package/src/enums/order-comment-visibility.ts +4 -0
- package/src/enums/order-item-type.ts +5 -0
- package/src/enums/order-list-kind.ts +4 -0
- package/src/enums/order-payment-status.ts +9 -0
- package/src/enums/organization-status.ts +4 -0
- package/src/enums/page-status.ts +5 -0
- package/src/enums/payment-fee-type.ts +5 -0
- package/src/enums/payment-method-kind.ts +4 -0
- package/src/enums/price-entry-type.ts +4 -0
- package/src/enums/price-list-status.ts +4 -0
- package/src/enums/shipping-method-matrix-basis.ts +6 -0
- package/src/enums/shipping-method-pricing-type.ts +5 -0
- package/src/enums/store-asset-request-visibility.ts +4 -0
- package/src/enums/visibility.ts +4 -0
- package/src/index.ts +28 -2
- package/src/models.ts +5309 -1009
- package/src/services/apps.ts +154 -154
- package/src/services/avatars.ts +57 -57
- package/src/services/carts.ts +739 -104
- package/src/services/channels.ts +147 -19
- package/src/services/customers.ts +809 -69
- package/src/services/greetings.ts +18 -18
- package/src/services/inventories.ts +620 -65
- package/src/services/locale.ts +16 -16
- package/src/services/markets.ts +690 -75
- package/src/services/messaging.ts +273 -273
- package/src/services/orderlists.ts +889 -0
- package/src/services/orders.ts +692 -137
- package/src/services/pages.ts +661 -155
- package/src/services/payments.ts +591 -64
- package/src/services/prices.ts +585 -59
- package/src/services/products.ts +1908 -272
- package/src/services/search.ts +24 -24
- package/src/services/shipping.ts +451 -59
- package/src/services/sites.ts +116 -116
- package/src/services/storage.ts +933 -599
- package/src/services/tokens.ts +14 -14
- package/types/enums/address-type.d.ts +4 -0
- package/types/enums/cart-export-format.d.ts +4 -0
- package/types/enums/cart-io-apply-mode.d.ts +5 -0
- package/types/enums/cart-io-direction.d.ts +4 -0
- package/types/enums/cart-io-entity.d.ts +4 -0
- package/types/enums/cart-io-format.d.ts +4 -0
- package/types/enums/cart-item-type.d.ts +5 -0
- package/types/enums/channel-status.d.ts +4 -0
- package/types/enums/channel-type.d.ts +7 -0
- package/types/enums/contact-role.d.ts +6 -0
- package/types/enums/contact-status.d.ts +5 -0
- package/types/enums/location-type.d.ts +6 -0
- package/types/enums/market-status.d.ts +4 -0
- package/types/enums/order-comment-visibility.d.ts +4 -0
- package/types/enums/order-item-type.d.ts +5 -0
- package/types/enums/order-list-kind.d.ts +4 -0
- package/types/enums/order-payment-status.d.ts +9 -0
- package/types/enums/organization-status.d.ts +4 -0
- package/types/enums/page-status.d.ts +5 -0
- package/types/enums/payment-fee-type.d.ts +5 -0
- package/types/enums/payment-method-kind.d.ts +4 -0
- package/types/enums/price-entry-type.d.ts +4 -0
- package/types/enums/price-list-status.d.ts +4 -0
- package/types/enums/shipping-method-matrix-basis.d.ts +6 -0
- package/types/enums/shipping-method-pricing-type.d.ts +5 -0
- package/types/enums/store-asset-request-visibility.d.ts +4 -0
- package/types/enums/visibility.d.ts +4 -0
- package/types/index.d.ts +28 -2
- package/types/models.d.ts +5170 -1010
- package/types/services/carts.d.ts +271 -12
- package/types/services/channels.d.ts +54 -2
- package/types/services/customers.d.ts +298 -12
- package/types/services/inventories.d.ts +225 -11
- package/types/services/markets.d.ts +235 -6
- package/types/services/orderlists.d.ts +324 -0
- package/types/services/orders.d.ts +238 -16
- package/types/services/pages.d.ts +190 -6
- package/types/services/payments.d.ts +221 -7
- package/types/services/prices.d.ts +218 -6
- package/types/services/products.d.ts +672 -32
- package/types/services/shipping.d.ts +168 -6
- package/types/services/storage.d.ts +353 -285
package/src/services/avatars.ts
CHANGED
|
@@ -69,15 +69,15 @@ export class Avatars {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
const apiPath = '/v1/avatars/browsers/{code}'.replace('{code}', code);
|
|
72
|
-
const
|
|
72
|
+
const apiPayload: Payload = {};
|
|
73
73
|
if (typeof width !== 'undefined') {
|
|
74
|
-
|
|
74
|
+
apiPayload['width'] = width;
|
|
75
75
|
}
|
|
76
76
|
if (typeof height !== 'undefined') {
|
|
77
|
-
|
|
77
|
+
apiPayload['height'] = height;
|
|
78
78
|
}
|
|
79
79
|
if (typeof quality !== 'undefined') {
|
|
80
|
-
|
|
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
|
-
|
|
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
|
|
151
|
+
const apiPayload: Payload = {};
|
|
152
152
|
if (typeof width !== 'undefined') {
|
|
153
|
-
|
|
153
|
+
apiPayload['width'] = width;
|
|
154
154
|
}
|
|
155
155
|
if (typeof height !== 'undefined') {
|
|
156
|
-
|
|
156
|
+
apiPayload['height'] = height;
|
|
157
157
|
}
|
|
158
158
|
if (typeof quality !== 'undefined') {
|
|
159
|
-
|
|
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
|
-
|
|
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
|
|
215
|
+
const apiPayload: Payload = {};
|
|
216
216
|
if (typeof url !== 'undefined') {
|
|
217
|
-
|
|
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
|
-
|
|
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
|
|
288
|
+
const apiPayload: Payload = {};
|
|
289
289
|
if (typeof width !== 'undefined') {
|
|
290
|
-
|
|
290
|
+
apiPayload['width'] = width;
|
|
291
291
|
}
|
|
292
292
|
if (typeof height !== 'undefined') {
|
|
293
|
-
|
|
293
|
+
apiPayload['height'] = height;
|
|
294
294
|
}
|
|
295
295
|
if (typeof quality !== 'undefined') {
|
|
296
|
-
|
|
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
|
-
|
|
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
|
|
365
|
+
const apiPayload: Payload = {};
|
|
366
366
|
if (typeof url !== 'undefined') {
|
|
367
|
-
|
|
367
|
+
apiPayload['url'] = url;
|
|
368
368
|
}
|
|
369
369
|
if (typeof width !== 'undefined') {
|
|
370
|
-
|
|
370
|
+
apiPayload['width'] = width;
|
|
371
371
|
}
|
|
372
372
|
if (typeof height !== 'undefined') {
|
|
373
|
-
|
|
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
|
-
|
|
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
|
|
445
|
+
const apiPayload: Payload = {};
|
|
446
446
|
if (typeof name !== 'undefined') {
|
|
447
|
-
|
|
447
|
+
apiPayload['name'] = name;
|
|
448
448
|
}
|
|
449
449
|
if (typeof width !== 'undefined') {
|
|
450
|
-
|
|
450
|
+
apiPayload['width'] = width;
|
|
451
451
|
}
|
|
452
452
|
if (typeof height !== 'undefined') {
|
|
453
|
-
|
|
453
|
+
apiPayload['height'] = height;
|
|
454
454
|
}
|
|
455
455
|
if (typeof background !== 'undefined') {
|
|
456
|
-
|
|
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
|
-
|
|
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
|
|
523
|
+
const apiPayload: Payload = {};
|
|
524
524
|
if (typeof text !== 'undefined') {
|
|
525
|
-
|
|
525
|
+
apiPayload['text'] = text;
|
|
526
526
|
}
|
|
527
527
|
if (typeof size !== 'undefined') {
|
|
528
|
-
|
|
528
|
+
apiPayload['size'] = size;
|
|
529
529
|
}
|
|
530
530
|
if (typeof margin !== 'undefined') {
|
|
531
|
-
|
|
531
|
+
apiPayload['margin'] = margin;
|
|
532
532
|
}
|
|
533
533
|
if (typeof download !== 'undefined') {
|
|
534
|
-
|
|
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
|
-
|
|
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
|
|
671
|
+
const apiPayload: Payload = {};
|
|
672
672
|
if (typeof url !== 'undefined') {
|
|
673
|
-
|
|
673
|
+
apiPayload['url'] = url;
|
|
674
674
|
}
|
|
675
675
|
if (typeof headers !== 'undefined') {
|
|
676
|
-
|
|
676
|
+
apiPayload['headers'] = headers;
|
|
677
677
|
}
|
|
678
678
|
if (typeof viewportWidth !== 'undefined') {
|
|
679
|
-
|
|
679
|
+
apiPayload['viewportWidth'] = viewportWidth;
|
|
680
680
|
}
|
|
681
681
|
if (typeof viewportHeight !== 'undefined') {
|
|
682
|
-
|
|
682
|
+
apiPayload['viewportHeight'] = viewportHeight;
|
|
683
683
|
}
|
|
684
684
|
if (typeof scale !== 'undefined') {
|
|
685
|
-
|
|
685
|
+
apiPayload['scale'] = scale;
|
|
686
686
|
}
|
|
687
687
|
if (typeof theme !== 'undefined') {
|
|
688
|
-
|
|
688
|
+
apiPayload['theme'] = theme;
|
|
689
689
|
}
|
|
690
690
|
if (typeof userAgent !== 'undefined') {
|
|
691
|
-
|
|
691
|
+
apiPayload['userAgent'] = userAgent;
|
|
692
692
|
}
|
|
693
693
|
if (typeof fullpage !== 'undefined') {
|
|
694
|
-
|
|
694
|
+
apiPayload['fullpage'] = fullpage;
|
|
695
695
|
}
|
|
696
696
|
if (typeof locale !== 'undefined') {
|
|
697
|
-
|
|
697
|
+
apiPayload['locale'] = locale;
|
|
698
698
|
}
|
|
699
699
|
if (typeof timezone !== 'undefined') {
|
|
700
|
-
|
|
700
|
+
apiPayload['timezone'] = timezone;
|
|
701
701
|
}
|
|
702
702
|
if (typeof latitude !== 'undefined') {
|
|
703
|
-
|
|
703
|
+
apiPayload['latitude'] = latitude;
|
|
704
704
|
}
|
|
705
705
|
if (typeof longitude !== 'undefined') {
|
|
706
|
-
|
|
706
|
+
apiPayload['longitude'] = longitude;
|
|
707
707
|
}
|
|
708
708
|
if (typeof accuracy !== 'undefined') {
|
|
709
|
-
|
|
709
|
+
apiPayload['accuracy'] = accuracy;
|
|
710
710
|
}
|
|
711
711
|
if (typeof touch !== 'undefined') {
|
|
712
|
-
|
|
712
|
+
apiPayload['touch'] = touch;
|
|
713
713
|
}
|
|
714
714
|
if (typeof permissions !== 'undefined') {
|
|
715
|
-
|
|
715
|
+
apiPayload['permissions'] = permissions;
|
|
716
716
|
}
|
|
717
717
|
if (typeof sleep !== 'undefined') {
|
|
718
|
-
|
|
718
|
+
apiPayload['sleep'] = sleep;
|
|
719
719
|
}
|
|
720
720
|
if (typeof width !== 'undefined') {
|
|
721
|
-
|
|
721
|
+
apiPayload['width'] = width;
|
|
722
722
|
}
|
|
723
723
|
if (typeof height !== 'undefined') {
|
|
724
|
-
|
|
724
|
+
apiPayload['height'] = height;
|
|
725
725
|
}
|
|
726
726
|
if (typeof quality !== 'undefined') {
|
|
727
|
-
|
|
727
|
+
apiPayload['quality'] = quality;
|
|
728
728
|
}
|
|
729
729
|
if (typeof output !== 'undefined') {
|
|
730
|
-
|
|
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
|
-
|
|
741
|
+
apiPayload
|
|
742
742
|
);
|
|
743
743
|
}
|
|
744
744
|
}
|