@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.
Files changed (99) hide show
  1. package/dist/cjs/sdk.js +13491 -6163
  2. package/dist/cjs/sdk.js.map +1 -1
  3. package/dist/esm/sdk.js +13464 -6162
  4. package/dist/esm/sdk.js.map +1 -1
  5. package/dist/iife/sdk.js +13491 -6163
  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-list-kind.ts +4 -0
  24. package/src/enums/order-payment-status.ts +9 -0
  25. package/src/enums/organization-status.ts +4 -0
  26. package/src/enums/page-status.ts +5 -0
  27. package/src/enums/payment-fee-type.ts +5 -0
  28. package/src/enums/payment-method-kind.ts +4 -0
  29. package/src/enums/price-entry-type.ts +4 -0
  30. package/src/enums/price-list-status.ts +4 -0
  31. package/src/enums/shipping-method-matrix-basis.ts +6 -0
  32. package/src/enums/shipping-method-pricing-type.ts +5 -0
  33. package/src/enums/store-asset-request-visibility.ts +4 -0
  34. package/src/enums/visibility.ts +4 -0
  35. package/src/index.ts +28 -2
  36. package/src/models.ts +5309 -1009
  37. package/src/services/apps.ts +154 -154
  38. package/src/services/avatars.ts +57 -57
  39. package/src/services/carts.ts +739 -104
  40. package/src/services/channels.ts +147 -19
  41. package/src/services/customers.ts +809 -69
  42. package/src/services/greetings.ts +18 -18
  43. package/src/services/inventories.ts +620 -65
  44. package/src/services/locale.ts +16 -16
  45. package/src/services/markets.ts +690 -75
  46. package/src/services/messaging.ts +273 -273
  47. package/src/services/orderlists.ts +889 -0
  48. package/src/services/orders.ts +692 -137
  49. package/src/services/pages.ts +661 -155
  50. package/src/services/payments.ts +591 -64
  51. package/src/services/prices.ts +585 -59
  52. package/src/services/products.ts +1908 -272
  53. package/src/services/search.ts +24 -24
  54. package/src/services/shipping.ts +451 -59
  55. package/src/services/sites.ts +116 -116
  56. package/src/services/storage.ts +933 -599
  57. package/src/services/tokens.ts +14 -14
  58. package/types/enums/address-type.d.ts +4 -0
  59. package/types/enums/cart-export-format.d.ts +4 -0
  60. package/types/enums/cart-io-apply-mode.d.ts +5 -0
  61. package/types/enums/cart-io-direction.d.ts +4 -0
  62. package/types/enums/cart-io-entity.d.ts +4 -0
  63. package/types/enums/cart-io-format.d.ts +4 -0
  64. package/types/enums/cart-item-type.d.ts +5 -0
  65. package/types/enums/channel-status.d.ts +4 -0
  66. package/types/enums/channel-type.d.ts +7 -0
  67. package/types/enums/contact-role.d.ts +6 -0
  68. package/types/enums/contact-status.d.ts +5 -0
  69. package/types/enums/location-type.d.ts +6 -0
  70. package/types/enums/market-status.d.ts +4 -0
  71. package/types/enums/order-comment-visibility.d.ts +4 -0
  72. package/types/enums/order-item-type.d.ts +5 -0
  73. package/types/enums/order-list-kind.d.ts +4 -0
  74. package/types/enums/order-payment-status.d.ts +9 -0
  75. package/types/enums/organization-status.d.ts +4 -0
  76. package/types/enums/page-status.d.ts +5 -0
  77. package/types/enums/payment-fee-type.d.ts +5 -0
  78. package/types/enums/payment-method-kind.d.ts +4 -0
  79. package/types/enums/price-entry-type.d.ts +4 -0
  80. package/types/enums/price-list-status.d.ts +4 -0
  81. package/types/enums/shipping-method-matrix-basis.d.ts +6 -0
  82. package/types/enums/shipping-method-pricing-type.d.ts +5 -0
  83. package/types/enums/store-asset-request-visibility.d.ts +4 -0
  84. package/types/enums/visibility.d.ts +4 -0
  85. package/types/index.d.ts +28 -2
  86. package/types/models.d.ts +5170 -1010
  87. package/types/services/carts.d.ts +271 -12
  88. package/types/services/channels.d.ts +54 -2
  89. package/types/services/customers.d.ts +298 -12
  90. package/types/services/inventories.d.ts +225 -11
  91. package/types/services/markets.d.ts +235 -6
  92. package/types/services/orderlists.d.ts +324 -0
  93. package/types/services/orders.d.ts +238 -16
  94. package/types/services/pages.d.ts +190 -6
  95. package/types/services/payments.d.ts +221 -7
  96. package/types/services/prices.d.ts +218 -6
  97. package/types/services/products.d.ts +672 -32
  98. package/types/services/shipping.d.ts +168 -6
  99. package/types/services/storage.d.ts +353 -285
