@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
|
@@ -80,10 +80,14 @@ class Serviceability {
|
|
|
80
80
|
);
|
|
81
81
|
|
|
82
82
|
if (res_error) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
84
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
85
|
+
} else {
|
|
86
|
+
Logger({
|
|
87
|
+
level: "WARN",
|
|
88
|
+
message: `Response Validation Warnings for platform > Serviceability > addAppDp \n ${res_error}`,
|
|
89
|
+
});
|
|
90
|
+
}
|
|
87
91
|
}
|
|
88
92
|
|
|
89
93
|
return response;
|
|
@@ -159,10 +163,14 @@ class Serviceability {
|
|
|
159
163
|
);
|
|
160
164
|
|
|
161
165
|
if (res_error) {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
167
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
168
|
+
} else {
|
|
169
|
+
Logger({
|
|
170
|
+
level: "WARN",
|
|
171
|
+
message: `Response Validation Warnings for platform > Serviceability > deleteAppDp \n ${res_error}`,
|
|
172
|
+
});
|
|
173
|
+
}
|
|
166
174
|
}
|
|
167
175
|
|
|
168
176
|
return response;
|
|
@@ -234,10 +242,14 @@ class Serviceability {
|
|
|
234
242
|
);
|
|
235
243
|
|
|
236
244
|
if (res_error) {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
245
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
246
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
247
|
+
} else {
|
|
248
|
+
Logger({
|
|
249
|
+
level: "WARN",
|
|
250
|
+
message: `Response Validation Warnings for platform > Serviceability > getApplicationServiceability \n ${res_error}`,
|
|
251
|
+
});
|
|
252
|
+
}
|
|
241
253
|
}
|
|
242
254
|
|
|
243
255
|
return response;
|
|
@@ -309,10 +321,14 @@ class Serviceability {
|
|
|
309
321
|
);
|
|
310
322
|
|
|
311
323
|
if (res_error) {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
324
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
325
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
326
|
+
} else {
|
|
327
|
+
Logger({
|
|
328
|
+
level: "WARN",
|
|
329
|
+
message: `Response Validation Warnings for platform > Serviceability > getDpApplicationRules \n ${res_error}`,
|
|
330
|
+
});
|
|
331
|
+
}
|
|
316
332
|
}
|
|
317
333
|
|
|
318
334
|
return response;
|
|
@@ -384,10 +400,14 @@ class Serviceability {
|
|
|
384
400
|
);
|
|
385
401
|
|
|
386
402
|
if (res_error) {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
403
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
404
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
405
|
+
} else {
|
|
406
|
+
Logger({
|
|
407
|
+
level: "WARN",
|
|
408
|
+
message: `Response Validation Warnings for platform > Serviceability > getSelfShip \n ${res_error}`,
|
|
409
|
+
});
|
|
410
|
+
}
|
|
391
411
|
}
|
|
392
412
|
|
|
393
413
|
return response;
|
|
@@ -463,10 +483,14 @@ class Serviceability {
|
|
|
463
483
|
);
|
|
464
484
|
|
|
465
485
|
if (res_error) {
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
486
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
487
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
488
|
+
} else {
|
|
489
|
+
Logger({
|
|
490
|
+
level: "WARN",
|
|
491
|
+
message: `Response Validation Warnings for platform > Serviceability > getZoneFromPincodeView \n ${res_error}`,
|
|
492
|
+
});
|
|
493
|
+
}
|
|
470
494
|
}
|
|
471
495
|
|
|
472
496
|
return response;
|
|
@@ -552,10 +576,14 @@ class Serviceability {
|
|
|
552
576
|
);
|
|
553
577
|
|
|
554
578
|
if (res_error) {
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
579
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
580
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
581
|
+
} else {
|
|
582
|
+
Logger({
|
|
583
|
+
level: "WARN",
|
|
584
|
+
message: `Response Validation Warnings for platform > Serviceability > getZonesFromApplicationIdView \n ${res_error}`,
|
|
585
|
+
});
|
|
586
|
+
}
|
|
559
587
|
}
|
|
560
588
|
|
|
561
589
|
return response;
|
|
@@ -631,10 +659,14 @@ class Serviceability {
|
|
|
631
659
|
);
|
|
632
660
|
|
|
633
661
|
if (res_error) {
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
662
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
663
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
664
|
+
} else {
|
|
665
|
+
Logger({
|
|
666
|
+
level: "WARN",
|
|
667
|
+
message: `Response Validation Warnings for platform > Serviceability > updateApplicationServiceability \n ${res_error}`,
|
|
668
|
+
});
|
|
669
|
+
}
|
|
638
670
|
}
|
|
639
671
|
|
|
640
672
|
return response;
|
|
@@ -710,10 +742,14 @@ class Serviceability {
|
|
|
710
742
|
);
|
|
711
743
|
|
|
712
744
|
if (res_error) {
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
745
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
746
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
747
|
+
} else {
|
|
748
|
+
Logger({
|
|
749
|
+
level: "WARN",
|
|
750
|
+
message: `Response Validation Warnings for platform > Serviceability > updatePincodeAuditHistory \n ${res_error}`,
|
|
751
|
+
});
|
|
752
|
+
}
|
|
717
753
|
}
|
|
718
754
|
|
|
719
755
|
return response;
|
|
@@ -789,10 +825,14 @@ class Serviceability {
|
|
|
789
825
|
);
|
|
790
826
|
|
|
791
827
|
if (res_error) {
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
828
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
829
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
830
|
+
} else {
|
|
831
|
+
Logger({
|
|
832
|
+
level: "WARN",
|
|
833
|
+
message: `Response Validation Warnings for platform > Serviceability > updatePincodeBulkView \n ${res_error}`,
|
|
834
|
+
});
|
|
835
|
+
}
|
|
796
836
|
}
|
|
797
837
|
|
|
798
838
|
return response;
|
|
@@ -868,10 +908,14 @@ class Serviceability {
|
|
|
868
908
|
);
|
|
869
909
|
|
|
870
910
|
if (res_error) {
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
911
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
912
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
913
|
+
} else {
|
|
914
|
+
Logger({
|
|
915
|
+
level: "WARN",
|
|
916
|
+
message: `Response Validation Warnings for platform > Serviceability > updatePincodeCoDListing \n ${res_error}`,
|
|
917
|
+
});
|
|
918
|
+
}
|
|
875
919
|
}
|
|
876
920
|
|
|
877
921
|
return response;
|
|
@@ -946,10 +990,14 @@ class Serviceability {
|
|
|
946
990
|
);
|
|
947
991
|
|
|
948
992
|
if (res_error) {
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
993
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
994
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
995
|
+
} else {
|
|
996
|
+
Logger({
|
|
997
|
+
level: "WARN",
|
|
998
|
+
message: `Response Validation Warnings for platform > Serviceability > updatePincodeMopView \n ${res_error}`,
|
|
999
|
+
});
|
|
1000
|
+
}
|
|
953
1001
|
}
|
|
954
1002
|
|
|
955
1003
|
return response;
|
|
@@ -1025,10 +1073,14 @@ class Serviceability {
|
|
|
1025
1073
|
);
|
|
1026
1074
|
|
|
1027
1075
|
if (res_error) {
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1076
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1077
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1078
|
+
} else {
|
|
1079
|
+
Logger({
|
|
1080
|
+
level: "WARN",
|
|
1081
|
+
message: `Response Validation Warnings for platform > Serviceability > updateSelfShip \n ${res_error}`,
|
|
1082
|
+
});
|
|
1083
|
+
}
|
|
1032
1084
|
}
|
|
1033
1085
|
|
|
1034
1086
|
return response;
|
|
@@ -1104,10 +1156,14 @@ class Serviceability {
|
|
|
1104
1156
|
);
|
|
1105
1157
|
|
|
1106
1158
|
if (res_error) {
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1159
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1160
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1161
|
+
} else {
|
|
1162
|
+
Logger({
|
|
1163
|
+
level: "WARN",
|
|
1164
|
+
message: `Response Validation Warnings for platform > Serviceability > upsertDpApplicationRules \n ${res_error}`,
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1111
1167
|
}
|
|
1112
1168
|
|
|
1113
1169
|
return response;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
const PlatformAPIClient = require("../PlatformAPIClient");
|
|
2
|
-
const {
|
|
2
|
+
const {
|
|
3
|
+
FDKClientValidationError,
|
|
4
|
+
FDKResponseValidationError,
|
|
5
|
+
} = require("../../common/FDKError");
|
|
3
6
|
const Paginator = require("../../common/Paginator");
|
|
4
7
|
const ServiceabilityPlatformValidator = require("./ServiceabilityPlatformValidator");
|
|
5
8
|
const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
@@ -77,10 +80,14 @@ class Serviceability {
|
|
|
77
80
|
});
|
|
78
81
|
|
|
79
82
|
if (res_error) {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
84
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
85
|
+
} else {
|
|
86
|
+
Logger({
|
|
87
|
+
level: "WARN",
|
|
88
|
+
message: `Response Validation Warnings for platform > Serviceability > createZone \n ${res_error}`,
|
|
89
|
+
});
|
|
90
|
+
}
|
|
84
91
|
}
|
|
85
92
|
|
|
86
93
|
return response;
|
|
@@ -149,10 +156,14 @@ class Serviceability {
|
|
|
149
156
|
);
|
|
150
157
|
|
|
151
158
|
if (res_error) {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
159
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
160
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
161
|
+
} else {
|
|
162
|
+
Logger({
|
|
163
|
+
level: "WARN",
|
|
164
|
+
message: `Response Validation Warnings for platform > Serviceability > getAllStores \n ${res_error}`,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
156
167
|
}
|
|
157
168
|
|
|
158
169
|
return response;
|
|
@@ -232,10 +243,14 @@ class Serviceability {
|
|
|
232
243
|
);
|
|
233
244
|
|
|
234
245
|
if (res_error) {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
246
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
247
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
248
|
+
} else {
|
|
249
|
+
Logger({
|
|
250
|
+
level: "WARN",
|
|
251
|
+
message: `Response Validation Warnings for platform > Serviceability > getCompanyStoreView \n ${res_error}`,
|
|
252
|
+
});
|
|
253
|
+
}
|
|
239
254
|
}
|
|
240
255
|
|
|
241
256
|
return response;
|
|
@@ -329,10 +344,14 @@ class Serviceability {
|
|
|
329
344
|
);
|
|
330
345
|
|
|
331
346
|
if (res_error) {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
347
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
348
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
349
|
+
} else {
|
|
350
|
+
Logger({
|
|
351
|
+
level: "WARN",
|
|
352
|
+
message: `Response Validation Warnings for platform > Serviceability > getDpAccount \n ${res_error}`,
|
|
353
|
+
});
|
|
354
|
+
}
|
|
336
355
|
}
|
|
337
356
|
|
|
338
357
|
return response;
|
|
@@ -403,10 +422,14 @@ class Serviceability {
|
|
|
403
422
|
);
|
|
404
423
|
|
|
405
424
|
if (res_error) {
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
425
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
426
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
427
|
+
} else {
|
|
428
|
+
Logger({
|
|
429
|
+
level: "WARN",
|
|
430
|
+
message: `Response Validation Warnings for platform > Serviceability > getDpCompanyRules \n ${res_error}`,
|
|
431
|
+
});
|
|
432
|
+
}
|
|
410
433
|
}
|
|
411
434
|
|
|
412
435
|
return response;
|
|
@@ -486,10 +509,14 @@ class Serviceability {
|
|
|
486
509
|
);
|
|
487
510
|
|
|
488
511
|
if (res_error) {
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
512
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
513
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
514
|
+
} else {
|
|
515
|
+
Logger({
|
|
516
|
+
level: "WARN",
|
|
517
|
+
message: `Response Validation Warnings for platform > Serviceability > getDpRuleInsert \n ${res_error}`,
|
|
518
|
+
});
|
|
519
|
+
}
|
|
493
520
|
}
|
|
494
521
|
|
|
495
522
|
return response;
|
|
@@ -562,10 +589,14 @@ class Serviceability {
|
|
|
562
589
|
);
|
|
563
590
|
|
|
564
591
|
if (res_error) {
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
592
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
593
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
594
|
+
} else {
|
|
595
|
+
Logger({
|
|
596
|
+
level: "WARN",
|
|
597
|
+
message: `Response Validation Warnings for platform > Serviceability > getDpRules \n ${res_error}`,
|
|
598
|
+
});
|
|
599
|
+
}
|
|
569
600
|
}
|
|
570
601
|
|
|
571
602
|
return response;
|
|
@@ -641,10 +672,14 @@ class Serviceability {
|
|
|
641
672
|
);
|
|
642
673
|
|
|
643
674
|
if (res_error) {
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
675
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
676
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
677
|
+
} else {
|
|
678
|
+
Logger({
|
|
679
|
+
level: "WARN",
|
|
680
|
+
message: `Response Validation Warnings for platform > Serviceability > getEntityRegionView \n ${res_error}`,
|
|
681
|
+
});
|
|
682
|
+
}
|
|
648
683
|
}
|
|
649
684
|
|
|
650
685
|
return response;
|
|
@@ -734,10 +769,14 @@ class Serviceability {
|
|
|
734
769
|
});
|
|
735
770
|
|
|
736
771
|
if (res_error) {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
772
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
773
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
774
|
+
} else {
|
|
775
|
+
Logger({
|
|
776
|
+
level: "WARN",
|
|
777
|
+
message: `Response Validation Warnings for platform > Serviceability > getListView \n ${res_error}`,
|
|
778
|
+
});
|
|
779
|
+
}
|
|
741
780
|
}
|
|
742
781
|
|
|
743
782
|
return response;
|
|
@@ -812,10 +851,14 @@ class Serviceability {
|
|
|
812
851
|
);
|
|
813
852
|
|
|
814
853
|
if (res_error) {
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
854
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
855
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
856
|
+
} else {
|
|
857
|
+
Logger({
|
|
858
|
+
level: "WARN",
|
|
859
|
+
message: `Response Validation Warnings for platform > Serviceability > getOptimalLocations \n ${res_error}`,
|
|
860
|
+
});
|
|
861
|
+
}
|
|
819
862
|
}
|
|
820
863
|
|
|
821
864
|
return response;
|
|
@@ -888,10 +931,14 @@ class Serviceability {
|
|
|
888
931
|
);
|
|
889
932
|
|
|
890
933
|
if (res_error) {
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
934
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
935
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
936
|
+
} else {
|
|
937
|
+
Logger({
|
|
938
|
+
level: "WARN",
|
|
939
|
+
message: `Response Validation Warnings for platform > Serviceability > getStore \n ${res_error}`,
|
|
940
|
+
});
|
|
941
|
+
}
|
|
895
942
|
}
|
|
896
943
|
|
|
897
944
|
return response;
|
|
@@ -967,10 +1014,14 @@ class Serviceability {
|
|
|
967
1014
|
);
|
|
968
1015
|
|
|
969
1016
|
if (res_error) {
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
1017
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1018
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1019
|
+
} else {
|
|
1020
|
+
Logger({
|
|
1021
|
+
level: "WARN",
|
|
1022
|
+
message: `Response Validation Warnings for platform > Serviceability > getZoneDataView \n ${res_error}`,
|
|
1023
|
+
});
|
|
1024
|
+
}
|
|
974
1025
|
}
|
|
975
1026
|
|
|
976
1027
|
return response;
|
|
@@ -1076,10 +1127,14 @@ class Serviceability {
|
|
|
1076
1127
|
});
|
|
1077
1128
|
|
|
1078
1129
|
if (res_error) {
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1130
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1131
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1132
|
+
} else {
|
|
1133
|
+
Logger({
|
|
1134
|
+
level: "WARN",
|
|
1135
|
+
message: `Response Validation Warnings for platform > Serviceability > getZoneListView \n ${res_error}`,
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1083
1138
|
}
|
|
1084
1139
|
|
|
1085
1140
|
return response;
|
|
@@ -1155,10 +1210,14 @@ class Serviceability {
|
|
|
1155
1210
|
);
|
|
1156
1211
|
|
|
1157
1212
|
if (res_error) {
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1213
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1214
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1215
|
+
} else {
|
|
1216
|
+
Logger({
|
|
1217
|
+
level: "WARN",
|
|
1218
|
+
message: `Response Validation Warnings for platform > Serviceability > updateDpRule \n ${res_error}`,
|
|
1219
|
+
});
|
|
1220
|
+
}
|
|
1162
1221
|
}
|
|
1163
1222
|
|
|
1164
1223
|
return response;
|
|
@@ -1239,10 +1298,14 @@ class Serviceability {
|
|
|
1239
1298
|
);
|
|
1240
1299
|
|
|
1241
1300
|
if (res_error) {
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1301
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1302
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1303
|
+
} else {
|
|
1304
|
+
Logger({
|
|
1305
|
+
level: "WARN",
|
|
1306
|
+
message: `Response Validation Warnings for platform > Serviceability > updateZoneControllerView \n ${res_error}`,
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1246
1309
|
}
|
|
1247
1310
|
|
|
1248
1311
|
return response;
|
|
@@ -1318,10 +1381,14 @@ class Serviceability {
|
|
|
1318
1381
|
);
|
|
1319
1382
|
|
|
1320
1383
|
if (res_error) {
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1384
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1385
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1386
|
+
} else {
|
|
1387
|
+
Logger({
|
|
1388
|
+
level: "WARN",
|
|
1389
|
+
message: `Response Validation Warnings for platform > Serviceability > upsertDpAccount \n ${res_error}`,
|
|
1390
|
+
});
|
|
1391
|
+
}
|
|
1325
1392
|
}
|
|
1326
1393
|
|
|
1327
1394
|
return response;
|
|
@@ -1396,10 +1463,14 @@ class Serviceability {
|
|
|
1396
1463
|
);
|
|
1397
1464
|
|
|
1398
1465
|
if (res_error) {
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1466
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1467
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1468
|
+
} else {
|
|
1469
|
+
Logger({
|
|
1470
|
+
level: "WARN",
|
|
1471
|
+
message: `Response Validation Warnings for platform > Serviceability > upsertDpCompanyRules \n ${res_error}`,
|
|
1472
|
+
});
|
|
1473
|
+
}
|
|
1403
1474
|
}
|
|
1404
1475
|
|
|
1405
1476
|
return response;
|
|
@@ -1472,10 +1543,14 @@ class Serviceability {
|
|
|
1472
1543
|
);
|
|
1473
1544
|
|
|
1474
1545
|
if (res_error) {
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1546
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1547
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1548
|
+
} else {
|
|
1549
|
+
Logger({
|
|
1550
|
+
level: "WARN",
|
|
1551
|
+
message: `Response Validation Warnings for platform > Serviceability > upsertDpRules \n ${res_error}`,
|
|
1552
|
+
});
|
|
1553
|
+
}
|
|
1479
1554
|
}
|
|
1480
1555
|
|
|
1481
1556
|
return response;
|