@gofynd/fdk-client-javascript 1.3.6-beta.1 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationConfig.d.ts +11 -3
  4. package/sdk/application/ApplicationConfig.js +21 -3
  5. package/sdk/application/Cart/CartApplicationClient.js +228 -113
  6. package/sdk/application/Catalog/CatalogApplicationClient.js +244 -121
  7. package/sdk/application/Common/CommonApplicationClient.js +20 -9
  8. package/sdk/application/Communication/CommunicationApplicationClient.js +28 -13
  9. package/sdk/application/Configuration/ConfigurationApplicationClient.js +132 -65
  10. package/sdk/application/Content/ContentApplicationClient.js +156 -77
  11. package/sdk/application/FileStorage/FileStorageApplicationClient.js +28 -13
  12. package/sdk/application/Lead/LeadApplicationClient.js +60 -29
  13. package/sdk/application/Logistic/LogisticApplicationClient.js +44 -21
  14. package/sdk/application/Order/OrderApplicationClient.js +100 -49
  15. package/sdk/application/Payment/PaymentApplicationClient.js +340 -169
  16. package/sdk/application/PosCart/PosCartApplicationClient.js +220 -109
  17. package/sdk/application/Rewards/RewardsApplicationClient.js +60 -29
  18. package/sdk/application/Share/ShareApplicationClient.js +60 -29
  19. package/sdk/application/Theme/ThemeApplicationClient.js +36 -17
  20. package/sdk/application/User/UserApplicationClient.js +324 -161
  21. package/sdk/common/AxiosHelper.js +3 -3
  22. package/sdk/common/FDKError.d.ts +4 -0
  23. package/sdk/common/FDKError.js +9 -0
  24. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +16 -40
  25. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +160 -38
  26. package/sdk/partner/PartnerConfig.d.ts +10 -0
  27. package/sdk/partner/PartnerConfig.js +10 -1
  28. package/sdk/partner/Theme/ThemePartnerClient.d.ts +96 -199
  29. package/sdk/partner/Theme/ThemePartnerClient.js +935 -170
  30. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +36 -17
  31. package/sdk/platform/Billing/BillingPlatformClient.js +140 -69
  32. package/sdk/platform/Cart/CartPlatformApplicationClient.js +456 -228
  33. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +512 -256
  34. package/sdk/platform/Catalog/CatalogPlatformClient.js +620 -309
  35. package/sdk/platform/Common/CommonPlatformClient.js +20 -9
  36. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +472 -236
  37. package/sdk/platform/Communication/CommunicationPlatformClient.js +12 -5
  38. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +14 -1
  39. package/sdk/platform/Communication/CommunicationPlatformModel.js +16 -0
  40. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +116 -57
  41. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +256 -128
  42. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +148 -73
  43. package/sdk/platform/Content/ContentPlatformApplicationClient.js +552 -276
  44. package/sdk/platform/Discount/DiscountPlatformClient.js +92 -45
  45. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +88 -44
  46. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +52 -25
  47. package/sdk/platform/Finance/FinancePlatformClient.js +196 -97
  48. package/sdk/platform/Inventory/InventoryPlatformClient.js +100 -49
  49. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +104 -52
  50. package/sdk/platform/Lead/LeadPlatformClient.js +92 -45
  51. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +26 -0
  52. package/sdk/platform/Order/OrderPlatformApplicationClient.js +239 -5
  53. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +57 -1
  54. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +55 -0
  55. package/sdk/platform/Order/OrderPlatformClient.js +356 -177
  56. package/sdk/platform/Order/OrderPlatformModel.d.ts +44 -5
  57. package/sdk/platform/Order/OrderPlatformModel.js +52 -4
  58. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +16 -8
  59. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +336 -168
  60. package/sdk/platform/Payment/PaymentPlatformClient.js +84 -41
  61. package/sdk/platform/PlatformConfig.d.ts +10 -0
  62. package/sdk/platform/PlatformConfig.js +10 -1
  63. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +96 -48
  64. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +112 -56
  65. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +148 -73
  66. package/sdk/platform/Share/SharePlatformApplicationClient.js +40 -20
  67. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +224 -112
  68. package/sdk/platform/Theme/ThemePlatformClient.js +28 -13
  69. package/sdk/platform/User/UserPlatformApplicationClient.js +144 -72
  70. package/sdk/platform/Webhook/WebhookPlatformClient.js +132 -65
  71. package/sdk/public/Configuration/ConfigurationPublicClient.js +20 -9
  72. package/sdk/public/Inventory/InventoryPublicClient.js +52 -25
  73. package/sdk/public/Partner/PartnerPublicClient.js +12 -5
  74. package/sdk/public/PublicConfig.d.ts +11 -1
  75. package/sdk/public/PublicConfig.js +10 -1
  76. package/sdk/public/Webhook/WebhookPublicClient.js +20 -9