@@ -60,15 +60,15 @@ export class Apps {
60
60
 
61
61
 
62
62
  const apiPath = '/v1/apps';
63
- const payload: Payload = {};
63
+ const apiPayload: Payload = {};
64
64
  if (typeof queries !== 'undefined') {
65
- payload['queries'] = queries;
65
+ apiPayload['queries'] = queries;
66
66
  }
67
67
  if (typeof search !== 'undefined') {
68
- payload['search'] = search;
68
+ apiPayload['search'] = search;
69
69
  }
70
70
  if (typeof total !== 'undefined') {
71
- payload['total'] = total;
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 Apps {
79
79
  'get',
80
80
  uri,
81
81
  apiHeaders,
82
- payload
82
+ apiPayload
83
83
  );
84
84
  }
85
85
 
@@ -199,60 +199,60 @@ export class Apps {
199
199
  }
200
200
 
201
201
  const apiPath = '/v1/apps';
202
- const payload: Payload = {};
202
+ const apiPayload: Payload = {};
203
203
  if (typeof commands !== 'undefined') {
204
- payload['commands'] = commands;
204
+ apiPayload['commands'] = commands;
205
205
  }
206
206
  if (typeof enabled !== 'undefined') {
207
- payload['enabled'] = enabled;
207
+ apiPayload['enabled'] = enabled;
208
208
  }
209
209
  if (typeof entrypoint !== 'undefined') {
210
- payload['entrypoint'] = entrypoint;
210
+ apiPayload['entrypoint'] = entrypoint;
211
211
  }
212
212
  if (typeof events !== 'undefined') {
213
- payload['events'] = events;
213
+ apiPayload['events'] = events;
214
214
  }
215
215
  if (typeof execute !== 'undefined') {
216
- payload['execute'] = execute;
216
+ apiPayload['execute'] = execute;
217
217
  }
218
218
  if (typeof functionId !== 'undefined') {
219
- payload['functionId'] = functionId;
219
+ apiPayload['functionId'] = functionId;
220
220
  }
221
221
  if (typeof installationId !== 'undefined') {
222
- payload['installationId'] = installationId;
222
+ apiPayload['installationId'] = installationId;
223
223
  }
224
224
  if (typeof logging !== 'undefined') {
225
- payload['logging'] = logging;
225
+ apiPayload['logging'] = logging;
226
226
  }
227
227
  if (typeof name !== 'undefined') {
228
- payload['name'] = name;
228
+ apiPayload['name'] = name;
229
229
  }
230
230
  if (typeof providerBranch !== 'undefined') {
231
- payload['providerBranch'] = providerBranch;
231
+ apiPayload['providerBranch'] = providerBranch;
232
232
  }
233
233
  if (typeof providerRepositoryId !== 'undefined') {
234
- payload['providerRepositoryId'] = providerRepositoryId;
234
+ apiPayload['providerRepositoryId'] = providerRepositoryId;
235
235
  }
236
236
  if (typeof providerRootDirectory !== 'undefined') {
237
- payload['providerRootDirectory'] = providerRootDirectory;
237
+ apiPayload['providerRootDirectory'] = providerRootDirectory;
238
238
  }
239
239
  if (typeof providerSilentMode !== 'undefined') {
240
- payload['providerSilentMode'] = providerSilentMode;
240
+ apiPayload['providerSilentMode'] = providerSilentMode;
241
241
  }
242
242
  if (typeof runtime !== 'undefined') {
243
- payload['runtime'] = runtime;
243
+ apiPayload['runtime'] = runtime;
244
244
  }
245
245
  if (typeof schedule !== 'undefined') {
246
- payload['schedule'] = schedule;
246
+ apiPayload['schedule'] = schedule;
247
247
  }
248
248
  if (typeof scopes !== 'undefined') {
249
- payload['scopes'] = scopes;
249
+ apiPayload['scopes'] = scopes;
250
250
  }
251
251
  if (typeof specification !== 'undefined') {
252
- payload['specification'] = specification;
252
+ apiPayload['specification'] = specification;
253
253
  }
254
254
  if (typeof timeout !== 'undefined') {
255
- payload['timeout'] = timeout;
255
+ apiPayload['timeout'] = timeout;
256
256
  }
257
257
  const uri = new URL(this.client.config.endpoint + apiPath);
258
258
 
@@ -264,7 +264,7 @@ export class Apps {
264
264
  'post',
265
265
  uri,
266
266
  apiHeaders,
267
- payload
267
+ apiPayload
268
268
  );
269
269
  }
270
270
 
@@ -311,15 +311,15 @@ export class Apps {
311
311
 
312
312
 
313
313
  const apiPath = '/v1/apps/marketplace';
314
- const payload: Payload = {};
314
+ const apiPayload: Payload = {};
315
315
  if (typeof search !== 'undefined') {
316
- payload['search'] = search;
316
+ apiPayload['search'] = search;
317
317
  }
318
318
  if (typeof perPage !== 'undefined') {
319
- payload['per_page'] = perPage;
319
+ apiPayload['per_page'] = perPage;
320
320
  }
321
321
  if (typeof page !== 'undefined') {
322
- payload['page'] = page;
322
+ apiPayload['page'] = page;
323
323
  }
324
324
  const uri = new URL(this.client.config.endpoint + apiPath);
325
325
 
@@ -330,7 +330,7 @@ export class Apps {
330
330
  'get',
331
331
  uri,
332
332
  apiHeaders,
333
- payload
333
+ apiPayload
334
334
  );
335
335
  }
336
336
 
@@ -379,12 +379,12 @@ export class Apps {
379
379
  }
380
380
 
381
381
  const apiPath = '/v1/apps/marketplace/install';
