@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.
- package/dist/cjs/sdk.js +7445 -1584
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +7422 -1585
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +7445 -1584
- 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 +24 -0
- package/src/models.ts +4303 -941
- 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 +620 -65
- 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 +692 -137
- package/src/services/pages.ts +377 -157
- package/src/services/payments.ts +591 -64
- package/src/services/prices.ts +524 -59
- package/src/services/products.ts +1836 -272
- package/src/services/search.ts +24 -24
- package/src/services/shipping.ts +444 -59
- 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 +24 -0
- package/types/models.d.ts +4214 -970
- 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 +225 -11
- package/types/services/markets.d.ts +123 -6
- package/types/services/orders.d.ts +238 -16
- package/types/services/pages.d.ts +95 -6
- package/types/services/payments.d.ts +221 -7
- package/types/services/prices.d.ts +198 -6
- package/types/services/products.d.ts +646 -32
- package/types/services/shipping.d.ts +165 -6
package/src/services/sites.ts
CHANGED
|
@@ -57,15 +57,15 @@ export class Sites {
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
const apiPath = '/v1/sites';
|
|
60
|
-
const
|
|
60
|
+
const apiPayload: Payload = {};
|
|
61
61
|
if (typeof queries !== 'undefined') {
|
|
62
|
-
|
|
62
|
+
apiPayload['queries'] = queries;
|
|
63
63
|
}
|
|
64
64
|
if (typeof search !== 'undefined') {
|
|
65
|
-
|
|
65
|
+
apiPayload['search'] = search;
|
|
66
66
|
}
|
|
67
67
|
if (typeof total !== 'undefined') {
|
|
68
|
-
|
|
68
|
+
apiPayload['total'] = total;
|
|
69
69
|
}
|
|
70
70
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
71
71
|
|
|
@@ -76,7 +76,7 @@ export class Sites {
|
|
|
76
76
|
'get',
|
|
77
77
|
uri,
|
|
78
78
|
apiHeaders,
|
|
79
|
-
|
|
79
|
+
apiPayload
|
|
80
80
|
);
|
|
81
81
|
}
|
|
82
82
|
|
|
@@ -195,60 +195,60 @@ export class Sites {
|
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
const apiPath = '/v1/sites';
|
|
198
|
-
const
|
|
198
|
+
const apiPayload: Payload = {};
|
|
199
199
|
if (typeof adapter !== 'undefined') {
|
|
200
|
-
|
|
200
|
+
apiPayload['adapter'] = adapter;
|
|
201
201
|
}
|
|
202
202
|
if (typeof buildCommand !== 'undefined') {
|
|
203
|
-
|
|
203
|
+
apiPayload['buildCommand'] = buildCommand;
|
|
204
204
|
}
|
|
205
205
|
if (typeof buildRuntime !== 'undefined') {
|
|
206
|
-
|
|
206
|
+
apiPayload['buildRuntime'] = buildRuntime;
|
|
207
207
|
}
|
|
208
208
|
if (typeof enabled !== 'undefined') {
|
|
209
|
-
|
|
209
|
+
apiPayload['enabled'] = enabled;
|
|
210
210
|
}
|
|
211
211
|
if (typeof fallbackFile !== 'undefined') {
|
|
212
|
-
|
|
212
|
+
apiPayload['fallbackFile'] = fallbackFile;
|
|
213
213
|
}
|
|
214
214
|
if (typeof framework !== 'undefined') {
|
|
215
|
-
|
|
215
|
+
apiPayload['framework'] = framework;
|
|
216
216
|
}
|
|
217
217
|
if (typeof installCommand !== 'undefined') {
|
|
218
|
-
|
|
218
|
+
apiPayload['installCommand'] = installCommand;
|
|
219
219
|
}
|
|
220
220
|
if (typeof installationId !== 'undefined') {
|
|
221
|
-
|
|
221
|
+
apiPayload['installationId'] = installationId;
|
|
222
222
|
}
|
|
223
223
|
if (typeof logging !== 'undefined') {
|
|
224
|
-
|
|
224
|
+
apiPayload['logging'] = logging;
|
|
225
225
|
}
|
|
226
226
|
if (typeof name !== 'undefined') {
|
|
227
|
-
|
|
227
|
+
apiPayload['name'] = name;
|
|
228
228
|
}
|
|
229
229
|
if (typeof outputDirectory !== 'undefined') {
|
|
230
|
-
|
|
230
|
+
apiPayload['outputDirectory'] = outputDirectory;
|
|
231
231
|
}
|
|
232
232
|
if (typeof providerBranch !== 'undefined') {
|
|
233
|
-
|
|
233
|
+
apiPayload['providerBranch'] = providerBranch;
|
|
234
234
|
}
|
|
235
235
|
if (typeof providerRepositoryId !== 'undefined') {
|
|
236
|
-
|
|
236
|
+
apiPayload['providerRepositoryId'] = providerRepositoryId;
|
|
237
237
|
}
|
|
238
238
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
239
|
-
|
|
239
|
+
apiPayload['providerRootDirectory'] = providerRootDirectory;
|
|
240
240
|
}
|
|
241
241
|
if (typeof providerSilentMode !== 'undefined') {
|
|
242
|
-
|
|
242
|
+
apiPayload['providerSilentMode'] = providerSilentMode;
|
|
243
243
|
}
|
|
244
244
|
if (typeof siteId !== 'undefined') {
|
|
245
|
-
|
|
245
|
+
apiPayload['siteId'] = siteId;
|
|
246
246
|
}
|
|
247
247
|
if (typeof specification !== 'undefined') {
|
|
248
|
-
|
|
248
|
+
apiPayload['specification'] = specification;
|
|
249
249
|
}
|
|
250
250
|
if (typeof timeout !== 'undefined') {
|
|
251
|
-
|
|
251
|
+
apiPayload['timeout'] = timeout;
|
|
252
252
|
}
|
|
253
253
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
254
254
|
|
|
@@ -260,7 +260,7 @@ export class Sites {
|
|
|
260
260
|
'post',
|
|
261
261
|
uri,
|
|
262
262
|
apiHeaders,
|
|
263
|
-
|
|
263
|
+
apiPayload
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
|
|
@@ -273,7 +273,7 @@ export class Sites {
|
|
|
273
273
|
sitesListFrameworks(): Promise<Models.FrameworkList> {
|
|
274
274
|
|
|
275
275
|
const apiPath = '/v1/sites/frameworks';
|
|
276
|
-
const
|
|
276
|
+
const apiPayload: Payload = {};
|
|
277
277
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
278
278
|
|
|
279
279
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -283,7 +283,7 @@ export class Sites {
|
|
|
283
283
|
'get',
|
|
284
284
|
uri,
|
|
285
285
|
apiHeaders,
|
|
286
|
-
|
|
286
|
+
apiPayload
|
|
287
287
|
);
|
|
288
288
|
}
|
|
289
289
|
|
|
@@ -296,7 +296,7 @@ export class Sites {
|
|
|
296
296
|
sitesListSpecifications(): Promise<Models.SpecificationList> {
|
|
297
297
|
|
|
298
298
|
const apiPath = '/v1/sites/specifications';
|
|
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 Sites {
|
|
|
306
306
|
'get',
|
|
307
307
|
uri,
|
|
308
308
|
apiHeaders,
|
|
309
|
-
|
|
309
|
+
apiPayload
|
|
310
310
|
);
|
|
311
311
|
}
|
|
312
312
|
|
|
@@ -347,7 +347,7 @@ export class Sites {
|
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
const apiPath = '/v1/sites/{siteId}'.replace('{siteId}', siteId);
|
|
350
|
-
const
|
|
350
|
+
const apiPayload: Payload = {};
|
|
351
351
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
352
352
|
|
|
353
353
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -357,7 +357,7 @@ export class Sites {
|
|
|
357
357
|
'delete',
|
|
358
358
|
uri,
|
|
359
359
|
apiHeaders,
|
|
360
|
-
|
|
360
|
+
apiPayload
|
|
361
361
|
);
|
|
362
362
|
}
|
|
363
363
|
|
|
@@ -398,7 +398,7 @@ export class Sites {
|
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
const apiPath = '/v1/sites/{siteId}'.replace('{siteId}', siteId);
|
|
401
|
-
const
|
|
401
|
+
const apiPayload: Payload = {};
|
|
402
402
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
403
403
|
|
|
404
404
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -408,7 +408,7 @@ export class Sites {
|
|
|
408
408
|
'get',
|
|
409
409
|
uri,
|
|
410
410
|
apiHeaders,
|
|
411
|
-
|
|
411
|
+
apiPayload
|
|
412
412
|
);
|
|
413
413
|
}
|
|
414
414
|
|
|
@@ -524,57 +524,57 @@ export class Sites {
|
|
|
524
524
|
}
|
|
525
525
|
|
|
526
526
|
const apiPath = '/v1/sites/{siteId}'.replace('{siteId}', siteId);
|
|
527
|
-
const
|
|
527
|
+
const apiPayload: Payload = {};
|
|
528
528
|
if (typeof adapter !== 'undefined') {
|
|
529
|
-
|
|
529
|
+
apiPayload['adapter'] = adapter;
|
|
530
530
|
}
|
|
531
531
|
if (typeof buildCommand !== 'undefined') {
|
|
532
|
-
|
|
532
|
+
apiPayload['buildCommand'] = buildCommand;
|
|
533
533
|
}
|
|
534
534
|
if (typeof buildRuntime !== 'undefined') {
|
|
535
|
-
|
|
535
|
+
apiPayload['buildRuntime'] = buildRuntime;
|
|
536
536
|
}
|
|
537
537
|
if (typeof enabled !== 'undefined') {
|
|
538
|
-
|
|
538
|
+
apiPayload['enabled'] = enabled;
|
|
539
539
|
}
|
|
540
540
|
if (typeof fallbackFile !== 'undefined') {
|
|
541
|
-
|
|
541
|
+
apiPayload['fallbackFile'] = fallbackFile;
|
|
542
542
|
}
|
|
543
543
|
if (typeof framework !== 'undefined') {
|
|
544
|
-
|
|
544
|
+
apiPayload['framework'] = framework;
|
|
545
545
|
}
|
|
546
546
|
if (typeof installCommand !== 'undefined') {
|
|
547
|
-
|
|
547
|
+
apiPayload['installCommand'] = installCommand;
|
|
548
548
|
}
|
|
549
549
|
if (typeof installationId !== 'undefined') {
|
|
550
|
-
|
|
550
|
+
apiPayload['installationId'] = installationId;
|
|
551
551
|
}
|
|
552
552
|
if (typeof logging !== 'undefined') {
|
|
553
|
-
|
|
553
|
+
apiPayload['logging'] = logging;
|
|
554
554
|
}
|
|
555
555
|
if (typeof name !== 'undefined') {
|
|
556
|
-
|
|
556
|
+
apiPayload['name'] = name;
|
|
557
557
|
}
|
|
558
558
|
if (typeof outputDirectory !== 'undefined') {
|
|
559
|
-
|
|
559
|
+
apiPayload['outputDirectory'] = outputDirectory;
|
|
560
560
|
}
|
|
561
561
|
if (typeof providerBranch !== 'undefined') {
|
|
562
|
-
|
|
562
|
+
apiPayload['providerBranch'] = providerBranch;
|
|
563
563
|
}
|
|
564
564
|
if (typeof providerRepositoryId !== 'undefined') {
|
|
565
|
-
|
|
565
|
+
apiPayload['providerRepositoryId'] = providerRepositoryId;
|
|
566
566
|
}
|
|
567
567
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
568
|
-
|
|
568
|
+
apiPayload['providerRootDirectory'] = providerRootDirectory;
|
|
569
569
|
}
|
|
570
570
|
if (typeof providerSilentMode !== 'undefined') {
|
|
571
|
-
|
|
571
|
+
apiPayload['providerSilentMode'] = providerSilentMode;
|
|
572
572
|
}
|
|
573
573
|
if (typeof specification !== 'undefined') {
|
|
574
|
-
|
|
574
|
+
apiPayload['specification'] = specification;
|
|
575
575
|
}
|
|
576
576
|
if (typeof timeout !== 'undefined') {
|
|
577
|
-
|
|
577
|
+
apiPayload['timeout'] = timeout;
|
|
578
578
|
}
|
|
579
579
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
580
580
|
|
|
@@ -586,7 +586,7 @@ export class Sites {
|
|
|
586
586
|
'put',
|
|
587
587
|
uri,
|
|
588
588
|
apiHeaders,
|
|
589
|
-
|
|
589
|
+
apiPayload
|
|
590
590
|
);
|
|
591
591
|
}
|
|
592
592
|
|
|
@@ -635,9 +635,9 @@ export class Sites {
|
|
|
635
635
|
}
|
|
636
636
|
|
|
637
637
|
const apiPath = '/v1/sites/{siteId}/deployment'.replace('{siteId}', siteId);
|
|
638
|
-
const
|
|
638
|
+
const apiPayload: Payload = {};
|
|
639
639
|
if (typeof deploymentId !== 'undefined') {
|
|
640
|
-
|
|
640
|
+
apiPayload['deploymentId'] = deploymentId;
|
|
641
641
|
}
|
|
642
642
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
643
643
|
|
|
@@ -649,7 +649,7 @@ export class Sites {
|
|
|
649
649
|
'patch',
|
|
650
650
|
uri,
|
|
651
651
|
apiHeaders,
|
|
652
|
-
|
|
652
|
+
apiPayload
|
|
653
653
|
);
|
|
654
654
|
}
|
|
655
655
|
|
|
@@ -703,15 +703,15 @@ export class Sites {
|
|
|
703
703
|
}
|
|
704
704
|
|
|
705
705
|
const apiPath = '/v1/sites/{siteId}/deployments'.replace('{siteId}', siteId);
|
|
706
|
-
const
|
|
706
|
+
const apiPayload: Payload = {};
|
|
707
707
|
if (typeof queries !== 'undefined') {
|
|
708
|
-
|
|
708
|
+
apiPayload['queries'] = queries;
|
|
709
709
|
}
|
|
710
710
|
if (typeof search !== 'undefined') {
|
|
711
|
-
|
|
711
|
+
apiPayload['search'] = search;
|
|
712
712
|
}
|
|
713
713
|
if (typeof total !== 'undefined') {
|
|
714
|
-
|
|
714
|
+
apiPayload['total'] = total;
|
|
715
715
|
}
|
|
716
716
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
717
717
|
|
|
@@ -722,7 +722,7 @@ export class Sites {
|
|
|
722
722
|
'get',
|
|
723
723
|
uri,
|
|
724
724
|
apiHeaders,
|
|
725
|
-
|
|
725
|
+
apiPayload
|
|
726
726
|
);
|
|
727
727
|
}
|
|
728
728
|
|
|
@@ -793,21 +793,21 @@ export class Sites {
|
|
|
793
793
|
}
|
|
794
794
|
|
|
795
795
|
const apiPath = '/v1/sites/{siteId}/deployments'.replace('{siteId}', siteId);
|
|
796
|
-
const
|
|
796
|
+
const apiPayload: Payload = {};
|
|
797
797
|
if (typeof activate !== 'undefined') {
|
|
798
|
-
|
|
798
|
+
apiPayload['activate'] = activate;
|
|
799
799
|
}
|
|
800
800
|
if (typeof buildCommand !== 'undefined') {
|
|
801
|
-
|
|
801
|
+
apiPayload['buildCommand'] = buildCommand;
|
|
802
802
|
}
|
|
803
803
|
if (typeof code !== 'undefined') {
|
|
804
|
-
|
|
804
|
+
apiPayload['code'] = code;
|
|
805
805
|
}
|
|
806
806
|
if (typeof installCommand !== 'undefined') {
|
|
807
|
-
|
|
807
|
+
apiPayload['installCommand'] = installCommand;
|
|
808
808
|
}
|
|
809
809
|
if (typeof outputDirectory !== 'undefined') {
|
|
810
|
-
|
|
810
|
+
apiPayload['outputDirectory'] = outputDirectory;
|
|
811
811
|
}
|
|
812
812
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
813
813
|
|
|
@@ -819,7 +819,7 @@ export class Sites {
|
|
|
819
819
|
'post',
|
|
820
820
|
uri,
|
|
821
821
|
apiHeaders,
|
|
822
|
-
|
|
822
|
+
apiPayload,
|
|
823
823
|
onProgress
|
|
824
824
|
);
|
|
825
825
|
}
|
|
@@ -869,9 +869,9 @@ export class Sites {
|
|
|
869
869
|
}
|
|
870
870
|
|
|
871
871
|
const apiPath = '/v1/sites/{siteId}/deployments/duplicate'.replace('{siteId}', siteId);
|
|
872
|
-
const
|
|
872
|
+
const apiPayload: Payload = {};
|
|
873
873
|
if (typeof deploymentId !== 'undefined') {
|
|
874
|
-
|
|
874
|
+
apiPayload['deploymentId'] = deploymentId;
|
|
875
875
|
}
|
|
876
876
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
877
877
|
|
|
@@ -883,7 +883,7 @@ export class Sites {
|
|
|
883
883
|
'post',
|
|
884
884
|
uri,
|
|
885
885
|
apiHeaders,
|
|
886
|
-
|
|
886
|
+
apiPayload
|
|
887
887
|
);
|
|
888
888
|
}
|
|
889
889
|
|
|
@@ -968,24 +968,24 @@ export class Sites {
|
|
|
968
968
|
}
|
|
969
969
|
|
|
970
970
|
const apiPath = '/v1/sites/{siteId}/deployments/template'.replace('{siteId}', siteId);
|
|
971
|
-
const
|
|
971
|
+
const apiPayload: Payload = {};
|
|
972
972
|
if (typeof activate !== 'undefined') {
|
|
973
|
-
|
|
973
|
+
apiPayload['activate'] = activate;
|
|
974
974
|
}
|
|
975
975
|
if (typeof owner !== 'undefined') {
|
|
976
|
-
|
|
976
|
+
apiPayload['owner'] = owner;
|
|
977
977
|
}
|
|
978
978
|
if (typeof reference !== 'undefined') {
|
|
979
|
-
|
|
979
|
+
apiPayload['reference'] = reference;
|
|
980
980
|
}
|
|
981
981
|
if (typeof repository !== 'undefined') {
|
|
982
|
-
|
|
982
|
+
apiPayload['repository'] = repository;
|
|
983
983
|
}
|
|
984
984
|
if (typeof rootDirectory !== 'undefined') {
|
|
985
|
-
|
|
985
|
+
apiPayload['rootDirectory'] = rootDirectory;
|
|
986
986
|
}
|
|
987
987
|
if (typeof type !== 'undefined') {
|
|
988
|
-
|
|
988
|
+
apiPayload['type'] = type;
|
|
989
989
|
}
|
|
990
990
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
991
991
|
|
|
@@ -997,7 +997,7 @@ export class Sites {
|
|
|
997
997
|
'post',
|
|
998
998
|
uri,
|
|
999
999
|
apiHeaders,
|
|
1000
|
-
|
|
1000
|
+
apiPayload
|
|
1001
1001
|
);
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
@@ -1061,15 +1061,15 @@ export class Sites {
|
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
1063
|
const apiPath = '/v1/sites/{siteId}/deployments/vcs'.replace('{siteId}', siteId);
|
|
1064
|
-
const
|
|
1064
|
+
const apiPayload: Payload = {};
|
|
1065
1065
|
if (typeof activate !== 'undefined') {
|
|
1066
|
-
|
|
1066
|
+
apiPayload['activate'] = activate;
|
|
1067
1067
|
}
|
|
1068
1068
|
if (typeof reference !== 'undefined') {
|
|
1069
|
-
|
|
1069
|
+
apiPayload['reference'] = reference;
|
|
1070
1070
|
}
|
|
1071
1071
|
if (typeof type !== 'undefined') {
|
|
1072
|
-
|
|
1072
|
+
apiPayload['type'] = type;
|
|
1073
1073
|
}
|
|
1074
1074
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1075
1075
|
|
|
@@ -1081,7 +1081,7 @@ export class Sites {
|
|
|
1081
1081
|
'post',
|
|
1082
1082
|
uri,
|
|
1083
1083
|
apiHeaders,
|
|
1084
|
-
|
|
1084
|
+
apiPayload
|
|
1085
1085
|
);
|
|
1086
1086
|
}
|
|
1087
1087
|
|
|
@@ -1130,7 +1130,7 @@ export class Sites {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
|
|
1132
1132
|
const apiPath = '/v1/sites/{siteId}/deployments/{deploymentId}'.replace('{siteId}', siteId).replace('{deploymentId}', deploymentId);
|
|
1133
|
-
const
|
|
1133
|
+
const apiPayload: Payload = {};
|
|
1134
1134
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1135
1135
|
|
|
1136
1136
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -1140,7 +1140,7 @@ export class Sites {
|
|
|
1140
1140
|
'delete',
|
|
1141
1141
|
uri,
|
|
1142
1142
|
apiHeaders,
|
|
1143
|
-
|
|
1143
|
+
apiPayload
|
|
1144
1144
|
);
|
|
1145
1145
|
}
|
|
1146
1146
|
|
|
@@ -1189,7 +1189,7 @@ export class Sites {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
|
|
1191
1191
|
const apiPath = '/v1/sites/{siteId}/deployments/{deploymentId}'.replace('{siteId}', siteId).replace('{deploymentId}', deploymentId);
|
|
1192
|
-
const
|
|
1192
|
+
const apiPayload: Payload = {};
|
|
1193
1193
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1194
1194
|
|
|
1195
1195
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -1199,7 +1199,7 @@ export class Sites {
|
|
|
1199
1199
|
'get',
|
|
1200
1200
|
uri,
|
|
1201
1201
|
apiHeaders,
|
|
1202
|
-
|
|
1202
|
+
apiPayload
|
|
1203
1203
|
);
|
|
1204
1204
|
}
|
|
1205
1205
|
|
|
@@ -1252,9 +1252,9 @@ export class Sites {
|
|
|
1252
1252
|
}
|
|
1253
1253
|
|
|
1254
1254
|
const apiPath = '/v1/sites/{siteId}/deployments/{deploymentId}/download'.replace('{siteId}', siteId).replace('{deploymentId}', deploymentId);
|
|
1255
|
-
const
|
|
1255
|
+
const apiPayload: Payload = {};
|
|
1256
1256
|
if (typeof type !== 'undefined') {
|
|
1257
|
-
|
|
1257
|
+
apiPayload['type'] = type;
|
|
1258
1258
|
}
|
|
1259
1259
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1260
1260
|
|
|
@@ -1265,7 +1265,7 @@ export class Sites {
|
|
|
1265
1265
|
'get',
|
|
1266
1266
|
uri,
|
|
1267
1267
|
apiHeaders,
|
|
1268
|
-
|
|
1268
|
+
apiPayload
|
|
1269
1269
|
);
|
|
1270
1270
|
}
|
|
1271
1271
|
|
|
@@ -1314,7 +1314,7 @@ export class Sites {
|
|
|
1314
1314
|
}
|
|
1315
1315
|
|
|
1316
1316
|
const apiPath = '/v1/sites/{siteId}/deployments/{deploymentId}/status'.replace('{siteId}', siteId).replace('{deploymentId}', deploymentId);
|
|
1317
|
-
const
|
|
1317
|
+
const apiPayload: Payload = {};
|
|
1318
1318
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1319
1319
|
|
|
1320
1320
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -1324,7 +1324,7 @@ export class Sites {
|
|
|
1324
1324
|
'patch',
|
|
1325
1325
|
uri,
|
|
1326
1326
|
apiHeaders,
|
|
1327
|
-
|
|
1327
|
+
apiPayload
|
|
1328
1328
|
);
|
|
1329
1329
|
}
|
|
1330
1330
|
|
|
@@ -1374,12 +1374,12 @@ export class Sites {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
|
|
1376
1376
|
const apiPath = '/v1/sites/{siteId}/logs'.replace('{siteId}', siteId);
|
|
1377
|
-
const
|
|
1377
|
+
const apiPayload: Payload = {};
|
|
1378
1378
|
if (typeof queries !== 'undefined') {
|
|
1379
|
-
|
|
1379
|
+
apiPayload['queries'] = queries;
|
|
1380
1380
|
}
|
|
1381
1381
|
if (typeof total !== 'undefined') {
|
|
1382
|
-
|
|
1382
|
+
apiPayload['total'] = total;
|
|
1383
1383
|
}
|
|
1384
1384
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1385
1385
|
|
|
@@ -1390,7 +1390,7 @@ export class Sites {
|
|
|
1390
1390
|
'get',
|
|
1391
1391
|
uri,
|
|
1392
1392
|
apiHeaders,
|
|
1393
|
-
|
|
1393
|
+
apiPayload
|
|
1394
1394
|
);
|
|
1395
1395
|
}
|
|
1396
1396
|
|
|
@@ -1439,7 +1439,7 @@ export class Sites {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
|
|
1441
1441
|
const apiPath = '/v1/sites/{siteId}/logs/{logId}'.replace('{siteId}', siteId).replace('{logId}', logId);
|
|
1442
|
-
const
|
|
1442
|
+
const apiPayload: Payload = {};
|
|
1443
1443
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1444
1444
|
|
|
1445
1445
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -1449,7 +1449,7 @@ export class Sites {
|
|
|
1449
1449
|
'delete',
|
|
1450
1450
|
uri,
|
|
1451
1451
|
apiHeaders,
|
|
1452
|
-
|
|
1452
|
+
apiPayload
|
|
1453
1453
|
);
|
|
1454
1454
|
}
|
|
1455
1455
|
|
|
@@ -1498,7 +1498,7 @@ export class Sites {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
|
|
1500
1500
|
const apiPath = '/v1/sites/{siteId}/logs/{logId}'.replace('{siteId}', siteId).replace('{logId}', logId);
|
|
1501
|
-
const
|
|
1501
|
+
const apiPayload: Payload = {};
|
|
1502
1502
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1503
1503
|
|
|
1504
1504
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -1508,7 +1508,7 @@ export class Sites {
|
|
|
1508
1508
|
'get',
|
|
1509
1509
|
uri,
|
|
1510
1510
|
apiHeaders,
|
|
1511
|
-
|
|
1511
|
+
apiPayload
|
|
1512
1512
|
);
|
|
1513
1513
|
}
|
|
1514
1514
|
|
|
@@ -1549,7 +1549,7 @@ export class Sites {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
|
|
1551
1551
|
const apiPath = '/v1/sites/{siteId}/variables'.replace('{siteId}', siteId);
|
|
1552
|
-
const
|
|
1552
|
+
const apiPayload: Payload = {};
|
|
1553
1553
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1554
1554
|
|
|
1555
1555
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -1559,7 +1559,7 @@ export class Sites {
|
|
|
1559
1559
|
'get',
|
|
1560
1560
|
uri,
|
|
1561
1561
|
apiHeaders,
|
|
1562
|
-
|
|
1562
|
+
apiPayload
|
|
1563
1563
|
);
|
|
1564
1564
|
}
|
|
1565
1565
|
|
|
@@ -1619,15 +1619,15 @@ export class Sites {
|
|
|
1619
1619
|
}
|
|
1620
1620
|
|
|
1621
1621
|
const apiPath = '/v1/sites/{siteId}/variables'.replace('{siteId}', siteId);
|
|
1622
|
-
const
|
|
1622
|
+
const apiPayload: Payload = {};
|
|
1623
1623
|
if (typeof key !== 'undefined') {
|
|
1624
|
-
|
|
1624
|
+
apiPayload['key'] = key;
|
|
1625
1625
|
}
|
|
1626
1626
|
if (typeof secret !== 'undefined') {
|
|
1627
|
-
|
|
1627
|
+
apiPayload['secret'] = secret;
|
|
1628
1628
|
}
|
|
1629
1629
|
if (typeof value !== 'undefined') {
|
|
1630
|
-
|
|
1630
|
+
apiPayload['value'] = value;
|
|
1631
1631
|
}
|
|
1632
1632
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1633
1633
|
|
|
@@ -1639,7 +1639,7 @@ export class Sites {
|
|
|
1639
1639
|
'post',
|
|
1640
1640
|
uri,
|
|
1641
1641
|
apiHeaders,
|
|
1642
|
-
|
|
1642
|
+
apiPayload
|
|
1643
1643
|
);
|
|
1644
1644
|
}
|
|
1645
1645
|
|
|
@@ -1688,7 +1688,7 @@ export class Sites {
|
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
1690
|
const apiPath = '/v1/sites/{siteId}/variables/{variableId}'.replace('{siteId}', siteId).replace('{variableId}', variableId);
|
|
1691
|
-
const
|
|
1691
|
+
const apiPayload: Payload = {};
|
|
1692
1692
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1693
1693
|
|
|
1694
1694
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -1698,7 +1698,7 @@ export class Sites {
|
|
|
1698
1698
|
'delete',
|
|
1699
1699
|
uri,
|
|
1700
1700
|
apiHeaders,
|
|
1701
|
-
|
|
1701
|
+
apiPayload
|
|
1702
1702
|
);
|
|
1703
1703
|
}
|
|
1704
1704
|
|
|
@@ -1747,7 +1747,7 @@ export class Sites {
|
|
|
1747
1747
|
}
|
|
1748
1748
|
|
|
1749
1749
|
const apiPath = '/v1/sites/{siteId}/variables/{variableId}'.replace('{siteId}', siteId).replace('{variableId}', variableId);
|
|
1750
|
-
const
|
|
1750
|
+
const apiPayload: Payload = {};
|
|
1751
1751
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1752
1752
|
|
|
1753
1753
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -1757,7 +1757,7 @@ export class Sites {
|
|
|
1757
1757
|
'get',
|
|
1758
1758
|
uri,
|
|
1759
1759
|
apiHeaders,
|
|
1760
|
-
|
|
1760
|
+
apiPayload
|
|
1761
1761
|
);
|
|
1762
1762
|
}
|
|
1763
1763
|
|
|
@@ -1821,15 +1821,15 @@ export class Sites {
|
|
|
1821
1821
|
}
|
|
1822
1822
|
|
|
1823
1823
|
const apiPath = '/v1/sites/{siteId}/variables/{variableId}'.replace('{siteId}', siteId).replace('{variableId}', variableId);
|
|
1824
|
-
const
|
|
1824
|
+
const apiPayload: Payload = {};
|
|
1825
1825
|
if (typeof key !== 'undefined') {
|
|
1826
|
-
|
|
1826
|
+
apiPayload['key'] = key;
|
|
1827
1827
|
}
|
|
1828
1828
|
if (typeof secret !== 'undefined') {
|
|
1829
|
-
|
|
1829
|
+
apiPayload['secret'] = secret;
|
|
1830
1830
|
}
|
|
1831
1831
|
if (typeof value !== 'undefined') {
|
|
1832
|
-
|
|
1832
|
+
apiPayload['value'] = value;
|
|
1833
1833
|
}
|
|
1834
1834
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1835
1835
|
|
|
@@ -1841,7 +1841,7 @@ export class Sites {
|
|
|
1841
1841
|
'put',
|
|
1842
1842
|
uri,
|
|
1843
1843
|
apiHeaders,
|
|
1844
|
-
|
|
1844
|
+
apiPayload
|
|
1845
1845
|
);
|
|
1846
1846
|
}
|
|
1847
1847
|
}
|