@@ -1,5 +1,8 @@
1
1
  const ApplicationAPIClient = require("../ApplicationAPIClient");
2
- const { FDKClientValidationError } = require("../../common/FDKError");
2
+ const {
3
+ FDKClientValidationError,
4
+ FDKResponseValidationError,
5
+ } = require("../../common/FDKError");
3
6
  const constructUrl = require("../constructUrl");
4
7
  const Paginator = require("../../common/Paginator");
5
8
  const ConfigurationApplicationValidator = require("./ConfigurationApplicationValidator");
@@ -116,10 +119,14 @@ class Configuration {
116
119
  );
117
120
 
118
121
  if (res_error) {
119
- Logger({
120
- level: "WARN",
121
- message: `Response Validation Warnnings for application > Configuration > getAppCurrencies \n ${res_error}`,
122
- });
122
+ if (this._conf.options.strictResponseCheck === true) {
123
+ return Promise.reject(new FDKResponseValidationError(res_error));
124
+ } else {
125
+ Logger({
126
+ level: "WARN",
127
+ message: `Response Validation Warnings for application > Configuration > getAppCurrencies \n ${res_error}`,
128
+ });
129
+ }
123
130
  }
124
131
 
125
132
  return response;
@@ -207,10 +214,14 @@ class Configuration {
207
214
  );
208
215
 
209
216
  if (res_error) {
210
- Logger({
211
- level: "WARN",
212
- message: `Response Validation Warnnings for application > Configuration > getAppStaffList \n ${res_error}`,
213
- });
217
+ if (this._conf.options.strictResponseCheck === true) {
218
+ return Promise.reject(new FDKResponseValidationError(res_error));
219
+ } else {
220
+ Logger({
221
+ level: "WARN",
222
+ message: `Response Validation Warnings for application > Configuration > getAppStaffList \n ${res_error}`,
223
+ });
224
+ }
214
225
  }
215
226
 
216
227
  return response;
@@ -331,10 +342,14 @@ class Configuration {
331
342
  );
332
343
 
333
344
  if (res_error) {
334
- Logger({
335
- level: "WARN",
336
- message: `Response Validation Warnnings for application > Configuration > getAppStaffs \n ${res_error}`,
337
- });
345
+ if (this._conf.options.strictResponseCheck === true) {
346
+ return Promise.reject(new FDKResponseValidationError(res_error));
347
+ } else {
348
+ Logger({
349
+ level: "WARN",
350
+ message: `Response Validation Warnings for application > Configuration > getAppStaffs \n ${res_error}`,
351
+ });
352
+ }
338
353
  }
339
354
 
340
355
  return response;
@@ -407,10 +422,14 @@ class Configuration {
407
422
  });
408
423
 
409
424
  if (res_error) {
410
- Logger({
411
- level: "WARN",
412
- message: `Response Validation Warnnings for application > Configuration > getApplication \n ${res_error}`,
413
- });
425
+ if (this._conf.options.strictResponseCheck === true) {
426
+ return Promise.reject(new FDKResponseValidationError(res_error));
427
+ } else {
428
+ Logger({
429
+ level: "WARN",
430
+ message: `Response Validation Warnings for application > Configuration > getApplication \n ${res_error}`,
431
+ });
432
+ }
414
433
  }
415
434
 
416
435
  return response;
@@ -484,10 +503,14 @@ class Configuration {
484
503
  );
485
504
 
486
505
  if (res_error) {
487
- Logger({
488
- level: "WARN",
489
- message: `Response Validation Warnnings for application > Configuration > getBasicDetails \n ${res_error}`,
490
- });
506
+ if (this._conf.options.strictResponseCheck === true) {
507
+ return Promise.reject(new FDKResponseValidationError(res_error));
508
+ } else {
509
+ Logger({
510
+ level: "WARN",
511
+ message: `Response Validation Warnings for application > Configuration > getBasicDetails \n ${res_error}`,
512
+ });
513
+ }
491
514
  }