382
- const payload: Payload = {};
382
+ const apiPayload: Payload = {};
383
383
  if (typeof name !== 'undefined') {
384
- payload['name'] = name;
384
+ apiPayload['name'] = name;
385
385
  }
386
386
  if (typeof owner !== 'undefined') {
387
- payload['owner'] = owner;
387
+ apiPayload['owner'] = owner;
388
388
  }
389
389
  const uri = new URL(this.client.config.endpoint + apiPath);
390
390
 
@@ -396,7 +396,7 @@ export class Apps {
396
396
  'post',
397
397
  uri,
398
398
  apiHeaders,
399
- payload
399
+ apiPayload
400
400
  );
401
401
  }
402
402
 
@@ -409,7 +409,7 @@ export class Apps {
409
409
  appsListRuntimes(): Promise<Models.RuntimeList> {
410
410
 
411
411
  const apiPath = '/v1/apps/runtimes';
412
- const payload: Payload = {};
412
+ const apiPayload: Payload = {};
413
413
  const uri = new URL(this.client.config.endpoint + apiPath);
414
414
 
415
415
  const apiHeaders: { [header: string]: string } = {
@@ -419,7 +419,7 @@ export class Apps {
419
419
  'get',
420
420
  uri,
421
421
  apiHeaders,
422
- payload
422
+ apiPayload
423
423
  );
424
424
  }
425
425
 
@@ -432,7 +432,7 @@ export class Apps {
432
432
  appsListSpecifications(): Promise<Models.SpecificationList> {
433
433
 
434
434
  const apiPath = '/v1/apps/specifications';
435
- const payload: Payload = {};
435
+ const apiPayload: Payload = {};
436
436
  const uri = new URL(this.client.config.endpoint + apiPath);
437
437
 
438
438
  const apiHeaders: { [header: string]: string } = {
@@ -442,7 +442,7 @@ export class Apps {
442
442
  'get',
443
443
  uri,
444
444
  apiHeaders,
445
- payload
445
+ apiPayload
446
446
  );
447
447
  }
448
448
 
@@ -497,21 +497,21 @@ export class Apps {
497
497
 
498
498
 
499
499
  const apiPath = '/v1/apps/templates';
500
- const payload: Payload = {};
500
+ const apiPayload: Payload = {};
501
501
  if (typeof runtimes !== 'undefined') {
502
- payload['runtimes'] = runtimes;
502
+ apiPayload['runtimes'] = runtimes;
503
503
  }
504
504
  if (typeof useCases !== 'undefined') {
505
- payload['useCases'] = useCases;
505
+ apiPayload['useCases'] = useCases;
506
506
  }
507
507
  if (typeof limit !== 'undefined') {
508
- payload['limit'] = limit;
508
+ apiPayload['limit'] = limit;
509
509
  }
510
510
  if (typeof offset !== 'undefined') {
511
- payload['offset'] = offset;
511
+ apiPayload['offset'] = offset;
512
512
  }
513
513
  if (typeof total !== 'undefined') {
514
- payload['total'] = total;
514
+ apiPayload['total'] = total;
515
515
  }
516
516
  const uri = new URL(this.client.config.endpoint + apiPath);
517
517
 
@@ -522,7 +522,7 @@ export class Apps {
522
522
  'get',
523
523
  uri,
524
524
  apiHeaders,
525
- payload
525
+ apiPayload
526
526
  );
527
527
  }
528
528
 
@@ -563,7 +563,7 @@ export class Apps {
563
563
  }
564
564
 
565
565
  const apiPath = '/v1/apps/templates/{templateId}'.replace('{templateId}', templateId);
566
- const payload: Payload = {};
566
+ const apiPayload: Payload = {};
567
567
  const uri = new URL(this.client.config.endpoint + apiPath);
568
568
 
569
569
  const apiHeaders: { [header: string]: string } = {
@@ -573,7 +573,7 @@ export class Apps {
573
573
  'get',
574
574
  uri,
575
575
  apiHeaders,
576
- payload
576
+ apiPayload
577
577
  );
578
578
  }
579
579
 
@@ -611,9 +611,9 @@ export class Apps {
611
611
 
612
612
 
613
613
  const apiPath = '/v1/apps/usage';
614
- const payload: Payload = {};
614
+ const apiPayload: Payload = {};
615
615
  if (typeof range !== 'undefined') {
616
- payload['range'] = range;
616
+ apiPayload['range'] = range;
617
617
  }
618
618
  const uri = new URL(this.client.config.endpoint + apiPath);
619
619
 
@@ -624,7 +624,7 @@ export class Apps {
624
624
  'get',
625
625
  uri,
626
626
  apiHeaders,
627
- payload
627
+ apiPayload
628
628
  );
629
629
  }
630
630
 
@@ -665,7 +665,7 @@ export class Apps {
665
665
  }
666
666
 
667
667
  const apiPath = '/v1/apps/{functionId}'.replace('{functionId}', functionId);
668
- const payload: Payload = {};
668
+ const apiPayload: Payload = {};
669
669
  const uri = new URL(this.client.config.endpoint + apiPath);
670
670
 
671
671
  const apiHeaders: { [header: string]: string } = {
@@ -675,7 +675,7 @@ export class Apps {
675
675
  'delete',
676
676
  uri,
677
677
  apiHeaders,
678
- payload
678
+ apiPayload
679
679
  );
680
680
  }
681
681
 
@@ -716,7 +716,7 @@ export class Apps {
716
716
  }
717
717
 
718
718
  const apiPath = '/v1/apps/{functionId}'.replace('{functionId}', functionId);
719
- const payload: Payload = {};
719
+ const apiPayload: Payload = {};
720
720
  const uri = new URL(this.client.config.endpoint + apiPath);
721
721
 
722
722
  const apiHeaders: { [header: string]: string } = {
@@ -726,7 +726,7 @@ export class Apps {
726
726
  'get',
727
727
  uri,
728
728
  apiHeaders,
729
- payload
729
+ apiPayload
730
730
  );
731
731
  }
732
732
 
@@ -839,57 +839,57 @@ export class Apps {
839
839
  }
840
840
 
841
841
  const apiPath = '/v1/apps/{functionId}'.replace('{functionId}', functionId);
842
- const payload: Payload = {};
842
+ const apiPayload: Payload = {};
843
843
  if (typeof commands !== 'undefined') {
844
- payload['commands'] = commands;
844
+ apiPayload['commands'] = commands;
845
845
  }
846
846
  if (typeof enabled !== 'undefined') {
847
- payload['enabled'] = enabled;
847
+ apiPayload['enabled'] = enabled;
848
848
  }
849
849
  if (typeof entrypoint !== 'undefined') {
850
- payload['entrypoint'] = entrypoint;
850
+ apiPayload['entrypoint'] = entrypoint;
851
851
  }
852
852
  if (typeof events !== 'undefined') {
853
- payload['events'] = events;
853
+ apiPayload['events'] = events;
854
854
  }
855
855
  if (typeof execute !== 'undefined') {
856
- payload['execute'] = execute;
856
+ apiPayload['execute'] = execute;
857
857
  }
858
858
  if (typeof installationId !== 'undefined') {
859
- payload['installationId'] = installationId;
859
+ apiPayload['installationId'] = installationId;
860
860
  }
861
861
  if (typeof logging !== 'undefined') {
862
- payload['logging'] = logging;
862
+ apiPayload['logging'] = logging;
863
863
  }
864
864
  if (typeof name !== 'undefined') {
865
- payload['name'] = name;
865
+ apiPayload['name'] = name;
866
866
  }
867
867
  if (typeof providerBranch !== 'undefined') {
868
- payload['providerBranch'] = providerBranch;
868
+ apiPayload['providerBranch'] = providerBranch;
869
869
  }
870
870
  if (typeof providerRepositoryId !== 'undefined') {
871
- payload['providerRepositoryId'] = providerRepositoryId;
871
+ apiPayload['providerRepositoryId'] = providerRepositoryId;
872
872
  }
873
873
  if (typeof providerRootDirectory !== 'undefined') {
874
- payload['providerRootDirectory'] = providerRootDirectory;
874
+ apiPayload['providerRootDirectory'] = providerRootDirectory;
875
875
  }
876
876
  if (typeof providerSilentMode !== 'undefined') {
877
- payload['providerSilentMode'] = providerSilentMode;
877
+ apiPayload['providerSilentMode'] = providerSilentMode;
878
878
  }
879
879
  if (typeof runtime !== 'undefined') {
880
- payload['runtime'] = runtime;
880
+ apiPayload['runtime'] = runtime;
881
881
  }
882
882
  if (typeof schedule !== 'undefined') {
883
- payload['schedule'] = schedule;
883
+ apiPayload['schedule'] = schedule;
884
884
  }
885
885
  if (typeof scopes !== 'undefined') {
886
- payload['scopes'] = scopes;
886
+ apiPayload['scopes'] = scopes;
887
887
  }
888
888
  if (typeof specification !== 'undefined') {
889
- payload['specification'] = specification;
889
+ apiPayload['specification'] = specification;
890
890
  }
891
891
  if (typeof timeout !== 'undefined') {
892
- payload['timeout'] = timeout;
892
+ apiPayload['timeout'] = timeout;
893
893
  }
894
894
  const uri = new URL(this.client.config.endpoint + apiPath);
895
895
 
@@ -901,7 +901,7 @@ export class Apps {
901
901
  'put',
902
902
  uri,
903
903
  apiHeaders,
904
- payload
904
+ apiPayload
905
905
  );
906
906
  }
907
907
 
@@ -950,9 +950,9 @@ export class Apps {
950
950
  }
951
951
 
952
952
  const apiPath = '/v1/apps/{functionId}/deployment'.replace('{functionId}', functionId);
953
- const payload: Payload = {};
953
+ const apiPayload: Payload = {};
954
954
  if (typeof deploymentId !== 'undefined') {
955
- payload['deploymentId'] = deploymentId;
955
+ apiPayload['deploymentId'] = deploymentId;
956
956
  }
957
957
  const uri = new URL(this.client.config.endpoint + apiPath);
958
958
 
@@ -964,7 +964,7 @@ export class Apps {
964
964
  'patch',
965
965
  uri,
966
966
  apiHeaders,
967
- payload
967
+ apiPayload
968
968
  );
969
969
  }
970
970
 
@@ -1018,15 +1018,15 @@ export class Apps {
1018
1018
  }
1019
1019
 
1020
1020
  const apiPath = '/v1/apps/{functionId}/deployments'.replace('{functionId}', functionId);
1021
- const payload: Payload = {};
1021
+ const apiPayload: Payload = {};
1022
1022
  if (typeof queries !== 'undefined') {
1023
- payload['queries'] = queries;
1023
+ apiPayload['queries'] = queries;
1024
1024
  }
1025
1025
  if (typeof search !== 'undefined') {
1026
- payload['search'] = search;
1026
+ apiPayload['search'] = search;
1027
1027
  }
1028
1028
  if (typeof total !== 'undefined') {
1029
- payload['total'] = total;
1029
+ apiPayload['total'] = total;
1030
1030
  }
1031
1031
  const uri = new URL(this.client.config.endpoint + apiPath);
1032
1032
 
@@ -1037,7 +1037,7 @@ export class Apps {
1037
1037
  'get',
1038
1038
  uri,
1039
1039
  apiHeaders,
1040
- payload
1040
+ apiPayload
1041
1041
  );
1042
1042
  }
1043
1043
 
@@ -1110,18 +1110,18 @@ export class Apps {
1110
1110
  }
1111
1111
 
1112
1112
  const apiPath = '/v1/apps/{functionId}/deployments'.replace('{functionId}', functionId);
1113
- const payload: Payload = {};
1113
+ const apiPayload: Payload = {};
1114
1114
  if (typeof activate !== 'undefined') {
1115
- payload['activate'] = activate;
1115
+ apiPayload['activate'] = activate;
1116
1116
  }
1117
1117
  if (typeof code !== 'undefined') {
1118
- payload['code'] = code;
1118
+ apiPayload['code'] = code;
1119
1119
  }
1120
1120
  if (typeof commands !== 'undefined') {
1121
- payload['commands'] = commands;
1121
+ apiPayload['commands'] = commands;
1122
1122
  }
1123
1123
  if (typeof entrypoint !== 'undefined') {
1124
- payload['entrypoint'] = entrypoint;
1124
+ apiPayload['entrypoint'] = entrypoint;
1125
1125
  }
1126
1126
  const uri = new URL(this.client.config.endpoint + apiPath);
1127
1127
 
@@ -1133,7 +1133,7 @@ export class Apps {
1133
1133
  'post',
1134
1134
  uri,
1135
1135
  apiHeaders,
1136
- payload,
1136
+ apiPayload,
1137
1137
  onProgress
1138
1138
  );
1139
1139
  }
