@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
@@ -57,15 +57,15 @@ export class Sites {
57
57
 
58
58
 
59
59
  const apiPath = '/v1/sites';
60
- const payload: Payload = {};
60
+ const apiPayload: Payload = {};
61
61
  if (typeof queries !== 'undefined') {
62
- payload['queries'] = queries;
62
+ apiPayload['queries'] = queries;
63
63
  }
64
64
  if (typeof search !== 'undefined') {
65
- payload['search'] = search;
65
+ apiPayload['search'] = search;
66
66
  }
67
67
  if (typeof total !== 'undefined') {
68
- payload['total'] = total;
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
- payload
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 payload: Payload = {};
198
+ const apiPayload: Payload = {};
199
199
  if (typeof adapter !== 'undefined') {
200
- payload['adapter'] = adapter;
200
+ apiPayload['adapter'] = adapter;
201
201
  }
202
202
  if (typeof buildCommand !== 'undefined') {
203
- payload['buildCommand'] = buildCommand;
203
+ apiPayload['buildCommand'] = buildCommand;
204
204
  }
205
205
  if (typeof buildRuntime !== 'undefined') {
206
- payload['buildRuntime'] = buildRuntime;
206
+ apiPayload['buildRuntime'] = buildRuntime;
207
207
  }
208
208
  if (typeof enabled !== 'undefined') {
209
- payload['enabled'] = enabled;
209
+ apiPayload['enabled'] = enabled;
210
210
  }
211
211
  if (typeof fallbackFile !== 'undefined') {
212
- payload['fallbackFile'] = fallbackFile;
212
+ apiPayload['fallbackFile'] = fallbackFile;
213
213
  }
214
214
  if (typeof framework !== 'undefined') {
215
- payload['framework'] = framework;
215
+ apiPayload['framework'] = framework;
216
216
  }
217
217
  if (typeof installCommand !== 'undefined') {
218
- payload['installCommand'] = installCommand;
218
+ apiPayload['installCommand'] = installCommand;
219
219
  }
220
220
  if (typeof installationId !== 'undefined') {
221
- payload['installationId'] = installationId;
221
+ apiPayload['installationId'] = installationId;
222
222
  }
223
223
  if (typeof logging !== 'undefined') {
224
- payload['logging'] = logging;
224
+ apiPayload['logging'] = logging;
225
225
  }
226
226
  if (typeof name !== 'undefined') {
227
- payload['name'] = name;
227
+ apiPayload['name'] = name;
228
228
  }
229
229
  if (typeof outputDirectory !== 'undefined') {
230
- payload['outputDirectory'] = outputDirectory;
230
+ apiPayload['outputDirectory'] = outputDirectory;
231
231
  }
232
232
  if (typeof providerBranch !== 'undefined') {
233
- payload['providerBranch'] = providerBranch;
233
+ apiPayload['providerBranch'] = providerBranch;
234
234
  }
235
235
  if (typeof providerRepositoryId !== 'undefined') {
236
- payload['providerRepositoryId'] = providerRepositoryId;
236
+ apiPayload['providerRepositoryId'] = providerRepositoryId;
237
237
  }
238
238
  if (typeof providerRootDirectory !== 'undefined') {
239
- payload['providerRootDirectory'] = providerRootDirectory;
239
+ apiPayload['providerRootDirectory'] = providerRootDirectory;
240
240
  }
241
241
  if (typeof providerSilentMode !== 'undefined') {
242
- payload['providerSilentMode'] = providerSilentMode;
242
+ apiPayload['providerSilentMode'] = providerSilentMode;
243
243
  }
244
244
  if (typeof siteId !== 'undefined') {
245
- payload['siteId'] = siteId;
245
+ apiPayload['siteId'] = siteId;
246
246
  }
247
247
  if (typeof specification !== 'undefined') {
248
- payload['specification'] = specification;
248
+ apiPayload['specification'] = specification;
249
249
  }
250
250
  if (typeof timeout !== 'undefined') {
251
- payload['timeout'] = timeout;
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
- payload
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 payload: Payload = {};
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
- payload
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 payload: Payload = {};
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
- payload
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 payload: Payload = {};
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
- payload
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 payload: Payload = {};
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
- payload
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 payload: Payload = {};
527
+ const apiPayload: Payload = {};
528
528
  if (typeof adapter !== 'undefined') {
529
- payload['adapter'] = adapter;
529
+ apiPayload['adapter'] = adapter;
530
530
  }
531
531
  if (typeof buildCommand !== 'undefined') {
532
- payload['buildCommand'] = buildCommand;
532
+ apiPayload['buildCommand'] = buildCommand;
533
533
  }
534
534
  if (typeof buildRuntime !== 'undefined') {
535
- payload['buildRuntime'] = buildRuntime;
535
+ apiPayload['buildRuntime'] = buildRuntime;
536
536
  }
537
537
  if (typeof enabled !== 'undefined') {
538
- payload['enabled'] = enabled;
538
+ apiPayload['enabled'] = enabled;
539
539
  }
540
540
  if (typeof fallbackFile !== 'undefined') {
541
- payload['fallbackFile'] = fallbackFile;
541
+ apiPayload['fallbackFile'] = fallbackFile;
542
542
  }
543
543
  if (typeof framework !== 'undefined') {
544
- payload['framework'] = framework;
544
+ apiPayload['framework'] = framework;
545
545
  }
546
546
  if (typeof installCommand !== 'undefined') {
547
- payload['installCommand'] = installCommand;
547
+ apiPayload['installCommand'] = installCommand;
548
548
  }
549
549
  if (typeof installationId !== 'undefined') {
550
- payload['installationId'] = installationId;
550
+ apiPayload['installationId'] = installationId;
551
551
  }
552
552
  if (typeof logging !== 'undefined') {
553
- payload['logging'] = logging;
553
+ apiPayload['logging'] = logging;
554
554
  }
555
555
  if (typeof name !== 'undefined') {
556
- payload['name'] = name;
556
+ apiPayload['name'] = name;
557
557
  }
558
558
  if (typeof outputDirectory !== 'undefined') {
559
- payload['outputDirectory'] = outputDirectory;
559
+ apiPayload['outputDirectory'] = outputDirectory;
560
560
  }
561
561
  if (typeof providerBranch !== 'undefined') {
562
- payload['providerBranch'] = providerBranch;
562
+ apiPayload['providerBranch'] = providerBranch;
563
563
  }
564
564
  if (typeof providerRepositoryId !== 'undefined') {
565
- payload['providerRepositoryId'] = providerRepositoryId;
565
+ apiPayload['providerRepositoryId'] = providerRepositoryId;
566
566
  }
567
567
  if (typeof providerRootDirectory !== 'undefined') {
568
- payload['providerRootDirectory'] = providerRootDirectory;
568
+ apiPayload['providerRootDirectory'] = providerRootDirectory;
569
569
  }
570
570
  if (typeof providerSilentMode !== 'undefined') {
571
- payload['providerSilentMode'] = providerSilentMode;
571
+ apiPayload['providerSilentMode'] = providerSilentMode;
572
572
  }
573
573
  if (typeof specification !== 'undefined') {
574
- payload['specification'] = specification;
574
+ apiPayload['specification'] = specification;
575
575
  }
576
576
  if (typeof timeout !== 'undefined') {
577
- payload['timeout'] = timeout;
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
- payload
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 payload: Payload = {};
638
+ const apiPayload: Payload = {};
639
639
  if (typeof deploymentId !== 'undefined') {
640
- payload['deploymentId'] = deploymentId;
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
- payload
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 payload: Payload = {};
706
+ const apiPayload: Payload = {};
707
707
  if (typeof queries !== 'undefined') {
708
- payload['queries'] = queries;
708
+ apiPayload['queries'] = queries;
709
709
  }
710
710
  if (typeof search !== 'undefined') {
711
- payload['search'] = search;
711
+ apiPayload['search'] = search;
712
712
  }
713
713
  if (typeof total !== 'undefined') {
714
- payload['total'] = total;
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
- payload
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 payload: Payload = {};
796
+ const apiPayload: Payload = {};
797
797
  if (typeof activate !== 'undefined') {
798
- payload['activate'] = activate;
798
+ apiPayload['activate'] = activate;
799
799
  }
800
800
  if (typeof buildCommand !== 'undefined') {
801
- payload['buildCommand'] = buildCommand;
801
+ apiPayload['buildCommand'] = buildCommand;
802
802
  }
803
803
  if (typeof code !== 'undefined') {
804
- payload['code'] = code;
804
+ apiPayload['code'] = code;
805
805
  }
806
806
  if (typeof installCommand !== 'undefined') {
807
- payload['installCommand'] = installCommand;
807
+ apiPayload['installCommand'] = installCommand;
808
808
  }
809
809
  if (typeof outputDirectory !== 'undefined') {
810
- payload['outputDirectory'] = outputDirectory;
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
- payload,
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 payload: Payload = {};
872
+ const apiPayload: Payload = {};
873
873
  if (typeof deploymentId !== 'undefined') {
874
- payload['deploymentId'] = deploymentId;
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
- payload
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 payload: Payload = {};
971
+ const apiPayload: Payload = {};
972
972
  if (typeof activate !== 'undefined') {
973
- payload['activate'] = activate;
973
+ apiPayload['activate'] = activate;
974
974
  }
975
975
  if (typeof owner !== 'undefined') {
976
- payload['owner'] = owner;
976
+ apiPayload['owner'] = owner;
977
977
  }
978
978
  if (typeof reference !== 'undefined') {
979
- payload['reference'] = reference;
979
+ apiPayload['reference'] = reference;
980
980
  }
981
981
  if (typeof repository !== 'undefined') {
982
- payload['repository'] = repository;
982
+ apiPayload['repository'] = repository;
983
983
  }
984
984
  if (typeof rootDirectory !== 'undefined') {
985
- payload['rootDirectory'] = rootDirectory;
985
+ apiPayload['rootDirectory'] = rootDirectory;
986
986
  }
987
987
  if (typeof type !== 'undefined') {
988
- payload['type'] = type;
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
- payload
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 payload: Payload = {};
1064
+ const apiPayload: Payload = {};
1065
1065
  if (typeof activate !== 'undefined') {
1066
- payload['activate'] = activate;
1066
+ apiPayload['activate'] = activate;
1067
1067
  }
1068
1068
  if (typeof reference !== 'undefined') {
1069
- payload['reference'] = reference;
1069
+ apiPayload['reference'] = reference;
1070
1070
  }
1071
1071
  if (typeof type !== 'undefined') {
1072
- payload['type'] = type;
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
- payload
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 payload: Payload = {};
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
- payload
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 payload: Payload = {};
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
- payload
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 payload: Payload = {};
1255
+ const apiPayload: Payload = {};
1256
1256
  if (typeof type !== 'undefined') {
1257
- payload['type'] = type;
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
- payload
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 payload: Payload = {};
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
- payload
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 payload: Payload = {};
1377
+ const apiPayload: Payload = {};
1378
1378
  if (typeof queries !== 'undefined') {
1379
- payload['queries'] = queries;
1379
+ apiPayload['queries'] = queries;
1380
1380
  }
1381
1381
  if (typeof total !== 'undefined') {
1382
- payload['total'] = total;
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
- payload
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 payload: Payload = {};
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
- payload
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 payload: Payload = {};
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
- payload
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 payload: Payload = {};
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
- payload
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 payload: Payload = {};
1622
+ const apiPayload: Payload = {};
1623
1623
  if (typeof key !== 'undefined') {
1624
- payload['key'] = key;
1624
+ apiPayload['key'] = key;
1625
1625
  }
1626
1626
  if (typeof secret !== 'undefined') {
1627
- payload['secret'] = secret;
1627
+ apiPayload['secret'] = secret;
1628
1628
  }
1629
1629
  if (typeof value !== 'undefined') {
1630
- payload['value'] = value;
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
- payload
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 payload: Payload = {};
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
- payload
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 payload: Payload = {};
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
- payload
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 payload: Payload = {};
1824
+ const apiPayload: Payload = {};
1825
1825
  if (typeof key !== 'undefined') {
1826
- payload['key'] = key;
1826
+ apiPayload['key'] = key;
1827
1827
  }
1828
1828
  if (typeof secret !== 'undefined') {
1829
- payload['secret'] = secret;
1829
+ apiPayload['secret'] = secret;
1830
1830
  }
1831
1831
  if (typeof value !== 'undefined') {
1832
- payload['value'] = value;
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
- payload
1844
+ apiPayload
1845
1845
  );
1846
1846
  }
1847
1847
  }