@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
|
@@ -30,6 +30,21 @@ class Content {
|
|
|
30
30
|
return Promise.reject(new FDKClientValidationError(error));
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
// Showing warrnings if extra unknown parameters are found
|
|
34
|
+
const {
|
|
35
|
+
error: warrning,
|
|
36
|
+
} = ContentValidator.getAnnouncementsList().validate(
|
|
37
|
+
{
|
|
38
|
+
pageNo,
|
|
39
|
+
pageSize,
|
|
40
|
+
},
|
|
41
|
+
{ abortEarly: false, allowUnknown: false }
|
|
42
|
+
);
|
|
43
|
+
if (warrning) {
|
|
44
|
+
console.log("Parameter Validation warrnings for getAnnouncementsList");
|
|
45
|
+
console.log(warrning);
|
|
46
|
+
}
|
|
47
|
+
|
|
33
48
|
const query_params = {};
|
|
34
49
|
query_params["page_no"] = pageNo;
|
|
35
50
|
query_params["page_size"] = pageSize;
|
|
@@ -93,6 +108,18 @@ class Content {
|
|
|
93
108
|
return Promise.reject(new FDKClientValidationError(error));
|
|
94
109
|
}
|
|
95
110
|
|
|
111
|
+
// Showing warrnings if extra unknown parameters are found
|
|
112
|
+
const { error: warrning } = ContentValidator.createAnnouncement().validate(
|
|
113
|
+
{
|
|
114
|
+
body,
|
|
115
|
+
},
|
|
116
|
+
{ abortEarly: false, allowUnknown: false }
|
|
117
|
+
);
|
|
118
|
+
if (warrning) {
|
|
119
|
+
console.log("Parameter Validation warrnings for createAnnouncement");
|
|
120
|
+
console.log(warrning);
|
|
121
|
+
}
|
|
122
|
+
|
|
96
123
|
const query_params = {};
|
|
97
124
|
|
|
98
125
|
return PlatformAPIClient.execute(
|
|
@@ -121,6 +148,18 @@ class Content {
|
|
|
121
148
|
return Promise.reject(new FDKClientValidationError(error));
|
|
122
149
|
}
|
|
123
150
|
|
|
151
|
+
// Showing warrnings if extra unknown parameters are found
|
|
152
|
+
const { error: warrning } = ContentValidator.getAnnouncementById().validate(
|
|
153
|
+
{
|
|
154
|
+
announcementId,
|
|
155
|
+
},
|
|
156
|
+
{ abortEarly: false, allowUnknown: false }
|
|
157
|
+
);
|
|
158
|
+
if (warrning) {
|
|
159
|
+
console.log("Parameter Validation warrnings for getAnnouncementById");
|
|
160
|
+
console.log(warrning);
|
|
161
|
+
}
|
|
162
|
+
|
|
124
163
|
const query_params = {};
|
|
125
164
|
|
|
126
165
|
return PlatformAPIClient.execute(
|
|
@@ -151,6 +190,19 @@ class Content {
|
|
|
151
190
|
return Promise.reject(new FDKClientValidationError(error));
|
|
152
191
|
}
|
|
153
192
|
|
|
193
|
+
// Showing warrnings if extra unknown parameters are found
|
|
194
|
+
const { error: warrning } = ContentValidator.updateAnnouncement().validate(
|
|
195
|
+
{
|
|
196
|
+
announcementId,
|
|
197
|
+
body,
|
|
198
|
+
},
|
|
199
|
+
{ abortEarly: false, allowUnknown: false }
|
|
200
|
+
);
|
|
201
|
+
if (warrning) {
|
|
202
|
+
console.log("Parameter Validation warrnings for updateAnnouncement");
|
|
203
|
+
console.log(warrning);
|
|
204
|
+
}
|
|
205
|
+
|
|
154
206
|
const query_params = {};
|
|
155
207
|
|
|
156
208
|
return PlatformAPIClient.execute(
|
|
@@ -181,6 +233,23 @@ class Content {
|
|
|
181
233
|
return Promise.reject(new FDKClientValidationError(error));
|
|
182
234
|
}
|
|
183
235
|
|
|
236
|
+
// Showing warrnings if extra unknown parameters are found
|
|
237
|
+
const {
|
|
238
|
+
error: warrning,
|
|
239
|
+
} = ContentValidator.updateAnnouncementSchedule().validate(
|
|
240
|
+
{
|
|
241
|
+
announcementId,
|
|
242
|
+
body,
|
|
243
|
+
},
|
|
244
|
+
{ abortEarly: false, allowUnknown: false }
|
|
245
|
+
);
|
|
246
|
+
if (warrning) {
|
|
247
|
+
console.log(
|
|
248
|
+
"Parameter Validation warrnings for updateAnnouncementSchedule"
|
|
249
|
+
);
|
|
250
|
+
console.log(warrning);
|
|
251
|
+
}
|
|
252
|
+
|
|
184
253
|
const query_params = {};
|
|
185
254
|
|
|
186
255
|
return PlatformAPIClient.execute(
|
|
@@ -209,6 +278,18 @@ class Content {
|
|
|
209
278
|
return Promise.reject(new FDKClientValidationError(error));
|
|
210
279
|
}
|
|
211
280
|
|
|
281
|
+
// Showing warrnings if extra unknown parameters are found
|
|
282
|
+
const { error: warrning } = ContentValidator.deleteAnnouncement().validate(
|
|
283
|
+
{
|
|
284
|
+
announcementId,
|
|
285
|
+
},
|
|
286
|
+
{ abortEarly: false, allowUnknown: false }
|
|
287
|
+
);
|
|
288
|
+
if (warrning) {
|
|
289
|
+
console.log("Parameter Validation warrnings for deleteAnnouncement");
|
|
290
|
+
console.log(warrning);
|
|
291
|
+
}
|
|
292
|
+
|
|
212
293
|
const query_params = {};
|
|
213
294
|
|
|
214
295
|
return PlatformAPIClient.execute(
|
|
@@ -237,6 +318,18 @@ class Content {
|
|
|
237
318
|
return Promise.reject(new FDKClientValidationError(error));
|
|
238
319
|
}
|
|
239
320
|
|
|
321
|
+
// Showing warrnings if extra unknown parameters are found
|
|
322
|
+
const { error: warrning } = ContentValidator.createBlog().validate(
|
|
323
|
+
{
|
|
324
|
+
body,
|
|
325
|
+
},
|
|
326
|
+
{ abortEarly: false, allowUnknown: false }
|
|
327
|
+
);
|
|
328
|
+
if (warrning) {
|
|
329
|
+
console.log("Parameter Validation warrnings for createBlog");
|
|
330
|
+
console.log(warrning);
|
|
331
|
+
}
|
|
332
|
+
|
|
240
333
|
const query_params = {};
|
|
241
334
|
|
|
242
335
|
return PlatformAPIClient.execute(
|
|
@@ -269,6 +362,19 @@ class Content {
|
|
|
269
362
|
return Promise.reject(new FDKClientValidationError(error));
|
|
270
363
|
}
|
|
271
364
|
|
|
365
|
+
// Showing warrnings if extra unknown parameters are found
|
|
366
|
+
const { error: warrning } = ContentValidator.getBlogs().validate(
|
|
367
|
+
{
|
|
368
|
+
pageNo,
|
|
369
|
+
pageSize,
|
|
370
|
+
},
|
|
371
|
+
{ abortEarly: false, allowUnknown: false }
|
|
372
|
+
);
|
|
373
|
+
if (warrning) {
|
|
374
|
+
console.log("Parameter Validation warrnings for getBlogs");
|
|
375
|
+
console.log(warrning);
|
|
376
|
+
}
|
|
377
|
+
|
|
272
378
|
const query_params = {};
|
|
273
379
|
query_params["page_no"] = pageNo;
|
|
274
380
|
query_params["page_size"] = pageSize;
|
|
@@ -334,6 +440,19 @@ class Content {
|
|
|
334
440
|
return Promise.reject(new FDKClientValidationError(error));
|
|
335
441
|
}
|
|
336
442
|
|
|
443
|
+
// Showing warrnings if extra unknown parameters are found
|
|
444
|
+
const { error: warrning } = ContentValidator.updateBlog().validate(
|
|
445
|
+
{
|
|
446
|
+
id,
|
|
447
|
+
body,
|
|
448
|
+
},
|
|
449
|
+
{ abortEarly: false, allowUnknown: false }
|
|
450
|
+
);
|
|
451
|
+
if (warrning) {
|
|
452
|
+
console.log("Parameter Validation warrnings for updateBlog");
|
|
453
|
+
console.log(warrning);
|
|
454
|
+
}
|
|
455
|
+
|
|
337
456
|
const query_params = {};
|
|
338
457
|
|
|
339
458
|
return PlatformAPIClient.execute(
|
|
@@ -362,6 +481,18 @@ class Content {
|
|
|
362
481
|
return Promise.reject(new FDKClientValidationError(error));
|
|
363
482
|
}
|
|
364
483
|
|
|
484
|
+
// Showing warrnings if extra unknown parameters are found
|
|
485
|
+
const { error: warrning } = ContentValidator.deleteBlog().validate(
|
|
486
|
+
{
|
|
487
|
+
id,
|
|
488
|
+
},
|
|
489
|
+
{ abortEarly: false, allowUnknown: false }
|
|
490
|
+
);
|
|
491
|
+
if (warrning) {
|
|
492
|
+
console.log("Parameter Validation warrnings for deleteBlog");
|
|
493
|
+
console.log(warrning);
|
|
494
|
+
}
|
|
495
|
+
|
|
365
496
|
const query_params = {};
|
|
366
497
|
|
|
367
498
|
return PlatformAPIClient.execute(
|
|
@@ -391,6 +522,18 @@ class Content {
|
|
|
391
522
|
return Promise.reject(new FDKClientValidationError(error));
|
|
392
523
|
}
|
|
393
524
|
|
|
525
|
+
// Showing warrnings if extra unknown parameters are found
|
|
526
|
+
const { error: warrning } = ContentValidator.getComponentById().validate(
|
|
527
|
+
{
|
|
528
|
+
slug,
|
|
529
|
+
},
|
|
530
|
+
{ abortEarly: false, allowUnknown: false }
|
|
531
|
+
);
|
|
532
|
+
if (warrning) {
|
|
533
|
+
console.log("Parameter Validation warrnings for getComponentById");
|
|
534
|
+
console.log(warrning);
|
|
535
|
+
}
|
|
536
|
+
|
|
394
537
|
const query_params = {};
|
|
395
538
|
|
|
396
539
|
return PlatformAPIClient.execute(
|
|
@@ -419,6 +562,18 @@ class Content {
|
|
|
419
562
|
return Promise.reject(new FDKClientValidationError(error));
|
|
420
563
|
}
|
|
421
564
|
|
|
565
|
+
// Showing warrnings if extra unknown parameters are found
|
|
566
|
+
const { error: warrning } = ContentValidator.addDataLoader().validate(
|
|
567
|
+
{
|
|
568
|
+
body,
|
|
569
|
+
},
|
|
570
|
+
{ abortEarly: false, allowUnknown: false }
|
|
571
|
+
);
|
|
572
|
+
if (warrning) {
|
|
573
|
+
console.log("Parameter Validation warrnings for addDataLoader");
|
|
574
|
+
console.log(warrning);
|
|
575
|
+
}
|
|
576
|
+
|
|
422
577
|
const query_params = {};
|
|
423
578
|
|
|
424
579
|
return PlatformAPIClient.execute(
|
|
@@ -444,6 +599,16 @@ class Content {
|
|
|
444
599
|
return Promise.reject(new FDKClientValidationError(error));
|
|
445
600
|
}
|
|
446
601
|
|
|
602
|
+
// Showing warrnings if extra unknown parameters are found
|
|
603
|
+
const { error: warrning } = ContentValidator.getDataLoaders().validate(
|
|
604
|
+
{},
|
|
605
|
+
{ abortEarly: false, allowUnknown: false }
|
|
606
|
+
);
|
|
607
|
+
if (warrning) {
|
|
608
|
+
console.log("Parameter Validation warrnings for getDataLoaders");
|
|
609
|
+
console.log(warrning);
|
|
610
|
+
}
|
|
611
|
+
|
|
447
612
|
const query_params = {};
|
|
448
613
|
|
|
449
614
|
return PlatformAPIClient.execute(
|
|
@@ -472,6 +637,18 @@ class Content {
|
|
|
472
637
|
return Promise.reject(new FDKClientValidationError(error));
|
|
473
638
|
}
|
|
474
639
|
|
|
640
|
+
// Showing warrnings if extra unknown parameters are found
|
|
641
|
+
const { error: warrning } = ContentValidator.deleteDataLoader().validate(
|
|
642
|
+
{
|
|
643
|
+
dataLoaderId,
|
|
644
|
+
},
|
|
645
|
+
{ abortEarly: false, allowUnknown: false }
|
|
646
|
+
);
|
|
647
|
+
if (warrning) {
|
|
648
|
+
console.log("Parameter Validation warrnings for deleteDataLoader");
|
|
649
|
+
console.log(warrning);
|
|
650
|
+
}
|
|
651
|
+
|
|
475
652
|
const query_params = {};
|
|
476
653
|
|
|
477
654
|
return PlatformAPIClient.execute(
|
|
@@ -502,6 +679,19 @@ class Content {
|
|
|
502
679
|
return Promise.reject(new FDKClientValidationError(error));
|
|
503
680
|
}
|
|
504
681
|
|
|
682
|
+
// Showing warrnings if extra unknown parameters are found
|
|
683
|
+
const { error: warrning } = ContentValidator.editDataLoader().validate(
|
|
684
|
+
{
|
|
685
|
+
dataLoaderId,
|
|
686
|
+
body,
|
|
687
|
+
},
|
|
688
|
+
{ abortEarly: false, allowUnknown: false }
|
|
689
|
+
);
|
|
690
|
+
if (warrning) {
|
|
691
|
+
console.log("Parameter Validation warrnings for editDataLoader");
|
|
692
|
+
console.log(warrning);
|
|
693
|
+
}
|
|
694
|
+
|
|
505
695
|
const query_params = {};
|
|
506
696
|
|
|
507
697
|
return PlatformAPIClient.execute(
|
|
@@ -530,6 +720,18 @@ class Content {
|
|
|
530
720
|
return Promise.reject(new FDKClientValidationError(error));
|
|
531
721
|
}
|
|
532
722
|
|
|
723
|
+
// Showing warrnings if extra unknown parameters are found
|
|
724
|
+
const { error: warrning } = ContentValidator.selectDataLoader().validate(
|
|
725
|
+
{
|
|
726
|
+
dataLoaderId,
|
|
727
|
+
},
|
|
728
|
+
{ abortEarly: false, allowUnknown: false }
|
|
729
|
+
);
|
|
730
|
+
if (warrning) {
|
|
731
|
+
console.log("Parameter Validation warrnings for selectDataLoader");
|
|
732
|
+
console.log(warrning);
|
|
733
|
+
}
|
|
734
|
+
|
|
533
735
|
const query_params = {};
|
|
534
736
|
|
|
535
737
|
return PlatformAPIClient.execute(
|
|
@@ -560,6 +762,19 @@ class Content {
|
|
|
560
762
|
return Promise.reject(new FDKClientValidationError(error));
|
|
561
763
|
}
|
|
562
764
|
|
|
765
|
+
// Showing warrnings if extra unknown parameters are found
|
|
766
|
+
const { error: warrning } = ContentValidator.resetDataLoader().validate(
|
|
767
|
+
{
|
|
768
|
+
service,
|
|
769
|
+
operationId,
|
|
770
|
+
},
|
|
771
|
+
{ abortEarly: false, allowUnknown: false }
|
|
772
|
+
);
|
|
773
|
+
if (warrning) {
|
|
774
|
+
console.log("Parameter Validation warrnings for resetDataLoader");
|
|
775
|
+
console.log(warrning);
|
|
776
|
+
}
|
|
777
|
+
|
|
563
778
|
const query_params = {};
|
|
564
779
|
|
|
565
780
|
return PlatformAPIClient.execute(
|
|
@@ -585,6 +800,16 @@ class Content {
|
|
|
585
800
|
return Promise.reject(new FDKClientValidationError(error));
|
|
586
801
|
}
|
|
587
802
|
|
|
803
|
+
// Showing warrnings if extra unknown parameters are found
|
|
804
|
+
const { error: warrning } = ContentValidator.getFaqCategories().validate(
|
|
805
|
+
{},
|
|
806
|
+
{ abortEarly: false, allowUnknown: false }
|
|
807
|
+
);
|
|
808
|
+
if (warrning) {
|
|
809
|
+
console.log("Parameter Validation warrnings for getFaqCategories");
|
|
810
|
+
console.log(warrning);
|
|
811
|
+
}
|
|
812
|
+
|
|
588
813
|
const query_params = {};
|
|
589
814
|
|
|
590
815
|
return PlatformAPIClient.execute(
|
|
@@ -616,6 +841,22 @@ class Content {
|
|
|
616
841
|
return Promise.reject(new FDKClientValidationError(error));
|
|
617
842
|
}
|
|
618
843
|
|
|
844
|
+
// Showing warrnings if extra unknown parameters are found
|
|
845
|
+
const {
|
|
846
|
+
error: warrning,
|
|
847
|
+
} = ContentValidator.getFaqCategoryBySlugOrId().validate(
|
|
848
|
+
{
|
|
849
|
+
idOrSlug,
|
|
850
|
+
},
|
|
851
|
+
{ abortEarly: false, allowUnknown: false }
|
|
852
|
+
);
|
|
853
|
+
if (warrning) {
|
|
854
|
+
console.log(
|
|
855
|
+
"Parameter Validation warrnings for getFaqCategoryBySlugOrId"
|
|
856
|
+
);
|
|
857
|
+
console.log(warrning);
|
|
858
|
+
}
|
|
859
|
+
|
|
619
860
|
const query_params = {};
|
|
620
861
|
|
|
621
862
|
return PlatformAPIClient.execute(
|
|
@@ -644,6 +885,18 @@ class Content {
|
|
|
644
885
|
return Promise.reject(new FDKClientValidationError(error));
|
|
645
886
|
}
|
|
646
887
|
|
|
888
|
+
// Showing warrnings if extra unknown parameters are found
|
|
889
|
+
const { error: warrning } = ContentValidator.createFaqCategory().validate(
|
|
890
|
+
{
|
|
891
|
+
body,
|
|
892
|
+
},
|
|
893
|
+
{ abortEarly: false, allowUnknown: false }
|
|
894
|
+
);
|
|
895
|
+
if (warrning) {
|
|
896
|
+
console.log("Parameter Validation warrnings for createFaqCategory");
|
|
897
|
+
console.log(warrning);
|
|
898
|
+
}
|
|
899
|
+
|
|
647
900
|
const query_params = {};
|
|
648
901
|
|
|
649
902
|
return PlatformAPIClient.execute(
|
|
@@ -674,6 +927,19 @@ class Content {
|
|
|
674
927
|
return Promise.reject(new FDKClientValidationError(error));
|
|
675
928
|
}
|
|
676
929
|
|
|
930
|
+
// Showing warrnings if extra unknown parameters are found
|
|
931
|
+
const { error: warrning } = ContentValidator.updateFaqCategory().validate(
|
|
932
|
+
{
|
|
933
|
+
id,
|
|
934
|
+
body,
|
|
935
|
+
},
|
|
936
|
+
{ abortEarly: false, allowUnknown: false }
|
|
937
|
+
);
|
|
938
|
+
if (warrning) {
|
|
939
|
+
console.log("Parameter Validation warrnings for updateFaqCategory");
|
|
940
|
+
console.log(warrning);
|
|
941
|
+
}
|
|
942
|
+
|
|
677
943
|
const query_params = {};
|
|
678
944
|
|
|
679
945
|
return PlatformAPIClient.execute(
|
|
@@ -702,6 +968,18 @@ class Content {
|
|
|
702
968
|
return Promise.reject(new FDKClientValidationError(error));
|
|
703
969
|
}
|
|
704
970
|
|
|
971
|
+
// Showing warrnings if extra unknown parameters are found
|
|
972
|
+
const { error: warrning } = ContentValidator.deleteFaqCategory().validate(
|
|
973
|
+
{
|
|
974
|
+
id,
|
|
975
|
+
},
|
|
976
|
+
{ abortEarly: false, allowUnknown: false }
|
|
977
|
+
);
|
|
978
|
+
if (warrning) {
|
|
979
|
+
console.log("Parameter Validation warrnings for deleteFaqCategory");
|
|
980
|
+
console.log(warrning);
|
|
981
|
+
}
|
|
982
|
+
|
|
705
983
|
const query_params = {};
|
|
706
984
|
|
|
707
985
|
return PlatformAPIClient.execute(
|
|
@@ -733,6 +1011,22 @@ class Content {
|
|
|
733
1011
|
return Promise.reject(new FDKClientValidationError(error));
|
|
734
1012
|
}
|
|
735
1013
|
|
|
1014
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1015
|
+
const {
|
|
1016
|
+
error: warrning,
|
|
1017
|
+
} = ContentValidator.getFaqsByCategoryIdOrSlug().validate(
|
|
1018
|
+
{
|
|
1019
|
+
idOrSlug,
|
|
1020
|
+
},
|
|
1021
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1022
|
+
);
|
|
1023
|
+
if (warrning) {
|
|
1024
|
+
console.log(
|
|
1025
|
+
"Parameter Validation warrnings for getFaqsByCategoryIdOrSlug"
|
|
1026
|
+
);
|
|
1027
|
+
console.log(warrning);
|
|
1028
|
+
}
|
|
1029
|
+
|
|
736
1030
|
const query_params = {};
|
|
737
1031
|
|
|
738
1032
|
return PlatformAPIClient.execute(
|
|
@@ -763,6 +1057,19 @@ class Content {
|
|
|
763
1057
|
return Promise.reject(new FDKClientValidationError(error));
|
|
764
1058
|
}
|
|
765
1059
|
|
|
1060
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1061
|
+
const { error: warrning } = ContentValidator.addFaq().validate(
|
|
1062
|
+
{
|
|
1063
|
+
categoryId,
|
|
1064
|
+
body,
|
|
1065
|
+
},
|
|
1066
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1067
|
+
);
|
|
1068
|
+
if (warrning) {
|
|
1069
|
+
console.log("Parameter Validation warrnings for addFaq");
|
|
1070
|
+
console.log(warrning);
|
|
1071
|
+
}
|
|
1072
|
+
|
|
766
1073
|
const query_params = {};
|
|
767
1074
|
|
|
768
1075
|
return PlatformAPIClient.execute(
|
|
@@ -795,6 +1102,20 @@ class Content {
|
|
|
795
1102
|
return Promise.reject(new FDKClientValidationError(error));
|
|
796
1103
|
}
|
|
797
1104
|
|
|
1105
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1106
|
+
const { error: warrning } = ContentValidator.updateFaq().validate(
|
|
1107
|
+
{
|
|
1108
|
+
categoryId,
|
|
1109
|
+
faqId,
|
|
1110
|
+
body,
|
|
1111
|
+
},
|
|
1112
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1113
|
+
);
|
|
1114
|
+
if (warrning) {
|
|
1115
|
+
console.log("Parameter Validation warrnings for updateFaq");
|
|
1116
|
+
console.log(warrning);
|
|
1117
|
+
}
|
|
1118
|
+
|
|
798
1119
|
const query_params = {};
|
|
799
1120
|
|
|
800
1121
|
return PlatformAPIClient.execute(
|
|
@@ -825,6 +1146,19 @@ class Content {
|
|
|
825
1146
|
return Promise.reject(new FDKClientValidationError(error));
|
|
826
1147
|
}
|
|
827
1148
|
|
|
1149
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1150
|
+
const { error: warrning } = ContentValidator.deleteFaq().validate(
|
|
1151
|
+
{
|
|
1152
|
+
categoryId,
|
|
1153
|
+
faqId,
|
|
1154
|
+
},
|
|
1155
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1156
|
+
);
|
|
1157
|
+
if (warrning) {
|
|
1158
|
+
console.log("Parameter Validation warrnings for deleteFaq");
|
|
1159
|
+
console.log(warrning);
|
|
1160
|
+
}
|
|
1161
|
+
|
|
828
1162
|
const query_params = {};
|
|
829
1163
|
|
|
830
1164
|
return PlatformAPIClient.execute(
|
|
@@ -856,6 +1190,18 @@ class Content {
|
|
|
856
1190
|
return Promise.reject(new FDKClientValidationError(error));
|
|
857
1191
|
}
|
|
858
1192
|
|
|
1193
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1194
|
+
const { error: warrning } = ContentValidator.getFaqByIdOrSlug().validate(
|
|
1195
|
+
{
|
|
1196
|
+
idOrSlug,
|
|
1197
|
+
},
|
|
1198
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1199
|
+
);
|
|
1200
|
+
if (warrning) {
|
|
1201
|
+
console.log("Parameter Validation warrnings for getFaqByIdOrSlug");
|
|
1202
|
+
console.log(warrning);
|
|
1203
|
+
}
|
|
1204
|
+
|
|
859
1205
|
const query_params = {};
|
|
860
1206
|
|
|
861
1207
|
return PlatformAPIClient.execute(
|
|
@@ -888,6 +1234,19 @@ class Content {
|
|
|
888
1234
|
return Promise.reject(new FDKClientValidationError(error));
|
|
889
1235
|
}
|
|
890
1236
|
|
|
1237
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1238
|
+
const { error: warrning } = ContentValidator.getLandingPages().validate(
|
|
1239
|
+
{
|
|
1240
|
+
pageNo,
|
|
1241
|
+
pageSize,
|
|
1242
|
+
},
|
|
1243
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1244
|
+
);
|
|
1245
|
+
if (warrning) {
|
|
1246
|
+
console.log("Parameter Validation warrnings for getLandingPages");
|
|
1247
|
+
console.log(warrning);
|
|
1248
|
+
}
|
|
1249
|
+
|
|
891
1250
|
const query_params = {};
|
|
892
1251
|
query_params["page_no"] = pageNo;
|
|
893
1252
|
query_params["page_size"] = pageSize;
|
|
@@ -951,6 +1310,18 @@ class Content {
|
|
|
951
1310
|
return Promise.reject(new FDKClientValidationError(error));
|
|
952
1311
|
}
|
|
953
1312
|
|
|
1313
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1314
|
+
const { error: warrning } = ContentValidator.createLandingPage().validate(
|
|
1315
|
+
{
|
|
1316
|
+
body,
|
|
1317
|
+
},
|
|
1318
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1319
|
+
);
|
|
1320
|
+
if (warrning) {
|
|
1321
|
+
console.log("Parameter Validation warrnings for createLandingPage");
|
|
1322
|
+
console.log(warrning);
|
|
1323
|
+
}
|
|
1324
|
+
|
|
954
1325
|
const query_params = {};
|
|
955
1326
|
|
|
956
1327
|
return PlatformAPIClient.execute(
|
|
@@ -981,6 +1352,19 @@ class Content {
|
|
|
981
1352
|
return Promise.reject(new FDKClientValidationError(error));
|
|
982
1353
|
}
|
|
983
1354
|
|
|
1355
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1356
|
+
const { error: warrning } = ContentValidator.updateLandingPage().validate(
|
|
1357
|
+
{
|
|
1358
|
+
id,
|
|
1359
|
+
body,
|
|
1360
|
+
},
|
|
1361
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1362
|
+
);
|
|
1363
|
+
if (warrning) {
|
|
1364
|
+
console.log("Parameter Validation warrnings for updateLandingPage");
|
|
1365
|
+
console.log(warrning);
|
|
1366
|
+
}
|
|
1367
|
+
|
|
984
1368
|
const query_params = {};
|
|
985
1369
|
|
|
986
1370
|
return PlatformAPIClient.execute(
|
|
@@ -1009,6 +1393,18 @@ class Content {
|
|
|
1009
1393
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1010
1394
|
}
|
|
1011
1395
|
|
|
1396
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1397
|
+
const { error: warrning } = ContentValidator.deleteLandingPage().validate(
|
|
1398
|
+
{
|
|
1399
|
+
id,
|
|
1400
|
+
},
|
|
1401
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1402
|
+
);
|
|
1403
|
+
if (warrning) {
|
|
1404
|
+
console.log("Parameter Validation warrnings for deleteLandingPage");
|
|
1405
|
+
console.log(warrning);
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1012
1408
|
const query_params = {};
|
|
1013
1409
|
|
|
1014
1410
|
return PlatformAPIClient.execute(
|
|
@@ -1034,6 +1430,16 @@ class Content {
|
|
|
1034
1430
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1035
1431
|
}
|
|
1036
1432
|
|
|
1433
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1434
|
+
const { error: warrning } = ContentValidator.getLegalInformation().validate(
|
|
1435
|
+
{},
|
|
1436
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1437
|
+
);
|
|
1438
|
+
if (warrning) {
|
|
1439
|
+
console.log("Parameter Validation warrnings for getLegalInformation");
|
|
1440
|
+
console.log(warrning);
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1037
1443
|
const query_params = {};
|
|
1038
1444
|
|
|
1039
1445
|
return PlatformAPIClient.execute(
|
|
@@ -1062,6 +1468,20 @@ class Content {
|
|
|
1062
1468
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1063
1469
|
}
|
|
1064
1470
|
|
|
1471
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1472
|
+
const {
|
|
1473
|
+
error: warrning,
|
|
1474
|
+
} = ContentValidator.updateLegalInformation().validate(
|
|
1475
|
+
{
|
|
1476
|
+
body,
|
|
1477
|
+
},
|
|
1478
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1479
|
+
);
|
|
1480
|
+
if (warrning) {
|
|
1481
|
+
console.log("Parameter Validation warrnings for updateLegalInformation");
|
|
1482
|
+
console.log(warrning);
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1065
1485
|
const query_params = {};
|
|
1066
1486
|
|
|
1067
1487
|
return PlatformAPIClient.execute(
|
|
@@ -1097,6 +1517,20 @@ class Content {
|
|
|
1097
1517
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1098
1518
|
}
|
|
1099
1519
|
|
|
1520
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1521
|
+
const { error: warrning } = ContentValidator.getNavigations().validate(
|
|
1522
|
+
{
|
|
1523
|
+
devicePlatform,
|
|
1524
|
+
pageNo,
|
|
1525
|
+
pageSize,
|
|
1526
|
+
},
|
|
1527
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1528
|
+
);
|
|
1529
|
+
if (warrning) {
|
|
1530
|
+
console.log("Parameter Validation warrnings for getNavigations");
|
|
1531
|
+
console.log(warrning);
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1100
1534
|
const query_params = {};
|
|
1101
1535
|
query_params["device_platform"] = devicePlatform;
|
|
1102
1536
|
query_params["page_no"] = pageNo;
|
|
@@ -1169,6 +1603,18 @@ class Content {
|
|
|
1169
1603
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1170
1604
|
}
|
|
1171
1605
|
|
|
1606
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1607
|
+
const { error: warrning } = ContentValidator.createNavigation().validate(
|
|
1608
|
+
{
|
|
1609
|
+
body,
|
|
1610
|
+
},
|
|
1611
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1612
|
+
);
|
|
1613
|
+
if (warrning) {
|
|
1614
|
+
console.log("Parameter Validation warrnings for createNavigation");
|
|
1615
|
+
console.log(warrning);
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1172
1618
|
const query_params = {};
|
|
1173
1619
|
|
|
1174
1620
|
return PlatformAPIClient.execute(
|
|
@@ -1194,6 +1640,18 @@ class Content {
|
|
|
1194
1640
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1195
1641
|
}
|
|
1196
1642
|
|
|
1643
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1644
|
+
const {
|
|
1645
|
+
error: warrning,
|
|
1646
|
+
} = ContentValidator.getDefaultNavigations().validate(
|
|
1647
|
+
{},
|
|
1648
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1649
|
+
);
|
|
1650
|
+
if (warrning) {
|
|
1651
|
+
console.log("Parameter Validation warrnings for getDefaultNavigations");
|
|
1652
|
+
console.log(warrning);
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1197
1655
|
const query_params = {};
|
|
1198
1656
|
|
|
1199
1657
|
return PlatformAPIClient.execute(
|
|
@@ -1227,6 +1685,19 @@ class Content {
|
|
|
1227
1685
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1228
1686
|
}
|
|
1229
1687
|
|
|
1688
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1689
|
+
const { error: warrning } = ContentValidator.getNavigationBySlug().validate(
|
|
1690
|
+
{
|
|
1691
|
+
slug,
|
|
1692
|
+
devicePlatform,
|
|
1693
|
+
},
|
|
1694
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1695
|
+
);
|
|
1696
|
+
if (warrning) {
|
|
1697
|
+
console.log("Parameter Validation warrnings for getNavigationBySlug");
|
|
1698
|
+
console.log(warrning);
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1230
1701
|
const query_params = {};
|
|
1231
1702
|
query_params["device_platform"] = devicePlatform;
|
|
1232
1703
|
|
|
@@ -1258,6 +1729,19 @@ class Content {
|
|
|
1258
1729
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1259
1730
|
}
|
|
1260
1731
|
|
|
1732
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1733
|
+
const { error: warrning } = ContentValidator.updateNavigation().validate(
|
|
1734
|
+
{
|
|
1735
|
+
id,
|
|
1736
|
+
body,
|
|
1737
|
+
},
|
|
1738
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1739
|
+
);
|
|
1740
|
+
if (warrning) {
|
|
1741
|
+
console.log("Parameter Validation warrnings for updateNavigation");
|
|
1742
|
+
console.log(warrning);
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1261
1745
|
const query_params = {};
|
|
1262
1746
|
|
|
1263
1747
|
return PlatformAPIClient.execute(
|
|
@@ -1286,6 +1770,18 @@ class Content {
|
|
|
1286
1770
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1287
1771
|
}
|
|
1288
1772
|
|
|
1773
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1774
|
+
const { error: warrning } = ContentValidator.deleteNavigation().validate(
|
|
1775
|
+
{
|
|
1776
|
+
id,
|
|
1777
|
+
},
|
|
1778
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1779
|
+
);
|
|
1780
|
+
if (warrning) {
|
|
1781
|
+
console.log("Parameter Validation warrnings for deleteNavigation");
|
|
1782
|
+
console.log(warrning);
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1289
1785
|
const query_params = {};
|
|
1290
1786
|
|
|
1291
1787
|
return PlatformAPIClient.execute(
|
|
@@ -1311,6 +1807,16 @@ class Content {
|
|
|
1311
1807
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1312
1808
|
}
|
|
1313
1809
|
|
|
1810
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1811
|
+
const { error: warrning } = ContentValidator.getPageMeta().validate(
|
|
1812
|
+
{},
|
|
1813
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1814
|
+
);
|
|
1815
|
+
if (warrning) {
|
|
1816
|
+
console.log("Parameter Validation warrnings for getPageMeta");
|
|
1817
|
+
console.log(warrning);
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1314
1820
|
const query_params = {};
|
|
1315
1821
|
|
|
1316
1822
|
return PlatformAPIClient.execute(
|
|
@@ -1336,6 +1842,16 @@ class Content {
|
|
|
1336
1842
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1337
1843
|
}
|
|
1338
1844
|
|
|
1845
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1846
|
+
const { error: warrning } = ContentValidator.getPageSpec().validate(
|
|
1847
|
+
{},
|
|
1848
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1849
|
+
);
|
|
1850
|
+
if (warrning) {
|
|
1851
|
+
console.log("Parameter Validation warrnings for getPageSpec");
|
|
1852
|
+
console.log(warrning);
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1339
1855
|
const query_params = {};
|
|
1340
1856
|
|
|
1341
1857
|
return PlatformAPIClient.execute(
|
|
@@ -1364,6 +1880,18 @@ class Content {
|
|
|
1364
1880
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1365
1881
|
}
|
|
1366
1882
|
|
|
1883
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1884
|
+
const { error: warrning } = ContentValidator.createPagePreview().validate(
|
|
1885
|
+
{
|
|
1886
|
+
body,
|
|
1887
|
+
},
|
|
1888
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1889
|
+
);
|
|
1890
|
+
if (warrning) {
|
|
1891
|
+
console.log("Parameter Validation warrnings for createPagePreview");
|
|
1892
|
+
console.log(warrning);
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1367
1895
|
const query_params = {};
|
|
1368
1896
|
|
|
1369
1897
|
return PlatformAPIClient.execute(
|
|
@@ -1395,6 +1923,19 @@ class Content {
|
|
|
1395
1923
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1396
1924
|
}
|
|
1397
1925
|
|
|
1926
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1927
|
+
const { error: warrning } = ContentValidator.updatePagePreview().validate(
|
|
1928
|
+
{
|
|
1929
|
+
slug,
|
|
1930
|
+
body,
|
|
1931
|
+
},
|
|
1932
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1933
|
+
);
|
|
1934
|
+
if (warrning) {
|
|
1935
|
+
console.log("Parameter Validation warrnings for updatePagePreview");
|
|
1936
|
+
console.log(warrning);
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1398
1939
|
const query_params = {};
|
|
1399
1940
|
|
|
1400
1941
|
return PlatformAPIClient.execute(
|
|
@@ -1423,6 +1964,18 @@ class Content {
|
|
|
1423
1964
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1424
1965
|
}
|
|
1425
1966
|
|
|
1967
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1968
|
+
const { error: warrning } = ContentValidator.deletePage().validate(
|
|
1969
|
+
{
|
|
1970
|
+
id,
|
|
1971
|
+
},
|
|
1972
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1973
|
+
);
|
|
1974
|
+
if (warrning) {
|
|
1975
|
+
console.log("Parameter Validation warrnings for deletePage");
|
|
1976
|
+
console.log(warrning);
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1426
1979
|
const query_params = {};
|
|
1427
1980
|
|
|
1428
1981
|
return PlatformAPIClient.execute(
|
|
@@ -1451,6 +2004,20 @@ class Content {
|
|
|
1451
2004
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1452
2005
|
}
|
|
1453
2006
|
|
|
2007
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2008
|
+
const {
|
|
2009
|
+
error: warrning,
|
|
2010
|
+
} = ContentValidator.addPathRedirectionRules().validate(
|
|
2011
|
+
{
|
|
2012
|
+
body,
|
|
2013
|
+
},
|
|
2014
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2015
|
+
);
|
|
2016
|
+
if (warrning) {
|
|
2017
|
+
console.log("Parameter Validation warrnings for addPathRedirectionRules");
|
|
2018
|
+
console.log(warrning);
|
|
2019
|
+
}
|
|
2020
|
+
|
|
1454
2021
|
const query_params = {};
|
|
1455
2022
|
|
|
1456
2023
|
return PlatformAPIClient.execute(
|
|
@@ -1483,6 +2050,21 @@ class Content {
|
|
|
1483
2050
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1484
2051
|
}
|
|
1485
2052
|
|
|
2053
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2054
|
+
const {
|
|
2055
|
+
error: warrning,
|
|
2056
|
+
} = ContentValidator.getPathRedirectionRules().validate(
|
|
2057
|
+
{
|
|
2058
|
+
pageSize,
|
|
2059
|
+
pageNo,
|
|
2060
|
+
},
|
|
2061
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2062
|
+
);
|
|
2063
|
+
if (warrning) {
|
|
2064
|
+
console.log("Parameter Validation warrnings for getPathRedirectionRules");
|
|
2065
|
+
console.log(warrning);
|
|
2066
|
+
}
|
|
2067
|
+
|
|
1486
2068
|
const query_params = {};
|
|
1487
2069
|
query_params["page_size"] = pageSize;
|
|
1488
2070
|
query_params["page_no"] = pageNo;
|
|
@@ -1513,6 +2095,20 @@ class Content {
|
|
|
1513
2095
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1514
2096
|
}
|
|
1515
2097
|
|
|
2098
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2099
|
+
const {
|
|
2100
|
+
error: warrning,
|
|
2101
|
+
} = ContentValidator.getPathRedirectionRule().validate(
|
|
2102
|
+
{
|
|
2103
|
+
pathId,
|
|
2104
|
+
},
|
|
2105
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2106
|
+
);
|
|
2107
|
+
if (warrning) {
|
|
2108
|
+
console.log("Parameter Validation warrnings for getPathRedirectionRule");
|
|
2109
|
+
console.log(warrning);
|
|
2110
|
+
}
|
|
2111
|
+
|
|
1516
2112
|
const query_params = {};
|
|
1517
2113
|
|
|
1518
2114
|
return PlatformAPIClient.execute(
|
|
@@ -1543,6 +2139,23 @@ class Content {
|
|
|
1543
2139
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1544
2140
|
}
|
|
1545
2141
|
|
|
2142
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2143
|
+
const {
|
|
2144
|
+
error: warrning,
|
|
2145
|
+
} = ContentValidator.updatePathRedirectionRules().validate(
|
|
2146
|
+
{
|
|
2147
|
+
pathId,
|
|
2148
|
+
body,
|
|
2149
|
+
},
|
|
2150
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2151
|
+
);
|
|
2152
|
+
if (warrning) {
|
|
2153
|
+
console.log(
|
|
2154
|
+
"Parameter Validation warrnings for updatePathRedirectionRules"
|
|
2155
|
+
);
|
|
2156
|
+
console.log(warrning);
|
|
2157
|
+
}
|
|
2158
|
+
|
|
1546
2159
|
const query_params = {};
|
|
1547
2160
|
|
|
1548
2161
|
return PlatformAPIClient.execute(
|
|
@@ -1571,6 +2184,22 @@ class Content {
|
|
|
1571
2184
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1572
2185
|
}
|
|
1573
2186
|
|
|
2187
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2188
|
+
const {
|
|
2189
|
+
error: warrning,
|
|
2190
|
+
} = ContentValidator.deletePathRedirectionRules().validate(
|
|
2191
|
+
{
|
|
2192
|
+
pathId,
|
|
2193
|
+
},
|
|
2194
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2195
|
+
);
|
|
2196
|
+
if (warrning) {
|
|
2197
|
+
console.log(
|
|
2198
|
+
"Parameter Validation warrnings for deletePathRedirectionRules"
|
|
2199
|
+
);
|
|
2200
|
+
console.log(warrning);
|
|
2201
|
+
}
|
|
2202
|
+
|
|
1574
2203
|
const query_params = {};
|
|
1575
2204
|
|
|
1576
2205
|
return PlatformAPIClient.execute(
|
|
@@ -1596,6 +2225,16 @@ class Content {
|
|
|
1596
2225
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1597
2226
|
}
|
|
1598
2227
|
|
|
2228
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2229
|
+
const { error: warrning } = ContentValidator.getSEOConfiguration().validate(
|
|
2230
|
+
{},
|
|
2231
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2232
|
+
);
|
|
2233
|
+
if (warrning) {
|
|
2234
|
+
console.log("Parameter Validation warrnings for getSEOConfiguration");
|
|
2235
|
+
console.log(warrning);
|
|
2236
|
+
}
|
|
2237
|
+
|
|
1599
2238
|
const query_params = {};
|
|
1600
2239
|
|
|
1601
2240
|
return PlatformAPIClient.execute(
|
|
@@ -1624,6 +2263,20 @@ class Content {
|
|
|
1624
2263
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1625
2264
|
}
|
|
1626
2265
|
|
|
2266
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2267
|
+
const {
|
|
2268
|
+
error: warrning,
|
|
2269
|
+
} = ContentValidator.updateSEOConfiguration().validate(
|
|
2270
|
+
{
|
|
2271
|
+
body,
|
|
2272
|
+
},
|
|
2273
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2274
|
+
);
|
|
2275
|
+
if (warrning) {
|
|
2276
|
+
console.log("Parameter Validation warrnings for updateSEOConfiguration");
|
|
2277
|
+
console.log(warrning);
|
|
2278
|
+
}
|
|
2279
|
+
|
|
1627
2280
|
const query_params = {};
|
|
1628
2281
|
|
|
1629
2282
|
return PlatformAPIClient.execute(
|
|
@@ -1659,6 +2312,20 @@ class Content {
|
|
|
1659
2312
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1660
2313
|
}
|
|
1661
2314
|
|
|
2315
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2316
|
+
const { error: warrning } = ContentValidator.getSlideshows().validate(
|
|
2317
|
+
{
|
|
2318
|
+
devicePlatform,
|
|
2319
|
+
pageNo,
|
|
2320
|
+
pageSize,
|
|
2321
|
+
},
|
|
2322
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2323
|
+
);
|
|
2324
|
+
if (warrning) {
|
|
2325
|
+
console.log("Parameter Validation warrnings for getSlideshows");
|
|
2326
|
+
console.log(warrning);
|
|
2327
|
+
}
|
|
2328
|
+
|
|
1662
2329
|
const query_params = {};
|
|
1663
2330
|
query_params["device_platform"] = devicePlatform;
|
|
1664
2331
|
query_params["page_no"] = pageNo;
|
|
@@ -1731,6 +2398,18 @@ class Content {
|
|
|
1731
2398
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1732
2399
|
}
|
|
1733
2400
|
|
|
2401
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2402
|
+
const { error: warrning } = ContentValidator.createSlideshow().validate(
|
|
2403
|
+
{
|
|
2404
|
+
body,
|
|
2405
|
+
},
|
|
2406
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2407
|
+
);
|
|
2408
|
+
if (warrning) {
|
|
2409
|
+
console.log("Parameter Validation warrnings for createSlideshow");
|
|
2410
|
+
console.log(warrning);
|
|
2411
|
+
}
|
|
2412
|
+
|
|
1734
2413
|
const query_params = {};
|
|
1735
2414
|
|
|
1736
2415
|
return PlatformAPIClient.execute(
|
|
@@ -1764,6 +2443,19 @@ class Content {
|
|
|
1764
2443
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1765
2444
|
}
|
|
1766
2445
|
|
|
2446
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2447
|
+
const { error: warrning } = ContentValidator.getSlideshowBySlug().validate(
|
|
2448
|
+
{
|
|
2449
|
+
slug,
|
|
2450
|
+
devicePlatform,
|
|
2451
|
+
},
|
|
2452
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2453
|
+
);
|
|
2454
|
+
if (warrning) {
|
|
2455
|
+
console.log("Parameter Validation warrnings for getSlideshowBySlug");
|
|
2456
|
+
console.log(warrning);
|
|
2457
|
+
}
|
|
2458
|
+
|
|
1767
2459
|
const query_params = {};
|
|
1768
2460
|
query_params["device_platform"] = devicePlatform;
|
|
1769
2461
|
|
|
@@ -1795,6 +2487,19 @@ class Content {
|
|
|
1795
2487
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1796
2488
|
}
|
|
1797
2489
|
|
|
2490
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2491
|
+
const { error: warrning } = ContentValidator.updateSlideshow().validate(
|
|
2492
|
+
{
|
|
2493
|
+
id,
|
|
2494
|
+
body,
|
|
2495
|
+
},
|
|
2496
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2497
|
+
);
|
|
2498
|
+
if (warrning) {
|
|
2499
|
+
console.log("Parameter Validation warrnings for updateSlideshow");
|
|
2500
|
+
console.log(warrning);
|
|
2501
|
+
}
|
|
2502
|
+
|
|
1798
2503
|
const query_params = {};
|
|
1799
2504
|
|
|
1800
2505
|
return PlatformAPIClient.execute(
|
|
@@ -1823,6 +2528,18 @@ class Content {
|
|
|
1823
2528
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1824
2529
|
}
|
|
1825
2530
|
|
|
2531
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2532
|
+
const { error: warrning } = ContentValidator.deleteSlideshow().validate(
|
|
2533
|
+
{
|
|
2534
|
+
id,
|
|
2535
|
+
},
|
|
2536
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2537
|
+
);
|
|
2538
|
+
if (warrning) {
|
|
2539
|
+
console.log("Parameter Validation warrnings for deleteSlideshow");
|
|
2540
|
+
console.log(warrning);
|
|
2541
|
+
}
|
|
2542
|
+
|
|
1826
2543
|
const query_params = {};
|
|
1827
2544
|
|
|
1828
2545
|
return PlatformAPIClient.execute(
|
|
@@ -1848,6 +2565,18 @@ class Content {
|
|
|
1848
2565
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1849
2566
|
}
|
|
1850
2567
|
|
|
2568
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2569
|
+
const {
|
|
2570
|
+
error: warrning,
|
|
2571
|
+
} = ContentValidator.getSupportInformation().validate(
|
|
2572
|
+
{},
|
|
2573
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2574
|
+
);
|
|
2575
|
+
if (warrning) {
|
|
2576
|
+
console.log("Parameter Validation warrnings for getSupportInformation");
|
|
2577
|
+
console.log(warrning);
|
|
2578
|
+
}
|
|
2579
|
+
|
|
1851
2580
|
const query_params = {};
|
|
1852
2581
|
|
|
1853
2582
|
return PlatformAPIClient.execute(
|
|
@@ -1876,6 +2605,22 @@ class Content {
|
|
|
1876
2605
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1877
2606
|
}
|
|
1878
2607
|
|
|
2608
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2609
|
+
const {
|
|
2610
|
+
error: warrning,
|
|
2611
|
+
} = ContentValidator.updateSupportInformation().validate(
|
|
2612
|
+
{
|
|
2613
|
+
body,
|
|
2614
|
+
},
|
|
2615
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2616
|
+
);
|
|
2617
|
+
if (warrning) {
|
|
2618
|
+
console.log(
|
|
2619
|
+
"Parameter Validation warrnings for updateSupportInformation"
|
|
2620
|
+
);
|
|
2621
|
+
console.log(warrning);
|
|
2622
|
+
}
|
|
2623
|
+
|
|
1879
2624
|
const query_params = {};
|
|
1880
2625
|
|
|
1881
2626
|
return PlatformAPIClient.execute(
|
|
@@ -1904,6 +2649,18 @@ class Content {
|
|
|
1904
2649
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1905
2650
|
}
|
|
1906
2651
|
|
|
2652
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2653
|
+
const { error: warrning } = ContentValidator.updateInjectableTag().validate(
|
|
2654
|
+
{
|
|
2655
|
+
body,
|
|
2656
|
+
},
|
|
2657
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2658
|
+
);
|
|
2659
|
+
if (warrning) {
|
|
2660
|
+
console.log("Parameter Validation warrnings for updateInjectableTag");
|
|
2661
|
+
console.log(warrning);
|
|
2662
|
+
}
|
|
2663
|
+
|
|
1907
2664
|
const query_params = {};
|
|
1908
2665
|
|
|
1909
2666
|
return PlatformAPIClient.execute(
|
|
@@ -1929,6 +2686,18 @@ class Content {
|
|
|
1929
2686
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1930
2687
|
}
|
|
1931
2688
|
|
|
2689
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2690
|
+
const {
|
|
2691
|
+
error: warrning,
|
|
2692
|
+
} = ContentValidator.deleteAllInjectableTags().validate(
|
|
2693
|
+
{},
|
|
2694
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2695
|
+
);
|
|
2696
|
+
if (warrning) {
|
|
2697
|
+
console.log("Parameter Validation warrnings for deleteAllInjectableTags");
|
|
2698
|
+
console.log(warrning);
|
|
2699
|
+
}
|
|
2700
|
+
|
|
1932
2701
|
const query_params = {};
|
|
1933
2702
|
|
|
1934
2703
|
return PlatformAPIClient.execute(
|
|
@@ -1954,6 +2723,16 @@ class Content {
|
|
|
1954
2723
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1955
2724
|
}
|
|
1956
2725
|
|
|
2726
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2727
|
+
const { error: warrning } = ContentValidator.getInjectableTags().validate(
|
|
2728
|
+
{},
|
|
2729
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2730
|
+
);
|
|
2731
|
+
if (warrning) {
|
|
2732
|
+
console.log("Parameter Validation warrnings for getInjectableTags");
|
|
2733
|
+
console.log(warrning);
|
|
2734
|
+
}
|
|
2735
|
+
|
|
1957
2736
|
const query_params = {};
|
|
1958
2737
|
|
|
1959
2738
|
return PlatformAPIClient.execute(
|
|
@@ -1982,6 +2761,18 @@ class Content {
|
|
|
1982
2761
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1983
2762
|
}
|
|
1984
2763
|
|
|
2764
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2765
|
+
const { error: warrning } = ContentValidator.addInjectableTag().validate(
|
|
2766
|
+
{
|
|
2767
|
+
body,
|
|
2768
|
+
},
|
|
2769
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2770
|
+
);
|
|
2771
|
+
if (warrning) {
|
|
2772
|
+
console.log("Parameter Validation warrnings for addInjectableTag");
|
|
2773
|
+
console.log(warrning);
|
|
2774
|
+
}
|
|
2775
|
+
|
|
1985
2776
|
const query_params = {};
|
|
1986
2777
|
|
|
1987
2778
|
return PlatformAPIClient.execute(
|
|
@@ -2010,6 +2801,18 @@ class Content {
|
|
|
2010
2801
|
return Promise.reject(new FDKClientValidationError(error));
|
|
2011
2802
|
}
|
|
2012
2803
|
|
|
2804
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2805
|
+
const { error: warrning } = ContentValidator.removeInjectableTag().validate(
|
|
2806
|
+
{
|
|
2807
|
+
body,
|
|
2808
|
+
},
|
|
2809
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2810
|
+
);
|
|
2811
|
+
if (warrning) {
|
|
2812
|
+
console.log("Parameter Validation warrnings for removeInjectableTag");
|
|
2813
|
+
console.log(warrning);
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2013
2816
|
const query_params = {};
|
|
2014
2817
|
|
|
2015
2818
|
return PlatformAPIClient.execute(
|
|
@@ -2040,6 +2843,19 @@ class Content {
|
|
|
2040
2843
|
return Promise.reject(new FDKClientValidationError(error));
|
|
2041
2844
|
}
|
|
2042
2845
|
|
|
2846
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2847
|
+
const { error: warrning } = ContentValidator.editInjectableTag().validate(
|
|
2848
|
+
{
|
|
2849
|
+
tagId,
|
|
2850
|
+
body,
|
|
2851
|
+
},
|
|
2852
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2853
|
+
);
|
|
2854
|
+
if (warrning) {
|
|
2855
|
+
console.log("Parameter Validation warrnings for editInjectableTag");
|
|
2856
|
+
console.log(warrning);
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2043
2859
|
const query_params = {};
|
|
2044
2860
|
|
|
2045
2861
|
return PlatformAPIClient.execute(
|
|
@@ -2068,6 +2884,18 @@ class Content {
|
|
|
2068
2884
|
return Promise.reject(new FDKClientValidationError(error));
|
|
2069
2885
|
}
|
|
2070
2886
|
|
|
2887
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2888
|
+
const { error: warrning } = ContentValidator.createPage().validate(
|
|
2889
|
+
{
|
|
2890
|
+
body,
|
|
2891
|
+
},
|
|
2892
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2893
|
+
);
|
|
2894
|
+
if (warrning) {
|
|
2895
|
+
console.log("Parameter Validation warrnings for createPage");
|
|
2896
|
+
console.log(warrning);
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2071
2899
|
const query_params = {};
|
|
2072
2900
|
|
|
2073
2901
|
return PlatformAPIClient.execute(
|
|
@@ -2100,6 +2928,19 @@ class Content {
|
|
|
2100
2928
|
return Promise.reject(new FDKClientValidationError(error));
|
|
2101
2929
|
}
|
|
2102
2930
|
|
|
2931
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2932
|
+
const { error: warrning } = ContentValidator.getPages().validate(
|
|
2933
|
+
{
|
|
2934
|
+
pageNo,
|
|
2935
|
+
pageSize,
|
|
2936
|
+
},
|
|
2937
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2938
|
+
);
|
|
2939
|
+
if (warrning) {
|
|
2940
|
+
console.log("Parameter Validation warrnings for getPages");
|
|
2941
|
+
console.log(warrning);
|
|
2942
|
+
}
|
|
2943
|
+
|
|
2103
2944
|
const query_params = {};
|
|
2104
2945
|
query_params["page_no"] = pageNo;
|
|
2105
2946
|
query_params["page_size"] = pageSize;
|
|
@@ -2165,6 +3006,19 @@ class Content {
|
|
|
2165
3006
|
return Promise.reject(new FDKClientValidationError(error));
|
|
2166
3007
|
}
|
|
2167
3008
|
|
|
3009
|
+
// Showing warrnings if extra unknown parameters are found
|
|
3010
|
+
const { error: warrning } = ContentValidator.updatePage().validate(
|
|
3011
|
+
{
|
|
3012
|
+
id,
|
|
3013
|
+
body,
|
|
3014
|
+
},
|
|
3015
|
+
{ abortEarly: false, allowUnknown: false }
|
|
3016
|
+
);
|
|
3017
|
+
if (warrning) {
|
|
3018
|
+
console.log("Parameter Validation warrnings for updatePage");
|
|
3019
|
+
console.log(warrning);
|
|
3020
|
+
}
|
|
3021
|
+
|
|
2168
3022
|
const query_params = {};
|
|
2169
3023
|
|
|
2170
3024
|
return PlatformAPIClient.execute(
|
|
@@ -2194,6 +3048,18 @@ class Content {
|
|
|
2194
3048
|
return Promise.reject(new FDKClientValidationError(error));
|
|
2195
3049
|
}
|
|
2196
3050
|
|
|
3051
|
+
// Showing warrnings if extra unknown parameters are found
|
|
3052
|
+
const { error: warrning } = ContentValidator.getPageBySlug().validate(
|
|
3053
|
+
{
|
|
3054
|
+
slug,
|
|
3055
|
+
},
|
|
3056
|
+
{ abortEarly: false, allowUnknown: false }
|
|
3057
|
+
);
|
|
3058
|
+
if (warrning) {
|
|
3059
|
+
console.log("Parameter Validation warrnings for getPageBySlug");
|
|
3060
|
+
console.log(warrning);
|
|
3061
|
+
}
|
|
3062
|
+
|
|
2197
3063
|
const query_params = {};
|
|
2198
3064
|
|
|
2199
3065
|
return PlatformAPIClient.execute(
|