@@ -1187,12 +1187,12 @@ export class Apps {
1187
1187
  }
1188
1188
 
1189
1189
  const apiPath = '/v1/apps/{functionId}/deployments/duplicate'.replace('{functionId}', functionId);
1190
- const payload: Payload = {};
1190
+ const apiPayload: Payload = {};
1191
1191
  if (typeof buildId !== 'undefined') {
1192
- payload['buildId'] = buildId;
1192
+ apiPayload['buildId'] = buildId;
1193
1193
  }
1194
1194
  if (typeof deploymentId !== 'undefined') {
1195
- payload['deploymentId'] = deploymentId;
1195
+ apiPayload['deploymentId'] = deploymentId;
1196
1196
  }
1197
1197
  const uri = new URL(this.client.config.endpoint + apiPath);
1198
1198
 
@@ -1204,7 +1204,7 @@ export class Apps {
1204
1204
  'post',
1205
1205
  uri,
1206
1206
  apiHeaders,
1207
- payload
1207
+ apiPayload
1208
1208
  );
1209
1209
  }
1210
1210
 
@@ -1285,24 +1285,24 @@ export class Apps {
1285
1285
  }
1286
1286
 
1287
1287
  const apiPath = '/v1/apps/{functionId}/deployments/template'.replace('{functionId}', functionId);
