@gofynd/fdk-client-javascript 1.0.3 → 1.0.4
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 +31 -2
- package/index.d.ts +4 -4
- package/index.js +9 -10
- package/package.json +14 -14
- package/sdk/APIClient.d.ts +11 -0
- package/sdk/APIClient.js +35 -0
- package/sdk/Client.d.ts +6 -0
- package/sdk/Client.js +17 -0
- package/sdk/Config.d.ts +9 -0
- package/sdk/Config.js +17 -0
- package/sdk/application/Cart/CartApplicationClient.js +29 -28
- package/sdk/application/Cart/CartApplicationModel.js +3 -1
- package/sdk/application/Catalog/CatalogApplicationClient.js +43 -42
- package/sdk/application/Catalog/CatalogApplicationModel.js +1 -1
- package/sdk/application/Common/CommonApplicationClient.js +5 -4
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +21 -20
- package/sdk/application/Content/ContentApplicationClient.js +26 -25
- package/sdk/application/Content/ContentApplicationModel.js +1 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +6 -5
- package/sdk/application/Lead/LeadApplicationClient.js +10 -9
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +1 -3
- package/sdk/application/Logistic/LogisticApplicationClient.js +11 -12
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -1
- package/sdk/application/Order/OrderApplicationClient.js +15 -14
- package/sdk/application/Order/OrderApplicationModel.js +9 -0
- package/sdk/application/Payment/PaymentApplicationClient.js +42 -41
- package/sdk/application/PosCart/PosCartApplicationClient.js +30 -29
- package/sdk/application/PosCart/PosCartApplicationModel.js +3 -1
- package/sdk/application/Rewards/RewardsApplicationClient.js +11 -10
- package/sdk/application/Share/ShareApplicationClient.js +10 -9
- package/sdk/application/Theme/ThemeApplicationClient.js +7 -6
- package/sdk/application/User/UserApplicationClient.js +38 -37
- package/sdk/common/AxiosHelper.js +17 -6
- package/sdk/constructUrl.d.ts +5 -0
- package/sdk/constructUrl.js +13 -0
- package/sdk/index.d.ts +3 -0
- package/sdk/index.js +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +3 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +1 -0
- package/sdk/platform/Billing/BillingPlatformClient.js +3 -2
- package/sdk/platform/Billing/BillingPlatformValidator.js +1 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +27 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +177 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +3 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +17 -1
- package/sdk/platform/Cart/CartPlatformModel.js +7 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +3 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +6 -9
- package/sdk/platform/Catalog/CatalogPlatformModel.js +7 -7
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +2 -1
- package/sdk/platform/Common/CommonPlatformClient.js +7 -18
- package/sdk/platform/Common/CommonPlatformValidator.js +1 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3 -1
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +5 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +1 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +9 -8
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +1 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +3 -62
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +0 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +1 -7
- package/sdk/platform/Content/ContentPlatformModel.js +1 -0
- package/sdk/platform/Discount/DiscountPlatformClient.js +3 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +1 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +27 -5
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +3 -3
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +28 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +1 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.js +3 -2
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +1 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +3 -1
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -3
- package/sdk/platform/Lead/LeadPlatformValidator.js +1 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +3 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Order/OrderPlatformClient.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformClient.js +16 -3
- package/sdk/platform/Order/OrderPlatformModel.js +1 -0
- package/sdk/platform/Order/OrderPlatformValidator.js +1 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +14 -14
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +3 -2
- package/sdk/platform/Payment/PaymentPlatformValidator.js +1 -0
- package/sdk/platform/PlatformClient.d.ts +13 -9
- package/sdk/platform/PlatformClient.js +13 -9
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +36 -17
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Share/SharePlatformApplicationClient.js +3 -1
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +1 -1
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +3 -1
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +1 -1
- package/sdk/platform/User/UserPlatformApplicationClient.js +3 -1
- package/sdk/platform/User/UserPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Webhook/WebhookPlatformClient.js +3 -2
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +1 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -0
- package/sdk/public/Inventory/InventoryPublicClient.js +2 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +2 -0
- package/.github/workflows/on_create_release.yml +0 -23
- package/.github/workflows/on_merge_main.yml +0 -38
- package/.github/workflows/on_pull_request.yml +0 -35
- package/.prettierrc +0 -5
- package/documentation/application/CART.md +0 -8771
- package/documentation/application/CATALOG.md +0 -8690
- package/documentation/application/COMMON.md +0 -325
- package/documentation/application/COMMUNICATION.md +0 -387
- package/documentation/application/CONFIGURATION.md +0 -2212
- package/documentation/application/CONTENT.md +0 -2629
- package/documentation/application/FILESTORAGE.md +0 -442
- package/documentation/application/LEAD.md +0 -1549
- package/documentation/application/LOGISTIC.md +0 -689
- package/documentation/application/ORDER.md +0 -2937
- package/documentation/application/PAYMENT.md +0 -4475
- package/documentation/application/POSCART.md +0 -9375
- package/documentation/application/README.md +0 -21
- package/documentation/application/REWARDS.md +0 -554
- package/documentation/application/SHARE.md +0 -635
- package/documentation/application/THEME.md +0 -5517
- package/documentation/application/USER.md +0 -3798
- package/documentation/platform/ANALYTICS.md +0 -1012
- package/documentation/platform/AUDITTRAIL.md +0 -493
- package/documentation/platform/BILLING.md +0 -1889
- package/documentation/platform/CART.md +0 -4711
- package/documentation/platform/CATALOG.md +0 -20522
- package/documentation/platform/COMMON.md +0 -325
- package/documentation/platform/COMMUNICATION.md +0 -4970
- package/documentation/platform/COMPANYPROFILE.md +0 -1646
- package/documentation/platform/CONFIGURATION.md +0 -6316
- package/documentation/platform/CONTENT.md +0 -8364
- package/documentation/platform/DISCOUNT.md +0 -767
- package/documentation/platform/FILESTORAGE.md +0 -945
- package/documentation/platform/INVENTORY.md +0 -1136
- package/documentation/platform/LEAD.md +0 -4394
- package/documentation/platform/ORDER.md +0 -6525
- package/documentation/platform/PARTNER.md +0 -193
- package/documentation/platform/PAYMENT.md +0 -3138
- package/documentation/platform/README.md +0 -27
- package/documentation/platform/REWARDS.md +0 -919
- package/documentation/platform/SHARE.md +0 -513
- package/documentation/platform/THEME.md +0 -35446
- package/documentation/platform/USER.md +0 -2174
- package/documentation/platform/WEBHOOK.md +0 -485
- package/documentation/public/CONFIGURATION.md +0 -325
- package/documentation/public/INVENTORY.md +0 -508
- package/documentation/public/WEBHOOK.md +0 -246
- package/jest.config.d.ts +0 -4
- package/jest.config.js +0 -6
- package/tests/application/catalog.spec.js +0 -54
- package/tests/common/action-url.spec.js +0 -35
- package/tests/common/schema/action-url.json +0 -178
- package/tests/common/schema/url-action.json +0 -683
- package/tests/common/url-action.spec.js +0 -48
- package/tests/helpers/cookie.helper.js +0 -31
- package/tests/helpers/oauth.helper.js +0 -43
- package/tests/platform/catalog.spec.js +0 -49
- package/tests/public/location.spec.js +0 -39
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
|
+
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
2
3
|
const constructUrl = require("../constructUrl");
|
|
3
4
|
const Paginator = require("../../common/Paginator");
|
|
4
|
-
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
5
5
|
const CatalogValidator = require("./CatalogApplicationValidator");
|
|
6
6
|
const CatalogModel = require("./CatalogApplicationModel");
|
|
7
7
|
const { Logger } = require("./../../common/Logger");
|
|
8
|
+
const Joi = require("joi");
|
|
8
9
|
|
|
9
10
|
class Catalog {
|
|
10
11
|
constructor(_conf) {
|
|
@@ -112,7 +113,7 @@ class Catalog {
|
|
|
112
113
|
|
|
113
114
|
const xHeaders = {};
|
|
114
115
|
|
|
115
|
-
const response = await
|
|
116
|
+
const response = await ApplicationAPIClient.execute(
|
|
116
117
|
this._conf,
|
|
117
118
|
"post",
|
|
118
119
|
constructUrl({
|
|
@@ -179,7 +180,7 @@ class Catalog {
|
|
|
179
180
|
|
|
180
181
|
const xHeaders = {};
|
|
181
182
|
|
|
182
|
-
const response = await
|
|
183
|
+
const response = await ApplicationAPIClient.execute(
|
|
183
184
|
this._conf,
|
|
184
185
|
"get",
|
|
185
186
|
constructUrl({
|
|
@@ -251,7 +252,7 @@ class Catalog {
|
|
|
251
252
|
|
|
252
253
|
const xHeaders = {};
|
|
253
254
|
|
|
254
|
-
const response = await
|
|
255
|
+
const response = await ApplicationAPIClient.execute(
|
|
255
256
|
this._conf,
|
|
256
257
|
"get",
|
|
257
258
|
constructUrl({
|
|
@@ -308,7 +309,7 @@ class Catalog {
|
|
|
308
309
|
});
|
|
309
310
|
return data;
|
|
310
311
|
};
|
|
311
|
-
paginator.setCallback(callback);
|
|
312
|
+
paginator.setCallback(callback.bind(this));
|
|
312
313
|
return paginator;
|
|
313
314
|
}
|
|
314
315
|
|
|
@@ -349,7 +350,7 @@ class Catalog {
|
|
|
349
350
|
|
|
350
351
|
const xHeaders = {};
|
|
351
352
|
|
|
352
|
-
const response = await
|
|
353
|
+
const response = await ApplicationAPIClient.execute(
|
|
353
354
|
this._conf,
|
|
354
355
|
"get",
|
|
355
356
|
constructUrl({
|
|
@@ -416,7 +417,7 @@ class Catalog {
|
|
|
416
417
|
|
|
417
418
|
const xHeaders = {};
|
|
418
419
|
|
|
419
|
-
const response = await
|
|
420
|
+
const response = await ApplicationAPIClient.execute(
|
|
420
421
|
this._conf,
|
|
421
422
|
"get",
|
|
422
423
|
constructUrl({
|
|
@@ -483,7 +484,7 @@ class Catalog {
|
|
|
483
484
|
|
|
484
485
|
const xHeaders = {};
|
|
485
486
|
|
|
486
|
-
const response = await
|
|
487
|
+
const response = await ApplicationAPIClient.execute(
|
|
487
488
|
this._conf,
|
|
488
489
|
"get",
|
|
489
490
|
constructUrl({
|
|
@@ -573,7 +574,7 @@ class Catalog {
|
|
|
573
574
|
|
|
574
575
|
const xHeaders = {};
|
|
575
576
|
|
|
576
|
-
const response = await
|
|
577
|
+
const response = await ApplicationAPIClient.execute(
|
|
577
578
|
this._conf,
|
|
578
579
|
"get",
|
|
579
580
|
constructUrl({
|
|
@@ -647,7 +648,7 @@ class Catalog {
|
|
|
647
648
|
});
|
|
648
649
|
return data;
|
|
649
650
|
};
|
|
650
|
-
paginator.setCallback(callback);
|
|
651
|
+
paginator.setCallback(callback.bind(this));
|
|
651
652
|
return paginator;
|
|
652
653
|
}
|
|
653
654
|
|
|
@@ -690,7 +691,7 @@ class Catalog {
|
|
|
690
691
|
|
|
691
692
|
const xHeaders = {};
|
|
692
693
|
|
|
693
|
-
const response = await
|
|
694
|
+
const response = await ApplicationAPIClient.execute(
|
|
694
695
|
this._conf,
|
|
695
696
|
"get",
|
|
696
697
|
constructUrl({
|
|
@@ -744,7 +745,7 @@ class Catalog {
|
|
|
744
745
|
});
|
|
745
746
|
return data;
|
|
746
747
|
};
|
|
747
|
-
paginator.setCallback(callback);
|
|
748
|
+
paginator.setCallback(callback.bind(this));
|
|
748
749
|
return paginator;
|
|
749
750
|
}
|
|
750
751
|
|
|
@@ -788,7 +789,7 @@ class Catalog {
|
|
|
788
789
|
|
|
789
790
|
const xHeaders = {};
|
|
790
791
|
|
|
791
|
-
const response = await
|
|
792
|
+
const response = await ApplicationAPIClient.execute(
|
|
792
793
|
this._conf,
|
|
793
794
|
"get",
|
|
794
795
|
constructUrl({
|
|
@@ -851,7 +852,7 @@ class Catalog {
|
|
|
851
852
|
|
|
852
853
|
const xHeaders = {};
|
|
853
854
|
|
|
854
|
-
const response = await
|
|
855
|
+
const response = await ApplicationAPIClient.execute(
|
|
855
856
|
this._conf,
|
|
856
857
|
"get",
|
|
857
858
|
constructUrl({
|
|
@@ -916,7 +917,7 @@ class Catalog {
|
|
|
916
917
|
|
|
917
918
|
const xHeaders = {};
|
|
918
919
|
|
|
919
|
-
const response = await
|
|
920
|
+
const response = await ApplicationAPIClient.execute(
|
|
920
921
|
this._conf,
|
|
921
922
|
"get",
|
|
922
923
|
constructUrl({
|
|
@@ -984,7 +985,7 @@ class Catalog {
|
|
|
984
985
|
|
|
985
986
|
const xHeaders = {};
|
|
986
987
|
|
|
987
|
-
const response = await
|
|
988
|
+
const response = await ApplicationAPIClient.execute(
|
|
988
989
|
this._conf,
|
|
989
990
|
"get",
|
|
990
991
|
constructUrl({
|
|
@@ -1039,7 +1040,7 @@ class Catalog {
|
|
|
1039
1040
|
});
|
|
1040
1041
|
return data;
|
|
1041
1042
|
};
|
|
1042
|
-
paginator.setCallback(callback);
|
|
1043
|
+
paginator.setCallback(callback.bind(this));
|
|
1043
1044
|
return paginator;
|
|
1044
1045
|
}
|
|
1045
1046
|
|
|
@@ -1080,7 +1081,7 @@ class Catalog {
|
|
|
1080
1081
|
|
|
1081
1082
|
const xHeaders = {};
|
|
1082
1083
|
|
|
1083
|
-
const response = await
|
|
1084
|
+
const response = await ApplicationAPIClient.execute(
|
|
1084
1085
|
this._conf,
|
|
1085
1086
|
"get",
|
|
1086
1087
|
constructUrl({
|
|
@@ -1150,7 +1151,7 @@ class Catalog {
|
|
|
1150
1151
|
|
|
1151
1152
|
const xHeaders = {};
|
|
1152
1153
|
|
|
1153
|
-
const response = await
|
|
1154
|
+
const response = await ApplicationAPIClient.execute(
|
|
1154
1155
|
this._conf,
|
|
1155
1156
|
"get",
|
|
1156
1157
|
constructUrl({
|
|
@@ -1206,7 +1207,7 @@ class Catalog {
|
|
|
1206
1207
|
});
|
|
1207
1208
|
return data;
|
|
1208
1209
|
};
|
|
1209
|
-
paginator.setCallback(callback);
|
|
1210
|
+
paginator.setCallback(callback.bind(this));
|
|
1210
1211
|
return paginator;
|
|
1211
1212
|
}
|
|
1212
1213
|
|
|
@@ -1268,7 +1269,7 @@ class Catalog {
|
|
|
1268
1269
|
|
|
1269
1270
|
const xHeaders = {};
|
|
1270
1271
|
|
|
1271
|
-
const response = await
|
|
1272
|
+
const response = await ApplicationAPIClient.execute(
|
|
1272
1273
|
this._conf,
|
|
1273
1274
|
"get",
|
|
1274
1275
|
constructUrl({
|
|
@@ -1340,7 +1341,7 @@ class Catalog {
|
|
|
1340
1341
|
});
|
|
1341
1342
|
return data;
|
|
1342
1343
|
};
|
|
1343
|
-
paginator.setCallback(callback);
|
|
1344
|
+
paginator.setCallback(callback.bind(this));
|
|
1344
1345
|
return paginator;
|
|
1345
1346
|
}
|
|
1346
1347
|
|
|
@@ -1379,7 +1380,7 @@ class Catalog {
|
|
|
1379
1380
|
|
|
1380
1381
|
const xHeaders = {};
|
|
1381
1382
|
|
|
1382
|
-
const response = await
|
|
1383
|
+
const response = await ApplicationAPIClient.execute(
|
|
1383
1384
|
this._conf,
|
|
1384
1385
|
"get",
|
|
1385
1386
|
constructUrl({
|
|
@@ -1445,7 +1446,7 @@ class Catalog {
|
|
|
1445
1446
|
|
|
1446
1447
|
const xHeaders = {};
|
|
1447
1448
|
|
|
1448
|
-
const response = await
|
|
1449
|
+
const response = await ApplicationAPIClient.execute(
|
|
1449
1450
|
this._conf,
|
|
1450
1451
|
"get",
|
|
1451
1452
|
constructUrl({
|
|
@@ -1512,7 +1513,7 @@ class Catalog {
|
|
|
1512
1513
|
|
|
1513
1514
|
const xHeaders = {};
|
|
1514
1515
|
|
|
1515
|
-
const response = await
|
|
1516
|
+
const response = await ApplicationAPIClient.execute(
|
|
1516
1517
|
this._conf,
|
|
1517
1518
|
"get",
|
|
1518
1519
|
constructUrl({
|
|
@@ -1580,7 +1581,7 @@ class Catalog {
|
|
|
1580
1581
|
|
|
1581
1582
|
const xHeaders = {};
|
|
1582
1583
|
|
|
1583
|
-
const response = await
|
|
1584
|
+
const response = await ApplicationAPIClient.execute(
|
|
1584
1585
|
this._conf,
|
|
1585
1586
|
"get",
|
|
1586
1587
|
constructUrl({
|
|
@@ -1657,7 +1658,7 @@ class Catalog {
|
|
|
1657
1658
|
|
|
1658
1659
|
const xHeaders = {};
|
|
1659
1660
|
|
|
1660
|
-
const response = await
|
|
1661
|
+
const response = await ApplicationAPIClient.execute(
|
|
1661
1662
|
this._conf,
|
|
1662
1663
|
"get",
|
|
1663
1664
|
constructUrl({
|
|
@@ -1745,7 +1746,7 @@ class Catalog {
|
|
|
1745
1746
|
|
|
1746
1747
|
const xHeaders = {};
|
|
1747
1748
|
|
|
1748
|
-
const response = await
|
|
1749
|
+
const response = await ApplicationAPIClient.execute(
|
|
1749
1750
|
this._conf,
|
|
1750
1751
|
"get",
|
|
1751
1752
|
constructUrl({
|
|
@@ -1817,7 +1818,7 @@ class Catalog {
|
|
|
1817
1818
|
});
|
|
1818
1819
|
return data;
|
|
1819
1820
|
};
|
|
1820
|
-
paginator.setCallback(callback);
|
|
1821
|
+
paginator.setCallback(callback.bind(this));
|
|
1821
1822
|
return paginator;
|
|
1822
1823
|
}
|
|
1823
1824
|
|
|
@@ -1861,7 +1862,7 @@ class Catalog {
|
|
|
1861
1862
|
|
|
1862
1863
|
const xHeaders = {};
|
|
1863
1864
|
|
|
1864
|
-
const response = await
|
|
1865
|
+
const response = await ApplicationAPIClient.execute(
|
|
1865
1866
|
this._conf,
|
|
1866
1867
|
"get",
|
|
1867
1868
|
constructUrl({
|
|
@@ -1937,7 +1938,7 @@ class Catalog {
|
|
|
1937
1938
|
|
|
1938
1939
|
const xHeaders = {};
|
|
1939
1940
|
|
|
1940
|
-
const response = await
|
|
1941
|
+
const response = await ApplicationAPIClient.execute(
|
|
1941
1942
|
this._conf,
|
|
1942
1943
|
"get",
|
|
1943
1944
|
constructUrl({
|
|
@@ -2008,7 +2009,7 @@ class Catalog {
|
|
|
2008
2009
|
|
|
2009
2010
|
const xHeaders = {};
|
|
2010
2011
|
|
|
2011
|
-
const response = await
|
|
2012
|
+
const response = await ApplicationAPIClient.execute(
|
|
2012
2013
|
this._conf,
|
|
2013
2014
|
"get",
|
|
2014
2015
|
constructUrl({
|
|
@@ -2063,7 +2064,7 @@ class Catalog {
|
|
|
2063
2064
|
});
|
|
2064
2065
|
return data;
|
|
2065
2066
|
};
|
|
2066
|
-
paginator.setCallback(callback);
|
|
2067
|
+
paginator.setCallback(callback.bind(this));
|
|
2067
2068
|
return paginator;
|
|
2068
2069
|
}
|
|
2069
2070
|
|
|
@@ -2104,7 +2105,7 @@ class Catalog {
|
|
|
2104
2105
|
|
|
2105
2106
|
const xHeaders = {};
|
|
2106
2107
|
|
|
2107
|
-
const response = await
|
|
2108
|
+
const response = await ApplicationAPIClient.execute(
|
|
2108
2109
|
this._conf,
|
|
2109
2110
|
"get",
|
|
2110
2111
|
constructUrl({
|
|
@@ -2199,7 +2200,7 @@ class Catalog {
|
|
|
2199
2200
|
|
|
2200
2201
|
const xHeaders = {};
|
|
2201
2202
|
|
|
2202
|
-
const response = await
|
|
2203
|
+
const response = await ApplicationAPIClient.execute(
|
|
2203
2204
|
this._conf,
|
|
2204
2205
|
"get",
|
|
2205
2206
|
constructUrl({
|
|
@@ -2268,7 +2269,7 @@ class Catalog {
|
|
|
2268
2269
|
});
|
|
2269
2270
|
return data;
|
|
2270
2271
|
};
|
|
2271
|
-
paginator.setCallback(callback);
|
|
2272
|
+
paginator.setCallback(callback.bind(this));
|
|
2272
2273
|
return paginator;
|
|
2273
2274
|
}
|
|
2274
2275
|
|
|
@@ -2309,7 +2310,7 @@ class Catalog {
|
|
|
2309
2310
|
|
|
2310
2311
|
const xHeaders = {};
|
|
2311
2312
|
|
|
2312
|
-
const response = await
|
|
2313
|
+
const response = await ApplicationAPIClient.execute(
|
|
2313
2314
|
this._conf,
|
|
2314
2315
|
"get",
|
|
2315
2316
|
constructUrl({
|
|
@@ -2379,7 +2380,7 @@ class Catalog {
|
|
|
2379
2380
|
|
|
2380
2381
|
const xHeaders = {};
|
|
2381
2382
|
|
|
2382
|
-
const response = await
|
|
2383
|
+
const response = await ApplicationAPIClient.execute(
|
|
2383
2384
|
this._conf,
|
|
2384
2385
|
"get",
|
|
2385
2386
|
constructUrl({
|
|
@@ -2468,7 +2469,7 @@ class Catalog {
|
|
|
2468
2469
|
|
|
2469
2470
|
const xHeaders = {};
|
|
2470
2471
|
|
|
2471
|
-
const response = await
|
|
2472
|
+
const response = await ApplicationAPIClient.execute(
|
|
2472
2473
|
this._conf,
|
|
2473
2474
|
"get",
|
|
2474
2475
|
constructUrl({
|
|
@@ -2533,7 +2534,7 @@ class Catalog {
|
|
|
2533
2534
|
});
|
|
2534
2535
|
return data;
|
|
2535
2536
|
};
|
|
2536
|
-
paginator.setCallback(callback);
|
|
2537
|
+
paginator.setCallback(callback.bind(this));
|
|
2537
2538
|
return paginator;
|
|
2538
2539
|
}
|
|
2539
2540
|
|
|
@@ -2572,7 +2573,7 @@ class Catalog {
|
|
|
2572
2573
|
|
|
2573
2574
|
const xHeaders = {};
|
|
2574
2575
|
|
|
2575
|
-
const response = await
|
|
2576
|
+
const response = await ApplicationAPIClient.execute(
|
|
2576
2577
|
this._conf,
|
|
2577
2578
|
"delete",
|
|
2578
2579
|
constructUrl({
|
|
@@ -546,7 +546,7 @@ class CatalogModel {
|
|
|
546
546
|
created_by: CatalogModel.UserDetail(),
|
|
547
547
|
created_on: Joi.string().allow("").required(),
|
|
548
548
|
is_active: Joi.boolean(),
|
|
549
|
-
logo: Joi.
|
|
549
|
+
logo: Joi.any(),
|
|
550
550
|
meta: Joi.any(),
|
|
551
551
|
modified_by: CatalogModel.UserDetail(),
|
|
552
552
|
modified_on: Joi.string().allow("").required(),
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
|
+
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
2
3
|
const constructUrl = require("../constructUrl");
|
|
3
4
|
const Paginator = require("../../common/Paginator");
|
|
4
|
-
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
5
5
|
const CommonValidator = require("./CommonApplicationValidator");
|
|
6
6
|
const CommonModel = require("./CommonApplicationModel");
|
|
7
7
|
const { Logger } = require("./../../common/Logger");
|
|
8
|
+
const Joi = require("joi");
|
|
8
9
|
|
|
9
10
|
class Common {
|
|
10
11
|
constructor(_conf) {
|
|
@@ -69,7 +70,7 @@ class Common {
|
|
|
69
70
|
|
|
70
71
|
const xHeaders = {};
|
|
71
72
|
|
|
72
|
-
const response = await
|
|
73
|
+
const response = await ApplicationAPIClient.execute(
|
|
73
74
|
this._conf,
|
|
74
75
|
"get",
|
|
75
76
|
constructUrl({
|
|
@@ -133,7 +134,7 @@ class Common {
|
|
|
133
134
|
const xHeaders = {};
|
|
134
135
|
xHeaders["authorization"] = authorization;
|
|
135
136
|
|
|
136
|
-
const response = await
|
|
137
|
+
const response = await ApplicationAPIClient.execute(
|
|
137
138
|
this._conf,
|
|
138
139
|
"get",
|
|
139
140
|
constructUrl({
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
|
+
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
2
3
|
const constructUrl = require("../constructUrl");
|
|
3
4
|
const Paginator = require("../../common/Paginator");
|
|
4
|
-
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
5
5
|
const CommunicationValidator = require("./CommunicationApplicationValidator");
|
|
6
6
|
const CommunicationModel = require("./CommunicationApplicationModel");
|
|
7
7
|
const { Logger } = require("./../../common/Logger");
|
|
8
|
+
const Joi = require("joi");
|
|
8
9
|
|
|
9
10
|
class Communication {
|
|
10
11
|
constructor(_conf) {
|
|
@@ -66,7 +67,7 @@ class Communication {
|
|
|
66
67
|
|
|
67
68
|
const xHeaders = {};
|
|
68
69
|
|
|
69
|
-
const response = await
|
|
70
|
+
const response = await ApplicationAPIClient.execute(
|
|
70
71
|
this._conf,
|
|
71
72
|
"get",
|
|
72
73
|
constructUrl({
|
|
@@ -131,7 +132,7 @@ class Communication {
|
|
|
131
132
|
|
|
132
133
|
const xHeaders = {};
|
|
133
134
|
|
|
134
|
-
const response = await
|
|
135
|
+
const response = await ApplicationAPIClient.execute(
|
|
135
136
|
this._conf,
|
|
136
137
|
"post",
|
|
137
138
|
constructUrl({
|
|
@@ -199,7 +200,7 @@ class Communication {
|
|
|
199
200
|
|
|
200
201
|
const xHeaders = {};
|
|
201
202
|
|
|
202
|
-
const response = await
|
|
203
|
+
const response = await ApplicationAPIClient.execute(
|
|
203
204
|
this._conf,
|
|
204
205
|
"post",
|
|
205
206
|
constructUrl({
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
|
+
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
2
3
|
const constructUrl = require("../constructUrl");
|
|
3
4
|
const Paginator = require("../../common/Paginator");
|
|
4
|
-
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
5
5
|
const ConfigurationValidator = require("./ConfigurationApplicationValidator");
|
|
6
6
|
const ConfigurationModel = require("./ConfigurationApplicationModel");
|
|
7
7
|
const { Logger } = require("./../../common/Logger");
|
|
8
|
+
const Joi = require("joi");
|
|
8
9
|
|
|
9
10
|
class Configuration {
|
|
10
11
|
constructor(_conf) {
|
|
@@ -81,7 +82,7 @@ class Configuration {
|
|
|
81
82
|
|
|
82
83
|
const xHeaders = {};
|
|
83
84
|
|
|
84
|
-
const response = await
|
|
85
|
+
const response = await ApplicationAPIClient.execute(
|
|
85
86
|
this._conf,
|
|
86
87
|
"get",
|
|
87
88
|
constructUrl({
|
|
@@ -164,7 +165,7 @@ class Configuration {
|
|
|
164
165
|
|
|
165
166
|
const xHeaders = {};
|
|
166
167
|
|
|
167
|
-
const response = await
|
|
168
|
+
const response = await ApplicationAPIClient.execute(
|
|
168
169
|
this._conf,
|
|
169
170
|
"get",
|
|
170
171
|
constructUrl({
|
|
@@ -230,7 +231,7 @@ class Configuration {
|
|
|
230
231
|
});
|
|
231
232
|
return data;
|
|
232
233
|
};
|
|
233
|
-
paginator.setCallback(callback);
|
|
234
|
+
paginator.setCallback(callback.bind(this));
|
|
234
235
|
return paginator;
|
|
235
236
|
}
|
|
236
237
|
|
|
@@ -275,7 +276,7 @@ class Configuration {
|
|
|
275
276
|
|
|
276
277
|
const xHeaders = {};
|
|
277
278
|
|
|
278
|
-
const response = await
|
|
279
|
+
const response = await ApplicationAPIClient.execute(
|
|
279
280
|
this._conf,
|
|
280
281
|
"get",
|
|
281
282
|
constructUrl({
|
|
@@ -339,7 +340,7 @@ class Configuration {
|
|
|
339
340
|
|
|
340
341
|
const xHeaders = {};
|
|
341
342
|
|
|
342
|
-
const response = await
|
|
343
|
+
const response = await ApplicationAPIClient.execute(
|
|
343
344
|
this._conf,
|
|
344
345
|
"get",
|
|
345
346
|
constructUrl({
|
|
@@ -403,7 +404,7 @@ class Configuration {
|
|
|
403
404
|
|
|
404
405
|
const xHeaders = {};
|
|
405
406
|
|
|
406
|
-
const response = await
|
|
407
|
+
const response = await ApplicationAPIClient.execute(
|
|
407
408
|
this._conf,
|
|
408
409
|
"get",
|
|
409
410
|
constructUrl({
|
|
@@ -467,7 +468,7 @@ class Configuration {
|
|
|
467
468
|
|
|
468
469
|
const xHeaders = {};
|
|
469
470
|
|
|
470
|
-
const response = await
|
|
471
|
+
const response = await ApplicationAPIClient.execute(
|
|
471
472
|
this._conf,
|
|
472
473
|
"get",
|
|
473
474
|
constructUrl({
|
|
@@ -529,7 +530,7 @@ class Configuration {
|
|
|
529
530
|
|
|
530
531
|
const xHeaders = {};
|
|
531
532
|
|
|
532
|
-
const response = await
|
|
533
|
+
const response = await ApplicationAPIClient.execute(
|
|
533
534
|
this._conf,
|
|
534
535
|
"get",
|
|
535
536
|
constructUrl({
|
|
@@ -594,7 +595,7 @@ class Configuration {
|
|
|
594
595
|
|
|
595
596
|
const xHeaders = {};
|
|
596
597
|
|
|
597
|
-
const response = await
|
|
598
|
+
const response = await ApplicationAPIClient.execute(
|
|
598
599
|
this._conf,
|
|
599
600
|
"get",
|
|
600
601
|
constructUrl({
|
|
@@ -656,7 +657,7 @@ class Configuration {
|
|
|
656
657
|
|
|
657
658
|
const xHeaders = {};
|
|
658
659
|
|
|
659
|
-
const response = await
|
|
660
|
+
const response = await ApplicationAPIClient.execute(
|
|
660
661
|
this._conf,
|
|
661
662
|
"get",
|
|
662
663
|
constructUrl({
|
|
@@ -720,7 +721,7 @@ class Configuration {
|
|
|
720
721
|
|
|
721
722
|
const xHeaders = {};
|
|
722
723
|
|
|
723
|
-
const response = await
|
|
724
|
+
const response = await ApplicationAPIClient.execute(
|
|
724
725
|
this._conf,
|
|
725
726
|
"get",
|
|
726
727
|
constructUrl({
|
|
@@ -782,7 +783,7 @@ class Configuration {
|
|
|
782
783
|
|
|
783
784
|
const xHeaders = {};
|
|
784
785
|
|
|
785
|
-
const response = await
|
|
786
|
+
const response = await ApplicationAPIClient.execute(
|
|
786
787
|
this._conf,
|
|
787
788
|
"get",
|
|
788
789
|
constructUrl({
|
|
@@ -847,7 +848,7 @@ class Configuration {
|
|
|
847
848
|
|
|
848
849
|
const xHeaders = {};
|
|
849
850
|
|
|
850
|
-
const response = await
|
|
851
|
+
const response = await ApplicationAPIClient.execute(
|
|
851
852
|
this._conf,
|
|
852
853
|
"post",
|
|
853
854
|
constructUrl({
|
|
@@ -919,7 +920,7 @@ class Configuration {
|
|
|
919
920
|
|
|
920
921
|
const xHeaders = {};
|
|
921
922
|
|
|
922
|
-
const response = await
|
|
923
|
+
const response = await ApplicationAPIClient.execute(
|
|
923
924
|
this._conf,
|
|
924
925
|
"get",
|
|
925
926
|
constructUrl({
|
|
@@ -974,7 +975,7 @@ class Configuration {
|
|
|
974
975
|
});
|
|
975
976
|
return data;
|
|
976
977
|
};
|
|
977
|
-
paginator.setCallback(callback);
|
|
978
|
+
paginator.setCallback(callback.bind(this));
|
|
978
979
|
return paginator;
|
|
979
980
|
}
|
|
980
981
|
|
|
@@ -1010,7 +1011,7 @@ class Configuration {
|
|
|
1010
1011
|
|
|
1011
1012
|
const xHeaders = {};
|
|
1012
1013
|
|
|
1013
|
-
const response = await
|
|
1014
|
+
const response = await ApplicationAPIClient.execute(
|
|
1014
1015
|
this._conf,
|
|
1015
1016
|
"get",
|
|
1016
1017
|
constructUrl({
|
|
@@ -1075,7 +1076,7 @@ class Configuration {
|
|
|
1075
1076
|
|
|
1076
1077
|
const xHeaders = {};
|
|
1077
1078
|
|
|
1078
|
-
const response = await
|
|
1079
|
+
const response = await ApplicationAPIClient.execute(
|
|
1079
1080
|
this._conf,
|
|
1080
1081
|
"get",
|
|
1081
1082
|
constructUrl({
|
|
@@ -1141,7 +1142,7 @@ class Configuration {
|
|
|
1141
1142
|
|
|
1142
1143
|
const xHeaders = {};
|
|
1143
1144
|
|
|
1144
|
-
const response = await
|
|
1145
|
+
const response = await ApplicationAPIClient.execute(
|
|
1145
1146
|
this._conf,
|
|
1146
1147
|
"delete",
|
|
1147
1148
|
constructUrl({
|