@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
@@ -78,10 +78,14 @@ class Configuration {
78
78
  });
79
79
 
80
80
  if (res_error) {
81
- Logger({
82
- level: "WARN",
83
- message: `Response Validation Warnnings for platform > Configuration > addDomain \n ${res_error}`,
84
- });
81
+ if (this.config.options.strictResponseCheck === true) {
82
+ return Promise.reject(new FDKResponseValidationError(res_error));
83
+ } else {
84
+ Logger({
85
+ level: "WARN",
86
+ message: `Response Validation Warnings for platform > Configuration > addDomain \n ${res_error}`,
87
+ });
88
+ }
85
89
  }
86
90
 
87
91
  return response;
@@ -155,10 +159,14 @@ class Configuration {
155
159
  });
156
160
 
157
161
  if (res_error) {
158
- Logger({
159
- level: "WARN",
160
- message: `Response Validation Warnnings for platform > Configuration > changeDomainType \n ${res_error}`,
161
- });
162
+ if (this.config.options.strictResponseCheck === true) {
163
+ return Promise.reject(new FDKResponseValidationError(res_error));
164
+ } else {
165
+ Logger({
166
+ level: "WARN",
167
+ message: `Response Validation Warnings for platform > Configuration > changeDomainType \n ${res_error}`,
168
+ });
169
+ }
162
170
  }
163
171
 
164
172
  return response;
@@ -228,10 +236,14 @@ class Configuration {
228
236
  });
229
237
 
230
238
  if (res_error) {
231
- Logger({
232
- level: "WARN",
233
- message: `Response Validation Warnnings for platform > Configuration > getAppApiTokens \n ${res_error}`,
234
- });
239
+ if (this.config.options.strictResponseCheck === true) {
240
+ return Promise.reject(new FDKResponseValidationError(res_error));
241
+ } else {
242
+ Logger({
243
+ level: "WARN",
244
+ message: `Response Validation Warnings for platform > Configuration > getAppApiTokens \n ${res_error}`,
245
+ });
246
+ }
235
247
  }
236
248
 
237
249
  return response;
@@ -301,10 +313,14 @@ class Configuration {
301
313
  });
302
314
 
303
315
  if (res_error) {
304
- Logger({
305
- level: "WARN",
306
- message: `Response Validation Warnnings for platform > Configuration > getAppBasicDetails \n ${res_error}`,
307
- });
316
+ if (this.config.options.strictResponseCheck === true) {
317
+ return Promise.reject(new FDKResponseValidationError(res_error));
318
+ } else {
319
+ Logger({
320
+ level: "WARN",
321
+ message: `Response Validation Warnings for platform > Configuration > getAppBasicDetails \n ${res_error}`,
322
+ });
323
+ }
308
324
  }
309
325
 
310
326
  return response;
@@ -385,10 +401,14 @@ class Configuration {
385
401
  });
386
402
 
387
403
  if (res_error) {
388
- Logger({
389
- level: "WARN",
390
- message: `Response Validation Warnnings for platform > Configuration > getAppCompanies \n ${res_error}`,
391
- });
404
+ if (this.config.options.strictResponseCheck === true) {
405
+ return Promise.reject(new FDKResponseValidationError(res_error));
406
+ } else {
407
+ Logger({
408
+ level: "WARN",
409
+ message: `Response Validation Warnings for platform > Configuration > getAppCompanies \n ${res_error}`,
410
+ });
411
+ }
392
412
  }
393
413
 
394
414
  return response;
@@ -495,10 +515,14 @@ class Configuration {
495
515
  );
496
516
 
497
517
  if (res_error) {
498
- Logger({
499
- level: "WARN",
500
- message: `Response Validation Warnnings for platform > Configuration > getAppContactInfo \n ${res_error}`,
501
- });
518
+ if (this.config.options.strictResponseCheck === true) {
519
+ return Promise.reject(new FDKResponseValidationError(res_error));
520
+ } else {
521
+ Logger({
522
+ level: "WARN",
523
+ message: `Response Validation Warnings for platform > Configuration > getAppContactInfo \n ${res_error}`,
524
+ });
525
+ }
502
526
  }