1288
- const payload: Payload = {};
1288
+ const apiPayload: Payload = {};
1289
1289
  if (typeof activate !== 'undefined') {
1290
- payload['activate'] = activate;
1290
+ apiPayload['activate'] = activate;
1291
1291
  }
1292
1292
  if (typeof owner !== 'undefined') {
1293
- payload['owner'] = owner;
1293
+ apiPayload['owner'] = owner;
1294
1294
  }
1295
1295
  if (typeof reference !== 'undefined') {
1296
- payload['reference'] = reference;
1296
+ apiPayload['reference'] = reference;
1297
1297
  }
1298
1298
  if (typeof repository !== 'undefined') {
1299
- payload['repository'] = repository;
1299
+ apiPayload['repository'] = repository;
1300
1300
  }
1301
1301
  if (typeof rootDirectory !== 'undefined') {
1302
- payload['rootDirectory'] = rootDirectory;
1302
+ apiPayload['rootDirectory'] = rootDirectory;
1303
1303
  }
1304
1304
  if (typeof type !== 'undefined') {
1305
- payload['type'] = type;
1305
+ apiPayload['type'] = type;
1306
1306
  }
1307
1307
  const uri = new URL(this.client.config.endpoint + apiPath);
1308
1308
 
@@ -1314,7 +1314,7 @@ export class Apps {
1314
1314
  'post',
1315
1315
  uri,
1316
1316
  apiHeaders,
1317
- payload
1317
+ apiPayload
1318
1318
  );
1319
1319
  }
1320
1320
 