492
515
 
493
516
  return response;
@@ -562,10 +585,14 @@ class Configuration {
562
585
  );
563
586
 
564
587
  if (res_error) {
565
- Logger({
566
- level: "WARN",
567
- message: `Response Validation Warnnings for application > Configuration > getContactInfo \n ${res_error}`,
568
- });
588
+ if (this._conf.options.strictResponseCheck === true) {
589
+ return Promise.reject(new FDKResponseValidationError(res_error));
590
+ } else {
591
+ Logger({
592
+ level: "WARN",
593
+ message: `Response Validation Warnings for application > Configuration > getContactInfo \n ${res_error}`,
594
+ });
595
+ }
569
596
  }
570
597
 
571
598
  return response;
@@ -639,10 +666,14 @@ class Configuration {
639
666
  );
640
667
 
641
668
  if (res_error) {
642
- Logger({
643
- level: "WARN",
644
- message: `Response Validation Warnnings for application > Configuration > getCurrencies \n ${res_error}`,
645
- });
669
+ if (this._conf.options.strictResponseCheck === true) {
670
+ return Promise.reject(new FDKResponseValidationError(res_error));
671
+ } else {
672
+ Logger({
673
+ level: "WARN",
674
+ message: `Response Validation Warnings for application > Configuration > getCurrencies \n ${res_error}`,
675
+ });
676
+ }
646
677
  }
647
678
 
648
679
  return response;
@@ -715,10 +746,14 @@ class Configuration {
715
746
  });
716
747
 
717
748
  if (res_error) {
718
- Logger({
719
- level: "WARN",
720
- message: `Response Validation Warnnings for application > Configuration > getCurrencyById \n ${res_error}`,
721
- });
749
+ if (this._conf.options.strictResponseCheck === true) {
750
+ return Promise.reject(new FDKResponseValidationError(res_error));
751
+ } else {
752
+ Logger({
753
+ level: "WARN",
754
+ message: `Response Validation Warnings for application > Configuration > getCurrencyById \n ${res_error}`,
755
+ });
756
+ }
722
757
  }
723
758
 
724
759
  return response;
@@ -790,10 +825,14 @@ class Configuration {
790
825
  );
791
826
 
792
827
  if (res_error) {
793
- Logger({
794
- level: "WARN",
795
- message: `Response Validation Warnnings for application > Configuration > getFeatures \n ${res_error}`,
796
- });
828
+ if (this._conf.options.strictResponseCheck === true) {
829
+ return Promise.reject(new FDKResponseValidationError(res_error));
830
+ } else {
831
+ Logger({
832
+ level: "WARN",
833
+ message: `Response Validation Warnings for application > Configuration > getFeatures \n ${res_error}`,
834
+ });
835
+ }
797
836
  }
798
837
 
799
838
  return response;
@@ -869,10 +908,14 @@ class Configuration {
869
908
  );
870
909
 
871
910
  if (res_error) {
872
- Logger({
873
- level: "WARN",
874
- message: `Response Validation Warnnings for application > Configuration > getIntegrationTokens \n ${res_error}`,
875
- });
911
+ if (this._conf.options.strictResponseCheck === true) {
912
+ return Promise.reject(new FDKResponseValidationError(res_error));
913
+ } else {
914
+ Logger({
915
+ level: "WARN",
916
+ message: `Response Validation Warnings for application > Configuration > getIntegrationTokens \n ${res_error}`,
917
+ });
918
+ }
876
919
  }
877
920
 
878
921
  return response;
@@ -944,10 +987,14 @@ class Configuration {
944
987
  );
945
988
 
946
989
  if (res_error) {
947
- Logger({
948
- level: "WARN",
949
- message: `Response Validation Warnnings for application > Configuration > getLanguages \n ${res_error}`,
950
- });
990
+ if (this._conf.options.strictResponseCheck === true) {
991
+ return Promise.reject(new FDKResponseValidationError(res_error));
992
+ } else {
993
+ Logger({
994
+ level: "WARN",
995
+ message: `Response Validation Warnings for application > Configuration > getLanguages \n ${res_error}`,
996
+ });
997
+ }
951
998
  }
952
999
 
953
1000
  return response;
@@ -1024,10 +1071,14 @@ class Configuration {
1024
1071
  );
1025
1072
 
