@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
|
@@ -78,10 +78,14 @@ class Share {
|
|
|
78
78
|
});
|
|
79
79
|
|
|
80
80
|
if (res_error) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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 > Share > createShortLink \n ${res_error}`,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
85
89
|
}
|
|
86
90
|
|
|
87
91
|
return response;
|
|
@@ -153,10 +157,14 @@ class Share {
|
|
|
153
157
|
});
|
|
154
158
|
|
|
155
159
|
if (res_error) {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
161
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
162
|
+
} else {
|
|
163
|
+
Logger({
|
|
164
|
+
level: "WARN",
|
|
165
|
+
message: `Response Validation Warnings for platform > Share > getShortLinkByHash \n ${res_error}`,
|
|
166
|
+
});
|
|
167
|
+
}
|
|
160
168
|
}
|
|
161
169
|
|
|
162
170
|
return response;
|
|
@@ -227,10 +235,14 @@ class Share {
|
|
|
227
235
|
});
|
|
228
236
|
|
|
229
237
|
if (res_error) {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
238
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
239
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
240
|
+
} else {
|
|
241
|
+
Logger({
|
|
242
|
+
level: "WARN",
|
|
243
|
+
message: `Response Validation Warnings for platform > Share > getShortLinkClickStats \n ${res_error}`,
|
|
244
|
+
});
|
|
245
|
+
}
|
|
234
246
|
}
|
|
235
247
|
|
|
236
248
|
return response;
|
|
@@ -317,10 +329,14 @@ class Share {
|
|
|
317
329
|
});
|
|
318
330
|
|
|
319
331
|
if (res_error) {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
332
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
333
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
334
|
+
} else {
|
|
335
|
+
Logger({
|
|
336
|
+
level: "WARN",
|
|
337
|
+
message: `Response Validation Warnings for platform > Share > getShortLinks \n ${res_error}`,
|
|
338
|
+
});
|
|
339
|
+
}
|
|
324
340
|
}
|
|
325
341
|
|
|
326
342
|
return response;
|
|
@@ -396,10 +412,14 @@ class Share {
|
|
|
396
412
|
});
|
|
397
413
|
|
|
398
414
|
if (res_error) {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
415
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
416
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
417
|
+
} else {
|
|
418
|
+
Logger({
|
|
419
|
+
level: "WARN",
|
|
420
|
+
message: `Response Validation Warnings for platform > Share > updateShortLinkById \n ${res_error}`,
|
|
421
|
+
});
|
|
422
|
+
}
|
|
403
423
|
}
|
|
404
424
|
|
|
405
425
|
return response;
|
|
@@ -80,10 +80,14 @@ class Theme {
|
|
|
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 > Theme > addThemeToApplication \n ${res_error}`,
|
|
89
|
+
});
|
|
90
|
+
}
|
|
87
91
|
}
|
|
88
92
|
|
|
89
93
|
return response;
|
|
@@ -155,10 +159,14 @@ class Theme {
|
|
|
155
159
|
});
|
|
156
160
|
|
|
157
161
|
if (res_error) {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
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 > Theme > addToThemeLibrary \n ${res_error}`,
|
|
168
|
+
});
|
|
169
|
+
}
|
|
162
170
|
}
|
|
163
171
|
|
|
164
172
|
return response;
|
|
@@ -228,10 +236,14 @@ class Theme {
|
|
|
228
236
|
});
|
|
229
237
|
|
|
230
238
|
if (res_error) {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
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 > Theme > applyTheme \n ${res_error}`,
|
|
245
|
+
});
|
|
246
|
+
}
|
|
235
247
|
}
|
|
236
248
|
|
|
237
249
|
return response;
|
|
@@ -301,10 +313,14 @@ class Theme {
|
|
|
301
313
|
});
|
|
302
314
|
|
|
303
315
|
if (res_error) {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
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 > Theme > archiveTheme \n ${res_error}`,
|
|
322
|
+
});
|
|
323
|
+
}
|
|
308
324
|
}
|
|
309
325
|
|
|
310
326
|
return response;
|
|
@@ -376,10 +392,14 @@ class Theme {
|
|
|
376
392
|
});
|
|
377
393
|
|
|
378
394
|
if (res_error) {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
395
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
396
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
397
|
+
} else {
|
|
398
|
+
Logger({
|
|
399
|
+
level: "WARN",
|
|
400
|
+
message: `Response Validation Warnings for platform > Theme > createPage \n ${res_error}`,
|
|
401
|
+
});
|
|
402
|
+
}
|
|
383
403
|
}
|
|
384
404
|
|
|
385
405
|
return response;
|
|
@@ -451,10 +471,14 @@ class Theme {
|
|
|
451
471
|
});
|
|
452
472
|
|
|
453
473
|
if (res_error) {
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
474
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
475
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
476
|
+
} else {
|
|
477
|
+
Logger({
|
|
478
|
+
level: "WARN",
|
|
479
|
+
message: `Response Validation Warnings for platform > Theme > deletePage \n ${res_error}`,
|
|
480
|
+
});
|
|
481
|
+
}
|
|
458
482
|
}
|
|
459
483
|
|
|
460
484
|
return response;
|
|
@@ -524,10 +548,14 @@ class Theme {
|
|
|
524
548
|
});
|
|
525
549
|
|
|
526
550
|
if (res_error) {
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
551
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
552
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
553
|
+
} else {
|
|
554
|
+
Logger({
|
|
555
|
+
level: "WARN",
|
|
556
|
+
message: `Response Validation Warnings for platform > Theme > deleteTheme \n ${res_error}`,
|
|
557
|
+
});
|
|
558
|
+
}
|
|
531
559
|
}
|
|
532
560
|
|
|
533
561
|
return response;
|
|
@@ -599,10 +627,14 @@ class Theme {
|
|
|
599
627
|
});
|
|
600
628
|
|
|
601
629
|
if (res_error) {
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
630
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
631
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
632
|
+
} else {
|
|
633
|
+
Logger({
|
|
634
|
+
level: "WARN",
|
|
635
|
+
message: `Response Validation Warnings for platform > Theme > duplicateTheme \n ${res_error}`,
|
|
636
|
+
});
|
|
637
|
+
}
|
|
606
638
|
}
|
|
607
639
|
|
|
608
640
|
return response;
|
|
@@ -672,10 +704,14 @@ class Theme {
|
|
|
672
704
|
});
|
|
673
705
|
|
|
674
706
|
if (res_error) {
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
707
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
708
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
709
|
+
} else {
|
|
710
|
+
Logger({
|
|
711
|
+
level: "WARN",
|
|
712
|
+
message: `Response Validation Warnings for platform > Theme > getAllPages \n ${res_error}`,
|
|
713
|
+
});
|
|
714
|
+
}
|
|
679
715
|
}
|
|
680
716
|
|
|
681
717
|
return response;
|
|
@@ -742,10 +778,14 @@ class Theme {
|
|
|
742
778
|
.validate(responseData, { abortEarly: false, allowUnknown: false });
|
|
743
779
|
|
|
744
780
|
if (res_error) {
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
781
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
782
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
783
|
+
} else {
|
|
784
|
+
Logger({
|
|
785
|
+
level: "WARN",
|
|
786
|
+
message: `Response Validation Warnings for platform > Theme > getApplicationThemes \n ${res_error}`,
|
|
787
|
+
});
|
|
788
|
+
}
|
|
749
789
|
}
|
|
750
790
|
|
|
751
791
|
return response;
|
|
@@ -813,10 +853,14 @@ class Theme {
|
|
|
813
853
|
});
|
|
814
854
|
|
|
815
855
|
if (res_error) {
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
856
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
857
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
858
|
+
} else {
|
|
859
|
+
Logger({
|
|
860
|
+
level: "WARN",
|
|
861
|
+
message: `Response Validation Warnings for platform > Theme > getApplicationThemesCount \n ${res_error}`,
|
|
862
|
+
});
|
|
863
|
+
}
|
|
820
864
|
}
|
|
821
865
|
|
|
822
866
|
return response;
|
|
@@ -884,10 +928,14 @@ class Theme {
|
|
|
884
928
|
});
|
|
885
929
|
|
|
886
930
|
if (res_error) {
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
931
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
932
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
933
|
+
} else {
|
|
934
|
+
Logger({
|
|
935
|
+
level: "WARN",
|
|
936
|
+
message: `Response Validation Warnings for platform > Theme > getAppliedTheme \n ${res_error}`,
|
|
937
|
+
});
|
|
938
|
+
}
|
|
891
939
|
}
|
|
892
940
|
|
|
893
941
|
return response;
|
|
@@ -953,10 +1001,14 @@ class Theme {
|
|
|
953
1001
|
});
|
|
954
1002
|
|
|
955
1003
|
if (res_error) {
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
1004
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1005
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1006
|
+
} else {
|
|
1007
|
+
Logger({
|
|
1008
|
+
level: "WARN",
|
|
1009
|
+
message: `Response Validation Warnings for platform > Theme > getFonts \n ${res_error}`,
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
960
1012
|
}
|
|
961
1013
|
|
|
962
1014
|
return response;
|
|
@@ -1028,10 +1080,14 @@ class Theme {
|
|
|
1028
1080
|
});
|
|
1029
1081
|
|
|
1030
1082
|
if (res_error) {
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1083
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1084
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1085
|
+
} else {
|
|
1086
|
+
Logger({
|
|
1087
|
+
level: "WARN",
|
|
1088
|
+
message: `Response Validation Warnings for platform > Theme > getPage \n ${res_error}`,
|
|
1089
|
+
});
|
|
1090
|
+
}
|
|
1035
1091
|
}
|
|
1036
1092
|
|
|
1037
1093
|
return response;
|
|
@@ -1107,10 +1163,14 @@ class Theme {
|
|
|
1107
1163
|
});
|
|
1108
1164
|
|
|
1109
1165
|
if (res_error) {
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1166
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1167
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1168
|
+
} else {
|
|
1169
|
+
Logger({
|
|
1170
|
+
level: "WARN",
|
|
1171
|
+
message: `Response Validation Warnings for platform > Theme > getPublicThemes \n ${res_error}`,
|
|
1172
|
+
});
|
|
1173
|
+
}
|
|
1114
1174
|
}
|
|
1115
1175
|
|
|
1116
1176
|
return response;
|
|
@@ -1180,10 +1240,14 @@ class Theme {
|
|
|
1180
1240
|
});
|
|
1181
1241
|
|
|
1182
1242
|
if (res_error) {
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1243
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1244
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1245
|
+
} else {
|
|
1246
|
+
Logger({
|
|
1247
|
+
level: "WARN",
|
|
1248
|
+
message: `Response Validation Warnings for platform > Theme > getThemeById \n ${res_error}`,
|
|
1249
|
+
});
|
|
1250
|
+
}
|
|
1187
1251
|
}
|
|
1188
1252
|
|
|
1189
1253
|
return response;
|
|
@@ -1255,10 +1319,14 @@ class Theme {
|
|
|
1255
1319
|
});
|
|
1256
1320
|
|
|
1257
1321
|
if (res_error) {
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1322
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1323
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1324
|
+
} else {
|
|
1325
|
+
Logger({
|
|
1326
|
+
level: "WARN",
|
|
1327
|
+
message: `Response Validation Warnings for platform > Theme > getThemeForPreview \n ${res_error}`,
|
|
1328
|
+
});
|
|
1329
|
+
}
|
|
1262
1330
|
}
|
|
1263
1331
|
|
|
1264
1332
|
return response;
|
|
@@ -1329,10 +1397,14 @@ class Theme {
|
|
|
1329
1397
|
.validate(responseData, { abortEarly: false, allowUnknown: false });
|
|
1330
1398
|
|
|
1331
1399
|
if (res_error) {
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1400
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1401
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1402
|
+
} else {
|
|
1403
|
+
Logger({
|
|
1404
|
+
level: "WARN",
|
|
1405
|
+
message: `Response Validation Warnings for platform > Theme > getThemeLastModified \n ${res_error}`,
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1336
1408
|
}
|
|
1337
1409
|
|
|
1338
1410
|
return response;
|
|
@@ -1408,10 +1480,14 @@ class Theme {
|
|
|
1408
1480
|
});
|
|
1409
1481
|
|
|
1410
1482
|
if (res_error) {
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1483
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1484
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1485
|
+
} else {
|
|
1486
|
+
Logger({
|
|
1487
|
+
level: "WARN",
|
|
1488
|
+
message: `Response Validation Warnings for platform > Theme > getThemeLibrary \n ${res_error}`,
|
|
1489
|
+
});
|
|
1490
|
+
}
|
|
1415
1491
|
}
|
|
1416
1492
|
|
|
1417
1493
|
return response;
|
|
@@ -1481,10 +1557,14 @@ class Theme {
|
|
|
1481
1557
|
});
|
|
1482
1558
|
|
|
1483
1559
|
if (res_error) {
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1560
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1561
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1562
|
+
} else {
|
|
1563
|
+
Logger({
|
|
1564
|
+
level: "WARN",
|
|
1565
|
+
message: `Response Validation Warnings for platform > Theme > isUpgradable \n ${res_error}`,
|
|
1566
|
+
});
|
|
1567
|
+
}
|
|
1488
1568
|
}
|
|
1489
1569
|
|
|
1490
1570
|
return response;
|
|
@@ -1554,10 +1634,14 @@ class Theme {
|
|
|
1554
1634
|
});
|
|
1555
1635
|
|
|
1556
1636
|
if (res_error) {
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1637
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1638
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1639
|
+
} else {
|
|
1640
|
+
Logger({
|
|
1641
|
+
level: "WARN",
|
|
1642
|
+
message: `Response Validation Warnings for platform > Theme > publishTheme \n ${res_error}`,
|
|
1643
|
+
});
|
|
1644
|
+
}
|
|
1561
1645
|
}
|
|
1562
1646
|
|
|
1563
1647
|
return response;
|
|
@@ -1629,10 +1713,14 @@ class Theme {
|
|
|
1629
1713
|
});
|
|
1630
1714
|
|
|
1631
1715
|
if (res_error) {
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1716
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1717
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1718
|
+
} else {
|
|
1719
|
+
Logger({
|
|
1720
|
+
level: "WARN",
|
|
1721
|
+
message: `Response Validation Warnings for platform > Theme > unarchiveTheme \n ${res_error}`,
|
|
1722
|
+
});
|
|
1723
|
+
}
|
|
1636
1724
|
}
|
|
1637
1725
|
|
|
1638
1726
|
return response;
|
|
@@ -1704,10 +1792,14 @@ class Theme {
|
|
|
1704
1792
|
});
|
|
1705
1793
|
|
|
1706
1794
|
if (res_error) {
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1795
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1796
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1797
|
+
} else {
|
|
1798
|
+
Logger({
|
|
1799
|
+
level: "WARN",
|
|
1800
|
+
message: `Response Validation Warnings for platform > Theme > unpublishTheme \n ${res_error}`,
|
|
1801
|
+
});
|
|
1802
|
+
}
|
|
1711
1803
|
}
|
|
1712
1804
|
|
|
1713
1805
|
return response;
|
|
@@ -1783,10 +1875,14 @@ class Theme {
|
|
|
1783
1875
|
});
|
|
1784
1876
|
|
|
1785
1877
|
if (res_error) {
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1878
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1879
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1880
|
+
} else {
|
|
1881
|
+
Logger({
|
|
1882
|
+
level: "WARN",
|
|
1883
|
+
message: `Response Validation Warnings for platform > Theme > updateMultiplePages \n ${res_error}`,
|
|
1884
|
+
});
|
|
1885
|
+
}
|
|
1790
1886
|
}
|
|
1791
1887
|
|
|
1792
1888
|
return response;
|
|
@@ -1860,10 +1956,14 @@ class Theme {
|
|
|
1860
1956
|
});
|
|
1861
1957
|
|
|
1862
1958
|
if (res_error) {
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1959
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1960
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1961
|
+
} else {
|
|
1962
|
+
Logger({
|
|
1963
|
+
level: "WARN",
|
|
1964
|
+
message: `Response Validation Warnings for platform > Theme > updatePage \n ${res_error}`,
|
|
1965
|
+
});
|
|
1966
|
+
}
|
|
1867
1967
|
}
|
|
1868
1968
|
|
|
1869
1969
|
return response;
|
|
@@ -1935,10 +2035,14 @@ class Theme {
|
|
|
1935
2035
|
});
|
|
1936
2036
|
|
|
1937
2037
|
if (res_error) {
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
2038
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2039
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2040
|
+
} else {
|
|
2041
|
+
Logger({
|
|
2042
|
+
level: "WARN",
|
|
2043
|
+
message: `Response Validation Warnings for platform > Theme > updateTheme \n ${res_error}`,
|
|
2044
|
+
});
|
|
2045
|
+
}
|
|
1942
2046
|
}
|
|
1943
2047
|
|
|
1944
2048
|
return response;
|
|
@@ -2012,10 +2116,14 @@ class Theme {
|
|
|
2012
2116
|
});
|
|
2013
2117
|
|
|
2014
2118
|
if (res_error) {
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2119
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2120
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2121
|
+
} else {
|
|
2122
|
+
Logger({
|
|
2123
|
+
level: "WARN",
|
|
2124
|
+
message: `Response Validation Warnings for platform > Theme > updateThemeName \n ${res_error}`,
|
|
2125
|
+
});
|
|
2126
|
+
}
|
|
2019
2127
|
}
|
|
2020
2128
|
|
|
2021
2129
|
return response;
|
|
@@ -2085,10 +2193,14 @@ class Theme {
|
|
|
2085
2193
|
});
|
|
2086
2194
|
|
|
2087
2195
|
if (res_error) {
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2196
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2197
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2198
|
+
} else {
|
|
2199
|
+
Logger({
|
|
2200
|
+
level: "WARN",
|
|
2201
|
+
message: `Response Validation Warnings for platform > Theme > upgradeTheme \n ${res_error}`,
|
|
2202
|
+
});
|
|
2203
|
+
}
|
|
2092
2204
|
}
|
|
2093
2205
|
|
|
2094
2206
|
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 ThemePlatformValidator = require("./ThemePlatformValidator");
|
|
5
8
|
const ThemePlatformModel = require("./ThemePlatformModel");
|
|
@@ -79,10 +82,14 @@ class Theme {
|
|
|
79
82
|
});
|
|
80
83
|
|
|
81
84
|
if (res_error) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
86
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
87
|
+
} else {
|
|
88
|
+
Logger({
|
|
89
|
+
level: "WARN",
|
|
90
|
+
message: `Response Validation Warnings for platform > Theme > addMarketplaceThemeToCompany \n ${res_error}`,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
86
93
|
}
|
|
87
94
|
|
|
88
95
|
return response;
|
|
@@ -154,10 +161,14 @@ class Theme {
|
|
|
154
161
|
});
|
|
155
162
|
|
|
156
163
|
if (res_error) {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
164
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
165
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
166
|
+
} else {
|
|
167
|
+
Logger({
|
|
168
|
+
level: "WARN",
|
|
169
|
+
message: `Response Validation Warnings for platform > Theme > deleteCompanyTheme \n ${res_error}`,
|
|
170
|
+
});
|
|
171
|
+
}
|
|
161
172
|
}
|
|
162
173
|
|
|
163
174
|
return response;
|
|
@@ -222,10 +233,14 @@ class Theme {
|
|
|
222
233
|
.validate(responseData, { abortEarly: false, allowUnknown: false });
|
|
223
234
|
|
|
224
235
|
if (res_error) {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
236
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
237
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
238
|
+
} else {
|
|
239
|
+
Logger({
|
|
240
|
+
level: "WARN",
|
|
241
|
+
message: `Response Validation Warnings for platform > Theme > getCompanyLevelThemes \n ${res_error}`,
|
|
242
|
+
});
|
|
243
|
+
}
|
|
229
244
|
}
|
|
230
245
|
|
|
231
246
|
return response;
|