@@ -1374,15 +1374,15 @@ export class Apps {
1374
1374
  }
1375
1375
 
1376
1376
  const apiPath = '/v1/apps/{functionId}/deployments/vcs'.replace('{functionId}', functionId);
1377
- const payload: Payload = {};
1377
+ const apiPayload: Payload = {};
1378
1378
  if (typeof activate !== 'undefined') {
1379
- payload['activate'] = activate;
1379
+ apiPayload['activate'] = activate;
1380
1380
  }
1381
1381
  if (typeof reference !== 'undefined') {
1382
- payload['reference'] = reference;
1382
+ apiPayload['reference'] = reference;
1383
1383
  }
1384
1384
  if (typeof type !== 'undefined') {
1385
- payload['type'] = type;
1385
+ apiPayload['type'] = type;
1386
1386
  }
1387
1387
  const uri = new URL(this.client.config.endpoint + apiPath);
1388
1388
 
@@ -1394,7 +1394,7 @@ export class Apps {
1394
1394
  'post',
1395
1395
  uri,
1396
1396
  apiHeaders,
1397
- payload
1397
+ apiPayload
1398
1398
  );
1399
1399
  }
1400
1400
 
@@ -1443,7 +1443,7 @@ export class Apps {
1443
1443
  }
1444
1444
 
1445
1445
  const apiPath = '/v1/apps/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);
1446
- const payload: Payload = {};
1446
+ const apiPayload: Payload = {};
1447
1447
  const uri = new URL(this.client.config.endpoint + apiPath);
1448
1448
 
1449
1449
  const apiHeaders: { [header: string]: string } = {
@@ -1453,7 +1453,7 @@ export class Apps {
1453
1453
  'delete',
1454
1454
  uri,
1455
1455
  apiHeaders,
1456
- payload
1456
+ apiPayload
1457
1457
  );
1458
1458
  }
1459
1459
 
@@ -1502,7 +1502,7 @@ export class Apps {
1502
1502
  }
1503
1503
 
1504
1504
  const apiPath = '/v1/apps/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);
1505
- const payload: Payload = {};
1505
+ const apiPayload: Payload = {};
1506
1506
  const uri = new URL(this.client.config.endpoint + apiPath);
1507
1507
 
1508
1508
  const apiHeaders: { [header: string]: string } = {
@@ -1512,7 +1512,7 @@ export class Apps {
1512
1512
  'get',
1513
1513
  uri,
1514
1514
  apiHeaders,
1515
- payload
1515
+ apiPayload
1516
1516
  );
1517
1517
  }
1518
1518
 
@@ -1565,9 +1565,9 @@ export class Apps {
1565
1565
  }
1566
1566
 
1567
1567
  const apiPath = '/v1/apps/{functionId}/deployments/{deploymentId}/download'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);
1568
- const payload: Payload = {};
1568
+ const apiPayload: Payload = {};
1569
1569
  if (typeof type !== 'undefined') {
1570
- payload['type'] = type;
1570
+ apiPayload['type'] = type;
1571
1571
  }
1572
1572
  const uri = new URL(this.client.config.endpoint + apiPath);
1573
1573
 
@@ -1578,7 +1578,7 @@ export class Apps {
1578
1578
  'get',
1579
1579
  uri,
1580
1580
  apiHeaders,
1581
- payload
1581
+ apiPayload
1582
1582
  );
1583
1583
  }
1584
1584
 
@@ -1627,7 +1627,7 @@ export class Apps {
1627
1627
  }
1628
1628
 
1629
1629
  const apiPath = '/v1/apps/{functionId}/deployments/{deploymentId}/status'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);
1630
- const payload: Payload = {};
1630
+ const apiPayload: Payload = {};
1631
1631
  const uri = new URL(this.client.config.endpoint + apiPath);
1632
1632
 
1633
1633
  const apiHeaders: { [header: string]: string } = {
@@ -1637,7 +1637,7 @@ export class Apps {
1637
1637
  'patch',
1638
1638
  uri,
1639
1639
  apiHeaders,
1640
- payload
1640
+ apiPayload
1641
1641
  );
1642
1642
  }
1643
1643
 
@@ -1687,12 +1687,12 @@ export class Apps {
1687
1687
  }
1688
1688
 
1689
1689
  const apiPath = '/v1/apps/{functionId}/executions'.replace('{functionId}', functionId);
1690
- const payload: Payload = {};
1690
+ const apiPayload: Payload = {};
1691
1691
  if (typeof queries !== 'undefined') {
1692
- payload['queries'] = queries;
1692
+ apiPayload['queries'] = queries;
1693
1693
  }
1694
1694
  if (typeof total !== 'undefined') {
1695
- payload['total'] = total;
1695
+ apiPayload['total'] = total;
1696
1696
  }
1697
1697
  const uri = new URL(this.client.config.endpoint + apiPath);
1698
1698
 
@@ -1703,7 +1703,7 @@ export class Apps {
1703
1703
  'get',
1704
1704
  uri,
1705
1705
  apiHeaders,
1706
- payload
1706
+ apiPayload
1707
1707
  );
1708
1708
  }
1709
1709
 
@@ -1769,24 +1769,24 @@ export class Apps {
1769
1769
  }
1770
1770
 
