@revenexx/sdk 0.0.2 → 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.
- package/dist/cjs/sdk.js +13496 -3442
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +13467 -3443
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +13496 -3442
- 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-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/index.ts +30 -0
- package/src/models.ts +5628 -410
- 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 +801 -69
- package/src/services/greetings.ts +18 -18
- package/src/services/inventories.ts +1278 -0
- package/src/services/locale.ts +16 -16
- package/src/services/markets.ts +373 -75
- package/src/services/messaging.ts +273 -273
- package/src/services/orders.ts +1648 -0
- package/src/services/pages.ts +2317 -0
- package/src/services/payments.ts +1334 -0
- package/src/services/prices.ts +1036 -0
- package/src/services/products.ts +1836 -272
- package/src/services/search.ts +24 -24
- package/src/services/shipping.ts +956 -0
- package/src/services/sites.ts +116 -116
- package/src/services/storage.ts +72 -72
- 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-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/index.d.ts +30 -0
- package/types/models.d.ts +5470 -404
- package/types/services/carts.d.ts +271 -12
- package/types/services/channels.d.ts +54 -2
- package/types/services/customers.d.ts +295 -12
- package/types/services/inventories.d.ts +440 -0
- package/types/services/markets.d.ts +123 -6
- package/types/services/orders.d.ts +590 -0
- package/types/services/pages.d.ts +792 -0
- package/types/services/payments.d.ts +480 -0
- package/types/services/prices.d.ts +384 -0
- package/types/services/products.d.ts +646 -32
- package/types/services/shipping.d.ts +351 -0
package/src/services/storage.ts
CHANGED
|
@@ -56,15 +56,15 @@ export class Storage {
|
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
const apiPath = '/v1/storage/buckets';
|
|
59
|
-
const
|
|
59
|
+
const apiPayload: Payload = {};
|
|
60
60
|
if (typeof queries !== 'undefined') {
|
|
61
|
-
|
|
61
|
+
apiPayload['queries'] = queries;
|
|
62
62
|
}
|
|
63
63
|
if (typeof search !== 'undefined') {
|
|
64
|
-
|
|
64
|
+
apiPayload['search'] = search;
|
|
65
65
|
}
|
|
66
66
|
if (typeof total !== 'undefined') {
|
|
67
|
-
|
|
67
|
+
apiPayload['total'] = total;
|
|
68
68
|
}
|
|
69
69
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
70
70
|
|
|
@@ -75,7 +75,7 @@ export class Storage {
|
|
|
75
75
|
'get',
|
|
76
76
|
uri,
|
|
77
77
|
apiHeaders,
|
|
78
|
-
|
|
78
|
+
apiPayload
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -160,39 +160,39 @@ export class Storage {
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
const apiPath = '/v1/storage/buckets';
|
|
163
|
-
const
|
|
163
|
+
const apiPayload: Payload = {};
|
|
164
164
|
if (typeof allowedFileExtensions !== 'undefined') {
|
|
165
|
-
|
|
165
|
+
apiPayload['allowedFileExtensions'] = allowedFileExtensions;
|
|
166
166
|
}
|
|
167
167
|
if (typeof antivirus !== 'undefined') {
|
|
168
|
-
|
|
168
|
+
apiPayload['antivirus'] = antivirus;
|
|
169
169
|
}
|
|
170
170
|
if (typeof bucketId !== 'undefined') {
|
|
171
|
-
|
|
171
|
+
apiPayload['bucketId'] = bucketId;
|
|
172
172
|
}
|
|
173
173
|
if (typeof compression !== 'undefined') {
|
|
174
|
-
|
|
174
|
+
apiPayload['compression'] = compression;
|
|
175
175
|
}
|
|
176
176
|
if (typeof enabled !== 'undefined') {
|
|
177
|
-
|
|
177
|
+
apiPayload['enabled'] = enabled;
|
|
178
178
|
}
|
|
179
179
|
if (typeof encryption !== 'undefined') {
|
|
180
|
-
|
|
180
|
+
apiPayload['encryption'] = encryption;
|
|
181
181
|
}
|
|
182
182
|
if (typeof fileSecurity !== 'undefined') {
|
|
183
|
-
|
|
183
|
+
apiPayload['fileSecurity'] = fileSecurity;
|
|
184
184
|
}
|
|
185
185
|
if (typeof maximumFileSize !== 'undefined') {
|
|
186
|
-
|
|
186
|
+
apiPayload['maximumFileSize'] = maximumFileSize;
|
|
187
187
|
}
|
|
188
188
|
if (typeof name !== 'undefined') {
|
|
189
|
-
|
|
189
|
+
apiPayload['name'] = name;
|
|
190
190
|
}
|
|
191
191
|
if (typeof permissions !== 'undefined') {
|
|
192
|
-
|
|
192
|
+
apiPayload['permissions'] = permissions;
|
|
193
193
|
}
|
|
194
194
|
if (typeof transformations !== 'undefined') {
|
|
195
|
-
|
|
195
|
+
apiPayload['transformations'] = transformations;
|
|
196
196
|
}
|
|
197
197
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
198
198
|
|
|
@@ -204,7 +204,7 @@ export class Storage {
|
|
|
204
204
|
'post',
|
|
205
205
|
uri,
|
|
206
206
|
apiHeaders,
|
|
207
|
-
|
|
207
|
+
apiPayload
|
|
208
208
|
);
|
|
209
209
|
}
|
|
210
210
|
|
|
@@ -245,7 +245,7 @@ export class Storage {
|
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
const apiPath = '/v1/storage/buckets/{bucketId}'.replace('{bucketId}', bucketId);
|
|
248
|
-
const
|
|
248
|
+
const apiPayload: Payload = {};
|
|
249
249
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
250
250
|
|
|
251
251
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -255,7 +255,7 @@ export class Storage {
|
|
|
255
255
|
'delete',
|
|
256
256
|
uri,
|
|
257
257
|
apiHeaders,
|
|
258
|
-
|
|
258
|
+
apiPayload
|
|
259
259
|
);
|
|
260
260
|
}
|
|
261
261
|
|
|
@@ -296,7 +296,7 @@ export class Storage {
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
const apiPath = '/v1/storage/buckets/{bucketId}'.replace('{bucketId}', bucketId);
|
|
299
|
-
const
|
|
299
|
+
const apiPayload: Payload = {};
|
|
300
300
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
301
301
|
|
|
302
302
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -306,7 +306,7 @@ export class Storage {
|
|
|
306
306
|
'get',
|
|
307
307
|
uri,
|
|
308
308
|
apiHeaders,
|
|
309
|
-
|
|
309
|
+
apiPayload
|
|
310
310
|
);
|
|
311
311
|
}
|
|
312
312
|
|
|
@@ -391,36 +391,36 @@ export class Storage {
|
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
const apiPath = '/v1/storage/buckets/{bucketId}'.replace('{bucketId}', bucketId);
|
|
394
|
-
const
|
|
394
|
+
const apiPayload: Payload = {};
|
|
395
395
|
if (typeof allowedFileExtensions !== 'undefined') {
|
|
396
|
-
|
|
396
|
+
apiPayload['allowedFileExtensions'] = allowedFileExtensions;
|
|
397
397
|
}
|
|
398
398
|
if (typeof antivirus !== 'undefined') {
|
|
399
|
-
|
|
399
|
+
apiPayload['antivirus'] = antivirus;
|
|
400
400
|
}
|
|
401
401
|
if (typeof compression !== 'undefined') {
|
|
402
|
-
|
|
402
|
+
apiPayload['compression'] = compression;
|
|
403
403
|
}
|
|
404
404
|
if (typeof enabled !== 'undefined') {
|
|
405
|
-
|
|
405
|
+
apiPayload['enabled'] = enabled;
|
|
406
406
|
}
|
|
407
407
|
if (typeof encryption !== 'undefined') {
|
|
408
|
-
|
|
408
|
+
apiPayload['encryption'] = encryption;
|
|
409
409
|
}
|
|
410
410
|
if (typeof fileSecurity !== 'undefined') {
|
|
411
|
-
|
|
411
|
+
apiPayload['fileSecurity'] = fileSecurity;
|
|
412
412
|
}
|
|
413
413
|
if (typeof maximumFileSize !== 'undefined') {
|
|
414
|
-
|
|
414
|
+
apiPayload['maximumFileSize'] = maximumFileSize;
|
|
415
415
|
}
|
|
416
416
|
if (typeof name !== 'undefined') {
|
|
417
|
-
|
|
417
|
+
apiPayload['name'] = name;
|
|
418
418
|
}
|
|
419
419
|
if (typeof permissions !== 'undefined') {
|
|
420
|
-
|
|
420
|
+
apiPayload['permissions'] = permissions;
|
|
421
421
|
}
|
|
422
422
|
if (typeof transformations !== 'undefined') {
|
|
423
|
-
|
|
423
|
+
apiPayload['transformations'] = transformations;
|
|
424
424
|
}
|
|
425
425
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
426
426
|
|
|
@@ -432,7 +432,7 @@ export class Storage {
|
|
|
432
432
|
'put',
|
|
433
433
|
uri,
|
|
434
434
|
apiHeaders,
|
|
435
|
-
|
|
435
|
+
apiPayload
|
|
436
436
|
);
|
|
437
437
|
}
|
|
438
438
|
|
|
@@ -486,15 +486,15 @@ export class Storage {
|
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
const apiPath = '/v1/storage/buckets/{bucketId}/files'.replace('{bucketId}', bucketId);
|
|
489
|
-
const
|
|
489
|
+
const apiPayload: Payload = {};
|
|
490
490
|
if (typeof queries !== 'undefined') {
|
|
491
|
-
|
|
491
|
+
apiPayload['queries'] = queries;
|
|
492
492
|
}
|
|
493
493
|
if (typeof search !== 'undefined') {
|
|
494
|
-
|
|
494
|
+
apiPayload['search'] = search;
|
|
495
495
|
}
|
|
496
496
|
if (typeof total !== 'undefined') {
|
|
497
|
-
|
|
497
|
+
apiPayload['total'] = total;
|
|
498
498
|
}
|
|
499
499
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
500
500
|
|
|
@@ -505,7 +505,7 @@ export class Storage {
|
|
|
505
505
|
'get',
|
|
506
506
|
uri,
|
|
507
507
|
apiHeaders,
|
|
508
|
-
|
|
508
|
+
apiPayload
|
|
509
509
|
);
|
|
510
510
|
}
|
|
511
511
|
|
|
@@ -582,15 +582,15 @@ export class Storage {
|
|
|
582
582
|
}
|
|
583
583
|
|
|
584
584
|
const apiPath = '/v1/storage/buckets/{bucketId}/files'.replace('{bucketId}', bucketId);
|
|
585
|
-
const
|
|
585
|
+
const apiPayload: Payload = {};
|
|
586
586
|
if (typeof file !== 'undefined') {
|
|
587
|
-
|
|
587
|
+
apiPayload['file'] = file;
|
|
588
588
|
}
|
|
589
589
|
if (typeof fileId !== 'undefined') {
|
|
590
|
-
|
|
590
|
+
apiPayload['fileId'] = fileId;
|
|
591
591
|
}
|
|
592
592
|
if (typeof permissions !== 'undefined') {
|
|
593
|
-
|
|
593
|
+
apiPayload['permissions'] = permissions;
|
|
594
594
|
}
|
|
595
595
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
596
596
|
|
|
@@ -602,7 +602,7 @@ export class Storage {
|
|
|
602
602
|
'post',
|
|
603
603
|
uri,
|
|
604
604
|
apiHeaders,
|
|
605
|
-
|
|
605
|
+
apiPayload,
|
|
606
606
|
onProgress
|
|
607
607
|
);
|
|
608
608
|
}
|
|
@@ -652,7 +652,7 @@ export class Storage {
|
|
|
652
652
|
}
|
|
653
653
|
|
|
654
654
|
const apiPath = '/v1/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
|
|
655
|
-
const
|
|
655
|
+
const apiPayload: Payload = {};
|
|
656
656
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
657
657
|
|
|
658
658
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -662,7 +662,7 @@ export class Storage {
|
|
|
662
662
|
'delete',
|
|
663
663
|
uri,
|
|
664
664
|
apiHeaders,
|
|
665
|
-
|
|
665
|
+
apiPayload
|
|
666
666
|
);
|
|
667
667
|
}
|
|
668
668
|
|
|
@@ -711,7 +711,7 @@ export class Storage {
|
|
|
711
711
|
}
|
|
712
712
|
|
|
713
713
|
const apiPath = '/v1/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
|
|
714
|
-
const
|
|
714
|
+
const apiPayload: Payload = {};
|
|
715
715
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
716
716
|
|
|
717
717
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -721,7 +721,7 @@ export class Storage {
|
|
|
721
721
|
'get',
|
|
722
722
|
uri,
|
|
723
723
|
apiHeaders,
|
|
724
|
-
|
|
724
|
+
apiPayload
|
|
725
725
|
);
|
|
726
726
|
}
|
|
727
727
|
|
|
@@ -778,12 +778,12 @@ export class Storage {
|
|
|
778
778
|
}
|
|
779
779
|
|
|
780
780
|
const apiPath = '/v1/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
|
|
781
|
-
const
|
|
781
|
+
const apiPayload: Payload = {};
|
|
782
782
|
if (typeof name !== 'undefined') {
|
|
783
|
-
|
|
783
|
+
apiPayload['name'] = name;
|
|
784
784
|
}
|
|
785
785
|
if (typeof permissions !== 'undefined') {
|
|
786
|
-
|
|
786
|
+
apiPayload['permissions'] = permissions;
|
|
787
787
|
}
|
|
788
788
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
789
789
|
|
|
@@ -795,7 +795,7 @@ export class Storage {
|
|
|
795
795
|
'put',
|
|
796
796
|
uri,
|
|
797
797
|
apiHeaders,
|
|
798
|
-
|
|
798
|
+
apiPayload
|
|
799
799
|
);
|
|
800
800
|
}
|
|
801
801
|
|
|
@@ -848,9 +848,9 @@ export class Storage {
|
|
|
848
848
|
}
|
|
849
849
|
|
|
850
850
|
const apiPath = '/v1/storage/buckets/{bucketId}/files/{fileId}/download'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
|
|
851
|
-
const
|
|
851
|
+
const apiPayload: Payload = {};
|
|
852
852
|
if (typeof token !== 'undefined') {
|
|
853
|
-
|
|
853
|
+
apiPayload['token'] = token;
|
|
854
854
|
}
|
|
855
855
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
856
856
|
|
|
@@ -861,7 +861,7 @@ export class Storage {
|
|
|
861
861
|
'get',
|
|
862
862
|
uri,
|
|
863
863
|
apiHeaders,
|
|
864
|
-
|
|
864
|
+
apiPayload
|
|
865
865
|
);
|
|
866
866
|
}
|
|
867
867
|
|
|
@@ -958,42 +958,42 @@ export class Storage {
|
|
|
958
958
|
}
|
|
959
959
|
|
|
960
960
|
const apiPath = '/v1/storage/buckets/{bucketId}/files/{fileId}/preview'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
|
|
961
|
-
const
|
|
961
|
+
const apiPayload: Payload = {};
|
|
962
962
|
if (typeof width !== 'undefined') {
|
|
963
|
-
|
|
963
|
+
apiPayload['width'] = width;
|
|
964
964
|
}
|
|
965
965
|
if (typeof height !== 'undefined') {
|
|
966
|
-
|
|
966
|
+
apiPayload['height'] = height;
|
|
967
967
|
}
|
|
968
968
|
if (typeof gravity !== 'undefined') {
|
|
969
|
-
|
|
969
|
+
apiPayload['gravity'] = gravity;
|
|
970
970
|
}
|
|
971
971
|
if (typeof quality !== 'undefined') {
|
|
972
|
-
|
|
972
|
+
apiPayload['quality'] = quality;
|
|
973
973
|
}
|
|
974
974
|
if (typeof borderWidth !== 'undefined') {
|
|
975
|
-
|
|
975
|
+
apiPayload['borderWidth'] = borderWidth;
|
|
976
976
|
}
|
|
977
977
|
if (typeof borderColor !== 'undefined') {
|
|
978
|
-
|
|
978
|
+
apiPayload['borderColor'] = borderColor;
|
|
979
979
|
}
|
|
980
980
|
if (typeof borderRadius !== 'undefined') {
|
|
981
|
-
|
|
981
|
+
apiPayload['borderRadius'] = borderRadius;
|
|
982
982
|
}
|
|
983
983
|
if (typeof opacity !== 'undefined') {
|
|
984
|
-
|
|
984
|
+
apiPayload['opacity'] = opacity;
|
|
985
985
|
}
|
|
986
986
|
if (typeof rotation !== 'undefined') {
|
|
987
|
-
|
|
987
|
+
apiPayload['rotation'] = rotation;
|
|
988
988
|
}
|
|
989
989
|
if (typeof background !== 'undefined') {
|
|
990
|
-
|
|
990
|
+
apiPayload['background'] = background;
|
|
991
991
|
}
|
|
992
992
|
if (typeof output !== 'undefined') {
|
|
993
|
-
|
|
993
|
+
apiPayload['output'] = output;
|
|
994
994
|
}
|
|
995
995
|
if (typeof token !== 'undefined') {
|
|
996
|
-
|
|
996
|
+
apiPayload['token'] = token;
|
|
997
997
|
}
|
|
998
998
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
999
999
|
|
|
@@ -1004,7 +1004,7 @@ export class Storage {
|
|
|
1004
1004
|
'get',
|
|
1005
1005
|
uri,
|
|
1006
1006
|
apiHeaders,
|
|
1007
|
-
|
|
1007
|
+
apiPayload
|
|
1008
1008
|
);
|
|
1009
1009
|
}
|
|
1010
1010
|
|
|
@@ -1057,9 +1057,9 @@ export class Storage {
|
|
|
1057
1057
|
}
|
|
1058
1058
|
|
|
1059
1059
|
const apiPath = '/v1/storage/buckets/{bucketId}/files/{fileId}/view'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
|
|
1060
|
-
const
|
|
1060
|
+
const apiPayload: Payload = {};
|
|
1061
1061
|
if (typeof token !== 'undefined') {
|
|
1062
|
-
|
|
1062
|
+
apiPayload['token'] = token;
|
|
1063
1063
|
}
|
|
1064
1064
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1065
1065
|
|
|
@@ -1070,7 +1070,7 @@ export class Storage {
|
|
|
1070
1070
|
'get',
|
|
1071
1071
|
uri,
|
|
1072
1072
|
apiHeaders,
|
|
1073
|
-
|
|
1073
|
+
apiPayload
|
|
1074
1074
|
);
|
|
1075
1075
|
}
|
|
1076
1076
|
}
|
package/src/services/tokens.ts
CHANGED
|
@@ -63,12 +63,12 @@ export class Tokens {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
const apiPath = '/v1/tokens/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
|
|
66
|
-
const
|
|
66
|
+
const apiPayload: Payload = {};
|
|
67
67
|
if (typeof queries !== 'undefined') {
|
|
68
|
-
|
|
68
|
+
apiPayload['queries'] = queries;
|
|
69
69
|
}
|
|
70
70
|
if (typeof total !== 'undefined') {
|
|
71
|
-
|
|
71
|
+
apiPayload['total'] = total;
|
|
72
72
|
}
|
|
73
73
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
74
74
|
|
|
@@ -79,7 +79,7 @@ export class Tokens {
|
|
|
79
79
|
'get',
|
|
80
80
|
uri,
|
|
81
81
|
apiHeaders,
|
|
82
|
-
|
|
82
|
+
apiPayload
|
|
83
83
|
);
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -132,9 +132,9 @@ export class Tokens {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
const apiPath = '/v1/tokens/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
|
|
135
|
-
const
|
|
135
|
+
const apiPayload: Payload = {};
|
|
136
136
|
if (typeof expire !== 'undefined') {
|
|
137
|
-
|
|
137
|
+
apiPayload['expire'] = expire;
|
|
138
138
|
}
|
|
139
139
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
140
140
|
|
|
@@ -146,7 +146,7 @@ export class Tokens {
|
|
|
146
146
|
'post',
|
|
147
147
|
uri,
|
|
148
148
|
apiHeaders,
|
|
149
|
-
|
|
149
|
+
apiPayload
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
|
|
@@ -187,7 +187,7 @@ export class Tokens {
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
const apiPath = '/v1/tokens/{tokenId}'.replace('{tokenId}', tokenId);
|
|
190
|
-
const
|
|
190
|
+
const apiPayload: Payload = {};
|
|
191
191
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
192
192
|
|
|
193
193
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -197,7 +197,7 @@ export class Tokens {
|
|
|
197
197
|
'delete',
|
|
198
198
|
uri,
|
|
199
199
|
apiHeaders,
|
|
200
|
-
|
|
200
|
+
apiPayload
|
|
201
201
|
);
|
|
202
202
|
}
|
|
203
203
|
|
|
@@ -238,7 +238,7 @@ export class Tokens {
|
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
const apiPath = '/v1/tokens/{tokenId}'.replace('{tokenId}', tokenId);
|
|
241
|
-
const
|
|
241
|
+
const apiPayload: Payload = {};
|
|
242
242
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
243
243
|
|
|
244
244
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -248,7 +248,7 @@ export class Tokens {
|
|
|
248
248
|
'get',
|
|
249
249
|
uri,
|
|
250
250
|
apiHeaders,
|
|
251
|
-
|
|
251
|
+
apiPayload
|
|
252
252
|
);
|
|
253
253
|
}
|
|
254
254
|
|
|
@@ -294,9 +294,9 @@ export class Tokens {
|
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
const apiPath = '/v1/tokens/{tokenId}'.replace('{tokenId}', tokenId);
|
|
297
|
-
const
|
|
297
|
+
const apiPayload: Payload = {};
|
|
298
298
|
if (typeof expire !== 'undefined') {
|
|
299
|
-
|
|
299
|
+
apiPayload['expire'] = expire;
|
|
300
300
|
}
|
|
301
301
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
302
302
|
|
|
@@ -308,7 +308,7 @@ export class Tokens {
|
|
|
308
308
|
'patch',
|
|
309
309
|
uri,
|
|
310
310
|
apiHeaders,
|
|
311
|
-
|
|
311
|
+
apiPayload
|
|
312
312
|
);
|
|
313
313
|
}
|
|
314
314
|
}
|