503
527
 
504
528
  return response;
@@ -569,10 +593,14 @@ class Configuration {
569
593
  );
570
594
 
571
595
  if (res_error) {
572
- Logger({
573
- level: "WARN",
574
- message: `Response Validation Warnnings for platform > Configuration > getAppCurrencyConfig \n ${res_error}`,
575
- });
596
+ if (this.config.options.strictResponseCheck === true) {
597
+ return Promise.reject(new FDKResponseValidationError(res_error));
598
+ } else {
599
+ Logger({
600
+ level: "WARN",
601
+ message: `Response Validation Warnings for platform > Configuration > getAppCurrencyConfig \n ${res_error}`,
602
+ });
603
+ }
576
604
  }
577
605
 
578
606
  return response;
@@ -643,10 +671,14 @@ class Configuration {
643
671
  });
644
672
 
645
673
  if (res_error) {
646
- Logger({
647
- level: "WARN",
648
- message: `Response Validation Warnnings for platform > Configuration > getAppFeatures \n ${res_error}`,
649
- });
674
+ if (this.config.options.strictResponseCheck === true) {
675
+ return Promise.reject(new FDKResponseValidationError(res_error));
676
+ } else {
677
+ Logger({
678
+ level: "WARN",
679
+ message: `Response Validation Warnings for platform > Configuration > getAppFeatures \n ${res_error}`,
680
+ });
681
+ }
650
682
  }
651
683
 
652
684
  return response;
@@ -724,10 +756,14 @@ class Configuration {
724
756
  });
725
757
 
726
758
  if (res_error) {
727
- Logger({
728
- level: "WARN",
729
- message: `Response Validation Warnnings for platform > Configuration > getAppStores \n ${res_error}`,
730
- });
759
+ if (this.config.options.strictResponseCheck === true) {
760
+ return Promise.reject(new FDKResponseValidationError(res_error));
761
+ } else {
762
+ Logger({
763
+ level: "WARN",
764
+ message: `Response Validation Warnings for platform > Configuration > getAppStores \n ${res_error}`,
765
+ });
766
+ }
731
767
  }
732
768
 
733
769
  return response;
@@ -832,10 +868,14 @@ class Configuration {
832
868
  );
833
869
 
834
870
  if (res_error) {
835
- Logger({
836
- level: "WARN",
837
- message: `Response Validation Warnnings for platform > Configuration > getAppSupportedCurrency \n ${res_error}`,
838
- });
871
+ if (this.config.options.strictResponseCheck === true) {
872
+ return Promise.reject(new FDKResponseValidationError(res_error));
873
+ } else {
874
+ Logger({
875
+ level: "WARN",
876
+ message: `Response Validation Warnings for platform > Configuration > getAppSupportedCurrency \n ${res_error}`,
877
+ });
878
+ }
839
879
  }
840
880
 
841
881
  return response;
@@ -905,10 +945,14 @@ class Configuration {
905
945
  });
906
946
 
907
947
  if (res_error) {
908
- Logger({
909
- level: "WARN",
910
- message: `Response Validation Warnnings for platform > Configuration > getApplicationById \n ${res_error}`,
911
- });
948
+ if (this.config.options.strictResponseCheck === true) {
949
+ return Promise.reject(new FDKResponseValidationError(res_error));
950
+ } else {
951
+ Logger({
952
+ level: "WARN",
953
+ message: `Response Validation Warnings for platform > Configuration > getApplicationById \n ${res_error}`,
954
+ });
955
+ }
912
956
  }
913
957
 
914
958
  return response;
@@ -983,10 +1027,14 @@ class Configuration {
983
1027
  );
984
1028
 
