@gofynd/fdk-client-javascript 1.0.2 → 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.d.ts +243 -243
- package/sdk/application/Cart/CartApplicationClient.js +595 -594
- package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
- package/sdk/application/Cart/CartApplicationModel.js +490 -885
- package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
- package/sdk/application/Cart/CartApplicationValidator.js +98 -98
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
- package/sdk/application/Catalog/CatalogApplicationClient.js +1079 -1078
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
- package/sdk/application/Catalog/CatalogApplicationModel.js +683 -1249
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
- package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
- package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
- package/sdk/application/Common/CommonApplicationClient.js +43 -42
- package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
- package/sdk/application/Common/CommonApplicationModel.js +83 -160
- package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
- package/sdk/application/Common/CommonApplicationValidator.js +6 -6
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
- package/sdk/application/Communication/CommunicationApplicationClient.js +32 -31
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
- package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
- package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +350 -349
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
- package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
- package/sdk/application/Content/ContentApplicationClient.js +216 -215
- package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
- package/sdk/application/Content/ContentApplicationModel.js +468 -884
- package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
- package/sdk/application/Content/ContentApplicationValidator.js +24 -24
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +65 -64
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
- package/sdk/application/Lead/LeadApplicationClient.js +109 -108
- package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
- package/sdk/application/Lead/LeadApplicationModel.js +267 -474
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +31 -22
- package/sdk/application/Logistic/LogisticApplicationClient.js +115 -49
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
- package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
- package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -9
- package/sdk/application/Order/OrderApplicationClient.d.ts +85 -85
- package/sdk/application/Order/OrderApplicationClient.js +247 -246
- package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
- package/sdk/application/Order/OrderApplicationModel.js +361 -656
- package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
- package/sdk/application/Order/OrderApplicationValidator.js +28 -28
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
- package/sdk/application/Payment/PaymentApplicationClient.js +781 -780
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
- package/sdk/application/Payment/PaymentApplicationModel.js +570 -1038
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
- package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
- package/sdk/application/PosCart/PosCartApplicationClient.js +646 -645
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
- package/sdk/application/PosCart/PosCartApplicationModel.js +476 -870
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
- package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
- package/sdk/application/Rewards/RewardsApplicationClient.js +122 -121
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
- package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
- package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
- package/sdk/application/Share/ShareApplicationClient.js +94 -93
- package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
- package/sdk/application/Share/ShareApplicationModel.js +63 -123
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationValidator.js +12 -12
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
- package/sdk/application/Theme/ThemeApplicationClient.js +38 -37
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
- package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
- package/sdk/application/User/UserApplicationClient.d.ts +280 -280
- package/sdk/application/User/UserApplicationClient.js +619 -618
- package/sdk/application/User/UserApplicationModel.d.ts +79 -72
- package/sdk/application/User/UserApplicationModel.js +440 -689
- package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
- package/sdk/application/User/UserApplicationValidator.js +89 -89
- package/sdk/common/AxiosHelper.js +18 -7
- 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.d.ts +51 -51
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +182 -180
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +21 -21
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
- package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +44 -43
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +7 -6
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +60 -60
- package/sdk/platform/Billing/BillingPlatformClient.js +184 -183
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
- package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
- package/sdk/platform/Billing/BillingPlatformValidator.js +26 -25
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +192 -165
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +686 -510
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +14 -11
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +77 -61
- package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
- package/sdk/platform/Cart/CartPlatformModel.js +676 -1206
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1558 -1556
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +688 -688
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1556 -1559
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2133 -3910
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -228
- package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformClient.js +40 -51
- package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformModel.js +83 -160
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
- package/sdk/platform/Common/CommonPlatformValidator.js +7 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +326 -326
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +945 -943
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +88 -88
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
- package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +217 -216
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +27 -27
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +279 -542
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -24
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +617 -552
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +70 -64
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +348 -347
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +39 -38
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +524 -534
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1287 -1346
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +49 -50
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +153 -159
- package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
- package/sdk/platform/Content/ContentPlatformModel.js +485 -907
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
- package/sdk/platform/Discount/DiscountPlatformClient.js +219 -218
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
- package/sdk/platform/Discount/DiscountPlatformValidator.js +30 -29
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +25 -25
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +83 -61
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +9 -9
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +53 -53
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +147 -125
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +12 -11
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +63 -63
- package/sdk/platform/Inventory/InventoryPlatformClient.js +231 -230
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
- package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +29 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +73 -73
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +203 -201
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +29 -29
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
- package/sdk/platform/Lead/LeadPlatformClient.js +215 -214
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
- package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
- package/sdk/platform/Lead/LeadPlatformValidator.js +25 -24
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +68 -66
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +7 -7
- package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
- package/sdk/platform/Order/OrderPlatformClient.js +1046 -1033
- package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
- package/sdk/platform/Order/OrderPlatformModel.js +1575 -2861
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
- package/sdk/platform/Order/OrderPlatformValidator.js +161 -160
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
- package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +58 -58
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +178 -178
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +24 -24
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
- package/sdk/platform/Payment/PaymentPlatformClient.js +156 -155
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
- package/sdk/platform/Payment/PaymentPlatformModel.js +222 -410
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Payment/PaymentPlatformValidator.js +22 -21
- package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
- package/sdk/platform/PlatformApplicationClient.js +1584 -13899
- package/sdk/platform/PlatformClient.d.ts +7972 -7888
- package/sdk/platform/PlatformClient.js +8678 -10107
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +85 -85
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +299 -280
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +35 -35
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
- package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.js +62 -60
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +7 -7
- package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
- package/sdk/platform/Share/SharePlatformModel.js +60 -118
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +132 -132
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +314 -312
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +45 -45
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
- package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +136 -69
- package/sdk/platform/User/UserPlatformApplicationClient.js +507 -166
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +62 -24
- package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
- package/sdk/platform/User/UserPlatformModel.js +440 -689
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +31 -31
- package/sdk/platform/Webhook/WebhookPlatformClient.js +91 -90
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +15 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
- package/sdk/public/Configuration/ConfigurationPublicClient.js +40 -38
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
- package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
- package/sdk/public/Inventory/InventoryPublicClient.js +115 -113
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
- package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
- package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
- package/sdk/public/Webhook/WebhookPublicClient.js +2 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
- package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
- 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 -7339
- package/documentation/application/CATALOG.md +0 -9597
- package/documentation/application/COMMON.md +0 -452
- package/documentation/application/COMMUNICATION.md +0 -467
- package/documentation/application/CONFIGURATION.md +0 -2906
- package/documentation/application/CONTENT.md +0 -3351
- package/documentation/application/FILESTORAGE.md +0 -578
- package/documentation/application/LEAD.md +0 -1895
- package/documentation/application/LOGISTIC.md +0 -765
- package/documentation/application/ORDER.md +0 -3432
- package/documentation/application/PAYMENT.md +0 -5221
- package/documentation/application/POSCART.md +0 -7938
- package/documentation/application/README.md +0 -21
- package/documentation/application/REWARDS.md +0 -708
- package/documentation/application/SHARE.md +0 -733
- package/documentation/application/THEME.md +0 -5800
- package/documentation/application/USER.md +0 -4335
- package/documentation/platform/ANALYTICS.md +0 -1154
- package/documentation/platform/AUDITTRAIL.md +0 -576
- package/documentation/platform/BILLING.md +0 -2400
- package/documentation/platform/CART.md +0 -5559
- package/documentation/platform/CATALOG.md +0 -23261
- package/documentation/platform/COMMON.md +0 -452
- package/documentation/platform/COMMUNICATION.md +0 -5718
- package/documentation/platform/COMPANYPROFILE.md +0 -2031
- package/documentation/platform/CONFIGURATION.md +0 -7339
- package/documentation/platform/CONTENT.md +0 -9098
- package/documentation/platform/DISCOUNT.md +0 -863
- package/documentation/platform/FILESTORAGE.md +0 -1081
- package/documentation/platform/INVENTORY.md +0 -1779
- package/documentation/platform/LEAD.md +0 -4740
- package/documentation/platform/ORDER.md +0 -8486
- package/documentation/platform/PARTNER.md +0 -220
- package/documentation/platform/PAYMENT.md +0 -3448
- package/documentation/platform/README.md +0 -27
- package/documentation/platform/REWARDS.md +0 -1083
- package/documentation/platform/SHARE.md +0 -606
- package/documentation/platform/THEME.md +0 -35729
- package/documentation/platform/USER.md +0 -2319
- package/documentation/platform/WEBHOOK.md +0 -591
- package/documentation/public/CONFIGURATION.md +0 -452
- package/documentation/public/INVENTORY.md +0 -690
- package/documentation/public/WEBHOOK.md +0 -352
- package/jest.config.d.ts +0 -4
- package/jest.config.js +0 -6
- package/tests/application/catalog.spec.js +0 -47
- 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,10 @@
|
|
|
1
1
|
export = LeadValidator;
|
|
2
2
|
declare class LeadValidator {
|
|
3
|
-
static getTicket(): any;
|
|
4
3
|
static createHistory(): any;
|
|
5
4
|
static createTicket(): any;
|
|
6
5
|
static getCustomForm(): any;
|
|
7
|
-
static submitCustomForm(): any;
|
|
8
6
|
static getParticipantsInsideVideoRoom(): any;
|
|
7
|
+
static getTicket(): any;
|
|
9
8
|
static getTokenForVideoRoom(): any;
|
|
9
|
+
static submitCustomForm(): any;
|
|
10
10
|
}
|
|
@@ -2,12 +2,6 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
const LeadModel = require("./LeadApplicationModel");
|
|
4
4
|
class LeadValidator {
|
|
5
|
-
static getTicket() {
|
|
6
|
-
return Joi.object({
|
|
7
|
-
id: Joi.string().allow("").required(),
|
|
8
|
-
}).required();
|
|
9
|
-
}
|
|
10
|
-
|
|
11
5
|
static createHistory() {
|
|
12
6
|
return Joi.object({
|
|
13
7
|
id: Joi.string().allow("").required(),
|
|
@@ -27,16 +21,15 @@ class LeadValidator {
|
|
|
27
21
|
}).required();
|
|
28
22
|
}
|
|
29
23
|
|
|
30
|
-
static
|
|
24
|
+
static getParticipantsInsideVideoRoom() {
|
|
31
25
|
return Joi.object({
|
|
32
|
-
|
|
33
|
-
body: LeadModel.CustomFormSubmissionPayload().required(),
|
|
26
|
+
uniqueName: Joi.string().allow("").required(),
|
|
34
27
|
}).required();
|
|
35
28
|
}
|
|
36
29
|
|
|
37
|
-
static
|
|
30
|
+
static getTicket() {
|
|
38
31
|
return Joi.object({
|
|
39
|
-
|
|
32
|
+
id: Joi.string().allow("").required(),
|
|
40
33
|
}).required();
|
|
41
34
|
}
|
|
42
35
|
|
|
@@ -45,6 +38,13 @@ class LeadValidator {
|
|
|
45
38
|
uniqueName: Joi.string().allow("").required(),
|
|
46
39
|
}).required();
|
|
47
40
|
}
|
|
41
|
+
|
|
42
|
+
static submitCustomForm() {
|
|
43
|
+
return Joi.object({
|
|
44
|
+
slug: Joi.string().allow("").required(),
|
|
45
|
+
body: LeadModel.CustomFormSubmissionPayload().required(),
|
|
46
|
+
}).required();
|
|
47
|
+
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
module.exports = LeadValidator;
|
|
@@ -3,43 +3,42 @@ declare class Logistic {
|
|
|
3
3
|
constructor(_conf: any);
|
|
4
4
|
_conf: any;
|
|
5
5
|
_relativeUrls: {
|
|
6
|
-
getPincodeCity: string;
|
|
7
|
-
getTatProduct: string;
|
|
8
6
|
getAllCountries: string;
|
|
7
|
+
getOptimalLocations: string;
|
|
8
|
+
getPincodeCity: string;
|
|
9
9
|
getPincodeZones: string;
|
|
10
|
+
getTatProduct: string;
|
|
10
11
|
};
|
|
11
12
|
_urls: {};
|
|
12
13
|
updateUrls(urls: any): void;
|
|
14
|
+
/**
|
|
15
|
+
* @param {Object} arg - Arg object.
|
|
16
|
+
* @returns {Promise<CountryListResponse>} - Success response
|
|
17
|
+
* @summary: Get Country List
|
|
18
|
+
* @description: Get all countries
|
|
19
|
+
*/
|
|
20
|
+
getAllCountries({}?: any): Promise<CountryListResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* @param {Object} arg - Arg object.
|
|
23
|
+
* @param {ReAssignStoreRequest} arg.body
|
|
24
|
+
* @returns {Promise<ReAssignStoreResponse>} - Success response
|
|
25
|
+
* @summary: GET zone from the Pincode.
|
|
26
|
+
* @description: This API returns zone from the Pincode View.
|
|
27
|
+
*/
|
|
28
|
+
getOptimalLocations({ body }?: {
|
|
29
|
+
body: ReAssignStoreRequest;
|
|
30
|
+
}): Promise<ReAssignStoreResponse>;
|
|
13
31
|
/**
|
|
14
32
|
* @param {Object} arg - Arg object.
|
|
15
33
|
* @param {string} arg.pincode - A `pincode` contains a specific address of
|
|
16
34
|
* a location.
|
|
17
|
-
* @param {string} [arg.countryCode] - A 3 alphabetic country code
|
|
18
35
|
* @returns {Promise<PincodeApiResponse>} - Success response
|
|
19
36
|
* @summary: Get Pincode API
|
|
20
37
|
* @description: Get pincode data
|
|
21
38
|
*/
|
|
22
|
-
getPincodeCity({ pincode
|
|
39
|
+
getPincodeCity({ pincode }?: {
|
|
23
40
|
pincode: string;
|
|
24
|
-
countryCode?: string;
|
|
25
41
|
}): Promise<PincodeApiResponse>;
|
|
26
|
-
/**
|
|
27
|
-
* @param {Object} arg - Arg object.
|
|
28
|
-
* @param {TATViewRequest} arg.body
|
|
29
|
-
* @returns {Promise<TATViewResponse>} - Success response
|
|
30
|
-
* @summary: Get TAT API
|
|
31
|
-
* @description: Get TAT data
|
|
32
|
-
*/
|
|
33
|
-
getTatProduct({ body }?: {
|
|
34
|
-
body: TATViewRequest;
|
|
35
|
-
}): Promise<TATViewResponse>;
|
|
36
|
-
/**
|
|
37
|
-
* @param {Object} arg - Arg object.
|
|
38
|
-
* @returns {Promise<CountryListResponse>} - Success response
|
|
39
|
-
* @summary: Get Country List
|
|
40
|
-
* @description: Get all countries
|
|
41
|
-
*/
|
|
42
|
-
getAllCountries({}?: any): Promise<CountryListResponse>;
|
|
43
42
|
/**
|
|
44
43
|
* @param {Object} arg - Arg object.
|
|
45
44
|
* @param {GetZoneFromPincodeViewRequest} arg.body
|
|
@@ -50,4 +49,14 @@ declare class Logistic {
|
|
|
50
49
|
getPincodeZones({ body }?: {
|
|
51
50
|
body: GetZoneFromPincodeViewRequest;
|
|
52
51
|
}): Promise<GetZoneFromPincodeViewResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* @param {Object} arg - Arg object.
|
|
54
|
+
* @param {TATViewRequest} arg.body
|
|
55
|
+
* @returns {Promise<TATViewResponse>} - Success response
|
|
56
|
+
* @summary: Get TAT API
|
|
57
|
+
* @description: Get TAT data
|
|
58
|
+
*/
|
|
59
|
+
getTatProduct({ body }?: {
|
|
60
|
+
body: TATViewRequest;
|
|
61
|
+
}): Promise<TATViewResponse>;
|
|
53
62
|
}
|
|
@@ -1,19 +1,22 @@
|
|
|
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 LogisticValidator = require("./LogisticApplicationValidator");
|
|
6
6
|
const LogisticModel = require("./LogisticApplicationModel");
|
|
7
7
|
const { Logger } = require("./../../common/Logger");
|
|
8
|
+
const Joi = require("joi");
|
|
8
9
|
|
|
9
10
|
class Logistic {
|
|
10
11
|
constructor(_conf) {
|
|
11
12
|
this._conf = _conf;
|
|
12
13
|
this._relativeUrls = {
|
|
13
|
-
getPincodeCity: "/service/application/logistics/v1.0/pincode/{pincode}",
|
|
14
|
-
getTatProduct: "/service/application/logistics/v1.0/",
|
|
15
14
|
getAllCountries: "/service/application/logistics/v1.0/country-list",
|
|
15
|
+
getOptimalLocations:
|
|
16
|
+
"/service/application/logistics/v1.0/reassign_stores",
|
|
17
|
+
getPincodeCity: "/service/application/logistics/v1.0/pincode/{pincode}",
|
|
16
18
|
getPincodeZones: "/service/application/logistics/v1.0/pincode/zones",
|
|
19
|
+
getTatProduct: "/service/application/logistics/v1.0/",
|
|
17
20
|
};
|
|
18
21
|
this._urls = Object.entries(this._relativeUrls).reduce(
|
|
19
22
|
(urls, [method, relativeUrl]) => {
|
|
@@ -33,16 +36,13 @@ class Logistic {
|
|
|
33
36
|
|
|
34
37
|
/**
|
|
35
38
|
* @param {Object} arg - Arg object.
|
|
36
|
-
* @
|
|
37
|
-
*
|
|
38
|
-
* @
|
|
39
|
-
* @returns {Promise<PincodeApiResponse>} - Success response
|
|
40
|
-
* @summary: Get Pincode API
|
|
41
|
-
* @description: Get pincode data
|
|
39
|
+
* @returns {Promise<CountryListResponse>} - Success response
|
|
40
|
+
* @summary: Get Country List
|
|
41
|
+
* @description: Get all countries
|
|
42
42
|
*/
|
|
43
|
-
async
|
|
44
|
-
const { error } = LogisticValidator.
|
|
45
|
-
{
|
|
43
|
+
async getAllCountries({} = {}) {
|
|
44
|
+
const { error } = LogisticValidator.getAllCountries().validate(
|
|
45
|
+
{},
|
|
46
46
|
{ abortEarly: false, allowUnknown: true }
|
|
47
47
|
);
|
|
48
48
|
if (error) {
|
|
@@ -50,29 +50,28 @@ class Logistic {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
// Showing warrnings if extra unknown parameters are found
|
|
53
|
-
const { error: warrning } = LogisticValidator.
|
|
54
|
-
{
|
|
53
|
+
const { error: warrning } = LogisticValidator.getAllCountries().validate(
|
|
54
|
+
{},
|
|
55
55
|
{ abortEarly: false, allowUnknown: false }
|
|
56
56
|
);
|
|
57
57
|
if (warrning) {
|
|
58
58
|
Logger({
|
|
59
59
|
level: "WARN",
|
|
60
|
-
message: "Parameter Validation warrnings for
|
|
60
|
+
message: "Parameter Validation warrnings for getAllCountries",
|
|
61
61
|
});
|
|
62
62
|
Logger({ level: "WARN", message: warrning });
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
const query_params = {};
|
|
66
|
-
query_params["country_code"] = countryCode;
|
|
67
66
|
|
|
68
67
|
const xHeaders = {};
|
|
69
68
|
|
|
70
|
-
const response = await
|
|
69
|
+
const response = await ApplicationAPIClient.execute(
|
|
71
70
|
this._conf,
|
|
72
71
|
"get",
|
|
73
72
|
constructUrl({
|
|
74
|
-
url: this._urls["
|
|
75
|
-
params: {
|
|
73
|
+
url: this._urls["getAllCountries"],
|
|
74
|
+
params: {},
|
|
76
75
|
}),
|
|
77
76
|
query_params,
|
|
78
77
|
undefined,
|
|
@@ -81,7 +80,7 @@ class Logistic {
|
|
|
81
80
|
|
|
82
81
|
const {
|
|
83
82
|
error: res_error,
|
|
84
|
-
} = LogisticModel.
|
|
83
|
+
} = LogisticModel.CountryListResponse().validate(response, {
|
|
85
84
|
abortEarly: false,
|
|
86
85
|
allowUnknown: false,
|
|
87
86
|
});
|
|
@@ -89,7 +88,7 @@ class Logistic {
|
|
|
89
88
|
if (res_error) {
|
|
90
89
|
Logger({
|
|
91
90
|
level: "WARN",
|
|
92
|
-
message: "Response Validation Warnnings for
|
|
91
|
+
message: "Response Validation Warnnings for getAllCountries",
|
|
93
92
|
});
|
|
94
93
|
Logger({ level: "WARN", message: res_error });
|
|
95
94
|
}
|
|
@@ -99,13 +98,13 @@ class Logistic {
|
|
|
99
98
|
|
|
100
99
|
/**
|
|
101
100
|
* @param {Object} arg - Arg object.
|
|
102
|
-
* @param {
|
|
103
|
-
* @returns {Promise<
|
|
104
|
-
* @summary:
|
|
105
|
-
* @description:
|
|
101
|
+
* @param {ReAssignStoreRequest} arg.body
|
|
102
|
+
* @returns {Promise<ReAssignStoreResponse>} - Success response
|
|
103
|
+
* @summary: GET zone from the Pincode.
|
|
104
|
+
* @description: This API returns zone from the Pincode View.
|
|
106
105
|
*/
|
|
107
|
-
async
|
|
108
|
-
const { error } = LogisticValidator.
|
|
106
|
+
async getOptimalLocations({ body } = {}) {
|
|
107
|
+
const { error } = LogisticValidator.getOptimalLocations().validate(
|
|
109
108
|
{ body },
|
|
110
109
|
{ abortEarly: false, allowUnknown: true }
|
|
111
110
|
);
|
|
@@ -114,14 +113,16 @@ class Logistic {
|
|
|
114
113
|
}
|
|
115
114
|
|
|
116
115
|
// Showing warrnings if extra unknown parameters are found
|
|
117
|
-
const {
|
|
116
|
+
const {
|
|
117
|
+
error: warrning,
|
|
118
|
+
} = LogisticValidator.getOptimalLocations().validate(
|
|
118
119
|
{ body },
|
|
119
120
|
{ abortEarly: false, allowUnknown: false }
|
|
120
121
|
);
|
|
121
122
|
if (warrning) {
|
|
122
123
|
Logger({
|
|
123
124
|
level: "WARN",
|
|
124
|
-
message: "Parameter Validation warrnings for
|
|
125
|
+
message: "Parameter Validation warrnings for getOptimalLocations",
|
|
125
126
|
});
|
|
126
127
|
Logger({ level: "WARN", message: warrning });
|
|
127
128
|
}
|
|
@@ -130,11 +131,11 @@ class Logistic {
|
|
|
130
131
|
|
|
131
132
|
const xHeaders = {};
|
|
132
133
|
|
|
133
|
-
const response = await
|
|
134
|
+
const response = await ApplicationAPIClient.execute(
|
|
134
135
|
this._conf,
|
|
135
136
|
"post",
|
|
136
137
|
constructUrl({
|
|
137
|
-
url: this._urls["
|
|
138
|
+
url: this._urls["getOptimalLocations"],
|
|
138
139
|
params: {},
|
|
139
140
|
}),
|
|
140
141
|
query_params,
|
|
@@ -144,7 +145,7 @@ class Logistic {
|
|
|
144
145
|
|
|
145
146
|
const {
|
|
146
147
|
error: res_error,
|
|
147
|
-
} = LogisticModel.
|
|
148
|
+
} = LogisticModel.ReAssignStoreResponse().validate(response, {
|
|
148
149
|
abortEarly: false,
|
|
149
150
|
allowUnknown: false,
|
|
150
151
|
});
|
|
@@ -152,7 +153,7 @@ class Logistic {
|
|
|
152
153
|
if (res_error) {
|
|
153
154
|
Logger({
|
|
154
155
|
level: "WARN",
|
|
155
|
-
message: "Response Validation Warnnings for
|
|
156
|
+
message: "Response Validation Warnnings for getOptimalLocations",
|
|
156
157
|
});
|
|
157
158
|
Logger({ level: "WARN", message: res_error });
|
|
158
159
|
}
|
|
@@ -162,13 +163,15 @@ class Logistic {
|
|
|
162
163
|
|
|
163
164
|
/**
|
|
164
165
|
* @param {Object} arg - Arg object.
|
|
165
|
-
* @
|
|
166
|
-
*
|
|
167
|
-
* @
|
|
166
|
+
* @param {string} arg.pincode - A `pincode` contains a specific address of
|
|
167
|
+
* a location.
|
|
168
|
+
* @returns {Promise<PincodeApiResponse>} - Success response
|
|
169
|
+
* @summary: Get Pincode API
|
|
170
|
+
* @description: Get pincode data
|
|
168
171
|
*/
|
|
169
|
-
async
|
|
170
|
-
const { error } = LogisticValidator.
|
|
171
|
-
{},
|
|
172
|
+
async getPincodeCity({ pincode } = {}) {
|
|
173
|
+
const { error } = LogisticValidator.getPincodeCity().validate(
|
|
174
|
+
{ pincode },
|
|
172
175
|
{ abortEarly: false, allowUnknown: true }
|
|
173
176
|
);
|
|
174
177
|
if (error) {
|
|
@@ -176,14 +179,14 @@ class Logistic {
|
|
|
176
179
|
}
|
|
177
180
|
|
|
178
181
|
// Showing warrnings if extra unknown parameters are found
|
|
179
|
-
const { error: warrning } = LogisticValidator.
|
|
180
|
-
{},
|
|
182
|
+
const { error: warrning } = LogisticValidator.getPincodeCity().validate(
|
|
183
|
+
{ pincode },
|
|
181
184
|
{ abortEarly: false, allowUnknown: false }
|
|
182
185
|
);
|
|
183
186
|
if (warrning) {
|
|
184
187
|
Logger({
|
|
185
188
|
level: "WARN",
|
|
186
|
-
message: "Parameter Validation warrnings for
|
|
189
|
+
message: "Parameter Validation warrnings for getPincodeCity",
|
|
187
190
|
});
|
|
188
191
|
Logger({ level: "WARN", message: warrning });
|
|
189
192
|
}
|
|
@@ -192,12 +195,12 @@ class Logistic {
|
|
|
192
195
|
|
|
193
196
|
const xHeaders = {};
|
|
194
197
|
|
|
195
|
-
const response = await
|
|
198
|
+
const response = await ApplicationAPIClient.execute(
|
|
196
199
|
this._conf,
|
|
197
200
|
"get",
|
|
198
201
|
constructUrl({
|
|
199
|
-
url: this._urls["
|
|
200
|
-
params: {},
|
|
202
|
+
url: this._urls["getPincodeCity"],
|
|
203
|
+
params: { pincode },
|
|
201
204
|
}),
|
|
202
205
|
query_params,
|
|
203
206
|
undefined,
|
|
@@ -206,7 +209,7 @@ class Logistic {
|
|
|
206
209
|
|
|
207
210
|
const {
|
|
208
211
|
error: res_error,
|
|
209
|
-
} = LogisticModel.
|
|
212
|
+
} = LogisticModel.PincodeApiResponse().validate(response, {
|
|
210
213
|
abortEarly: false,
|
|
211
214
|
allowUnknown: false,
|
|
212
215
|
});
|
|
@@ -214,7 +217,7 @@ class Logistic {
|
|
|
214
217
|
if (res_error) {
|
|
215
218
|
Logger({
|
|
216
219
|
level: "WARN",
|
|
217
|
-
message: "Response Validation Warnnings for
|
|
220
|
+
message: "Response Validation Warnnings for getPincodeCity",
|
|
218
221
|
});
|
|
219
222
|
Logger({ level: "WARN", message: res_error });
|
|
220
223
|
}
|
|
@@ -255,7 +258,7 @@ class Logistic {
|
|
|
255
258
|
|
|
256
259
|
const xHeaders = {};
|
|
257
260
|
|
|
258
|
-
const response = await
|
|
261
|
+
const response = await ApplicationAPIClient.execute(
|
|
259
262
|
this._conf,
|
|
260
263
|
"post",
|
|
261
264
|
constructUrl({
|
|
@@ -284,6 +287,69 @@ class Logistic {
|
|
|
284
287
|
|
|
285
288
|
return response;
|
|
286
289
|
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* @param {Object} arg - Arg object.
|
|
293
|
+
* @param {TATViewRequest} arg.body
|
|
294
|
+
* @returns {Promise<TATViewResponse>} - Success response
|
|
295
|
+
* @summary: Get TAT API
|
|
296
|
+
* @description: Get TAT data
|
|
297
|
+
*/
|
|
298
|
+
async getTatProduct({ body } = {}) {
|
|
299
|
+
const { error } = LogisticValidator.getTatProduct().validate(
|
|
300
|
+
{ body },
|
|
301
|
+
{ abortEarly: false, allowUnknown: true }
|
|
302
|
+
);
|
|
303
|
+
if (error) {
|
|
304
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// Showing warrnings if extra unknown parameters are found
|
|
308
|
+
const { error: warrning } = LogisticValidator.getTatProduct().validate(
|
|
309
|
+
{ body },
|
|
310
|
+
{ abortEarly: false, allowUnknown: false }
|
|
311
|
+
);
|
|
312
|
+
if (warrning) {
|
|
313
|
+
Logger({
|
|
314
|
+
level: "WARN",
|
|
315
|
+
message: "Parameter Validation warrnings for getTatProduct",
|
|
316
|
+
});
|
|
317
|
+
Logger({ level: "WARN", message: warrning });
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
const query_params = {};
|
|
321
|
+
|
|
322
|
+
const xHeaders = {};
|
|
323
|
+
|
|
324
|
+
const response = await ApplicationAPIClient.execute(
|
|
325
|
+
this._conf,
|
|
326
|
+
"post",
|
|
327
|
+
constructUrl({
|
|
328
|
+
url: this._urls["getTatProduct"],
|
|
329
|
+
params: {},
|
|
330
|
+
}),
|
|
331
|
+
query_params,
|
|
332
|
+
body,
|
|
333
|
+
xHeaders
|
|
334
|
+
);
|
|
335
|
+
|
|
336
|
+
const {
|
|
337
|
+
error: res_error,
|
|
338
|
+
} = LogisticModel.TATViewResponse().validate(response, {
|
|
339
|
+
abortEarly: false,
|
|
340
|
+
allowUnknown: false,
|
|
341
|
+
});
|
|
342
|
+
|
|
343
|
+
if (res_error) {
|
|
344
|
+
Logger({
|
|
345
|
+
level: "WARN",
|
|
346
|
+
message: "Response Validation Warnnings for getTatProduct",
|
|
347
|
+
});
|
|
348
|
+
Logger({ level: "WARN", message: res_error });
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
return response;
|
|
352
|
+
}
|
|
287
353
|
}
|
|
288
354
|
|
|
289
355
|
module.exports = Logistic;
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
export = LogisticModel;
|
|
2
2
|
declare class LogisticModel {
|
|
3
|
+
static CountryEntityResponse(): any;
|
|
4
|
+
static CountryListResponse(): any;
|
|
3
5
|
static CountryMetaResponse(): any;
|
|
6
|
+
static DP(): any;
|
|
7
|
+
static GetZoneFromPincodeViewRequest(): any;
|
|
8
|
+
static GetZoneFromPincodeViewResponse(): any;
|
|
9
|
+
static LogisticsResponse(): any;
|
|
10
|
+
static PincodeApiResponse(): any;
|
|
11
|
+
static PincodeDataResponse(): any;
|
|
4
12
|
static PincodeErrorSchemaResponse(): any;
|
|
13
|
+
static PincodeLatLongData(): any;
|
|
5
14
|
static PincodeMetaResponse(): any;
|
|
6
15
|
static PincodeParentsResponse(): any;
|
|
7
|
-
static
|
|
8
|
-
static
|
|
9
|
-
static TATCategoryRequest(): any;
|
|
16
|
+
static ReAssignStoreRequest(): any;
|
|
17
|
+
static ReAssignStoreResponse(): any;
|
|
10
18
|
static TATArticlesRequest(): any;
|
|
11
|
-
static
|
|
12
|
-
static
|
|
19
|
+
static TATArticlesResponse(): any;
|
|
20
|
+
static TATCategoryRequest(): any;
|
|
13
21
|
static TATErrorSchemaResponse(): any;
|
|
14
22
|
static TATFormattedResponse(): any;
|
|
15
|
-
static
|
|
16
|
-
static TATPromiseResponse(): any;
|
|
17
|
-
static TATArticlesResponse(): any;
|
|
23
|
+
static TATLocationDetailsRequest(): any;
|
|
18
24
|
static TATLocationDetailsResponse(): any;
|
|
25
|
+
static TATPromiseResponse(): any;
|
|
26
|
+
static TATTimestampResponse(): any;
|
|
27
|
+
static TATViewRequest(): any;
|
|
19
28
|
static TATViewResponse(): any;
|
|
20
|
-
static DP(): any;
|
|
21
|
-
static LogisticsResponse(): any;
|
|
22
|
-
static CountryEntityResponse(): any;
|
|
23
|
-
static CountryListResponse(): any;
|
|
24
|
-
static GetZoneFromPincodeViewRequest(): any;
|
|
25
|
-
static GetZoneFromPincodeViewResponse(): any;
|
|
26
29
|
}
|