@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
|
@@ -60,6 +60,17 @@ class Content {
|
|
|
60
60
|
if (error) {
|
|
61
61
|
return Promise.reject(new FDKClientValidationError(error));
|
|
62
62
|
}
|
|
63
|
+
|
|
64
|
+
// Showing warrnings if extra unknown parameters are found
|
|
65
|
+
const { error: warrning } = ContentValidator.getAnnouncements().validate(
|
|
66
|
+
{},
|
|
67
|
+
{ abortEarly: false, allowUnknown: false }
|
|
68
|
+
);
|
|
69
|
+
if (warrning) {
|
|
70
|
+
console.log("Parameter Validation warrnings for getAnnouncements");
|
|
71
|
+
console.log(warrning);
|
|
72
|
+
}
|
|
73
|
+
|
|
63
74
|
const query_params = {};
|
|
64
75
|
|
|
65
76
|
const xHeaders = {};
|
|
@@ -95,6 +106,17 @@ class Content {
|
|
|
95
106
|
if (error) {
|
|
96
107
|
return Promise.reject(new FDKClientValidationError(error));
|
|
97
108
|
}
|
|
109
|
+
|
|
110
|
+
// Showing warrnings if extra unknown parameters are found
|
|
111
|
+
const { error: warrning } = ContentValidator.getBlog().validate(
|
|
112
|
+
{ slug, rootId },
|
|
113
|
+
{ abortEarly: false, allowUnknown: false }
|
|
114
|
+
);
|
|
115
|
+
if (warrning) {
|
|
116
|
+
console.log("Parameter Validation warrnings for getBlog");
|
|
117
|
+
console.log(warrning);
|
|
118
|
+
}
|
|
119
|
+
|
|
98
120
|
const query_params = {};
|
|
99
121
|
query_params["root_id"] = rootId;
|
|
100
122
|
|
|
@@ -130,6 +152,17 @@ class Content {
|
|
|
130
152
|
if (error) {
|
|
131
153
|
return Promise.reject(new FDKClientValidationError(error));
|
|
132
154
|
}
|
|
155
|
+
|
|
156
|
+
// Showing warrnings if extra unknown parameters are found
|
|
157
|
+
const { error: warrning } = ContentValidator.getBlogs().validate(
|
|
158
|
+
{ pageNo, pageSize },
|
|
159
|
+
{ abortEarly: false, allowUnknown: false }
|
|
160
|
+
);
|
|
161
|
+
if (warrning) {
|
|
162
|
+
console.log("Parameter Validation warrnings for getBlogs");
|
|
163
|
+
console.log(warrning);
|
|
164
|
+
}
|
|
165
|
+
|
|
133
166
|
const query_params = {};
|
|
134
167
|
query_params["page_no"] = pageNo;
|
|
135
168
|
query_params["page_size"] = pageSize;
|
|
@@ -189,6 +222,17 @@ class Content {
|
|
|
189
222
|
if (error) {
|
|
190
223
|
return Promise.reject(new FDKClientValidationError(error));
|
|
191
224
|
}
|
|
225
|
+
|
|
226
|
+
// Showing warrnings if extra unknown parameters are found
|
|
227
|
+
const { error: warrning } = ContentValidator.getDataLoaders().validate(
|
|
228
|
+
{},
|
|
229
|
+
{ abortEarly: false, allowUnknown: false }
|
|
230
|
+
);
|
|
231
|
+
if (warrning) {
|
|
232
|
+
console.log("Parameter Validation warrnings for getDataLoaders");
|
|
233
|
+
console.log(warrning);
|
|
234
|
+
}
|
|
235
|
+
|
|
192
236
|
const query_params = {};
|
|
193
237
|
|
|
194
238
|
const xHeaders = {};
|
|
@@ -220,6 +264,17 @@ class Content {
|
|
|
220
264
|
if (error) {
|
|
221
265
|
return Promise.reject(new FDKClientValidationError(error));
|
|
222
266
|
}
|
|
267
|
+
|
|
268
|
+
// Showing warrnings if extra unknown parameters are found
|
|
269
|
+
const { error: warrning } = ContentValidator.getFaqs().validate(
|
|
270
|
+
{},
|
|
271
|
+
{ abortEarly: false, allowUnknown: false }
|
|
272
|
+
);
|
|
273
|
+
if (warrning) {
|
|
274
|
+
console.log("Parameter Validation warrnings for getFaqs");
|
|
275
|
+
console.log(warrning);
|
|
276
|
+
}
|
|
277
|
+
|
|
223
278
|
const query_params = {};
|
|
224
279
|
|
|
225
280
|
const xHeaders = {};
|
|
@@ -251,6 +306,17 @@ class Content {
|
|
|
251
306
|
if (error) {
|
|
252
307
|
return Promise.reject(new FDKClientValidationError(error));
|
|
253
308
|
}
|
|
309
|
+
|
|
310
|
+
// Showing warrnings if extra unknown parameters are found
|
|
311
|
+
const { error: warrning } = ContentValidator.getFaqCategories().validate(
|
|
312
|
+
{},
|
|
313
|
+
{ abortEarly: false, allowUnknown: false }
|
|
314
|
+
);
|
|
315
|
+
if (warrning) {
|
|
316
|
+
console.log("Parameter Validation warrnings for getFaqCategories");
|
|
317
|
+
console.log(warrning);
|
|
318
|
+
}
|
|
319
|
+
|
|
254
320
|
const query_params = {};
|
|
255
321
|
|
|
256
322
|
const xHeaders = {};
|
|
@@ -285,6 +351,17 @@ class Content {
|
|
|
285
351
|
if (error) {
|
|
286
352
|
return Promise.reject(new FDKClientValidationError(error));
|
|
287
353
|
}
|
|
354
|
+
|
|
355
|
+
// Showing warrnings if extra unknown parameters are found
|
|
356
|
+
const { error: warrning } = ContentValidator.getFaqBySlug().validate(
|
|
357
|
+
{ slug },
|
|
358
|
+
{ abortEarly: false, allowUnknown: false }
|
|
359
|
+
);
|
|
360
|
+
if (warrning) {
|
|
361
|
+
console.log("Parameter Validation warrnings for getFaqBySlug");
|
|
362
|
+
console.log(warrning);
|
|
363
|
+
}
|
|
364
|
+
|
|
288
365
|
const query_params = {};
|
|
289
366
|
|
|
290
367
|
const xHeaders = {};
|
|
@@ -319,6 +396,19 @@ class Content {
|
|
|
319
396
|
if (error) {
|
|
320
397
|
return Promise.reject(new FDKClientValidationError(error));
|
|
321
398
|
}
|
|
399
|
+
|
|
400
|
+
// Showing warrnings if extra unknown parameters are found
|
|
401
|
+
const {
|
|
402
|
+
error: warrning,
|
|
403
|
+
} = ContentValidator.getFaqCategoryBySlug().validate(
|
|
404
|
+
{ slug },
|
|
405
|
+
{ abortEarly: false, allowUnknown: false }
|
|
406
|
+
);
|
|
407
|
+
if (warrning) {
|
|
408
|
+
console.log("Parameter Validation warrnings for getFaqCategoryBySlug");
|
|
409
|
+
console.log(warrning);
|
|
410
|
+
}
|
|
411
|
+
|
|
322
412
|
const query_params = {};
|
|
323
413
|
|
|
324
414
|
const xHeaders = {};
|
|
@@ -353,6 +443,19 @@ class Content {
|
|
|
353
443
|
if (error) {
|
|
354
444
|
return Promise.reject(new FDKClientValidationError(error));
|
|
355
445
|
}
|
|
446
|
+
|
|
447
|
+
// Showing warrnings if extra unknown parameters are found
|
|
448
|
+
const {
|
|
449
|
+
error: warrning,
|
|
450
|
+
} = ContentValidator.getFaqsByCategorySlug().validate(
|
|
451
|
+
{ slug },
|
|
452
|
+
{ abortEarly: false, allowUnknown: false }
|
|
453
|
+
);
|
|
454
|
+
if (warrning) {
|
|
455
|
+
console.log("Parameter Validation warrnings for getFaqsByCategorySlug");
|
|
456
|
+
console.log(warrning);
|
|
457
|
+
}
|
|
458
|
+
|
|
356
459
|
const query_params = {};
|
|
357
460
|
|
|
358
461
|
const xHeaders = {};
|
|
@@ -384,6 +487,17 @@ class Content {
|
|
|
384
487
|
if (error) {
|
|
385
488
|
return Promise.reject(new FDKClientValidationError(error));
|
|
386
489
|
}
|
|
490
|
+
|
|
491
|
+
// Showing warrnings if extra unknown parameters are found
|
|
492
|
+
const { error: warrning } = ContentValidator.getLandingPage().validate(
|
|
493
|
+
{},
|
|
494
|
+
{ abortEarly: false, allowUnknown: false }
|
|
495
|
+
);
|
|
496
|
+
if (warrning) {
|
|
497
|
+
console.log("Parameter Validation warrnings for getLandingPage");
|
|
498
|
+
console.log(warrning);
|
|
499
|
+
}
|
|
500
|
+
|
|
387
501
|
const query_params = {};
|
|
388
502
|
|
|
389
503
|
const xHeaders = {};
|
|
@@ -415,6 +529,17 @@ class Content {
|
|
|
415
529
|
if (error) {
|
|
416
530
|
return Promise.reject(new FDKClientValidationError(error));
|
|
417
531
|
}
|
|
532
|
+
|
|
533
|
+
// Showing warrnings if extra unknown parameters are found
|
|
534
|
+
const { error: warrning } = ContentValidator.getLegalInformation().validate(
|
|
535
|
+
{},
|
|
536
|
+
{ abortEarly: false, allowUnknown: false }
|
|
537
|
+
);
|
|
538
|
+
if (warrning) {
|
|
539
|
+
console.log("Parameter Validation warrnings for getLegalInformation");
|
|
540
|
+
console.log(warrning);
|
|
541
|
+
}
|
|
542
|
+
|
|
418
543
|
const query_params = {};
|
|
419
544
|
|
|
420
545
|
const xHeaders = {};
|
|
@@ -449,6 +574,17 @@ class Content {
|
|
|
449
574
|
if (error) {
|
|
450
575
|
return Promise.reject(new FDKClientValidationError(error));
|
|
451
576
|
}
|
|
577
|
+
|
|
578
|
+
// Showing warrnings if extra unknown parameters are found
|
|
579
|
+
const { error: warrning } = ContentValidator.getNavigations().validate(
|
|
580
|
+
{ pageNo, pageSize },
|
|
581
|
+
{ abortEarly: false, allowUnknown: false }
|
|
582
|
+
);
|
|
583
|
+
if (warrning) {
|
|
584
|
+
console.log("Parameter Validation warrnings for getNavigations");
|
|
585
|
+
console.log(warrning);
|
|
586
|
+
}
|
|
587
|
+
|
|
452
588
|
const query_params = {};
|
|
453
589
|
query_params["page_no"] = pageNo;
|
|
454
590
|
query_params["page_size"] = pageSize;
|
|
@@ -508,6 +644,17 @@ class Content {
|
|
|
508
644
|
if (error) {
|
|
509
645
|
return Promise.reject(new FDKClientValidationError(error));
|
|
510
646
|
}
|
|
647
|
+
|
|
648
|
+
// Showing warrnings if extra unknown parameters are found
|
|
649
|
+
const { error: warrning } = ContentValidator.getSEOConfiguration().validate(
|
|
650
|
+
{},
|
|
651
|
+
{ abortEarly: false, allowUnknown: false }
|
|
652
|
+
);
|
|
653
|
+
if (warrning) {
|
|
654
|
+
console.log("Parameter Validation warrnings for getSEOConfiguration");
|
|
655
|
+
console.log(warrning);
|
|
656
|
+
}
|
|
657
|
+
|
|
511
658
|
const query_params = {};
|
|
512
659
|
|
|
513
660
|
const xHeaders = {};
|
|
@@ -542,6 +689,17 @@ class Content {
|
|
|
542
689
|
if (error) {
|
|
543
690
|
return Promise.reject(new FDKClientValidationError(error));
|
|
544
691
|
}
|
|
692
|
+
|
|
693
|
+
// Showing warrnings if extra unknown parameters are found
|
|
694
|
+
const { error: warrning } = ContentValidator.getSlideshows().validate(
|
|
695
|
+
{ pageNo, pageSize },
|
|
696
|
+
{ abortEarly: false, allowUnknown: false }
|
|
697
|
+
);
|
|
698
|
+
if (warrning) {
|
|
699
|
+
console.log("Parameter Validation warrnings for getSlideshows");
|
|
700
|
+
console.log(warrning);
|
|
701
|
+
}
|
|
702
|
+
|
|
545
703
|
const query_params = {};
|
|
546
704
|
query_params["page_no"] = pageNo;
|
|
547
705
|
query_params["page_size"] = pageSize;
|
|
@@ -604,6 +762,17 @@ class Content {
|
|
|
604
762
|
if (error) {
|
|
605
763
|
return Promise.reject(new FDKClientValidationError(error));
|
|
606
764
|
}
|
|
765
|
+
|
|
766
|
+
// Showing warrnings if extra unknown parameters are found
|
|
767
|
+
const { error: warrning } = ContentValidator.getSlideshow().validate(
|
|
768
|
+
{ slug },
|
|
769
|
+
{ abortEarly: false, allowUnknown: false }
|
|
770
|
+
);
|
|
771
|
+
if (warrning) {
|
|
772
|
+
console.log("Parameter Validation warrnings for getSlideshow");
|
|
773
|
+
console.log(warrning);
|
|
774
|
+
}
|
|
775
|
+
|
|
607
776
|
const query_params = {};
|
|
608
777
|
|
|
609
778
|
const xHeaders = {};
|
|
@@ -635,6 +804,19 @@ class Content {
|
|
|
635
804
|
if (error) {
|
|
636
805
|
return Promise.reject(new FDKClientValidationError(error));
|
|
637
806
|
}
|
|
807
|
+
|
|
808
|
+
// Showing warrnings if extra unknown parameters are found
|
|
809
|
+
const {
|
|
810
|
+
error: warrning,
|
|
811
|
+
} = ContentValidator.getSupportInformation().validate(
|
|
812
|
+
{},
|
|
813
|
+
{ abortEarly: false, allowUnknown: false }
|
|
814
|
+
);
|
|
815
|
+
if (warrning) {
|
|
816
|
+
console.log("Parameter Validation warrnings for getSupportInformation");
|
|
817
|
+
console.log(warrning);
|
|
818
|
+
}
|
|
819
|
+
|
|
638
820
|
const query_params = {};
|
|
639
821
|
|
|
640
822
|
const xHeaders = {};
|
|
@@ -666,6 +848,17 @@ class Content {
|
|
|
666
848
|
if (error) {
|
|
667
849
|
return Promise.reject(new FDKClientValidationError(error));
|
|
668
850
|
}
|
|
851
|
+
|
|
852
|
+
// Showing warrnings if extra unknown parameters are found
|
|
853
|
+
const { error: warrning } = ContentValidator.getTags().validate(
|
|
854
|
+
{},
|
|
855
|
+
{ abortEarly: false, allowUnknown: false }
|
|
856
|
+
);
|
|
857
|
+
if (warrning) {
|
|
858
|
+
console.log("Parameter Validation warrnings for getTags");
|
|
859
|
+
console.log(warrning);
|
|
860
|
+
}
|
|
861
|
+
|
|
669
862
|
const query_params = {};
|
|
670
863
|
|
|
671
864
|
const xHeaders = {};
|
|
@@ -701,6 +894,17 @@ class Content {
|
|
|
701
894
|
if (error) {
|
|
702
895
|
return Promise.reject(new FDKClientValidationError(error));
|
|
703
896
|
}
|
|
897
|
+
|
|
898
|
+
// Showing warrnings if extra unknown parameters are found
|
|
899
|
+
const { error: warrning } = ContentValidator.getPage().validate(
|
|
900
|
+
{ slug, rootId },
|
|
901
|
+
{ abortEarly: false, allowUnknown: false }
|
|
902
|
+
);
|
|
903
|
+
if (warrning) {
|
|
904
|
+
console.log("Parameter Validation warrnings for getPage");
|
|
905
|
+
console.log(warrning);
|
|
906
|
+
}
|
|
907
|
+
|
|
704
908
|
const query_params = {};
|
|
705
909
|
query_params["root_id"] = rootId;
|
|
706
910
|
|
|
@@ -736,6 +940,17 @@ class Content {
|
|
|
736
940
|
if (error) {
|
|
737
941
|
return Promise.reject(new FDKClientValidationError(error));
|
|
738
942
|
}
|
|
943
|
+
|
|
944
|
+
// Showing warrnings if extra unknown parameters are found
|
|
945
|
+
const { error: warrning } = ContentValidator.getPages().validate(
|
|
946
|
+
{ pageNo, pageSize },
|
|
947
|
+
{ abortEarly: false, allowUnknown: false }
|
|
948
|
+
);
|
|
949
|
+
if (warrning) {
|
|
950
|
+
console.log("Parameter Validation warrnings for getPages");
|
|
951
|
+
console.log(warrning);
|
|
952
|
+
}
|
|
953
|
+
|
|
739
954
|
const query_params = {};
|
|
740
955
|
query_params["page_no"] = pageNo;
|
|
741
956
|
query_params["page_size"] = pageSize;
|
|
@@ -64,6 +64,17 @@ class FileStorage {
|
|
|
64
64
|
if (error) {
|
|
65
65
|
return Promise.reject(new FDKClientValidationError(error));
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
// Showing warrnings if extra unknown parameters are found
|
|
69
|
+
const { error: warrning } = FileStorageValidator.startUpload().validate(
|
|
70
|
+
{ namespace, body },
|
|
71
|
+
{ abortEarly: false, allowUnknown: false }
|
|
72
|
+
);
|
|
73
|
+
if (warrning) {
|
|
74
|
+
console.log("Parameter Validation warrnings for startUpload");
|
|
75
|
+
console.log(warrning);
|
|
76
|
+
}
|
|
77
|
+
|
|
67
78
|
const query_params = {};
|
|
68
79
|
|
|
69
80
|
const xHeaders = {};
|
|
@@ -114,6 +125,17 @@ class FileStorage {
|
|
|
114
125
|
if (error) {
|
|
115
126
|
return Promise.reject(new FDKClientValidationError(error));
|
|
116
127
|
}
|
|
128
|
+
|
|
129
|
+
// Showing warrnings if extra unknown parameters are found
|
|
130
|
+
const { error: warrning } = FileStorageValidator.completeUpload().validate(
|
|
131
|
+
{ namespace, body },
|
|
132
|
+
{ abortEarly: false, allowUnknown: false }
|
|
133
|
+
);
|
|
134
|
+
if (warrning) {
|
|
135
|
+
console.log("Parameter Validation warrnings for completeUpload");
|
|
136
|
+
console.log(warrning);
|
|
137
|
+
}
|
|
138
|
+
|
|
117
139
|
const query_params = {};
|
|
118
140
|
|
|
119
141
|
const xHeaders = {};
|
|
@@ -146,6 +168,17 @@ class FileStorage {
|
|
|
146
168
|
if (error) {
|
|
147
169
|
return Promise.reject(new FDKClientValidationError(error));
|
|
148
170
|
}
|
|
171
|
+
|
|
172
|
+
// Showing warrnings if extra unknown parameters are found
|
|
173
|
+
const { error: warrning } = FileStorageValidator.signUrls().validate(
|
|
174
|
+
{ body },
|
|
175
|
+
{ abortEarly: false, allowUnknown: false }
|
|
176
|
+
);
|
|
177
|
+
if (warrning) {
|
|
178
|
+
console.log("Parameter Validation warrnings for signUrls");
|
|
179
|
+
console.log(warrning);
|
|
180
|
+
}
|
|
181
|
+
|
|
149
182
|
const query_params = {};
|
|
150
183
|
|
|
151
184
|
const xHeaders = {};
|
|
@@ -49,6 +49,17 @@ class Lead {
|
|
|
49
49
|
if (error) {
|
|
50
50
|
return Promise.reject(new FDKClientValidationError(error));
|
|
51
51
|
}
|
|
52
|
+
|
|
53
|
+
// Showing warrnings if extra unknown parameters are found
|
|
54
|
+
const { error: warrning } = LeadValidator.getTicket().validate(
|
|
55
|
+
{ id },
|
|
56
|
+
{ abortEarly: false, allowUnknown: false }
|
|
57
|
+
);
|
|
58
|
+
if (warrning) {
|
|
59
|
+
console.log("Parameter Validation warrnings for getTicket");
|
|
60
|
+
console.log(warrning);
|
|
61
|
+
}
|
|
62
|
+
|
|
52
63
|
const query_params = {};
|
|
53
64
|
|
|
54
65
|
const xHeaders = {};
|
|
@@ -82,6 +93,17 @@ class Lead {
|
|
|
82
93
|
if (error) {
|
|
83
94
|
return Promise.reject(new FDKClientValidationError(error));
|
|
84
95
|
}
|
|
96
|
+
|
|
97
|
+
// Showing warrnings if extra unknown parameters are found
|
|
98
|
+
const { error: warrning } = LeadValidator.createHistory().validate(
|
|
99
|
+
{ id, body },
|
|
100
|
+
{ abortEarly: false, allowUnknown: false }
|
|
101
|
+
);
|
|
102
|
+
if (warrning) {
|
|
103
|
+
console.log("Parameter Validation warrnings for createHistory");
|
|
104
|
+
console.log(warrning);
|
|
105
|
+
}
|
|
106
|
+
|
|
85
107
|
const query_params = {};
|
|
86
108
|
|
|
87
109
|
const xHeaders = {};
|
|
@@ -114,6 +136,17 @@ class Lead {
|
|
|
114
136
|
if (error) {
|
|
115
137
|
return Promise.reject(new FDKClientValidationError(error));
|
|
116
138
|
}
|
|
139
|
+
|
|
140
|
+
// Showing warrnings if extra unknown parameters are found
|
|
141
|
+
const { error: warrning } = LeadValidator.createTicket().validate(
|
|
142
|
+
{ body },
|
|
143
|
+
{ abortEarly: false, allowUnknown: false }
|
|
144
|
+
);
|
|
145
|
+
if (warrning) {
|
|
146
|
+
console.log("Parameter Validation warrnings for createTicket");
|
|
147
|
+
console.log(warrning);
|
|
148
|
+
}
|
|
149
|
+
|
|
117
150
|
const query_params = {};
|
|
118
151
|
|
|
119
152
|
const xHeaders = {};
|
|
@@ -146,6 +179,17 @@ class Lead {
|
|
|
146
179
|
if (error) {
|
|
147
180
|
return Promise.reject(new FDKClientValidationError(error));
|
|
148
181
|
}
|
|
182
|
+
|
|
183
|
+
// Showing warrnings if extra unknown parameters are found
|
|
184
|
+
const { error: warrning } = LeadValidator.getCustomForm().validate(
|
|
185
|
+
{ slug },
|
|
186
|
+
{ abortEarly: false, allowUnknown: false }
|
|
187
|
+
);
|
|
188
|
+
if (warrning) {
|
|
189
|
+
console.log("Parameter Validation warrnings for getCustomForm");
|
|
190
|
+
console.log(warrning);
|
|
191
|
+
}
|
|
192
|
+
|
|
149
193
|
const query_params = {};
|
|
150
194
|
|
|
151
195
|
const xHeaders = {};
|
|
@@ -179,6 +223,17 @@ class Lead {
|
|
|
179
223
|
if (error) {
|
|
180
224
|
return Promise.reject(new FDKClientValidationError(error));
|
|
181
225
|
}
|
|
226
|
+
|
|
227
|
+
// Showing warrnings if extra unknown parameters are found
|
|
228
|
+
const { error: warrning } = LeadValidator.submitCustomForm().validate(
|
|
229
|
+
{ slug, body },
|
|
230
|
+
{ abortEarly: false, allowUnknown: false }
|
|
231
|
+
);
|
|
232
|
+
if (warrning) {
|
|
233
|
+
console.log("Parameter Validation warrnings for submitCustomForm");
|
|
234
|
+
console.log(warrning);
|
|
235
|
+
}
|
|
236
|
+
|
|
182
237
|
const query_params = {};
|
|
183
238
|
|
|
184
239
|
const xHeaders = {};
|
|
@@ -211,6 +266,21 @@ class Lead {
|
|
|
211
266
|
if (error) {
|
|
212
267
|
return Promise.reject(new FDKClientValidationError(error));
|
|
213
268
|
}
|
|
269
|
+
|
|
270
|
+
// Showing warrnings if extra unknown parameters are found
|
|
271
|
+
const {
|
|
272
|
+
error: warrning,
|
|
273
|
+
} = LeadValidator.getParticipantsInsideVideoRoom().validate(
|
|
274
|
+
{ uniqueName },
|
|
275
|
+
{ abortEarly: false, allowUnknown: false }
|
|
276
|
+
);
|
|
277
|
+
if (warrning) {
|
|
278
|
+
console.log(
|
|
279
|
+
"Parameter Validation warrnings for getParticipantsInsideVideoRoom"
|
|
280
|
+
);
|
|
281
|
+
console.log(warrning);
|
|
282
|
+
}
|
|
283
|
+
|
|
214
284
|
const query_params = {};
|
|
215
285
|
|
|
216
286
|
const xHeaders = {};
|
|
@@ -243,6 +313,17 @@ class Lead {
|
|
|
243
313
|
if (error) {
|
|
244
314
|
return Promise.reject(new FDKClientValidationError(error));
|
|
245
315
|
}
|
|
316
|
+
|
|
317
|
+
// Showing warrnings if extra unknown parameters are found
|
|
318
|
+
const { error: warrning } = LeadValidator.getTokenForVideoRoom().validate(
|
|
319
|
+
{ uniqueName },
|
|
320
|
+
{ abortEarly: false, allowUnknown: false }
|
|
321
|
+
);
|
|
322
|
+
if (warrning) {
|
|
323
|
+
console.log("Parameter Validation warrnings for getTokenForVideoRoom");
|
|
324
|
+
console.log(warrning);
|
|
325
|
+
}
|
|
326
|
+
|
|
246
327
|
const query_params = {};
|
|
247
328
|
|
|
248
329
|
const xHeaders = {};
|
|
@@ -46,6 +46,17 @@ class Logistic {
|
|
|
46
46
|
if (error) {
|
|
47
47
|
return Promise.reject(new FDKClientValidationError(error));
|
|
48
48
|
}
|
|
49
|
+
|
|
50
|
+
// Showing warrnings if extra unknown parameters are found
|
|
51
|
+
const { error: warrning } = LogisticValidator.getPincodeCity().validate(
|
|
52
|
+
{ pincode, countryCode },
|
|
53
|
+
{ abortEarly: false, allowUnknown: false }
|
|
54
|
+
);
|
|
55
|
+
if (warrning) {
|
|
56
|
+
console.log("Parameter Validation warrnings for getPincodeCity");
|
|
57
|
+
console.log(warrning);
|
|
58
|
+
}
|
|
59
|
+
|
|
49
60
|
const query_params = {};
|
|
50
61
|
query_params["country_code"] = countryCode;
|
|
51
62
|
|
|
@@ -79,6 +90,17 @@ class Logistic {
|
|
|
79
90
|
if (error) {
|
|
80
91
|
return Promise.reject(new FDKClientValidationError(error));
|
|
81
92
|
}
|
|
93
|
+
|
|
94
|
+
// Showing warrnings if extra unknown parameters are found
|
|
95
|
+
const { error: warrning } = LogisticValidator.getTatProduct().validate(
|
|
96
|
+
{ body },
|
|
97
|
+
{ abortEarly: false, allowUnknown: false }
|
|
98
|
+
);
|
|
99
|
+
if (warrning) {
|
|
100
|
+
console.log("Parameter Validation warrnings for getTatProduct");
|
|
101
|
+
console.log(warrning);
|
|
102
|
+
}
|
|
103
|
+
|
|
82
104
|
const query_params = {};
|
|
83
105
|
|
|
84
106
|
const xHeaders = {};
|
|
@@ -110,6 +132,17 @@ class Logistic {
|
|
|
110
132
|
if (error) {
|
|
111
133
|
return Promise.reject(new FDKClientValidationError(error));
|
|
112
134
|
}
|
|
135
|
+
|
|
136
|
+
// Showing warrnings if extra unknown parameters are found
|
|
137
|
+
const { error: warrning } = LogisticValidator.getAllCountries().validate(
|
|
138
|
+
{},
|
|
139
|
+
{ abortEarly: false, allowUnknown: false }
|
|
140
|
+
);
|
|
141
|
+
if (warrning) {
|
|
142
|
+
console.log("Parameter Validation warrnings for getAllCountries");
|
|
143
|
+
console.log(warrning);
|
|
144
|
+
}
|
|
145
|
+
|
|
113
146
|
const query_params = {};
|
|
114
147
|
|
|
115
148
|
const xHeaders = {};
|
|
@@ -142,6 +175,17 @@ class Logistic {
|
|
|
142
175
|
if (error) {
|
|
143
176
|
return Promise.reject(new FDKClientValidationError(error));
|
|
144
177
|
}
|
|
178
|
+
|
|
179
|
+
// Showing warrnings if extra unknown parameters are found
|
|
180
|
+
const { error: warrning } = LogisticValidator.getPincodeZones().validate(
|
|
181
|
+
{ body },
|
|
182
|
+
{ abortEarly: false, allowUnknown: false }
|
|
183
|
+
);
|
|
184
|
+
if (warrning) {
|
|
185
|
+
console.log("Parameter Validation warrnings for getPincodeZones");
|
|
186
|
+
console.log(warrning);
|
|
187
|
+
}
|
|
188
|
+
|
|
145
189
|
const query_params = {};
|
|
146
190
|
|
|
147
191
|
const xHeaders = {};
|