985
1029
  if (res_error) {
986
- Logger({
987
- level: "WARN",
988
- message: `Response Validation Warnnings for platform > Configuration > getBuildConfig \n ${res_error}`,
989
- });
1030
+ if (this.config.options.strictResponseCheck === true) {
1031
+ return Promise.reject(new FDKResponseValidationError(res_error));
1032
+ } else {
1033
+ Logger({
1034
+ level: "WARN",
1035
+ message: `Response Validation Warnings for platform > Configuration > getBuildConfig \n ${res_error}`,
1036
+ });
1037
+ }
990
1038
  }
991
1039
 
992
1040
  return response;
@@ -1061,10 +1109,14 @@ class Configuration {
1061
1109
  );
1062
1110
 
1063
1111
  if (res_error) {
1064
- Logger({
1065
- level: "WARN",
1066
- message: `Response Validation Warnnings for platform > Configuration > getDomainStatus \n ${res_error}`,
1067
- });
1112
+ if (this.config.options.strictResponseCheck === true) {
1113
+ return Promise.reject(new FDKResponseValidationError(res_error));
1114
+ } else {
1115
+ Logger({
1116
+ level: "WARN",
1117
+ message: `Response Validation Warnings for platform > Configuration > getDomainStatus \n ${res_error}`,
1118
+ });
1119
+ }
1068
1120
  }
1069
1121
 
1070
1122
  return response;
@@ -1132,10 +1184,14 @@ class Configuration {
1132
1184
  });
1133
1185
 
1134
1186
  if (res_error) {
1135
- Logger({
1136
- level: "WARN",
1137
- message: `Response Validation Warnnings for platform > Configuration > getDomains \n ${res_error}`,
1138
- });
1187
+ if (this.config.options.strictResponseCheck === true) {
1188
+ return Promise.reject(new FDKResponseValidationError(res_error));
1189
+ } else {
1190
+ Logger({
1191
+ level: "WARN",
1192
+ message: `Response Validation Warnings for platform > Configuration > getDomains \n ${res_error}`,
1193
+ });
1194
+ }
1139
1195
  }
1140
1196
 
1141
1197
  return response;
@@ -1206,10 +1262,14 @@ class Configuration {
1206
1262
  );
1207
1263
 
1208
1264
  if (res_error) {
1209
- Logger({
1210
- level: "WARN",
1211
- message: `Response Validation Warnnings for platform > Configuration > getInventoryConfig \n ${res_error}`,
1212
- });
1265
+ if (this.config.options.strictResponseCheck === true) {
1266
+ return Promise.reject(new FDKResponseValidationError(res_error));
1267
+ } else {
1268
+ Logger({
1269
+ level: "WARN",
1270
+ message: `Response Validation Warnings for platform > Configuration > getInventoryConfig \n ${res_error}`,
1271
+ });
1272
+ }
1213
1273
  }
1214
1274
 
1215
1275
  return response;
@@ -1280,10 +1340,14 @@ class Configuration {
1280
1340
  );
1281
1341
 
1282
1342
  if (res_error) {
1283
- Logger({
1284
- level: "WARN",
1285
- message: `Response Validation Warnnings for platform > Configuration > getOrderingStoreConfig \n ${res_error}`,
1286
- });
1343
+ if (this.config.options.strictResponseCheck === true) {
1344
+ return Promise.reject(new FDKResponseValidationError(res_error));
1345
+ } else {
1346
+ Logger({
1347
+ level: "WARN",
1348
+ message: `Response Validation Warnings for platform > Configuration > getOrderingStoreConfig \n ${res_error}`,
1349
+ });
1350
+ }
1287
1351
  }
1288
1352
 
1289
1353
  return response;
@@ -1358,10 +1422,14 @@ class Configuration {
1358
1422
  );
1359
1423
 
1360
1424
  if (res_error) {
1361
- Logger({
1362
- level: "WARN",
1363
- message: `Response Validation Warnnings for platform > Configuration > getOrderingStoreCookie \n ${res_error}`,
1364
- });
1425
+ if (this.config.options.strictResponseCheck === true) {
1426
+ return Promise.reject(new FDKResponseValidationError(res_error));
1427
+ } else {
1428
+ Logger({
1429
+ level: "WARN",
1430
+ message: `Response Validation Warnings for platform > Configuration > getOrderingStoreCookie \n ${res_error}`,
1431
+ });
1432
+ }
1365
1433
  }
