@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,18 @@ class Theme {
|
|
|
26
26
|
return Promise.reject(new FDKClientValidationError(error));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
// Showing warrnings if extra unknown parameters are found
|
|
30
|
+
const { error: warrning } = ThemeValidator.getAllPages().validate(
|
|
31
|
+
{
|
|
32
|
+
themeId,
|
|
33
|
+
},
|
|
34
|
+
{ abortEarly: false, allowUnknown: false }
|
|
35
|
+
);
|
|
36
|
+
if (warrning) {
|
|
37
|
+
console.log("Parameter Validation warrnings for getAllPages");
|
|
38
|
+
console.log(warrning);
|
|
39
|
+
}
|
|
40
|
+
|
|
29
41
|
const query_params = {};
|
|
30
42
|
|
|
31
43
|
return PlatformAPIClient.execute(
|
|
@@ -56,6 +68,19 @@ class Theme {
|
|
|
56
68
|
return Promise.reject(new FDKClientValidationError(error));
|
|
57
69
|
}
|
|
58
70
|
|
|
71
|
+
// Showing warrnings if extra unknown parameters are found
|
|
72
|
+
const { error: warrning } = ThemeValidator.createPage().validate(
|
|
73
|
+
{
|
|
74
|
+
themeId,
|
|
75
|
+
body,
|
|
76
|
+
},
|
|
77
|
+
{ abortEarly: false, allowUnknown: false }
|
|
78
|
+
);
|
|
79
|
+
if (warrning) {
|
|
80
|
+
console.log("Parameter Validation warrnings for createPage");
|
|
81
|
+
console.log(warrning);
|
|
82
|
+
}
|
|
83
|
+
|
|
59
84
|
const query_params = {};
|
|
60
85
|
|
|
61
86
|
return PlatformAPIClient.execute(
|
|
@@ -86,6 +111,19 @@ class Theme {
|
|
|
86
111
|
return Promise.reject(new FDKClientValidationError(error));
|
|
87
112
|
}
|
|
88
113
|
|
|
114
|
+
// Showing warrnings if extra unknown parameters are found
|
|
115
|
+
const { error: warrning } = ThemeValidator.updateMultiplePages().validate(
|
|
116
|
+
{
|
|
117
|
+
themeId,
|
|
118
|
+
body,
|
|
119
|
+
},
|
|
120
|
+
{ abortEarly: false, allowUnknown: false }
|
|
121
|
+
);
|
|
122
|
+
if (warrning) {
|
|
123
|
+
console.log("Parameter Validation warrnings for updateMultiplePages");
|
|
124
|
+
console.log(warrning);
|
|
125
|
+
}
|
|
126
|
+
|
|
89
127
|
const query_params = {};
|
|
90
128
|
|
|
91
129
|
return PlatformAPIClient.execute(
|
|
@@ -116,6 +154,19 @@ class Theme {
|
|
|
116
154
|
return Promise.reject(new FDKClientValidationError(error));
|
|
117
155
|
}
|
|
118
156
|
|
|
157
|
+
// Showing warrnings if extra unknown parameters are found
|
|
158
|
+
const { error: warrning } = ThemeValidator.getPage().validate(
|
|
159
|
+
{
|
|
160
|
+
themeId,
|
|
161
|
+
pageValue,
|
|
162
|
+
},
|
|
163
|
+
{ abortEarly: false, allowUnknown: false }
|
|
164
|
+
);
|
|
165
|
+
if (warrning) {
|
|
166
|
+
console.log("Parameter Validation warrnings for getPage");
|
|
167
|
+
console.log(warrning);
|
|
168
|
+
}
|
|
169
|
+
|
|
119
170
|
const query_params = {};
|
|
120
171
|
|
|
121
172
|
return PlatformAPIClient.execute(
|
|
@@ -148,6 +199,20 @@ class Theme {
|
|
|
148
199
|
return Promise.reject(new FDKClientValidationError(error));
|
|
149
200
|
}
|
|
150
201
|
|
|
202
|
+
// Showing warrnings if extra unknown parameters are found
|
|
203
|
+
const { error: warrning } = ThemeValidator.updatePage().validate(
|
|
204
|
+
{
|
|
205
|
+
themeId,
|
|
206
|
+
pageValue,
|
|
207
|
+
body,
|
|
208
|
+
},
|
|
209
|
+
{ abortEarly: false, allowUnknown: false }
|
|
210
|
+
);
|
|
211
|
+
if (warrning) {
|
|
212
|
+
console.log("Parameter Validation warrnings for updatePage");
|
|
213
|
+
console.log(warrning);
|
|
214
|
+
}
|
|
215
|
+
|
|
151
216
|
const query_params = {};
|
|
152
217
|
|
|
153
218
|
return PlatformAPIClient.execute(
|
|
@@ -178,6 +243,19 @@ class Theme {
|
|
|
178
243
|
return Promise.reject(new FDKClientValidationError(error));
|
|
179
244
|
}
|
|
180
245
|
|
|
246
|
+
// Showing warrnings if extra unknown parameters are found
|
|
247
|
+
const { error: warrning } = ThemeValidator.deletePage().validate(
|
|
248
|
+
{
|
|
249
|
+
themeId,
|
|
250
|
+
pageValue,
|
|
251
|
+
},
|
|
252
|
+
{ abortEarly: false, allowUnknown: false }
|
|
253
|
+
);
|
|
254
|
+
if (warrning) {
|
|
255
|
+
console.log("Parameter Validation warrnings for deletePage");
|
|
256
|
+
console.log(warrning);
|
|
257
|
+
}
|
|
258
|
+
|
|
181
259
|
const query_params = {};
|
|
182
260
|
|
|
183
261
|
return PlatformAPIClient.execute(
|
|
@@ -210,6 +288,19 @@ class Theme {
|
|
|
210
288
|
return Promise.reject(new FDKClientValidationError(error));
|
|
211
289
|
}
|
|
212
290
|
|
|
291
|
+
// Showing warrnings if extra unknown parameters are found
|
|
292
|
+
const { error: warrning } = ThemeValidator.getThemeLibrary().validate(
|
|
293
|
+
{
|
|
294
|
+
pageSize,
|
|
295
|
+
pageNo,
|
|
296
|
+
},
|
|
297
|
+
{ abortEarly: false, allowUnknown: false }
|
|
298
|
+
);
|
|
299
|
+
if (warrning) {
|
|
300
|
+
console.log("Parameter Validation warrnings for getThemeLibrary");
|
|
301
|
+
console.log(warrning);
|
|
302
|
+
}
|
|
303
|
+
|
|
213
304
|
const query_params = {};
|
|
214
305
|
query_params["page_size"] = pageSize;
|
|
215
306
|
query_params["page_no"] = pageNo;
|
|
@@ -240,6 +331,18 @@ class Theme {
|
|
|
240
331
|
return Promise.reject(new FDKClientValidationError(error));
|
|
241
332
|
}
|
|
242
333
|
|
|
334
|
+
// Showing warrnings if extra unknown parameters are found
|
|
335
|
+
const { error: warrning } = ThemeValidator.addToThemeLibrary().validate(
|
|
336
|
+
{
|
|
337
|
+
body,
|
|
338
|
+
},
|
|
339
|
+
{ abortEarly: false, allowUnknown: false }
|
|
340
|
+
);
|
|
341
|
+
if (warrning) {
|
|
342
|
+
console.log("Parameter Validation warrnings for addToThemeLibrary");
|
|
343
|
+
console.log(warrning);
|
|
344
|
+
}
|
|
345
|
+
|
|
243
346
|
const query_params = {};
|
|
244
347
|
|
|
245
348
|
return PlatformAPIClient.execute(
|
|
@@ -268,6 +371,18 @@ class Theme {
|
|
|
268
371
|
return Promise.reject(new FDKClientValidationError(error));
|
|
269
372
|
}
|
|
270
373
|
|
|
374
|
+
// Showing warrnings if extra unknown parameters are found
|
|
375
|
+
const { error: warrning } = ThemeValidator.applyTheme().validate(
|
|
376
|
+
{
|
|
377
|
+
body,
|
|
378
|
+
},
|
|
379
|
+
{ abortEarly: false, allowUnknown: false }
|
|
380
|
+
);
|
|
381
|
+
if (warrning) {
|
|
382
|
+
console.log("Parameter Validation warrnings for applyTheme");
|
|
383
|
+
console.log(warrning);
|
|
384
|
+
}
|
|
385
|
+
|
|
271
386
|
const query_params = {};
|
|
272
387
|
|
|
273
388
|
return PlatformAPIClient.execute(
|
|
@@ -296,6 +411,18 @@ class Theme {
|
|
|
296
411
|
return Promise.reject(new FDKClientValidationError(error));
|
|
297
412
|
}
|
|
298
413
|
|
|
414
|
+
// Showing warrnings if extra unknown parameters are found
|
|
415
|
+
const { error: warrning } = ThemeValidator.isUpgradable().validate(
|
|
416
|
+
{
|
|
417
|
+
themeId,
|
|
418
|
+
},
|
|
419
|
+
{ abortEarly: false, allowUnknown: false }
|
|
420
|
+
);
|
|
421
|
+
if (warrning) {
|
|
422
|
+
console.log("Parameter Validation warrnings for isUpgradable");
|
|
423
|
+
console.log(warrning);
|
|
424
|
+
}
|
|
425
|
+
|
|
299
426
|
const query_params = {};
|
|
300
427
|
|
|
301
428
|
return PlatformAPIClient.execute(
|
|
@@ -324,6 +451,18 @@ class Theme {
|
|
|
324
451
|
return Promise.reject(new FDKClientValidationError(error));
|
|
325
452
|
}
|
|
326
453
|
|
|
454
|
+
// Showing warrnings if extra unknown parameters are found
|
|
455
|
+
const { error: warrning } = ThemeValidator.upgradeTheme().validate(
|
|
456
|
+
{
|
|
457
|
+
themeId,
|
|
458
|
+
},
|
|
459
|
+
{ abortEarly: false, allowUnknown: false }
|
|
460
|
+
);
|
|
461
|
+
if (warrning) {
|
|
462
|
+
console.log("Parameter Validation warrnings for upgradeTheme");
|
|
463
|
+
console.log(warrning);
|
|
464
|
+
}
|
|
465
|
+
|
|
327
466
|
const query_params = {};
|
|
328
467
|
|
|
329
468
|
return PlatformAPIClient.execute(
|
|
@@ -356,6 +495,19 @@ class Theme {
|
|
|
356
495
|
return Promise.reject(new FDKClientValidationError(error));
|
|
357
496
|
}
|
|
358
497
|
|
|
498
|
+
// Showing warrnings if extra unknown parameters are found
|
|
499
|
+
const { error: warrning } = ThemeValidator.getPublicThemes().validate(
|
|
500
|
+
{
|
|
501
|
+
pageSize,
|
|
502
|
+
pageNo,
|
|
503
|
+
},
|
|
504
|
+
{ abortEarly: false, allowUnknown: false }
|
|
505
|
+
);
|
|
506
|
+
if (warrning) {
|
|
507
|
+
console.log("Parameter Validation warrnings for getPublicThemes");
|
|
508
|
+
console.log(warrning);
|
|
509
|
+
}
|
|
510
|
+
|
|
359
511
|
const query_params = {};
|
|
360
512
|
query_params["page_size"] = pageSize;
|
|
361
513
|
query_params["page_no"] = pageNo;
|
|
@@ -386,6 +538,18 @@ class Theme {
|
|
|
386
538
|
return Promise.reject(new FDKClientValidationError(error));
|
|
387
539
|
}
|
|
388
540
|
|
|
541
|
+
// Showing warrnings if extra unknown parameters are found
|
|
542
|
+
const { error: warrning } = ThemeValidator.createTheme().validate(
|
|
543
|
+
{
|
|
544
|
+
body,
|
|
545
|
+
},
|
|
546
|
+
{ abortEarly: false, allowUnknown: false }
|
|
547
|
+
);
|
|
548
|
+
if (warrning) {
|
|
549
|
+
console.log("Parameter Validation warrnings for createTheme");
|
|
550
|
+
console.log(warrning);
|
|
551
|
+
}
|
|
552
|
+
|
|
389
553
|
const query_params = {};
|
|
390
554
|
|
|
391
555
|
return PlatformAPIClient.execute(
|
|
@@ -411,6 +575,16 @@ class Theme {
|
|
|
411
575
|
return Promise.reject(new FDKClientValidationError(error));
|
|
412
576
|
}
|
|
413
577
|
|
|
578
|
+
// Showing warrnings if extra unknown parameters are found
|
|
579
|
+
const { error: warrning } = ThemeValidator.getAppliedTheme().validate(
|
|
580
|
+
{},
|
|
581
|
+
{ abortEarly: false, allowUnknown: false }
|
|
582
|
+
);
|
|
583
|
+
if (warrning) {
|
|
584
|
+
console.log("Parameter Validation warrnings for getAppliedTheme");
|
|
585
|
+
console.log(warrning);
|
|
586
|
+
}
|
|
587
|
+
|
|
414
588
|
const query_params = {};
|
|
415
589
|
|
|
416
590
|
return PlatformAPIClient.execute(
|
|
@@ -436,6 +610,16 @@ class Theme {
|
|
|
436
610
|
return Promise.reject(new FDKClientValidationError(error));
|
|
437
611
|
}
|
|
438
612
|
|
|
613
|
+
// Showing warrnings if extra unknown parameters are found
|
|
614
|
+
const { error: warrning } = ThemeValidator.getFonts().validate(
|
|
615
|
+
{},
|
|
616
|
+
{ abortEarly: false, allowUnknown: false }
|
|
617
|
+
);
|
|
618
|
+
if (warrning) {
|
|
619
|
+
console.log("Parameter Validation warrnings for getFonts");
|
|
620
|
+
console.log(warrning);
|
|
621
|
+
}
|
|
622
|
+
|
|
439
623
|
const query_params = {};
|
|
440
624
|
|
|
441
625
|
return PlatformAPIClient.execute(
|
|
@@ -464,6 +648,18 @@ class Theme {
|
|
|
464
648
|
return Promise.reject(new FDKClientValidationError(error));
|
|
465
649
|
}
|
|
466
650
|
|
|
651
|
+
// Showing warrnings if extra unknown parameters are found
|
|
652
|
+
const { error: warrning } = ThemeValidator.getThemeById().validate(
|
|
653
|
+
{
|
|
654
|
+
themeId,
|
|
655
|
+
},
|
|
656
|
+
{ abortEarly: false, allowUnknown: false }
|
|
657
|
+
);
|
|
658
|
+
if (warrning) {
|
|
659
|
+
console.log("Parameter Validation warrnings for getThemeById");
|
|
660
|
+
console.log(warrning);
|
|
661
|
+
}
|
|
662
|
+
|
|
467
663
|
const query_params = {};
|
|
468
664
|
|
|
469
665
|
return PlatformAPIClient.execute(
|
|
@@ -494,6 +690,19 @@ class Theme {
|
|
|
494
690
|
return Promise.reject(new FDKClientValidationError(error));
|
|
495
691
|
}
|
|
496
692
|
|
|
693
|
+
// Showing warrnings if extra unknown parameters are found
|
|
694
|
+
const { error: warrning } = ThemeValidator.updateTheme().validate(
|
|
695
|
+
{
|
|
696
|
+
themeId,
|
|
697
|
+
body,
|
|
698
|
+
},
|
|
699
|
+
{ abortEarly: false, allowUnknown: false }
|
|
700
|
+
);
|
|
701
|
+
if (warrning) {
|
|
702
|
+
console.log("Parameter Validation warrnings for updateTheme");
|
|
703
|
+
console.log(warrning);
|
|
704
|
+
}
|
|
705
|
+
|
|
497
706
|
const query_params = {};
|
|
498
707
|
|
|
499
708
|
return PlatformAPIClient.execute(
|
|
@@ -522,6 +731,18 @@ class Theme {
|
|
|
522
731
|
return Promise.reject(new FDKClientValidationError(error));
|
|
523
732
|
}
|
|
524
733
|
|
|
734
|
+
// Showing warrnings if extra unknown parameters are found
|
|
735
|
+
const { error: warrning } = ThemeValidator.deleteTheme().validate(
|
|
736
|
+
{
|
|
737
|
+
themeId,
|
|
738
|
+
},
|
|
739
|
+
{ abortEarly: false, allowUnknown: false }
|
|
740
|
+
);
|
|
741
|
+
if (warrning) {
|
|
742
|
+
console.log("Parameter Validation warrnings for deleteTheme");
|
|
743
|
+
console.log(warrning);
|
|
744
|
+
}
|
|
745
|
+
|
|
525
746
|
const query_params = {};
|
|
526
747
|
|
|
527
748
|
return PlatformAPIClient.execute(
|
|
@@ -550,6 +771,18 @@ class Theme {
|
|
|
550
771
|
return Promise.reject(new FDKClientValidationError(error));
|
|
551
772
|
}
|
|
552
773
|
|
|
774
|
+
// Showing warrnings if extra unknown parameters are found
|
|
775
|
+
const { error: warrning } = ThemeValidator.getThemeForPreview().validate(
|
|
776
|
+
{
|
|
777
|
+
themeId,
|
|
778
|
+
},
|
|
779
|
+
{ abortEarly: false, allowUnknown: false }
|
|
780
|
+
);
|
|
781
|
+
if (warrning) {
|
|
782
|
+
console.log("Parameter Validation warrnings for getThemeForPreview");
|
|
783
|
+
console.log(warrning);
|
|
784
|
+
}
|
|
785
|
+
|
|
553
786
|
const query_params = {};
|
|
554
787
|
|
|
555
788
|
return PlatformAPIClient.execute(
|
|
@@ -578,6 +811,18 @@ class Theme {
|
|
|
578
811
|
return Promise.reject(new FDKClientValidationError(error));
|
|
579
812
|
}
|
|
580
813
|
|
|
814
|
+
// Showing warrnings if extra unknown parameters are found
|
|
815
|
+
const { error: warrning } = ThemeValidator.publishTheme().validate(
|
|
816
|
+
{
|
|
817
|
+
themeId,
|
|
818
|
+
},
|
|
819
|
+
{ abortEarly: false, allowUnknown: false }
|
|
820
|
+
);
|
|
821
|
+
if (warrning) {
|
|
822
|
+
console.log("Parameter Validation warrnings for publishTheme");
|
|
823
|
+
console.log(warrning);
|
|
824
|
+
}
|
|
825
|
+
|
|
581
826
|
const query_params = {};
|
|
582
827
|
|
|
583
828
|
return PlatformAPIClient.execute(
|
|
@@ -606,6 +851,18 @@ class Theme {
|
|
|
606
851
|
return Promise.reject(new FDKClientValidationError(error));
|
|
607
852
|
}
|
|
608
853
|
|
|
854
|
+
// Showing warrnings if extra unknown parameters are found
|
|
855
|
+
const { error: warrning } = ThemeValidator.unpublishTheme().validate(
|
|
856
|
+
{
|
|
857
|
+
themeId,
|
|
858
|
+
},
|
|
859
|
+
{ abortEarly: false, allowUnknown: false }
|
|
860
|
+
);
|
|
861
|
+
if (warrning) {
|
|
862
|
+
console.log("Parameter Validation warrnings for unpublishTheme");
|
|
863
|
+
console.log(warrning);
|
|
864
|
+
}
|
|
865
|
+
|
|
609
866
|
const query_params = {};
|
|
610
867
|
|
|
611
868
|
return PlatformAPIClient.execute(
|
|
@@ -634,6 +891,18 @@ class Theme {
|
|
|
634
891
|
return Promise.reject(new FDKClientValidationError(error));
|
|
635
892
|
}
|
|
636
893
|
|
|
894
|
+
// Showing warrnings if extra unknown parameters are found
|
|
895
|
+
const { error: warrning } = ThemeValidator.archiveTheme().validate(
|
|
896
|
+
{
|
|
897
|
+
themeId,
|
|
898
|
+
},
|
|
899
|
+
{ abortEarly: false, allowUnknown: false }
|
|
900
|
+
);
|
|
901
|
+
if (warrning) {
|
|
902
|
+
console.log("Parameter Validation warrnings for archiveTheme");
|
|
903
|
+
console.log(warrning);
|
|
904
|
+
}
|
|
905
|
+
|
|
637
906
|
const query_params = {};
|
|
638
907
|
|
|
639
908
|
return PlatformAPIClient.execute(
|
|
@@ -662,6 +931,18 @@ class Theme {
|
|
|
662
931
|
return Promise.reject(new FDKClientValidationError(error));
|
|
663
932
|
}
|
|
664
933
|
|
|
934
|
+
// Showing warrnings if extra unknown parameters are found
|
|
935
|
+
const { error: warrning } = ThemeValidator.unarchiveTheme().validate(
|
|
936
|
+
{
|
|
937
|
+
themeId,
|
|
938
|
+
},
|
|
939
|
+
{ abortEarly: false, allowUnknown: false }
|
|
940
|
+
);
|
|
941
|
+
if (warrning) {
|
|
942
|
+
console.log("Parameter Validation warrnings for unarchiveTheme");
|
|
943
|
+
console.log(warrning);
|
|
944
|
+
}
|
|
945
|
+
|
|
665
946
|
const query_params = {};
|
|
666
947
|
|
|
667
948
|
return PlatformAPIClient.execute(
|
|
@@ -690,6 +971,18 @@ class Theme {
|
|
|
690
971
|
return Promise.reject(new FDKClientValidationError(error));
|
|
691
972
|
}
|
|
692
973
|
|
|
974
|
+
// Showing warrnings if extra unknown parameters are found
|
|
975
|
+
const { error: warrning } = ThemeValidator.getThemeLastModified().validate(
|
|
976
|
+
{
|
|
977
|
+
themeId,
|
|
978
|
+
},
|
|
979
|
+
{ abortEarly: false, allowUnknown: false }
|
|
980
|
+
);
|
|
981
|
+
if (warrning) {
|
|
982
|
+
console.log("Parameter Validation warrnings for getThemeLastModified");
|
|
983
|
+
console.log(warrning);
|
|
984
|
+
}
|
|
985
|
+
|
|
693
986
|
const query_params = {};
|
|
694
987
|
|
|
695
988
|
return PlatformAPIClient.execute(
|
|
@@ -33,6 +33,20 @@ class User {
|
|
|
33
33
|
return Promise.reject(new FDKClientValidationError(error));
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
// Showing warrnings if extra unknown parameters are found
|
|
37
|
+
const { error: warrning } = UserValidator.getCustomers().validate(
|
|
38
|
+
{
|
|
39
|
+
q,
|
|
40
|
+
pageSize,
|
|
41
|
+
pageNo,
|
|
42
|
+
},
|
|
43
|
+
{ abortEarly: false, allowUnknown: false }
|
|
44
|
+
);
|
|
45
|
+
if (warrning) {
|
|
46
|
+
console.log("Parameter Validation warrnings for getCustomers");
|
|
47
|
+
console.log(warrning);
|
|
48
|
+
}
|
|
49
|
+
|
|
36
50
|
const query_params = {};
|
|
37
51
|
query_params["q"] = q;
|
|
38
52
|
query_params["page_size"] = pageSize;
|
|
@@ -65,6 +79,18 @@ class User {
|
|
|
65
79
|
return Promise.reject(new FDKClientValidationError(error));
|
|
66
80
|
}
|
|
67
81
|
|
|
82
|
+
// Showing warrnings if extra unknown parameters are found
|
|
83
|
+
const { error: warrning } = UserValidator.searchUsers().validate(
|
|
84
|
+
{
|
|
85
|
+
q,
|
|
86
|
+
},
|
|
87
|
+
{ abortEarly: false, allowUnknown: false }
|
|
88
|
+
);
|
|
89
|
+
if (warrning) {
|
|
90
|
+
console.log("Parameter Validation warrnings for searchUsers");
|
|
91
|
+
console.log(warrning);
|
|
92
|
+
}
|
|
93
|
+
|
|
68
94
|
const query_params = {};
|
|
69
95
|
query_params["q"] = q;
|
|
70
96
|
|
|
@@ -94,6 +120,18 @@ class User {
|
|
|
94
120
|
return Promise.reject(new FDKClientValidationError(error));
|
|
95
121
|
}
|
|
96
122
|
|
|
123
|
+
// Showing warrnings if extra unknown parameters are found
|
|
124
|
+
const { error: warrning } = UserValidator.createUser().validate(
|
|
125
|
+
{
|
|
126
|
+
body,
|
|
127
|
+
},
|
|
128
|
+
{ abortEarly: false, allowUnknown: false }
|
|
129
|
+
);
|
|
130
|
+
if (warrning) {
|
|
131
|
+
console.log("Parameter Validation warrnings for createUser");
|
|
132
|
+
console.log(warrning);
|
|
133
|
+
}
|
|
134
|
+
|
|
97
135
|
const query_params = {};
|
|
98
136
|
|
|
99
137
|
return PlatformAPIClient.execute(
|
|
@@ -122,6 +160,18 @@ class User {
|
|
|
122
160
|
return Promise.reject(new FDKClientValidationError(error));
|
|
123
161
|
}
|
|
124
162
|
|
|
163
|
+
// Showing warrnings if extra unknown parameters are found
|
|
164
|
+
const { error: warrning } = UserValidator.blockOrUnblockUsers().validate(
|
|
165
|
+
{
|
|
166
|
+
body,
|
|
167
|
+
},
|
|
168
|
+
{ abortEarly: false, allowUnknown: false }
|
|
169
|
+
);
|
|
170
|
+
if (warrning) {
|
|
171
|
+
console.log("Parameter Validation warrnings for blockOrUnblockUsers");
|
|
172
|
+
console.log(warrning);
|
|
173
|
+
}
|
|
174
|
+
|
|
125
175
|
const query_params = {};
|
|
126
176
|
|
|
127
177
|
return PlatformAPIClient.execute(
|
|
@@ -150,6 +200,18 @@ class User {
|
|
|
150
200
|
return Promise.reject(new FDKClientValidationError(error));
|
|
151
201
|
}
|
|
152
202
|
|
|
203
|
+
// Showing warrnings if extra unknown parameters are found
|
|
204
|
+
const { error: warrning } = UserValidator.archiveUser().validate(
|
|
205
|
+
{
|
|
206
|
+
body,
|
|
207
|
+
},
|
|
208
|
+
{ abortEarly: false, allowUnknown: false }
|
|
209
|
+
);
|
|
210
|
+
if (warrning) {
|
|
211
|
+
console.log("Parameter Validation warrnings for archiveUser");
|
|
212
|
+
console.log(warrning);
|
|
213
|
+
}
|
|
214
|
+
|
|
153
215
|
const query_params = {};
|
|
154
216
|
|
|
155
217
|
return PlatformAPIClient.execute(
|
|
@@ -178,6 +240,18 @@ class User {
|
|
|
178
240
|
return Promise.reject(new FDKClientValidationError(error));
|
|
179
241
|
}
|
|
180
242
|
|
|
243
|
+
// Showing warrnings if extra unknown parameters are found
|
|
244
|
+
const { error: warrning } = UserValidator.unDeleteUser().validate(
|
|
245
|
+
{
|
|
246
|
+
body,
|
|
247
|
+
},
|
|
248
|
+
{ abortEarly: false, allowUnknown: false }
|
|
249
|
+
);
|
|
250
|
+
if (warrning) {
|
|
251
|
+
console.log("Parameter Validation warrnings for unDeleteUser");
|
|
252
|
+
console.log(warrning);
|
|
253
|
+
}
|
|
254
|
+
|
|
181
255
|
const query_params = {};
|
|
182
256
|
|
|
183
257
|
return PlatformAPIClient.execute(
|
|
@@ -208,6 +282,19 @@ class User {
|
|
|
208
282
|
return Promise.reject(new FDKClientValidationError(error));
|
|
209
283
|
}
|
|
210
284
|
|
|
285
|
+
// Showing warrnings if extra unknown parameters are found
|
|
286
|
+
const { error: warrning } = UserValidator.updateUser().validate(
|
|
287
|
+
{
|
|
288
|
+
userId,
|
|
289
|
+
body,
|
|
290
|
+
},
|
|
291
|
+
{ abortEarly: false, allowUnknown: false }
|
|
292
|
+
);
|
|
293
|
+
if (warrning) {
|
|
294
|
+
console.log("Parameter Validation warrnings for updateUser");
|
|
295
|
+
console.log(warrning);
|
|
296
|
+
}
|
|
297
|
+
|
|
211
298
|
const query_params = {};
|
|
212
299
|
|
|
213
300
|
return PlatformAPIClient.execute(
|
|
@@ -236,6 +323,18 @@ class User {
|
|
|
236
323
|
return Promise.reject(new FDKClientValidationError(error));
|
|
237
324
|
}
|
|
238
325
|
|
|
326
|
+
// Showing warrnings if extra unknown parameters are found
|
|
327
|
+
const { error: warrning } = UserValidator.createUserSession().validate(
|
|
328
|
+
{
|
|
329
|
+
body,
|
|
330
|
+
},
|
|
331
|
+
{ abortEarly: false, allowUnknown: false }
|
|
332
|
+
);
|
|
333
|
+
if (warrning) {
|
|
334
|
+
console.log("Parameter Validation warrnings for createUserSession");
|
|
335
|
+
console.log(warrning);
|
|
336
|
+
}
|
|
337
|
+
|
|
239
338
|
const query_params = {};
|
|
240
339
|
|
|
241
340
|
return PlatformAPIClient.execute(
|
|
@@ -264,6 +363,18 @@ class User {
|
|
|
264
363
|
return Promise.reject(new FDKClientValidationError(error));
|
|
265
364
|
}
|
|
266
365
|
|
|
366
|
+
// Showing warrnings if extra unknown parameters are found
|
|
367
|
+
const { error: warrning } = UserValidator.getActiveSessions().validate(
|
|
368
|
+
{
|
|
369
|
+
id,
|
|
370
|
+
},
|
|
371
|
+
{ abortEarly: false, allowUnknown: false }
|
|
372
|
+
);
|
|
373
|
+
if (warrning) {
|
|
374
|
+
console.log("Parameter Validation warrnings for getActiveSessions");
|
|
375
|
+
console.log(warrning);
|
|
376
|
+
}
|
|
377
|
+
|
|
267
378
|
const query_params = {};
|
|
268
379
|
query_params["id"] = id;
|
|
269
380
|
|
|
@@ -293,6 +404,18 @@ class User {
|
|
|
293
404
|
return Promise.reject(new FDKClientValidationError(error));
|
|
294
405
|
}
|
|
295
406
|
|
|
407
|
+
// Showing warrnings if extra unknown parameters are found
|
|
408
|
+
const { error: warrning } = UserValidator.deleteActiveSessions().validate(
|
|
409
|
+
{
|
|
410
|
+
id,
|
|
411
|
+
},
|
|
412
|
+
{ abortEarly: false, allowUnknown: false }
|
|
413
|
+
);
|
|
414
|
+
if (warrning) {
|
|
415
|
+
console.log("Parameter Validation warrnings for deleteActiveSessions");
|
|
416
|
+
console.log(warrning);
|
|
417
|
+
}
|
|
418
|
+
|
|
296
419
|
const query_params = {};
|
|
297
420
|
query_params["id"] = id;
|
|
298
421
|
|
|
@@ -319,6 +442,16 @@ class User {
|
|
|
319
442
|
return Promise.reject(new FDKClientValidationError(error));
|
|
320
443
|
}
|
|
321
444
|
|
|
445
|
+
// Showing warrnings if extra unknown parameters are found
|
|
446
|
+
const { error: warrning } = UserValidator.getPlatformConfig().validate(
|
|
447
|
+
{},
|
|
448
|
+
{ abortEarly: false, allowUnknown: false }
|
|
449
|
+
);
|
|
450
|
+
if (warrning) {
|
|
451
|
+
console.log("Parameter Validation warrnings for getPlatformConfig");
|
|
452
|
+
console.log(warrning);
|
|
453
|
+
}
|
|
454
|
+
|
|
322
455
|
const query_params = {};
|
|
323
456
|
|
|
324
457
|
return PlatformAPIClient.execute(
|
|
@@ -347,6 +480,18 @@ class User {
|
|
|
347
480
|
return Promise.reject(new FDKClientValidationError(error));
|
|
348
481
|
}
|
|
349
482
|
|
|
483
|
+
// Showing warrnings if extra unknown parameters are found
|
|
484
|
+
const { error: warrning } = UserValidator.updatePlatformConfig().validate(
|
|
485
|
+
{
|
|
486
|
+
body,
|
|
487
|
+
},
|
|
488
|
+
{ abortEarly: false, allowUnknown: false }
|
|
489
|
+
);
|
|
490
|
+
if (warrning) {
|
|
491
|
+
console.log("Parameter Validation warrnings for updatePlatformConfig");
|
|
492
|
+
console.log(warrning);
|
|
493
|
+
}
|
|
494
|
+
|
|
350
495
|
const query_params = {};
|
|
351
496
|
|
|
352
497
|
return PlatformAPIClient.execute(
|