1026
1073
  if (res_error) {
1027
- Logger({
1028
- level: "WARN",
1029
- message: `Response Validation Warnnings for application > Configuration > getOrderingStoreCookie \n ${res_error}`,
1030
- });
1074
+ if (this._conf.options.strictResponseCheck === true) {
1075
+ return Promise.reject(new FDKResponseValidationError(res_error));
1076
+ } else {
1077
+ Logger({
1078
+ level: "WARN",
1079
+ message: `Response Validation Warnings for application > Configuration > getOrderingStoreCookie \n ${res_error}`,
1080
+ });
1081
+ }
1031
1082
  }
1032
1083
 
1033
1084
  return response;
@@ -1103,10 +1154,14 @@ class Configuration {
1103
1154
  });
1104
1155
 
1105
1156
  if (res_error) {
1106
- Logger({
1107
- level: "WARN",
1108
- message: `Response Validation Warnnings for application > Configuration > getOrderingStores \n ${res_error}`,
1109
- });
1157
+ if (this._conf.options.strictResponseCheck === true) {
1158
+ return Promise.reject(new FDKResponseValidationError(res_error));
1159
+ } else {
1160
+ Logger({
1161
+ level: "WARN",
1162
+ message: `Response Validation Warnings for application > Configuration > getOrderingStores \n ${res_error}`,
1163
+ });
1164
+ }
1110
1165
  }
1111
1166
 
1112
1167
  return response;
@@ -1209,10 +1264,14 @@ class Configuration {
1209
1264
  );
1210
1265
 
1211
1266
  if (res_error) {
1212
- Logger({
1213
- level: "WARN",
1214
- message: `Response Validation Warnnings for application > Configuration > getOwnerInfo \n ${res_error}`,
1215
- });
1267
+ if (this._conf.options.strictResponseCheck === true) {
1268
+ return Promise.reject(new FDKResponseValidationError(res_error));
1269
+ } else {
1270
+ Logger({
1271
+ level: "WARN",
1272
+ message: `Response Validation Warnings for application > Configuration > getOwnerInfo \n ${res_error}`,
1273
+ });
1274
+ }
1216
1275
  }
1217
1276
 
1218
1277
  return response;
@@ -1286,10 +1345,14 @@ class Configuration {
1286
1345
  });
1287
1346
 
1288
1347
  if (res_error) {
1289
- Logger({
1290
- level: "WARN",
1291
- message: `Response Validation Warnnings for application > Configuration > getStoreDetailById \n ${res_error}`,
1292
- });
1348
+ if (this._conf.options.strictResponseCheck === true) {
1349
+ return Promise.reject(new FDKResponseValidationError(res_error));
1350
+ } else {
1351
+ Logger({
1352
+ level: "WARN",
1353
+ message: `Response Validation Warnings for application > Configuration > getStoreDetailById \n ${res_error}`,
1354
+ });
1355
+ }
1293
1356
  }
1294
1357
 
1295
1358
  return response;
@@ -1366,10 +1429,14 @@ class Configuration {
1366
1429
  );
1367
1430
 
1368
1431
  if (res_error) {
1369
- Logger({
1370
- level: "WARN",
1371
- message: `Response Validation Warnnings for application > Configuration > removeOrderingStoreCookie \n ${res_error}`,
1372
- });
1432
+ if (this._conf.options.strictResponseCheck === true) {
1433
+ return Promise.reject(new FDKResponseValidationError(res_error));
1434
+ } else {
1435
+ Logger({
1436
+ level: "WARN",
1437
+ message: `Response Validation Warnings for application > Configuration > removeOrderingStoreCookie \n ${res_error}`,
1438
+ });
1439
+ }
1373
1440
  }
1374
1441
 
1375
1442
  return response;
@@ -1,5 +1,8 @@
1
1
  const ApplicationAPIClient = require("../ApplicationAPIClient");
2
- const { FDKClientValidationError } = require("../../common/FDKError");
2
+ const {
3
+ FDKClientValidationError,
4
+ FDKResponseValidationError,
5
+ } = require("../../common/FDKError");
3
6
  const constructUrl = require("../constructUrl");
4
7
  const Paginator = require("../../common/Paginator");
5
8
  const ContentApplicationValidator = require("./ContentApplicationValidator");
@@ -116,10 +119,14 @@ class Content {
116
119
  );
117
120
 