1771
1771
  const apiPath = '/v1/apps/{functionId}/executions'.replace('{functionId}', functionId);
1772
- const payload: Payload = {};
1772
+ const apiPayload: Payload = {};
1773
1773
  if (typeof async !== 'undefined') {
1774
- payload['async'] = async;
1774
+ apiPayload['async'] = async;
1775
1775
  }
1776
1776
  if (typeof body !== 'undefined') {
1777
- payload['body'] = body;
1777
+ apiPayload['body'] = body;
1778
1778
  }
1779
1779
  if (typeof headers !== 'undefined') {
1780
- payload['headers'] = headers;
1780
+ apiPayload['headers'] = headers;
1781
1781
  }
1782
1782
  if (typeof method !== 'undefined') {
1783
- payload['method'] = method;
1783
+ apiPayload['method'] = method;
1784
1784
  }
1785
1785
  if (typeof xpath !== 'undefined') {
1786
- payload['path'] = xpath;
1786
+ apiPayload['path'] = xpath;
1787
1787
  }
1788
1788
  if (typeof scheduledAt !== 'undefined') {
1789
- payload['scheduledAt'] = scheduledAt;
1789
+ apiPayload['scheduledAt'] = scheduledAt;
1790
1790
  }
1791
1791
  const uri = new URL(this.client.config.endpoint + apiPath);
1792
1792
 
@@ -1798,7 +1798,7 @@ export class Apps {
1798
1798
  'post',
1799
1799
  uri,
1800
1800
  apiHeaders,
1801
- payload
1801
+ apiPayload
1802
1802
  );
1803
1803
  }
1804
1804
 
@@ -1847,7 +1847,7 @@ export class Apps {
1847
1847
  }
1848
1848
 
1849
1849
  const apiPath = '/v1/apps/{functionId}/executions/{executionId}'.replace('{functionId}', functionId).replace('{executionId}', executionId);
1850
- const payload: Payload = {};
1850
+ const apiPayload: Payload = {};
1851
1851
  const uri = new URL(this.client.config.endpoint + apiPath);
1852
1852
 
1853
1853
  const apiHeaders: { [header: string]: string } = {
@@ -1857,7 +1857,7 @@ export class Apps {
1857
1857
  'delete',
1858
1858
  uri,
1859
1859
  apiHeaders,
1860
- payload
1860
+ apiPayload
1861
1861
  );
1862
1862
  }
1863
1863
 
@@ -1906,7 +1906,7 @@ export class Apps {
1906
1906
  }
1907
1907
 
1908
1908
  const apiPath = '/v1/apps/{functionId}/executions/{executionId}'.replace('{functionId}', functionId).replace('{executionId}', executionId);
1909
- const payload: Payload = {};
1909
+ const apiPayload: Payload = {};
1910
1910
  const uri = new URL(this.client.config.endpoint + apiPath);
1911
1911
 
1912
1912
  const apiHeaders: { [header: string]: string } = {
@@ -1916,7 +1916,7 @@ export class Apps {
1916
1916
  'get',
1917
1917
  uri,
1918
1918
  apiHeaders,
1919
- payload
1919
+ apiPayload
1920
1920
  );
1921
1921
  }
1922
1922
 
@@ -1957,7 +1957,7 @@ export class Apps {
1957
1957
  }
1958
1958
 
1959
1959
  const apiPath = '/v1/apps/{functionId}/marketplace-status'.replace('{functionId}', functionId);
1960
- const payload: Payload = {};
1960
+ const apiPayload: Payload = {};
1961
1961
  const uri = new URL(this.client.config.endpoint + apiPath);
1962
1962
 
1963
1963
  const apiHeaders: { [header: string]: string } = {
@@ -1967,7 +1967,7 @@ export class Apps {
1967
1967
  'get',
1968
1968
  uri,
1969
1969
  apiHeaders,
1970
- payload
1970
+ apiPayload
1971
1971
  );
1972
1972
  }
1973
1973
 
@@ -2008,7 +2008,7 @@ export class Apps {
2008
2008
  }
2009
2009
 
2010
2010
  const apiPath = '/v1/apps/{functionId}/publish'.replace('{functionId}', functionId);
2011
- const payload: Payload = {};
2011
+ const apiPayload: Payload = {};
2012
2012
  const uri = new URL(this.client.config.endpoint + apiPath);
2013
2013
 
2014
2014
  const apiHeaders: { [header: string]: string } = {
@@ -2018,7 +2018,7 @@ export class Apps {
2018
2018
  'delete',
2019
2019
  uri,
2020
2020
  apiHeaders,
2021
- payload
2021
+ apiPayload
2022
2022
  );
2023
2023
  }
2024
2024
 
@@ -2065,7 +2065,7 @@ export class Apps {
2065
2065
  }
2066
2066
 
2067
2067
  const apiPath = '/v1/apps/{functionId}/publish'.replace('{functionId}', functionId);
2068
- const payload: Payload = {};
2068
+ const apiPayload: Payload = {};
2069
2069
  const uri = new URL(this.client.config.endpoint + apiPath);
2070
2070
 
2071
2071
  const apiHeaders: { [header: string]: string } = {
@@ -2075,7 +2075,7 @@ export class Apps {
2075
2075
  'post',
2076
2076
  uri,
2077
2077
  apiHeaders,
2078
- payload
2078
+ apiPayload
2079
2079
  );
2080
2080
  }