1366
1434
 
1367
1435
  return response;
@@ -1441,10 +1509,14 @@ class Configuration {
1441
1509
  });
1442
1510
 
1443
1511
  if (res_error) {
1444
- Logger({
1445
- level: "WARN",
1446
- message: `Response Validation Warnnings for platform > Configuration > getOrderingStoresByFilter \n ${res_error}`,
1447
- });
1512
+ if (this.config.options.strictResponseCheck === true) {
1513
+ return Promise.reject(new FDKResponseValidationError(res_error));
1514
+ } else {
1515
+ Logger({
1516
+ level: "WARN",
1517
+ message: `Response Validation Warnings for platform > Configuration > getOrderingStoresByFilter \n ${res_error}`,
1518
+ });
1519
+ }
1448
1520
  }
1449
1521
 
1450
1522
  return response;
@@ -1560,10 +1632,14 @@ class Configuration {
1560
1632
  );
1561
1633
 
1562
1634
  if (res_error) {
1563
- Logger({
1564
- level: "WARN",
1565
- message: `Response Validation Warnnings for platform > Configuration > getPreviousVersions \n ${res_error}`,
1566
- });
1635
+ if (this.config.options.strictResponseCheck === true) {
1636
+ return Promise.reject(new FDKResponseValidationError(res_error));
1637
+ } else {
1638
+ Logger({
1639
+ level: "WARN",
1640
+ message: `Response Validation Warnings for platform > Configuration > getPreviousVersions \n ${res_error}`,
1641
+ });
1642
+ }
1567
1643
  }
1568
1644
 
1569
1645
  return response;
@@ -1645,10 +1721,14 @@ class Configuration {
1645
1721
  );
1646
1722
 
1647
1723
  if (res_error) {
1648
- Logger({
1649
- level: "WARN",
1650
- message: `Response Validation Warnnings for platform > Configuration > getStaffOrderingStores \n ${res_error}`,
1651
- });
1724
+ if (this.config.options.strictResponseCheck === true) {
1725
+ return Promise.reject(new FDKResponseValidationError(res_error));
1726
+ } else {
1727
+ Logger({
1728
+ level: "WARN",
1729
+ message: `Response Validation Warnings for platform > Configuration > getStaffOrderingStores \n ${res_error}`,
1730
+ });
1731
+ }
1652
1732
  }
1653
1733
 
1654
1734
  return response;
@@ -1763,10 +1843,14 @@ class Configuration {
1763
1843
  });
1764
1844
 
1765
1845
  if (res_error) {
1766
- Logger({
1767
- level: "WARN",
1768
- message: `Response Validation Warnnings for platform > Configuration > modifyAppFeatures \n ${res_error}`,
1769
- });
1846
+ if (this.config.options.strictResponseCheck === true) {
1847
+ return Promise.reject(new FDKResponseValidationError(res_error));
1848
+ } else {
1849
+ Logger({
1850
+ level: "WARN",
1851
+ message: `Response Validation Warnings for platform > Configuration > modifyAppFeatures \n ${res_error}`,
1852
+ });
1853
+ }
1770
1854
  }
1771
1855
 
1772
1856
  return response;
@@ -1841,10 +1925,14 @@ class Configuration {
1841
1925
  );
1842
1926
 
1843
1927
  if (res_error) {
1844
- Logger({
1845
- level: "WARN",
1846
- message: `Response Validation Warnnings for platform > Configuration > partiallyUpdateInventoryConfig \n ${res_error}`,
1847
- });
1928
+ if (this.config.options.strictResponseCheck === true) {
1929
+ return Promise.reject(new FDKResponseValidationError(res_error));
1930
+ } else {
1931
+ Logger({
1932
+ level: "WARN",
1933
+ message: `Response Validation Warnings for platform > Configuration > partiallyUpdateInventoryConfig \n ${res_error}`,
1934
+ });
1935
+ }
1848
1936
  }