118
121
  if (res_error) {
119
- Logger({
120
- level: "WARN",
121
- message: `Response Validation Warnnings for application > Content > getAnnouncements \n ${res_error}`,
122
- });
122
+ if (this._conf.options.strictResponseCheck === true) {
123
+ return Promise.reject(new FDKResponseValidationError(res_error));
124
+ } else {
125
+ Logger({
126
+ level: "WARN",
127
+ message: `Response Validation Warnings for application > Content > getAnnouncements \n ${res_error}`,
128
+ });
129
+ }
123
130
  }
124
131
 
125
132
  return response;
@@ -189,10 +196,14 @@ class Content {
189
196
  });
190
197
 
191
198
  if (res_error) {
192
- Logger({
193
- level: "WARN",
194
- message: `Response Validation Warnnings for application > Content > getBlog \n ${res_error}`,
195
- });
199
+ if (this._conf.options.strictResponseCheck === true) {
200
+ return Promise.reject(new FDKResponseValidationError(res_error));
201
+ } else {
202
+ Logger({
203
+ level: "WARN",
204
+ message: `Response Validation Warnings for application > Content > getBlog \n ${res_error}`,
205
+ });
206
+ }
196
207
  }
197
208
 
198
209
  return response;
@@ -263,10 +274,14 @@ class Content {
263
274
  });
264
275
 
265
276
  if (res_error) {
266
- Logger({
267
- level: "WARN",
268
- message: `Response Validation Warnnings for application > Content > getBlogs \n ${res_error}`,
269
- });
277
+ if (this._conf.options.strictResponseCheck === true) {
278
+ return Promise.reject(new FDKResponseValidationError(res_error));
279
+ } else {
280
+ Logger({
281
+ level: "WARN",
282
+ message: `Response Validation Warnings for application > Content > getBlogs \n ${res_error}`,
283
+ });
284
+ }
270
285
  }
271
286
 
272
287
  return response;
@@ -364,10 +379,14 @@ class Content {
364
379
  });
365
380
 
366
381
  if (res_error) {
367
- Logger({
368
- level: "WARN",
369
- message: `Response Validation Warnnings for application > Content > getDataLoaders \n ${res_error}`,
370
- });
382
+ if (this._conf.options.strictResponseCheck === true) {
383
+ return Promise.reject(new FDKResponseValidationError(res_error));
384
+ } else {
385
+ Logger({
386
+ level: "WARN",
387
+ message: `Response Validation Warnings for application > Content > getDataLoaders \n ${res_error}`,
388
+ });
389
+ }
371
390
  }
372
391
 
373
392
  return response;
@@ -438,10 +457,14 @@ class Content {
438
457
  });
439
458
 
440
459
  if (res_error) {
441
- Logger({
442
- level: "WARN",
443
- message: `Response Validation Warnnings for application > Content > getFaqBySlug \n ${res_error}`,
444
- });
460
+ if (this._conf.options.strictResponseCheck === true) {
461
+ return Promise.reject(new FDKResponseValidationError(res_error));
462
+ } else {
463
+ Logger({
464
+ level: "WARN",
465
+ message: `Response Validation Warnings for application > Content > getFaqBySlug \n ${res_error}`,
466
+ });
467
+ }
445
468
  }
446
469
 
447
470
  return response;
@@ -513,10 +536,14 @@ class Content {
513
536
  );
514
537
 
515
538
  if (res_error) {
516
- Logger({
517
- level: "WARN",
518
- message: `Response Validation Warnnings for application > Content > getFaqCategories \n ${res_error}`,
519
- });
539
+ if (this._conf.options.strictResponseCheck === true) {
540
+ return Promise.reject(new FDKResponseValidationError(res_error));
541
+ } else {
542
+ Logger({
543
+ level: "WARN",
544
+ message: `Response Validation Warnings for application > Content > getFaqCategories \n ${res_error}`,
545
+ });
546
+ }
520
547
  }
521
548
 
522
549
  return response;
@@ -590,10 +617,14 @@ class Content {
590
617
  );
591
618
 
592
619
  if (res_error) {
593
- Logger({
594
- level: "WARN",
595
- message: `Response Validation Warnnings for application > Content > getFaqCategoryBySlug \n ${res_error}`,
596
- });
620
+ if (this._conf.options.strictResponseCheck === true) {
621
+ return Promise.reject(new FDKResponseValidationError(res_error));
622
+ } else {
623
+ Logger({
624
+ level: "WARN",
625
+ message: `Response Validation Warnings for application > Content > getFaqCategoryBySlug \n ${res_error}`,
626
+ });
627
+ }
597
628
  }