2081
2081
 
@@ -2121,9 +2121,9 @@ export class Apps {
2121
2121
  }
2122
2122
 
2123
2123
  const apiPath = '/v1/apps/{functionId}/usage'.replace('{functionId}', functionId);
2124
- const payload: Payload = {};
2124
+ const apiPayload: Payload = {};
2125
2125
  if (typeof range !== 'undefined') {
2126
- payload['range'] = range;
2126
+ apiPayload['range'] = range;
2127
2127
  }
2128
2128
  const uri = new URL(this.client.config.endpoint + apiPath);
2129
2129
 
@@ -2134,7 +2134,7 @@ export class Apps {
2134
2134
  'get',
2135
2135
  uri,
2136
2136
  apiHeaders,
2137
- payload
2137
+ apiPayload
2138
2138
  );
2139
2139
  }
2140
2140
 
@@ -2175,7 +2175,7 @@ export class Apps {
2175
2175
  }
2176
2176
 
2177
2177
  const apiPath = '/v1/apps/{functionId}/variables'.replace('{functionId}', functionId);
2178
- const payload: Payload = {};
2178
+ const apiPayload: Payload = {};
2179
2179
  const uri = new URL(this.client.config.endpoint + apiPath);
2180
2180
 
2181
2181
  const apiHeaders: { [header: string]: string } = {
@@ -2185,7 +2185,7 @@ export class Apps {
2185
2185
  'get',
2186
2186
  uri,
2187
2187
  apiHeaders,
2188
- payload
2188
+ apiPayload
2189
2189
  );
2190
2190
  }
2191
2191
 
@@ -2245,15 +2245,15 @@ export class Apps {
2245
2245
  }
2246
2246
 
2247
2247
  const apiPath = '/v1/apps/{functionId}/variables'.replace('{functionId}', functionId);
2248
- const payload: Payload = {};
2248
+ const apiPayload: Payload = {};
2249
2249
  if (typeof key !== 'undefined') {
2250
- payload['key'] = key;
2250
+ apiPayload['key'] = key;
2251
2251
  }
2252
2252
  if (typeof secret !== 'undefined') {
2253
- payload['secret'] = secret;
2253
+ apiPayload['secret'] = secret;
2254
2254
  }
2255
2255
  if (typeof value !== 'undefined') {
2256
- payload['value'] = value;
2256
+ apiPayload['value'] = value;
2257
2257
  }
2258
2258
  const uri = new URL(this.client.config.endpoint + apiPath);
2259
2259
 
@@ -2265,7 +2265,7 @@ export class Apps {
2265
2265
  'post',
2266
2266
  uri,
2267
2267
  apiHeaders,
2268
- payload
2268
+ apiPayload
2269
2269
  );
2270
2270
  }
2271
2271
 
@@ -2314,7 +2314,7 @@ export class Apps {
2314
2314
  }
2315
2315
 
2316
2316
  const apiPath = '/v1/apps/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);
2317
- const payload: Payload = {};
2317
+ const apiPayload: Payload = {};
2318
2318
  const uri = new URL(this.client.config.endpoint + apiPath);
2319
2319
 
2320
2320
  const apiHeaders: { [header: string]: string } = {
@@ -2324,7 +2324,7 @@ export class Apps {
2324
2324
  'delete',
2325
2325
  uri,
2326
2326
  apiHeaders,
2327
- payload
2327
+ apiPayload
2328
2328
  );
2329
2329
  }
2330
2330
 
@@ -2373,7 +2373,7 @@ export class Apps {
2373
2373
  }
2374
2374
 
2375
2375
  const apiPath = '/v1/apps/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);
2376
- const payload: Payload = {};
2376
+ const apiPayload: Payload = {};
2377
2377
  const uri = new URL(this.client.config.endpoint + apiPath);
2378
2378
 
2379
2379
  const apiHeaders: { [header: string]: string } = {
@@ -2383,7 +2383,7 @@ export class Apps {
2383
2383
  'get',
2384
2384
  uri,
2385
2385
  apiHeaders,
2386
- payload
2386
+ apiPayload
2387
2387
  );
2388
2388
  }
2389
2389
 
@@ -2447,15 +2447,15 @@ export class Apps {
2447
2447
  }
2448
2448
 
2449
2449
  const apiPath = '/v1/apps/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);
2450
- const payload: Payload = {};
2450
+ const apiPayload: Payload = {};
2451
2451
  if (typeof key !== 'undefined') {
2452
- payload['key'] = key;
2452
+ apiPayload['key'] = key;
2453
2453
  }
2454
2454
  if (typeof secret !== 'undefined') {
2455
- payload['secret'] = secret;
2455
+ apiPayload['secret'] = secret;
2456
2456
  }
2457
2457
  if (typeof value !== 'undefined') {
2458
- payload['value'] = value;
2458
+ apiPayload['value'] = value;
2459
2459
  }
2460
2460
  const uri = new URL(this.client.config.endpoint + apiPath);
2461
2461
 
@@ -2467,7 +2467,7 @@ export class Apps {
2467
2467
  'put',
2468
2468
  uri,
2469
2469
  apiHeaders,
2470
- payload
2470
+ apiPayload
2471
2471
  );
2472
2472
  }
2473
2473
  }