1849
1937
 
1850
1938
  return response;
@@ -1919,10 +2007,14 @@ class Configuration {
1919
2007
  );
1920
2008
 
1921
2009
  if (res_error) {
1922
- Logger({
1923
- level: "WARN",
1924
- message: `Response Validation Warnnings for platform > Configuration > removeDomainById \n ${res_error}`,
1925
- });
2010
+ if (this.config.options.strictResponseCheck === true) {
2011
+ return Promise.reject(new FDKResponseValidationError(res_error));
2012
+ } else {
2013
+ Logger({
2014
+ level: "WARN",
2015
+ message: `Response Validation Warnings for platform > Configuration > removeDomainById \n ${res_error}`,
2016
+ });
2017
+ }
1926
2018
  }
1927
2019
 
1928
2020
  return response;
@@ -1993,10 +2085,14 @@ class Configuration {
1993
2085
  );
1994
2086
 
1995
2087
  if (res_error) {
1996
- Logger({
1997
- level: "WARN",
1998
- message: `Response Validation Warnnings for platform > Configuration > removeOrderingStoreCookie \n ${res_error}`,
1999
- });
2088
+ if (this.config.options.strictResponseCheck === true) {
2089
+ return Promise.reject(new FDKResponseValidationError(res_error));
2090
+ } else {
2091
+ Logger({
2092
+ level: "WARN",
2093
+ message: `Response Validation Warnings for platform > Configuration > removeOrderingStoreCookie \n ${res_error}`,
2094
+ });
2095
+ }
2000
2096
  }
2001
2097
 
2002
2098
  return response;
@@ -2070,10 +2166,14 @@ class Configuration {
2070
2166
  });
2071
2167
 
2072
2168
  if (res_error) {
2073
- Logger({
2074
- level: "WARN",
2075
- message: `Response Validation Warnnings for platform > Configuration > updateAppApiTokens \n ${res_error}`,
2076
- });
2169
+ if (this.config.options.strictResponseCheck === true) {
2170
+ return Promise.reject(new FDKResponseValidationError(res_error));
2171
+ } else {
2172
+ Logger({
2173
+ level: "WARN",
2174
+ message: `Response Validation Warnings for platform > Configuration > updateAppApiTokens \n ${res_error}`,
2175
+ });
2176
+ }
2077
2177
  }
2078
2178
 
2079
2179
  return response;
@@ -2147,10 +2247,14 @@ class Configuration {
2147
2247
  });
2148
2248
 
2149
2249
  if (res_error) {
2150
- Logger({
2151
- level: "WARN",
2152
- message: `Response Validation Warnnings for platform > Configuration > updateAppBasicDetails \n ${res_error}`,
2153
- });
2250
+ if (this.config.options.strictResponseCheck === true) {
2251
+ return Promise.reject(new FDKResponseValidationError(res_error));
2252
+ } else {
2253
+ Logger({
2254
+ level: "WARN",
2255
+ message: `Response Validation Warnings for platform > Configuration > updateAppBasicDetails \n ${res_error}`,
2256
+ });
2257
+ }
2154
2258
  }
2155
2259
 
2156
2260
  return response;
@@ -2225,10 +2329,14 @@ class Configuration {
2225
2329
  );
2226
2330
 
2227
2331
  if (res_error) {
2228
- Logger({
2229
- level: "WARN",
2230
- message: `Response Validation Warnnings for platform > Configuration > updateAppContactInfo \n ${res_error}`,
2231
- });
2332
+ if (this.config.options.strictResponseCheck === true) {
2333
+ return Promise.reject(new FDKResponseValidationError(res_error));
2334
+ } else {
2335
+ Logger({
2336
+ level: "WARN",
2337
+ message: `Response Validation Warnings for platform > Configuration > updateAppContactInfo \n ${res_error}`,
2338
+ });
2339
+ }
2232
2340
  }