598
629
 
599
630
  return response;
@@ -662,10 +693,14 @@ class Content {
662
693
  });
663
694
 
664
695
  if (res_error) {
665
- Logger({
666
- level: "WARN",
667
- message: `Response Validation Warnnings for application > Content > getFaqs \n ${res_error}`,
668
- });
696
+ if (this._conf.options.strictResponseCheck === true) {
697
+ return Promise.reject(new FDKResponseValidationError(res_error));
698
+ } else {
699
+ Logger({
700
+ level: "WARN",
701
+ message: `Response Validation Warnings for application > Content > getFaqs \n ${res_error}`,
702
+ });
703
+ }
669
704
  }
670
705
 
671
706
  return response;
@@ -738,10 +773,14 @@ class Content {
738
773
  });
739
774
 
740
775
  if (res_error) {
741
- Logger({
742
- level: "WARN",
743
- message: `Response Validation Warnnings for application > Content > getFaqsByCategorySlug \n ${res_error}`,
744
- });
776
+ if (this._conf.options.strictResponseCheck === true) {
777
+ return Promise.reject(new FDKResponseValidationError(res_error));
778
+ } else {
779
+ Logger({
780
+ level: "WARN",
781
+ message: `Response Validation Warnings for application > Content > getFaqsByCategorySlug \n ${res_error}`,
782
+ });
783
+ }
745
784
  }
746
785
 
747
786
  return response;
@@ -812,10 +851,14 @@ class Content {
812
851
  });
813
852
 
814
853
  if (res_error) {
815
- Logger({
816
- level: "WARN",
817
- message: `Response Validation Warnnings for application > Content > getLandingPage \n ${res_error}`,
818
- });
854
+ if (this._conf.options.strictResponseCheck === true) {
855
+ return Promise.reject(new FDKResponseValidationError(res_error));
856
+ } else {
857
+ Logger({
858
+ level: "WARN",
859
+ message: `Response Validation Warnings for application > Content > getLandingPage \n ${res_error}`,
860
+ });
861
+ }
819
862
  }
820
863
 
821
864
  return response;
@@ -888,10 +931,14 @@ class Content {
888
931
  });
889
932
 
890
933
  if (res_error) {
891
- Logger({
892
- level: "WARN",
893
- message: `Response Validation Warnnings for application > Content > getLegalInformation \n ${res_error}`,
894
- });
934
+ if (this._conf.options.strictResponseCheck === true) {
935
+ return Promise.reject(new FDKResponseValidationError(res_error));
936
+ } else {
937
+ Logger({
938
+ level: "WARN",
939
+ message: `Response Validation Warnings for application > Content > getLegalInformation \n ${res_error}`,
940
+ });
941
+ }
895
942
  }
896
943
 
897
944
  return response;
@@ -965,10 +1012,14 @@ class Content {
965
1012
  });
966
1013
 
967
1014
  if (res_error) {
968
- Logger({
969
- level: "WARN",
970
- message: `Response Validation Warnnings for application > Content > getNavigations \n ${res_error}`,
971
- });
1015
+ if (this._conf.options.strictResponseCheck === true) {
1016
+ return Promise.reject(new FDKResponseValidationError(res_error));
1017
+ } else {
1018
+ Logger({
1019
+ level: "WARN",
1020
+ message: `Response Validation Warnings for application > Content > getNavigations \n ${res_error}`,
1021
+ });
1022
+ }
972
1023
  }
973
1024
 
974
1025
  return response;
@@ -1065,10 +1116,14 @@ class Content {
1065
1116
  });
1066
1117
 
1067
1118
  if (res_error) {
1068
- Logger({
1069
- level: "WARN",
1070
- message: `Response Validation Warnnings for application > Content > getPage \n ${res_error}`,
1071
- });
1119
+ if (this._conf.options.strictResponseCheck === true) {
1120
+ return Promise.reject(new FDKResponseValidationError(res_error));
1121
+ } else {
1122
+ Logger({
1123
+ level: "WARN",
1124
+ message: `Response Validation Warnings for application > Content > getPage \n ${res_error}`,
1125
+ });
1126
+ }
1072
1127
  }
1073
1128
 
1074
1129
  return response;
