@gofynd/fdk-client-javascript 1.0.0 → 1.0.1
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/documentation/application/CATALOG.md +371 -371
- package/documentation/application/ORDER.md +272 -272
- package/documentation/application/PAYMENT.md +269 -269
- package/documentation/platform/CATALOG.md +1678 -1664
- package/documentation/platform/COMPANYPROFILE.md +201 -201
- package/documentation/platform/ORDER.md +1442 -1323
- package/documentation/platform/PAYMENT.md +88 -88
- package/index.js +7 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +302 -0
- package/sdk/application/Cart/CartApplicationValidator.js +1 -0
- package/sdk/application/Catalog/CatalogApplicationClient.js +378 -0
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +17 -17
- package/sdk/application/Catalog/CatalogApplicationModel.js +500 -500
- package/sdk/application/Catalog/CatalogApplicationValidator.js +1 -0
- package/sdk/application/Common/CommonApplicationClient.js +22 -0
- package/sdk/application/Common/CommonApplicationValidator.js +1 -0
- package/sdk/application/Communication/CommunicationApplicationClient.js +41 -0
- package/sdk/application/Communication/CommunicationApplicationValidator.js +1 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +200 -0
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +1 -0
- package/sdk/application/Content/ContentApplicationClient.js +215 -0
- package/sdk/application/Content/ContentApplicationValidator.js +1 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +33 -0
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +1 -0
- package/sdk/application/Lead/LeadApplicationClient.js +81 -0
- package/sdk/application/Lead/LeadApplicationValidator.js +1 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +44 -0
- package/sdk/application/Logistic/LogisticApplicationValidator.js +1 -0
- package/sdk/application/Order/OrderApplicationClient.js +146 -0
- package/sdk/application/Order/OrderApplicationModel.d.ts +20 -20
- package/sdk/application/Order/OrderApplicationModel.js +329 -329
- package/sdk/application/Order/OrderApplicationValidator.js +1 -0
- package/sdk/application/Payment/PaymentApplicationClient.js +528 -0
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationModel.js +391 -391
- package/sdk/application/Payment/PaymentApplicationValidator.js +1 -0
- package/sdk/application/PosCart/PosCartApplicationClient.js +329 -0
- package/sdk/application/PosCart/PosCartApplicationValidator.js +1 -0
- package/sdk/application/Rewards/RewardsApplicationClient.js +81 -0
- package/sdk/application/Rewards/RewardsApplicationValidator.js +1 -0
- package/sdk/application/Share/ShareApplicationClient.js +87 -0
- package/sdk/application/Share/ShareApplicationValidator.js +1 -0
- package/sdk/application/Theme/ThemeApplicationClient.js +44 -0
- package/sdk/application/Theme/ThemeApplicationValidator.js +1 -0
- package/sdk/application/User/UserApplicationClient.js +405 -0
- package/sdk/application/User/UserApplicationValidator.js +1 -0
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +114 -0
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +58 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +46 -0
- package/sdk/platform/Billing/BillingPlatformClient.js +160 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +246 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +29 -29
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +839 -48
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +3 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +9 -9
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +54 -54
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1149 -96
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +58 -57
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1626 -1614
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +6 -6
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +20 -20
- package/sdk/platform/Common/CommonPlatformClient.js +26 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +587 -0
- package/sdk/platform/Communication/CommunicationPlatformClient.js +15 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +179 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +11 -11
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +269 -269
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +382 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +282 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +866 -0
- package/sdk/platform/Discount/DiscountPlatformClient.js +152 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +54 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +76 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.js +161 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +162 -0
- package/sdk/platform/Lead/LeadPlatformClient.js +140 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +55 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +15 -6
- package/sdk/platform/Order/OrderPlatformClient.js +674 -15
- package/sdk/platform/Order/OrderPlatformModel.d.ts +67 -60
- package/sdk/platform/Order/OrderPlatformModel.js +1559 -1623
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +2 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +10 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +26 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +165 -0
- package/sdk/platform/Payment/PaymentPlatformClient.js +139 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +137 -137
- package/sdk/platform/PlatformApplicationClient.d.ts +2217 -2243
- package/sdk/platform/PlatformApplicationClient.js +2514 -2524
- package/sdk/platform/PlatformClient.d.ts +2217 -2243
- package/sdk/platform/PlatformClient.js +2514 -2524
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +169 -0
- package/sdk/platform/Share/SharePlatformApplicationClient.js +53 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +293 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +145 -0
- package/sdk/platform/Webhook/WebhookPlatformClient.js +90 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.js +25 -0
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +3 -1
- package/sdk/public/Inventory/InventoryPublicClient.js +75 -0
- package/sdk/public/Inventory/InventoryPublicValidator.js +3 -1
- package/sdk/public/Webhook/WebhookPublicClient.js +29 -0
- package/sdk/public/Webhook/WebhookPublicValidator.js +3 -1
|
@@ -26,6 +26,20 @@ class Configuration {
|
|
|
26
26
|
return Promise.reject(new FDKClientValidationError(error));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
// Showing warrnings if extra unknown parameters are found
|
|
30
|
+
const {
|
|
31
|
+
error: warrning,
|
|
32
|
+
} = ConfigurationValidator.getBuildConfig().validate(
|
|
33
|
+
{
|
|
34
|
+
platformType,
|
|
35
|
+
},
|
|
36
|
+
{ abortEarly: false, allowUnknown: false }
|
|
37
|
+
);
|
|
38
|
+
if (warrning) {
|
|
39
|
+
console.log("Parameter Validation warrnings for getBuildConfig");
|
|
40
|
+
console.log(warrning);
|
|
41
|
+
}
|
|
42
|
+
|
|
29
43
|
const query_params = {};
|
|
30
44
|
|
|
31
45
|
return PlatformAPIClient.execute(
|
|
@@ -56,6 +70,21 @@ class Configuration {
|
|
|
56
70
|
return Promise.reject(new FDKClientValidationError(error));
|
|
57
71
|
}
|
|
58
72
|
|
|
73
|
+
// Showing warrnings if extra unknown parameters are found
|
|
74
|
+
const {
|
|
75
|
+
error: warrning,
|
|
76
|
+
} = ConfigurationValidator.updateBuildConfig().validate(
|
|
77
|
+
{
|
|
78
|
+
platformType,
|
|
79
|
+
body,
|
|
80
|
+
},
|
|
81
|
+
{ abortEarly: false, allowUnknown: false }
|
|
82
|
+
);
|
|
83
|
+
if (warrning) {
|
|
84
|
+
console.log("Parameter Validation warrnings for updateBuildConfig");
|
|
85
|
+
console.log(warrning);
|
|
86
|
+
}
|
|
87
|
+
|
|
59
88
|
const query_params = {};
|
|
60
89
|
|
|
61
90
|
return PlatformAPIClient.execute(
|
|
@@ -84,6 +113,20 @@ class Configuration {
|
|
|
84
113
|
return Promise.reject(new FDKClientValidationError(error));
|
|
85
114
|
}
|
|
86
115
|
|
|
116
|
+
// Showing warrnings if extra unknown parameters are found
|
|
117
|
+
const {
|
|
118
|
+
error: warrning,
|
|
119
|
+
} = ConfigurationValidator.getPreviousVersions().validate(
|
|
120
|
+
{
|
|
121
|
+
platformType,
|
|
122
|
+
},
|
|
123
|
+
{ abortEarly: false, allowUnknown: false }
|
|
124
|
+
);
|
|
125
|
+
if (warrning) {
|
|
126
|
+
console.log("Parameter Validation warrnings for getPreviousVersions");
|
|
127
|
+
console.log(warrning);
|
|
128
|
+
}
|
|
129
|
+
|
|
87
130
|
const query_params = {};
|
|
88
131
|
|
|
89
132
|
return PlatformAPIClient.execute(
|
|
@@ -109,6 +152,18 @@ class Configuration {
|
|
|
109
152
|
return Promise.reject(new FDKClientValidationError(error));
|
|
110
153
|
}
|
|
111
154
|
|
|
155
|
+
// Showing warrnings if extra unknown parameters are found
|
|
156
|
+
const {
|
|
157
|
+
error: warrning,
|
|
158
|
+
} = ConfigurationValidator.getAppFeatures().validate(
|
|
159
|
+
{},
|
|
160
|
+
{ abortEarly: false, allowUnknown: false }
|
|
161
|
+
);
|
|
162
|
+
if (warrning) {
|
|
163
|
+
console.log("Parameter Validation warrnings for getAppFeatures");
|
|
164
|
+
console.log(warrning);
|
|
165
|
+
}
|
|
166
|
+
|
|
112
167
|
const query_params = {};
|
|
113
168
|
|
|
114
169
|
return PlatformAPIClient.execute(
|
|
@@ -137,6 +192,20 @@ class Configuration {
|
|
|
137
192
|
return Promise.reject(new FDKClientValidationError(error));
|
|
138
193
|
}
|
|
139
194
|
|
|
195
|
+
// Showing warrnings if extra unknown parameters are found
|
|
196
|
+
const {
|
|
197
|
+
error: warrning,
|
|
198
|
+
} = ConfigurationValidator.updateAppFeatures().validate(
|
|
199
|
+
{
|
|
200
|
+
body,
|
|
201
|
+
},
|
|
202
|
+
{ abortEarly: false, allowUnknown: false }
|
|
203
|
+
);
|
|
204
|
+
if (warrning) {
|
|
205
|
+
console.log("Parameter Validation warrnings for updateAppFeatures");
|
|
206
|
+
console.log(warrning);
|
|
207
|
+
}
|
|
208
|
+
|
|
140
209
|
const query_params = {};
|
|
141
210
|
|
|
142
211
|
return PlatformAPIClient.execute(
|
|
@@ -162,6 +231,18 @@ class Configuration {
|
|
|
162
231
|
return Promise.reject(new FDKClientValidationError(error));
|
|
163
232
|
}
|
|
164
233
|
|
|
234
|
+
// Showing warrnings if extra unknown parameters are found
|
|
235
|
+
const {
|
|
236
|
+
error: warrning,
|
|
237
|
+
} = ConfigurationValidator.getAppBasicDetails().validate(
|
|
238
|
+
{},
|
|
239
|
+
{ abortEarly: false, allowUnknown: false }
|
|
240
|
+
);
|
|
241
|
+
if (warrning) {
|
|
242
|
+
console.log("Parameter Validation warrnings for getAppBasicDetails");
|
|
243
|
+
console.log(warrning);
|
|
244
|
+
}
|
|
245
|
+
|
|
165
246
|
const query_params = {};
|
|
166
247
|
|
|
167
248
|
return PlatformAPIClient.execute(
|
|
@@ -190,6 +271,20 @@ class Configuration {
|
|
|
190
271
|
return Promise.reject(new FDKClientValidationError(error));
|
|
191
272
|
}
|
|
192
273
|
|
|
274
|
+
// Showing warrnings if extra unknown parameters are found
|
|
275
|
+
const {
|
|
276
|
+
error: warrning,
|
|
277
|
+
} = ConfigurationValidator.updateAppBasicDetails().validate(
|
|
278
|
+
{
|
|
279
|
+
body,
|
|
280
|
+
},
|
|
281
|
+
{ abortEarly: false, allowUnknown: false }
|
|
282
|
+
);
|
|
283
|
+
if (warrning) {
|
|
284
|
+
console.log("Parameter Validation warrnings for updateAppBasicDetails");
|
|
285
|
+
console.log(warrning);
|
|
286
|
+
}
|
|
287
|
+
|
|
193
288
|
const query_params = {};
|
|
194
289
|
|
|
195
290
|
return PlatformAPIClient.execute(
|
|
@@ -215,6 +310,18 @@ class Configuration {
|
|
|
215
310
|
return Promise.reject(new FDKClientValidationError(error));
|
|
216
311
|
}
|
|
217
312
|
|
|
313
|
+
// Showing warrnings if extra unknown parameters are found
|
|
314
|
+
const {
|
|
315
|
+
error: warrning,
|
|
316
|
+
} = ConfigurationValidator.getAppContactInfo().validate(
|
|
317
|
+
{},
|
|
318
|
+
{ abortEarly: false, allowUnknown: false }
|
|
319
|
+
);
|
|
320
|
+
if (warrning) {
|
|
321
|
+
console.log("Parameter Validation warrnings for getAppContactInfo");
|
|
322
|
+
console.log(warrning);
|
|
323
|
+
}
|
|
324
|
+
|
|
218
325
|
const query_params = {};
|
|
219
326
|
|
|
220
327
|
return PlatformAPIClient.execute(
|
|
@@ -243,6 +350,20 @@ class Configuration {
|
|
|
243
350
|
return Promise.reject(new FDKClientValidationError(error));
|
|
244
351
|
}
|
|
245
352
|
|
|
353
|
+
// Showing warrnings if extra unknown parameters are found
|
|
354
|
+
const {
|
|
355
|
+
error: warrning,
|
|
356
|
+
} = ConfigurationValidator.updateAppContactInfo().validate(
|
|
357
|
+
{
|
|
358
|
+
body,
|
|
359
|
+
},
|
|
360
|
+
{ abortEarly: false, allowUnknown: false }
|
|
361
|
+
);
|
|
362
|
+
if (warrning) {
|
|
363
|
+
console.log("Parameter Validation warrnings for updateAppContactInfo");
|
|
364
|
+
console.log(warrning);
|
|
365
|
+
}
|
|
366
|
+
|
|
246
367
|
const query_params = {};
|
|
247
368
|
|
|
248
369
|
return PlatformAPIClient.execute(
|
|
@@ -268,6 +389,18 @@ class Configuration {
|
|
|
268
389
|
return Promise.reject(new FDKClientValidationError(error));
|
|
269
390
|
}
|
|
270
391
|
|
|
392
|
+
// Showing warrnings if extra unknown parameters are found
|
|
393
|
+
const {
|
|
394
|
+
error: warrning,
|
|
395
|
+
} = ConfigurationValidator.getAppApiTokens().validate(
|
|
396
|
+
{},
|
|
397
|
+
{ abortEarly: false, allowUnknown: false }
|
|
398
|
+
);
|
|
399
|
+
if (warrning) {
|
|
400
|
+
console.log("Parameter Validation warrnings for getAppApiTokens");
|
|
401
|
+
console.log(warrning);
|
|
402
|
+
}
|
|
403
|
+
|
|
271
404
|
const query_params = {};
|
|
272
405
|
|
|
273
406
|
return PlatformAPIClient.execute(
|
|
@@ -296,6 +429,20 @@ class Configuration {
|
|
|
296
429
|
return Promise.reject(new FDKClientValidationError(error));
|
|
297
430
|
}
|
|
298
431
|
|
|
432
|
+
// Showing warrnings if extra unknown parameters are found
|
|
433
|
+
const {
|
|
434
|
+
error: warrning,
|
|
435
|
+
} = ConfigurationValidator.updateAppApiTokens().validate(
|
|
436
|
+
{
|
|
437
|
+
body,
|
|
438
|
+
},
|
|
439
|
+
{ abortEarly: false, allowUnknown: false }
|
|
440
|
+
);
|
|
441
|
+
if (warrning) {
|
|
442
|
+
console.log("Parameter Validation warrnings for updateAppApiTokens");
|
|
443
|
+
console.log(warrning);
|
|
444
|
+
}
|
|
445
|
+
|
|
299
446
|
const query_params = {};
|
|
300
447
|
|
|
301
448
|
return PlatformAPIClient.execute(
|
|
@@ -328,6 +475,22 @@ class Configuration {
|
|
|
328
475
|
return Promise.reject(new FDKClientValidationError(error));
|
|
329
476
|
}
|
|
330
477
|
|
|
478
|
+
// Showing warrnings if extra unknown parameters are found
|
|
479
|
+
const {
|
|
480
|
+
error: warrning,
|
|
481
|
+
} = ConfigurationValidator.getAppCompanies().validate(
|
|
482
|
+
{
|
|
483
|
+
uid,
|
|
484
|
+
pageNo,
|
|
485
|
+
pageSize,
|
|
486
|
+
},
|
|
487
|
+
{ abortEarly: false, allowUnknown: false }
|
|
488
|
+
);
|
|
489
|
+
if (warrning) {
|
|
490
|
+
console.log("Parameter Validation warrnings for getAppCompanies");
|
|
491
|
+
console.log(warrning);
|
|
492
|
+
}
|
|
493
|
+
|
|
331
494
|
const query_params = {};
|
|
332
495
|
query_params["uid"] = uid;
|
|
333
496
|
query_params["page_no"] = pageNo;
|
|
@@ -393,6 +556,19 @@ class Configuration {
|
|
|
393
556
|
return Promise.reject(new FDKClientValidationError(error));
|
|
394
557
|
}
|
|
395
558
|
|
|
559
|
+
// Showing warrnings if extra unknown parameters are found
|
|
560
|
+
const { error: warrning } = ConfigurationValidator.getAppStores().validate(
|
|
561
|
+
{
|
|
562
|
+
pageNo,
|
|
563
|
+
pageSize,
|
|
564
|
+
},
|
|
565
|
+
{ abortEarly: false, allowUnknown: false }
|
|
566
|
+
);
|
|
567
|
+
if (warrning) {
|
|
568
|
+
console.log("Parameter Validation warrnings for getAppStores");
|
|
569
|
+
console.log(warrning);
|
|
570
|
+
}
|
|
571
|
+
|
|
396
572
|
const query_params = {};
|
|
397
573
|
query_params["page_no"] = pageNo;
|
|
398
574
|
query_params["page_size"] = pageSize;
|
|
@@ -450,6 +626,18 @@ class Configuration {
|
|
|
450
626
|
return Promise.reject(new FDKClientValidationError(error));
|
|
451
627
|
}
|
|
452
628
|
|
|
629
|
+
// Showing warrnings if extra unknown parameters are found
|
|
630
|
+
const {
|
|
631
|
+
error: warrning,
|
|
632
|
+
} = ConfigurationValidator.getInventoryConfig().validate(
|
|
633
|
+
{},
|
|
634
|
+
{ abortEarly: false, allowUnknown: false }
|
|
635
|
+
);
|
|
636
|
+
if (warrning) {
|
|
637
|
+
console.log("Parameter Validation warrnings for getInventoryConfig");
|
|
638
|
+
console.log(warrning);
|
|
639
|
+
}
|
|
640
|
+
|
|
453
641
|
const query_params = {};
|
|
454
642
|
|
|
455
643
|
return PlatformAPIClient.execute(
|
|
@@ -478,6 +666,20 @@ class Configuration {
|
|
|
478
666
|
return Promise.reject(new FDKClientValidationError(error));
|
|
479
667
|
}
|
|
480
668
|
|
|
669
|
+
// Showing warrnings if extra unknown parameters are found
|
|
670
|
+
const {
|
|
671
|
+
error: warrning,
|
|
672
|
+
} = ConfigurationValidator.updateInventoryConfig().validate(
|
|
673
|
+
{
|
|
674
|
+
body,
|
|
675
|
+
},
|
|
676
|
+
{ abortEarly: false, allowUnknown: false }
|
|
677
|
+
);
|
|
678
|
+
if (warrning) {
|
|
679
|
+
console.log("Parameter Validation warrnings for updateInventoryConfig");
|
|
680
|
+
console.log(warrning);
|
|
681
|
+
}
|
|
682
|
+
|
|
481
683
|
const query_params = {};
|
|
482
684
|
|
|
483
685
|
return PlatformAPIClient.execute(
|
|
@@ -508,6 +710,22 @@ class Configuration {
|
|
|
508
710
|
return Promise.reject(new FDKClientValidationError(error));
|
|
509
711
|
}
|
|
510
712
|
|
|
713
|
+
// Showing warrnings if extra unknown parameters are found
|
|
714
|
+
const {
|
|
715
|
+
error: warrning,
|
|
716
|
+
} = ConfigurationValidator.partiallyUpdateInventoryConfig().validate(
|
|
717
|
+
{
|
|
718
|
+
body,
|
|
719
|
+
},
|
|
720
|
+
{ abortEarly: false, allowUnknown: false }
|
|
721
|
+
);
|
|
722
|
+
if (warrning) {
|
|
723
|
+
console.log(
|
|
724
|
+
"Parameter Validation warrnings for partiallyUpdateInventoryConfig"
|
|
725
|
+
);
|
|
726
|
+
console.log(warrning);
|
|
727
|
+
}
|
|
728
|
+
|
|
511
729
|
const query_params = {};
|
|
512
730
|
|
|
513
731
|
return PlatformAPIClient.execute(
|
|
@@ -533,6 +751,18 @@ class Configuration {
|
|
|
533
751
|
return Promise.reject(new FDKClientValidationError(error));
|
|
534
752
|
}
|
|
535
753
|
|
|
754
|
+
// Showing warrnings if extra unknown parameters are found
|
|
755
|
+
const {
|
|
756
|
+
error: warrning,
|
|
757
|
+
} = ConfigurationValidator.getAppCurrencyConfig().validate(
|
|
758
|
+
{},
|
|
759
|
+
{ abortEarly: false, allowUnknown: false }
|
|
760
|
+
);
|
|
761
|
+
if (warrning) {
|
|
762
|
+
console.log("Parameter Validation warrnings for getAppCurrencyConfig");
|
|
763
|
+
console.log(warrning);
|
|
764
|
+
}
|
|
765
|
+
|
|
536
766
|
const query_params = {};
|
|
537
767
|
|
|
538
768
|
return PlatformAPIClient.execute(
|
|
@@ -561,6 +791,20 @@ class Configuration {
|
|
|
561
791
|
return Promise.reject(new FDKClientValidationError(error));
|
|
562
792
|
}
|
|
563
793
|
|
|
794
|
+
// Showing warrnings if extra unknown parameters are found
|
|
795
|
+
const {
|
|
796
|
+
error: warrning,
|
|
797
|
+
} = ConfigurationValidator.updateAppCurrencyConfig().validate(
|
|
798
|
+
{
|
|
799
|
+
body,
|
|
800
|
+
},
|
|
801
|
+
{ abortEarly: false, allowUnknown: false }
|
|
802
|
+
);
|
|
803
|
+
if (warrning) {
|
|
804
|
+
console.log("Parameter Validation warrnings for updateAppCurrencyConfig");
|
|
805
|
+
console.log(warrning);
|
|
806
|
+
}
|
|
807
|
+
|
|
564
808
|
const query_params = {};
|
|
565
809
|
|
|
566
810
|
return PlatformAPIClient.execute(
|
|
@@ -586,6 +830,18 @@ class Configuration {
|
|
|
586
830
|
return Promise.reject(new FDKClientValidationError(error));
|
|
587
831
|
}
|
|
588
832
|
|
|
833
|
+
// Showing warrnings if extra unknown parameters are found
|
|
834
|
+
const {
|
|
835
|
+
error: warrning,
|
|
836
|
+
} = ConfigurationValidator.getAppSupportedCurrency().validate(
|
|
837
|
+
{},
|
|
838
|
+
{ abortEarly: false, allowUnknown: false }
|
|
839
|
+
);
|
|
840
|
+
if (warrning) {
|
|
841
|
+
console.log("Parameter Validation warrnings for getAppSupportedCurrency");
|
|
842
|
+
console.log(warrning);
|
|
843
|
+
}
|
|
844
|
+
|
|
589
845
|
const query_params = {};
|
|
590
846
|
|
|
591
847
|
return PlatformAPIClient.execute(
|
|
@@ -620,6 +876,24 @@ class Configuration {
|
|
|
620
876
|
return Promise.reject(new FDKClientValidationError(error));
|
|
621
877
|
}
|
|
622
878
|
|
|
879
|
+
// Showing warrnings if extra unknown parameters are found
|
|
880
|
+
const {
|
|
881
|
+
error: warrning,
|
|
882
|
+
} = ConfigurationValidator.getOrderingStoresByFilter().validate(
|
|
883
|
+
{
|
|
884
|
+
body,
|
|
885
|
+
pageNo,
|
|
886
|
+
pageSize,
|
|
887
|
+
},
|
|
888
|
+
{ abortEarly: false, allowUnknown: false }
|
|
889
|
+
);
|
|
890
|
+
if (warrning) {
|
|
891
|
+
console.log(
|
|
892
|
+
"Parameter Validation warrnings for getOrderingStoresByFilter"
|
|
893
|
+
);
|
|
894
|
+
console.log(warrning);
|
|
895
|
+
}
|
|
896
|
+
|
|
623
897
|
const query_params = {};
|
|
624
898
|
query_params["page_no"] = pageNo;
|
|
625
899
|
query_params["page_size"] = pageSize;
|
|
@@ -689,6 +963,22 @@ class Configuration {
|
|
|
689
963
|
return Promise.reject(new FDKClientValidationError(error));
|
|
690
964
|
}
|
|
691
965
|
|
|
966
|
+
// Showing warrnings if extra unknown parameters are found
|
|
967
|
+
const {
|
|
968
|
+
error: warrning,
|
|
969
|
+
} = ConfigurationValidator.updateOrderingStoreConfig().validate(
|
|
970
|
+
{
|
|
971
|
+
body,
|
|
972
|
+
},
|
|
973
|
+
{ abortEarly: false, allowUnknown: false }
|
|
974
|
+
);
|
|
975
|
+
if (warrning) {
|
|
976
|
+
console.log(
|
|
977
|
+
"Parameter Validation warrnings for updateOrderingStoreConfig"
|
|
978
|
+
);
|
|
979
|
+
console.log(warrning);
|
|
980
|
+
}
|
|
981
|
+
|
|
692
982
|
const query_params = {};
|
|
693
983
|
|
|
694
984
|
return PlatformAPIClient.execute(
|
|
@@ -723,6 +1013,22 @@ class Configuration {
|
|
|
723
1013
|
return Promise.reject(new FDKClientValidationError(error));
|
|
724
1014
|
}
|
|
725
1015
|
|
|
1016
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1017
|
+
const {
|
|
1018
|
+
error: warrning,
|
|
1019
|
+
} = ConfigurationValidator.getStaffOrderingStores().validate(
|
|
1020
|
+
{
|
|
1021
|
+
pageNo,
|
|
1022
|
+
pageSize,
|
|
1023
|
+
q,
|
|
1024
|
+
},
|
|
1025
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1026
|
+
);
|
|
1027
|
+
if (warrning) {
|
|
1028
|
+
console.log("Parameter Validation warrnings for getStaffOrderingStores");
|
|
1029
|
+
console.log(warrning);
|
|
1030
|
+
}
|
|
1031
|
+
|
|
726
1032
|
const query_params = {};
|
|
727
1033
|
query_params["page_no"] = pageNo;
|
|
728
1034
|
query_params["page_size"] = pageSize;
|
|
@@ -789,6 +1095,16 @@ class Configuration {
|
|
|
789
1095
|
return Promise.reject(new FDKClientValidationError(error));
|
|
790
1096
|
}
|
|
791
1097
|
|
|
1098
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1099
|
+
const { error: warrning } = ConfigurationValidator.getDomains().validate(
|
|
1100
|
+
{},
|
|
1101
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1102
|
+
);
|
|
1103
|
+
if (warrning) {
|
|
1104
|
+
console.log("Parameter Validation warrnings for getDomains");
|
|
1105
|
+
console.log(warrning);
|
|
1106
|
+
}
|
|
1107
|
+
|
|
792
1108
|
const query_params = {};
|
|
793
1109
|
|
|
794
1110
|
return PlatformAPIClient.execute(
|
|
@@ -817,6 +1133,18 @@ class Configuration {
|
|
|
817
1133
|
return Promise.reject(new FDKClientValidationError(error));
|
|
818
1134
|
}
|
|
819
1135
|
|
|
1136
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1137
|
+
const { error: warrning } = ConfigurationValidator.addDomain().validate(
|
|
1138
|
+
{
|
|
1139
|
+
body,
|
|
1140
|
+
},
|
|
1141
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1142
|
+
);
|
|
1143
|
+
if (warrning) {
|
|
1144
|
+
console.log("Parameter Validation warrnings for addDomain");
|
|
1145
|
+
console.log(warrning);
|
|
1146
|
+
}
|
|
1147
|
+
|
|
820
1148
|
const query_params = {};
|
|
821
1149
|
|
|
822
1150
|
return PlatformAPIClient.execute(
|
|
@@ -845,6 +1173,20 @@ class Configuration {
|
|
|
845
1173
|
return Promise.reject(new FDKClientValidationError(error));
|
|
846
1174
|
}
|
|
847
1175
|
|
|
1176
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1177
|
+
const {
|
|
1178
|
+
error: warrning,
|
|
1179
|
+
} = ConfigurationValidator.removeDomainById().validate(
|
|
1180
|
+
{
|
|
1181
|
+
id,
|
|
1182
|
+
},
|
|
1183
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1184
|
+
);
|
|
1185
|
+
if (warrning) {
|
|
1186
|
+
console.log("Parameter Validation warrnings for removeDomainById");
|
|
1187
|
+
console.log(warrning);
|
|
1188
|
+
}
|
|
1189
|
+
|
|
848
1190
|
const query_params = {};
|
|
849
1191
|
|
|
850
1192
|
return PlatformAPIClient.execute(
|
|
@@ -873,6 +1215,20 @@ class Configuration {
|
|
|
873
1215
|
return Promise.reject(new FDKClientValidationError(error));
|
|
874
1216
|
}
|
|
875
1217
|
|
|
1218
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1219
|
+
const {
|
|
1220
|
+
error: warrning,
|
|
1221
|
+
} = ConfigurationValidator.changeDomainType().validate(
|
|
1222
|
+
{
|
|
1223
|
+
body,
|
|
1224
|
+
},
|
|
1225
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1226
|
+
);
|
|
1227
|
+
if (warrning) {
|
|
1228
|
+
console.log("Parameter Validation warrnings for changeDomainType");
|
|
1229
|
+
console.log(warrning);
|
|
1230
|
+
}
|
|
1231
|
+
|
|
876
1232
|
const query_params = {};
|
|
877
1233
|
|
|
878
1234
|
return PlatformAPIClient.execute(
|
|
@@ -901,6 +1257,20 @@ class Configuration {
|
|
|
901
1257
|
return Promise.reject(new FDKClientValidationError(error));
|
|
902
1258
|
}
|
|
903
1259
|
|
|
1260
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1261
|
+
const {
|
|
1262
|
+
error: warrning,
|
|
1263
|
+
} = ConfigurationValidator.getDomainStatus().validate(
|
|
1264
|
+
{
|
|
1265
|
+
body,
|
|
1266
|
+
},
|
|
1267
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1268
|
+
);
|
|
1269
|
+
if (warrning) {
|
|
1270
|
+
console.log("Parameter Validation warrnings for getDomainStatus");
|
|
1271
|
+
console.log(warrning);
|
|
1272
|
+
}
|
|
1273
|
+
|
|
904
1274
|
const query_params = {};
|
|
905
1275
|
|
|
906
1276
|
return PlatformAPIClient.execute(
|
|
@@ -926,6 +1296,18 @@ class Configuration {
|
|
|
926
1296
|
return Promise.reject(new FDKClientValidationError(error));
|
|
927
1297
|
}
|
|
928
1298
|
|
|
1299
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1300
|
+
const {
|
|
1301
|
+
error: warrning,
|
|
1302
|
+
} = ConfigurationValidator.getApplicationById().validate(
|
|
1303
|
+
{},
|
|
1304
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1305
|
+
);
|
|
1306
|
+
if (warrning) {
|
|
1307
|
+
console.log("Parameter Validation warrnings for getApplicationById");
|
|
1308
|
+
console.log(warrning);
|
|
1309
|
+
}
|
|
1310
|
+
|
|
929
1311
|
const query_params = {};
|
|
930
1312
|
|
|
931
1313
|
return PlatformAPIClient.execute(
|