@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.
- package/README.md +1 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationConfig.d.ts +11 -3
- package/sdk/application/ApplicationConfig.js +21 -3
- package/sdk/application/Cart/CartApplicationClient.js +228 -113
- package/sdk/application/Catalog/CatalogApplicationClient.js +244 -121
- package/sdk/application/Common/CommonApplicationClient.js +20 -9
- package/sdk/application/Communication/CommunicationApplicationClient.js +28 -13
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +132 -65
- package/sdk/application/Content/ContentApplicationClient.js +156 -77
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +28 -13
- package/sdk/application/Lead/LeadApplicationClient.js +60 -29
- package/sdk/application/Logistic/LogisticApplicationClient.js +44 -21
- package/sdk/application/Order/OrderApplicationClient.js +100 -49
- package/sdk/application/Payment/PaymentApplicationClient.js +340 -169
- package/sdk/application/PosCart/PosCartApplicationClient.js +220 -109
- package/sdk/application/Rewards/RewardsApplicationClient.js +60 -29
- package/sdk/application/Share/ShareApplicationClient.js +60 -29
- package/sdk/application/Theme/ThemeApplicationClient.js +36 -17
- package/sdk/application/User/UserApplicationClient.js +324 -161
- package/sdk/common/AxiosHelper.js +3 -3
- package/sdk/common/FDKError.d.ts +4 -0
- package/sdk/common/FDKError.js +9 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +16 -40
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +160 -38
- package/sdk/partner/PartnerConfig.d.ts +10 -0
- package/sdk/partner/PartnerConfig.js +10 -1
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +96 -199
- package/sdk/partner/Theme/ThemePartnerClient.js +935 -170
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +36 -17
- package/sdk/platform/Billing/BillingPlatformClient.js +140 -69
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +456 -228
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +512 -256
- package/sdk/platform/Catalog/CatalogPlatformClient.js +620 -309
- package/sdk/platform/Common/CommonPlatformClient.js +20 -9
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +472 -236
- package/sdk/platform/Communication/CommunicationPlatformClient.js +12 -5
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +14 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.js +16 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +116 -57
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +256 -128
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +148 -73
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +552 -276
- package/sdk/platform/Discount/DiscountPlatformClient.js +92 -45
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +88 -44
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +52 -25
- package/sdk/platform/Finance/FinancePlatformClient.js +196 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +100 -49
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +104 -52
- package/sdk/platform/Lead/LeadPlatformClient.js +92 -45
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +26 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +239 -5
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +57 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +55 -0
- package/sdk/platform/Order/OrderPlatformClient.js +356 -177
- package/sdk/platform/Order/OrderPlatformModel.d.ts +44 -5
- package/sdk/platform/Order/OrderPlatformModel.js +52 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +16 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +336 -168
- package/sdk/platform/Payment/PaymentPlatformClient.js +84 -41
- package/sdk/platform/PlatformConfig.d.ts +10 -0
- package/sdk/platform/PlatformConfig.js +10 -1
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +96 -48
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +112 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +148 -73
- package/sdk/platform/Share/SharePlatformApplicationClient.js +40 -20
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +224 -112
- package/sdk/platform/Theme/ThemePlatformClient.js +28 -13
- package/sdk/platform/User/UserPlatformApplicationClient.js +144 -72
- package/sdk/platform/Webhook/WebhookPlatformClient.js +132 -65
- package/sdk/public/Configuration/ConfigurationPublicClient.js +20 -9
- package/sdk/public/Inventory/InventoryPublicClient.js +52 -25
- package/sdk/public/Partner/PartnerPublicClient.js +12 -5
- package/sdk/public/PublicConfig.d.ts +11 -1
- package/sdk/public/PublicConfig.js +10 -1
- package/sdk/public/Webhook/WebhookPublicClient.js +20 -9
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
|
-
const {
|
|
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
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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
|
-
|
|
211
|
-
|
|
212
|
-
|
|
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
|
-
|
|
335
|
-
|
|
336
|
-
|
|
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
|
-
|
|
411
|
-
|
|
412
|
-
|
|
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
|
-
|
|
488
|
-
|
|
489
|
-
|
|
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
|
-
|
|
566
|
-
|
|
567
|
-
|
|
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
|
-
|
|
643
|
-
|
|
644
|
-
|
|
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
|
-
|
|
719
|
-
|
|
720
|
-
|
|
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
|
-
|
|
794
|
-
|
|
795
|
-
|
|
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
|
-
|
|
873
|
-
|
|
874
|
-
|
|
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
|
-
|
|
948
|
-
|
|
949
|
-
|
|
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
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
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
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
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
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
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
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
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
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
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 {
|
|
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
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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
|
-
|
|
193
|
-
|
|
194
|
-
|
|
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
|
-
|
|
267
|
-
|
|
268
|
-
|
|
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
|
-
|
|
368
|
-
|
|
369
|
-
|
|
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
|
-
|
|
442
|
-
|
|
443
|
-
|
|
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
|
-
|
|
517
|
-
|
|
518
|
-
|
|
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
|
-
|
|
594
|
-
|
|
595
|
-
|
|
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
|
-
|
|
666
|
-
|
|
667
|
-
|
|
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
|
-
|
|
742
|
-
|
|
743
|
-
|
|
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
|
-
|
|
816
|
-
|
|
817
|
-
|
|
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
|
-
|
|
892
|
-
|
|
893
|
-
|
|
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
|
-
|
|
969
|
-
|
|
970
|
-
|
|
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
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
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
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
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
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
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
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
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
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
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
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
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
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
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;
|