@@ -1139,10 +1194,14 @@ class Content {
1139
1194
  });
1140
1195
 
1141
1196
  if (res_error) {
1142
- Logger({
1143
- level: "WARN",
1144
- message: `Response Validation Warnnings for application > Content > getPages \n ${res_error}`,
1145
- });
1197
+ if (this._conf.options.strictResponseCheck === true) {
1198
+ return Promise.reject(new FDKResponseValidationError(res_error));
1199
+ } else {
1200
+ Logger({
1201
+ level: "WARN",
1202
+ message: `Response Validation Warnings for application > Content > getPages \n ${res_error}`,
1203
+ });
1204
+ }
1146
1205
  }
1147
1206
 
1148
1207
  return response;
@@ -1242,10 +1301,14 @@ class Content {
1242
1301
  });
1243
1302
 
1244
1303
  if (res_error) {
1245
- Logger({
1246
- level: "WARN",
1247
- message: `Response Validation Warnnings for application > Content > getSEOConfiguration \n ${res_error}`,
1248
- });
1304
+ if (this._conf.options.strictResponseCheck === true) {
1305
+ return Promise.reject(new FDKResponseValidationError(res_error));
1306
+ } else {
1307
+ Logger({
1308
+ level: "WARN",
1309
+ message: `Response Validation Warnings for application > Content > getSEOConfiguration \n ${res_error}`,
1310
+ });
1311
+ }
1249
1312
  }
1250
1313
 
1251
1314
  return response;
@@ -1316,10 +1379,14 @@ class Content {
1316
1379
  });
1317
1380
 
1318
1381
  if (res_error) {
1319
- Logger({
1320
- level: "WARN",
1321
- message: `Response Validation Warnnings for application > Content > getSlideshow \n ${res_error}`,
1322
- });
1382
+ if (this._conf.options.strictResponseCheck === true) {
1383
+ return Promise.reject(new FDKResponseValidationError(res_error));
1384
+ } else {
1385
+ Logger({
1386
+ level: "WARN",
1387
+ message: `Response Validation Warnings for application > Content > getSlideshow \n ${res_error}`,
1388
+ });
1389
+ }
1323
1390
  }
1324
1391
 
1325
1392
  return response;
@@ -1392,10 +1459,14 @@ class Content {
1392
1459
  });
1393
1460
 
1394
1461
  if (res_error) {
1395
- Logger({
1396
- level: "WARN",
1397
- message: `Response Validation Warnnings for application > Content > getSlideshows \n ${res_error}`,
1398
- });
1462
+ if (this._conf.options.strictResponseCheck === true) {
1463
+ return Promise.reject(new FDKResponseValidationError(res_error));
1464
+ } else {
1465
+ Logger({
1466
+ level: "WARN",
1467
+ message: `Response Validation Warnings for application > Content > getSlideshows \n ${res_error}`,
1468
+ });
1469
+ }
1399
1470
  }
1400
1471
 
1401
1472
  return response;
@@ -1495,10 +1566,14 @@ class Content {
1495
1566
  });
1496
1567
 
1497
1568
  if (res_error) {
1498
- Logger({
1499
- level: "WARN",
1500
- message: `Response Validation Warnnings for application > Content > getSupportInformation \n ${res_error}`,
1501
- });
1569
+ if (this._conf.options.strictResponseCheck === true) {
1570
+ return Promise.reject(new FDKResponseValidationError(res_error));
1571
+ } else {
1572
+ Logger({
1573
+ level: "WARN",
1574
+ message: `Response Validation Warnings for application > Content > getSupportInformation \n ${res_error}`,
1575
+ });
1576
+ }
1502
1577
  }
1503
1578
 
1504
1579
  return response;
@@ -1567,10 +1642,14 @@ class Content {
1567
1642
  });
1568
1643
 
1569
1644
  if (res_error) {
1570
- Logger({
1571
- level: "WARN",
1572
- message: `Response Validation Warnnings for application > Content > getTags \n ${res_error}`,
1573
- });
1645
+ if (this._conf.options.strictResponseCheck === true) {
1646
+ return Promise.reject(new FDKResponseValidationError(res_error));
1647
+ } else {
1648
+ Logger({
1649
+ level: "WARN",
1650
+ message: `Response Validation Warnings for application > Content > getTags \n ${res_error}`,
1651
+ });
1652
+ }
1574
1653
  }
1575
1654
 
1576
1655
  return response;