2233
2341
 
2234
2342
  return response;
@@ -2303,10 +2411,14 @@ class Configuration {
2303
2411
  );
2304
2412
 
2305
2413
  if (res_error) {
2306
- Logger({
2307
- level: "WARN",
2308
- message: `Response Validation Warnnings for platform > Configuration > updateAppCurrencyConfig \n ${res_error}`,
2309
- });
2414
+ if (this.config.options.strictResponseCheck === true) {
2415
+ return Promise.reject(new FDKResponseValidationError(res_error));
2416
+ } else {
2417
+ Logger({
2418
+ level: "WARN",
2419
+ message: `Response Validation Warnings for platform > Configuration > updateAppCurrencyConfig \n ${res_error}`,
2420
+ });
2421
+ }
2310
2422
  }
2311
2423
 
2312
2424
  return response;
@@ -2380,10 +2492,14 @@ class Configuration {
2380
2492
  });
2381
2493
 
2382
2494
  if (res_error) {
2383
- Logger({
2384
- level: "WARN",
2385
- message: `Response Validation Warnnings for platform > Configuration > updateAppFeatures \n ${res_error}`,
2386
- });
2495
+ if (this.config.options.strictResponseCheck === true) {
2496
+ return Promise.reject(new FDKResponseValidationError(res_error));
2497
+ } else {
2498
+ Logger({
2499
+ level: "WARN",
2500
+ message: `Response Validation Warnings for platform > Configuration > updateAppFeatures \n ${res_error}`,
2501
+ });
2502
+ }
2387
2503
  }
2388
2504
 
2389
2505
  return response;
@@ -2460,10 +2576,14 @@ class Configuration {
2460
2576
  );
2461
2577
 
2462
2578
  if (res_error) {
2463
- Logger({
2464
- level: "WARN",
2465
- message: `Response Validation Warnnings for platform > Configuration > updateBuildConfig \n ${res_error}`,
2466
- });
2579
+ if (this.config.options.strictResponseCheck === true) {
2580
+ return Promise.reject(new FDKResponseValidationError(res_error));
2581
+ } else {
2582
+ Logger({
2583
+ level: "WARN",
2584
+ message: `Response Validation Warnings for platform > Configuration > updateBuildConfig \n ${res_error}`,
2585
+ });
2586
+ }
2467
2587
  }
2468
2588
 
2469
2589
  return response;
@@ -2538,10 +2658,14 @@ class Configuration {
2538
2658
  );
2539
2659
 
2540
2660
  if (res_error) {
2541
- Logger({
2542
- level: "WARN",
2543
- message: `Response Validation Warnnings for platform > Configuration > updateInventoryConfig \n ${res_error}`,
2544
- });
2661
+ if (this.config.options.strictResponseCheck === true) {
2662
+ return Promise.reject(new FDKResponseValidationError(res_error));
2663
+ } else {
2664
+ Logger({
2665
+ level: "WARN",
2666
+ message: `Response Validation Warnings for platform > Configuration > updateInventoryConfig \n ${res_error}`,
2667
+ });
2668
+ }
2545
2669
  }
2546
2670
 
2547
2671
  return response;
@@ -2615,10 +2739,14 @@ class Configuration {
2615
2739
  });
2616
2740
 
2617
2741
  if (res_error) {
2618
- Logger({
2619
- level: "WARN",
2620
- message: `Response Validation Warnnings for platform > Configuration > updateOrderingStoreConfig \n ${res_error}`,
2621
- });
2742
+ if (this.config.options.strictResponseCheck === true) {
2743
+ return Promise.reject(new FDKResponseValidationError(res_error));
2744
+ } else {
2745
+ Logger({
2746
+ level: "WARN",
2747
+ message: `Response Validation Warnings for platform > Configuration > updateOrderingStoreConfig \n ${res_error}`,
2748
+ });
2749
+ }
2622
2750
  }
2623
2751
 
2624
2752
  return response;