@gofynd/fdk-client-javascript 1.4.13 → 1.4.14
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 +1 -1
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +60 -53
- package/sdk/application/Cart/CartApplicationClient.js +130 -53
- package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
- package/sdk/application/Cart/CartApplicationModel.js +380 -159
- package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
- package/sdk/application/Cart/CartApplicationValidator.js +34 -18
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
- package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
- package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
- package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
- package/sdk/application/Common/CommonApplicationClient.js +6 -5
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
- package/sdk/application/Content/ContentApplicationClient.js +54 -75
- package/sdk/application/Content/ContentApplicationModel.d.ts +93 -37
- package/sdk/application/Content/ContentApplicationModel.js +83 -32
- package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
- package/sdk/application/Content/ContentApplicationValidator.js +15 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
- package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
- package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
- package/sdk/application/Lead/LeadApplicationClient.js +2 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
- package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
- package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
- package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
- package/sdk/application/Order/OrderApplicationClient.js +96 -13
- package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
- package/sdk/application/Order/OrderApplicationModel.js +278 -73
- package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
- package/sdk/application/Order/OrderApplicationValidator.js +15 -2
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
- package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
- package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
- package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +48 -17
- package/sdk/application/Theme/ThemeApplicationModel.js +42 -22
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
- package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
- package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +1 -0
- package/sdk/application/index.js +2 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
- package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
- package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +208 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +383 -358
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +122 -126
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +66 -68
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +141 -118
- package/sdk/platform/Catalog/CatalogPlatformClient.js +193 -170
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1516 -1766
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1393 -1224
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
- package/sdk/platform/Content/ContentPlatformModel.js +521 -390
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +178 -97
- package/sdk/platform/Order/OrderPlatformClient.js +589 -229
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5447 -3071
- package/sdk/platform/Order/OrderPlatformModel.js +3496 -1653
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +241 -176
- package/sdk/platform/Order/OrderPlatformValidator.js +153 -97
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
- package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
- package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +791 -5
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -13,14 +13,14 @@ const Joi = require("joi");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* @typedef
|
|
16
|
+
* @typedef SubmitCustomFormDetails
|
|
17
17
|
* @property {string} message - Success message for form submission.
|
|
18
18
|
* @property {Ticket} [ticket]
|
|
19
|
-
* @property {
|
|
19
|
+
* @property {FormFieldDetails} [response]
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* @typedef
|
|
23
|
+
* @typedef FormFieldDetails
|
|
24
24
|
* @property {string} [_id] - Unique identifier for a custom form response.
|
|
25
25
|
* @property {number} [__v] - Version of the form.
|
|
26
26
|
* @property {string} [application_id] - Unique identifier for a Sales channel.
|
|
@@ -199,7 +199,7 @@ class LeadApplicationModel {
|
|
|
199
199
|
/** @returns {TicketHistoryPayload} */
|
|
200
200
|
static TicketHistoryPayload() {
|
|
201
201
|
return Joi.object({
|
|
202
|
-
value: Joi.any().required(),
|
|
202
|
+
value: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
203
203
|
type: LeadApplicationModel.HistoryTypeEnum().required(),
|
|
204
204
|
});
|
|
205
205
|
}
|
|
@@ -212,17 +212,17 @@ class LeadApplicationModel {
|
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
/** @returns {
|
|
216
|
-
static
|
|
215
|
+
/** @returns {SubmitCustomFormDetails} */
|
|
216
|
+
static SubmitCustomFormDetails() {
|
|
217
217
|
return Joi.object({
|
|
218
218
|
message: Joi.string().allow("").required(),
|
|
219
219
|
ticket: LeadApplicationModel.Ticket(),
|
|
220
|
-
response: LeadApplicationModel.
|
|
220
|
+
response: LeadApplicationModel.FormFieldDetails(),
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
/** @returns {
|
|
225
|
-
static
|
|
224
|
+
/** @returns {FormFieldDetails} */
|
|
225
|
+
static FormFieldDetails() {
|
|
226
226
|
return Joi.object({
|
|
227
227
|
_id: Joi.string().allow(""),
|
|
228
228
|
__v: Joi.number(),
|
|
@@ -278,12 +278,12 @@ class LeadApplicationModel {
|
|
|
278
278
|
/** @returns {AddTicketPayload} */
|
|
279
279
|
static AddTicketPayload() {
|
|
280
280
|
return Joi.object({
|
|
281
|
-
created_by: Joi.any(),
|
|
281
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
282
282
|
status: Joi.string().allow(""),
|
|
283
283
|
priority: LeadApplicationModel.PriorityEnum(),
|
|
284
284
|
category: Joi.string().allow("").required(),
|
|
285
285
|
content: LeadApplicationModel.TicketContent().required(),
|
|
286
|
-
_custom_json: Joi.any(),
|
|
286
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
287
287
|
subscribers: Joi.array().items(Joi.string().allow("")),
|
|
288
288
|
});
|
|
289
289
|
}
|
|
@@ -348,9 +348,9 @@ class LeadApplicationModel {
|
|
|
348
348
|
/** @returns {FeedbackForm} */
|
|
349
349
|
static FeedbackForm() {
|
|
350
350
|
return Joi.object({
|
|
351
|
-
inputs: Joi.any(),
|
|
351
|
+
inputs: Joi.object().pattern(/\S/, Joi.any()),
|
|
352
352
|
title: Joi.string().allow(""),
|
|
353
|
-
timestamps: Joi.any(),
|
|
353
|
+
timestamps: Joi.object().pattern(/\S/, Joi.any()),
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
356
|
|
|
@@ -369,10 +369,10 @@ class LeadApplicationModel {
|
|
|
369
369
|
static TicketHistory() {
|
|
370
370
|
return Joi.object({
|
|
371
371
|
type: Joi.string().allow("").required(),
|
|
372
|
-
value: Joi.any().required(),
|
|
372
|
+
value: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
373
373
|
ticket_id: Joi.string().allow("").required(),
|
|
374
374
|
created_on: LeadApplicationModel.CreatedOn(),
|
|
375
|
-
created_by: Joi.any(),
|
|
375
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
376
376
|
_id: Joi.string().allow("").required(),
|
|
377
377
|
updated_at: Joi.string().allow(""),
|
|
378
378
|
created_at: Joi.string().allow(""),
|
|
@@ -391,12 +391,12 @@ class LeadApplicationModel {
|
|
|
391
391
|
source: LeadApplicationModel.TicketSourceEnum().required(),
|
|
392
392
|
status: LeadApplicationModel.Status().required(),
|
|
393
393
|
priority: LeadApplicationModel.Priority().required(),
|
|
394
|
-
created_by: Joi.any(),
|
|
395
|
-
assigned_to: Joi.any(),
|
|
394
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
395
|
+
assigned_to: Joi.object().pattern(/\S/, Joi.any()),
|
|
396
396
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
397
|
-
_custom_json: Joi.any(),
|
|
397
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
398
398
|
is_feedback_pending: Joi.boolean(),
|
|
399
|
-
integration: Joi.any(),
|
|
399
|
+
integration: Joi.object().pattern(/\S/, Joi.any()),
|
|
400
400
|
_id: Joi.string().allow("").required(),
|
|
401
401
|
updated_at: Joi.string().allow(""),
|
|
402
402
|
created_at: Joi.string().allow(""),
|
|
@@ -6,6 +6,8 @@ declare class Logistic {
|
|
|
6
6
|
getAllCountries: string;
|
|
7
7
|
getCountries: string;
|
|
8
8
|
getCountry: string;
|
|
9
|
+
getCourierPartners: string;
|
|
10
|
+
getDeliveryPromise: string;
|
|
9
11
|
getLocalities: string;
|
|
10
12
|
getLocality: string;
|
|
11
13
|
getLocations: string;
|
|
@@ -21,12 +23,12 @@ declare class Logistic {
|
|
|
21
23
|
* @param {LogisticApplicationValidator.GetAllCountriesParam} arg - Arg object.
|
|
22
24
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
23
25
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
24
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
26
|
+
* @returns {Promise<LogisticApplicationModel.CountryListResult>} - Success response
|
|
25
27
|
* @name getAllCountries
|
|
26
28
|
* @summary: Get deliverable countries
|
|
27
29
|
* @description: Get a list of countries within the specified delivery zones for that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getAllCountries/).
|
|
28
30
|
*/
|
|
29
|
-
getAllCountries({ requestHeaders }?: any, { responseHeaders }?: object): Promise<LogisticApplicationModel.
|
|
31
|
+
getAllCountries({ requestHeaders }?: any, { responseHeaders }?: object): Promise<LogisticApplicationModel.CountryListResult>;
|
|
30
32
|
/**
|
|
31
33
|
* @param {LogisticApplicationValidator.GetCountriesParam} arg - Arg object.
|
|
32
34
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -36,7 +38,7 @@ declare class Logistic {
|
|
|
36
38
|
* @summary: Get countries
|
|
37
39
|
* @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
|
|
38
40
|
*/
|
|
39
|
-
getCountries({ onboarding, pageNo, pageSize, q, requestHeaders }?: LogisticApplicationValidator.GetCountriesParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetCountries>;
|
|
41
|
+
getCountries({ onboarding, pageNo, pageSize, q, hierarchy, requestHeaders }?: LogisticApplicationValidator.GetCountriesParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetCountries>;
|
|
40
42
|
/**
|
|
41
43
|
* @param {LogisticApplicationValidator.GetCountryParam} arg - Arg object.
|
|
42
44
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -47,6 +49,28 @@ declare class Logistic {
|
|
|
47
49
|
* @description: Get details about a particular country and its address format customized for different business scenarios. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountry/).
|
|
48
50
|
*/
|
|
49
51
|
getCountry({ countryIsoCode, requestHeaders }?: LogisticApplicationValidator.GetCountryParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetCountry>;
|
|
52
|
+
/**
|
|
53
|
+
* @param {LogisticApplicationValidator.GetCourierPartnersParam} arg - Arg object.
|
|
54
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
55
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
56
|
+
* @returns {Promise<LogisticApplicationModel.ShipmentCourierPartnerResult>}
|
|
57
|
+
* - Success response
|
|
58
|
+
*
|
|
59
|
+
* @name getCourierPartners
|
|
60
|
+
* @summary: Serviceable Courier Partners.
|
|
61
|
+
* @description: Get all the serviceable courier partners of a destination and the shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCourierPartners/).
|
|
62
|
+
*/
|
|
63
|
+
getCourierPartners({ companyId, applicationId, body, requestHeaders }?: LogisticApplicationValidator.GetCourierPartnersParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.ShipmentCourierPartnerResult>;
|
|
64
|
+
/**
|
|
65
|
+
* @param {LogisticApplicationValidator.GetDeliveryPromiseParam} arg - Arg object.
|
|
66
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
67
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
68
|
+
* @returns {Promise<LogisticApplicationModel.GetPromiseDetails>} - Success response
|
|
69
|
+
* @name getDeliveryPromise
|
|
70
|
+
* @summary: Get delivery promise
|
|
71
|
+
* @description: Get delivery promises for both global and store levels based on a specific locality type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getDeliveryPromise/).
|
|
72
|
+
*/
|
|
73
|
+
getDeliveryPromise({ pageNo, pageSize, requestHeaders }?: LogisticApplicationValidator.GetDeliveryPromiseParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetPromiseDetails>;
|
|
50
74
|
/**
|
|
51
75
|
* @param {LogisticApplicationValidator.GetLocalitiesParam} arg - Arg object.
|
|
52
76
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -71,66 +95,65 @@ declare class Logistic {
|
|
|
71
95
|
* @param {LogisticApplicationValidator.GetLocationsParam} arg - Arg object.
|
|
72
96
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
73
97
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
74
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
98
|
+
* @returns {Promise<LogisticApplicationModel.GetStoreResult>} - Success response
|
|
75
99
|
* @name getLocations
|
|
76
100
|
* @summary: Get available selling locations
|
|
77
101
|
* @description: Get stores available for the application based on Delivery Zones and Order Orchestration rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocations/).
|
|
78
102
|
*/
|
|
79
|
-
getLocations({ xApplicationId, xApplicationData, country, state, city, pincode, sector, pageNo, pageSize, requestHeaders, }?: LogisticApplicationValidator.GetLocationsParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.
|
|
103
|
+
getLocations({ xApplicationId, xApplicationData, country, state, city, pincode, sector, pageNo, pageSize, requestHeaders, }?: LogisticApplicationValidator.GetLocationsParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetStoreResult>;
|
|
80
104
|
/**
|
|
81
105
|
* @param {LogisticApplicationValidator.GetOptimalLocationsParam} arg - Arg object.
|
|
82
106
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
83
107
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
84
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
85
|
-
* Success response
|
|
108
|
+
* @returns {Promise<LogisticApplicationModel.ReAssignStoreResult>} - Success response
|
|
86
109
|
* @name getOptimalLocations
|
|
87
110
|
* @summary: Get selling locations
|
|
88
111
|
* @description: Get optimal fulfillment centre for customers by analyzing their location, product availability, and inventory levels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getOptimalLocations/).
|
|
89
112
|
*/
|
|
90
|
-
getOptimalLocations({ body, requestHeaders }?: LogisticApplicationValidator.GetOptimalLocationsParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.
|
|
113
|
+
getOptimalLocations({ body, requestHeaders }?: LogisticApplicationValidator.GetOptimalLocationsParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.ReAssignStoreResult>;
|
|
91
114
|
/**
|
|
92
115
|
* @param {LogisticApplicationValidator.GetPincodeCityParam} arg - Arg object.
|
|
93
116
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
94
117
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
95
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
118
|
+
* @returns {Promise<LogisticApplicationModel.PincodeDetails>} - Success response
|
|
96
119
|
* @name getPincodeCity
|
|
97
120
|
* @summary: Get pincode details
|
|
98
121
|
* @description: Get details of a specific pincode, such as obtaining its city and state information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/).
|
|
99
122
|
*/
|
|
100
|
-
getPincodeCity({ pincode, requestHeaders }?: LogisticApplicationValidator.GetPincodeCityParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.
|
|
123
|
+
getPincodeCity({ pincode, requestHeaders }?: LogisticApplicationValidator.GetPincodeCityParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.PincodeDetails>;
|
|
101
124
|
/**
|
|
102
125
|
* @param {LogisticApplicationValidator.GetPincodeZonesParam} arg - Arg object.
|
|
103
126
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
104
127
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
105
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
128
|
+
* @returns {Promise<LogisticApplicationModel.GetZoneFromPincodeViewResult>}
|
|
106
129
|
* - Success response
|
|
107
130
|
*
|
|
108
131
|
* @name getPincodeZones
|
|
109
132
|
* @summary: Get zones
|
|
110
133
|
* @description: Get the delivery zone associated with a given pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeZones/).
|
|
111
134
|
*/
|
|
112
|
-
getPincodeZones({ body, requestHeaders }?: LogisticApplicationValidator.GetPincodeZonesParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.
|
|
135
|
+
getPincodeZones({ body, requestHeaders }?: LogisticApplicationValidator.GetPincodeZonesParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetZoneFromPincodeViewResult>;
|
|
113
136
|
/**
|
|
114
137
|
* @param {LogisticApplicationValidator.GetTatProductParam} arg - Arg object.
|
|
115
138
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
116
139
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
117
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
140
|
+
* @returns {Promise<LogisticApplicationModel.TATViewResult>} - Success response
|
|
118
141
|
* @name getTatProduct
|
|
119
142
|
* @summary: Get product's turnaround time
|
|
120
143
|
* @description: Get the estimated delivery time frame for a specific product from a designated store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getTatProduct/).
|
|
121
144
|
*/
|
|
122
|
-
getTatProduct({ body, requestHeaders }?: LogisticApplicationValidator.GetTatProductParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.
|
|
145
|
+
getTatProduct({ body, requestHeaders }?: LogisticApplicationValidator.GetTatProductParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.TATViewResult>;
|
|
123
146
|
/**
|
|
124
147
|
* @param {LogisticApplicationValidator.ValidateAddressParam} arg - Arg object.
|
|
125
148
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
126
149
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
127
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
150
|
+
* @returns {Promise<LogisticApplicationModel.ValidateAddressDetails>} -
|
|
128
151
|
* Success response
|
|
129
152
|
* @name validateAddress
|
|
130
153
|
* @summary: Validate address
|
|
131
154
|
* @description: Validate addresses using specific templates customized for each country and tailored to various business scenarios. This validation ensures that the data conforms to the information currently stored in the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/validateAddress/).
|
|
132
155
|
*/
|
|
133
|
-
validateAddress({ countryIsoCode, templateName, body, requestHeaders }?: LogisticApplicationValidator.ValidateAddressParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.
|
|
156
|
+
validateAddress({ countryIsoCode, templateName, body, requestHeaders }?: LogisticApplicationValidator.ValidateAddressParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.ValidateAddressDetails>;
|
|
134
157
|
}
|
|
135
158
|
import LogisticApplicationModel = require("./LogisticApplicationModel");
|
|
136
159
|
import LogisticApplicationValidator = require("./LogisticApplicationValidator");
|
|
@@ -18,6 +18,10 @@ class Logistic {
|
|
|
18
18
|
getCountries: "/service/application/logistics/v2.0/countries",
|
|
19
19
|
getCountry:
|
|
20
20
|
"/service/application/logistics/v1.0/countries/{country_iso_code}",
|
|
21
|
+
getCourierPartners:
|
|
22
|
+
"/service/application/logistics/v1.0/company/{company_id}/application/{application_id}/shipment/courier-partners",
|
|
23
|
+
getDeliveryPromise:
|
|
24
|
+
"/service/application/logistics/v1.0/delivery-promise",
|
|
21
25
|
getLocalities:
|
|
22
26
|
"/service/application/logistics/v1.0/localities/{locality_type}",
|
|
23
27
|
getLocality:
|
|
@@ -51,7 +55,7 @@ class Logistic {
|
|
|
51
55
|
* @param {LogisticApplicationValidator.GetAllCountriesParam} arg - Arg object.
|
|
52
56
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
53
57
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
54
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
58
|
+
* @returns {Promise<LogisticApplicationModel.CountryListResult>} - Success response
|
|
55
59
|
* @name getAllCountries
|
|
56
60
|
* @summary: Get deliverable countries
|
|
57
61
|
* @description: Get a list of countries within the specified delivery zones for that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getAllCountries/).
|
|
@@ -106,7 +110,7 @@ class Logistic {
|
|
|
106
110
|
|
|
107
111
|
const {
|
|
108
112
|
error: res_error,
|
|
109
|
-
} = LogisticApplicationModel.
|
|
113
|
+
} = LogisticApplicationModel.CountryListResult().validate(responseData, {
|
|
110
114
|
abortEarly: false,
|
|
111
115
|
allowUnknown: true,
|
|
112
116
|
});
|
|
@@ -135,13 +139,13 @@ class Logistic {
|
|
|
135
139
|
* @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
|
|
136
140
|
*/
|
|
137
141
|
async getCountries(
|
|
138
|
-
{ onboarding, pageNo, pageSize, q, requestHeaders } = {
|
|
142
|
+
{ onboarding, pageNo, pageSize, q, hierarchy, requestHeaders } = {
|
|
139
143
|
requestHeaders: {},
|
|
140
144
|
},
|
|
141
145
|
{ responseHeaders } = { responseHeaders: false }
|
|
142
146
|
) {
|
|
143
147
|
const { error } = LogisticApplicationValidator.getCountries().validate(
|
|
144
|
-
{ onboarding, pageNo, pageSize, q },
|
|
148
|
+
{ onboarding, pageNo, pageSize, q, hierarchy },
|
|
145
149
|
{ abortEarly: false, allowUnknown: true }
|
|
146
150
|
);
|
|
147
151
|
if (error) {
|
|
@@ -152,7 +156,7 @@ class Logistic {
|
|
|
152
156
|
const {
|
|
153
157
|
error: warrning,
|
|
154
158
|
} = LogisticApplicationValidator.getCountries().validate(
|
|
155
|
-
{ onboarding, pageNo, pageSize, q },
|
|
159
|
+
{ onboarding, pageNo, pageSize, q, hierarchy },
|
|
156
160
|
{ abortEarly: false, allowUnknown: false }
|
|
157
161
|
);
|
|
158
162
|
if (warrning) {
|
|
@@ -167,6 +171,7 @@ class Logistic {
|
|
|
167
171
|
query_params["page_no"] = pageNo;
|
|
168
172
|
query_params["page_size"] = pageSize;
|
|
169
173
|
query_params["q"] = q;
|
|
174
|
+
query_params["hierarchy"] = hierarchy;
|
|
170
175
|
|
|
171
176
|
const xHeaders = {};
|
|
172
177
|
|
|
@@ -287,6 +292,170 @@ class Logistic {
|
|
|
287
292
|
return response;
|
|
288
293
|
}
|
|
289
294
|
|
|
295
|
+
/**
|
|
296
|
+
* @param {LogisticApplicationValidator.GetCourierPartnersParam} arg - Arg object.
|
|
297
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
298
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
299
|
+
* @returns {Promise<LogisticApplicationModel.ShipmentCourierPartnerResult>}
|
|
300
|
+
* - Success response
|
|
301
|
+
*
|
|
302
|
+
* @name getCourierPartners
|
|
303
|
+
* @summary: Serviceable Courier Partners.
|
|
304
|
+
* @description: Get all the serviceable courier partners of a destination and the shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCourierPartners/).
|
|
305
|
+
*/
|
|
306
|
+
async getCourierPartners(
|
|
307
|
+
{ companyId, applicationId, body, requestHeaders } = { requestHeaders: {} },
|
|
308
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
309
|
+
) {
|
|
310
|
+
const {
|
|
311
|
+
error,
|
|
312
|
+
} = LogisticApplicationValidator.getCourierPartners().validate(
|
|
313
|
+
{ companyId, applicationId, body },
|
|
314
|
+
{ abortEarly: false, allowUnknown: true }
|
|
315
|
+
);
|
|
316
|
+
if (error) {
|
|
317
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
// Showing warrnings if extra unknown parameters are found
|
|
321
|
+
const {
|
|
322
|
+
error: warrning,
|
|
323
|
+
} = LogisticApplicationValidator.getCourierPartners().validate(
|
|
324
|
+
{ companyId, applicationId, body },
|
|
325
|
+
{ abortEarly: false, allowUnknown: false }
|
|
326
|
+
);
|
|
327
|
+
if (warrning) {
|
|
328
|
+
Logger({
|
|
329
|
+
level: "WARN",
|
|
330
|
+
message: `Parameter Validation warrnings for application > Logistic > getCourierPartners \n ${warrning}`,
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
const query_params = {};
|
|
335
|
+
|
|
336
|
+
const xHeaders = {};
|
|
337
|
+
|
|
338
|
+
const response = await ApplicationAPIClient.execute(
|
|
339
|
+
this._conf,
|
|
340
|
+
"post",
|
|
341
|
+
constructUrl({
|
|
342
|
+
url: this._urls["getCourierPartners"],
|
|
343
|
+
params: { companyId, applicationId },
|
|
344
|
+
}),
|
|
345
|
+
query_params,
|
|
346
|
+
body,
|
|
347
|
+
{ ...xHeaders, ...requestHeaders },
|
|
348
|
+
{ responseHeaders }
|
|
349
|
+
);
|
|
350
|
+
|
|
351
|
+
let responseData = response;
|
|
352
|
+
if (responseHeaders) {
|
|
353
|
+
responseData = response[0];
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
const {
|
|
357
|
+
error: res_error,
|
|
358
|
+
} = LogisticApplicationModel.ShipmentCourierPartnerResult().validate(
|
|
359
|
+
responseData,
|
|
360
|
+
{ abortEarly: false, allowUnknown: true }
|
|
361
|
+
);
|
|
362
|
+
|
|
363
|
+
if (res_error) {
|
|
364
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
365
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
366
|
+
} else {
|
|
367
|
+
Logger({
|
|
368
|
+
level: "WARN",
|
|
369
|
+
message: `Response Validation Warnings for application > Logistic > getCourierPartners \n ${res_error}`,
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
return response;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* @param {LogisticApplicationValidator.GetDeliveryPromiseParam} arg - Arg object.
|
|
379
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
380
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
381
|
+
* @returns {Promise<LogisticApplicationModel.GetPromiseDetails>} - Success response
|
|
382
|
+
* @name getDeliveryPromise
|
|
383
|
+
* @summary: Get delivery promise
|
|
384
|
+
* @description: Get delivery promises for both global and store levels based on a specific locality type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getDeliveryPromise/).
|
|
385
|
+
*/
|
|
386
|
+
async getDeliveryPromise(
|
|
387
|
+
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
388
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
389
|
+
) {
|
|
390
|
+
const {
|
|
391
|
+
error,
|
|
392
|
+
} = LogisticApplicationValidator.getDeliveryPromise().validate(
|
|
393
|
+
{ pageNo, pageSize },
|
|
394
|
+
{ abortEarly: false, allowUnknown: true }
|
|
395
|
+
);
|
|
396
|
+
if (error) {
|
|
397
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
// Showing warrnings if extra unknown parameters are found
|
|
401
|
+
const {
|
|
402
|
+
error: warrning,
|
|
403
|
+
} = LogisticApplicationValidator.getDeliveryPromise().validate(
|
|
404
|
+
{ pageNo, pageSize },
|
|
405
|
+
{ abortEarly: false, allowUnknown: false }
|
|
406
|
+
);
|
|
407
|
+
if (warrning) {
|
|
408
|
+
Logger({
|
|
409
|
+
level: "WARN",
|
|
410
|
+
message: `Parameter Validation warrnings for application > Logistic > getDeliveryPromise \n ${warrning}`,
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
const query_params = {};
|
|
415
|
+
query_params["page_no"] = pageNo;
|
|
416
|
+
query_params["page_size"] = pageSize;
|
|
417
|
+
|
|
418
|
+
const xHeaders = {};
|
|
419
|
+
|
|
420
|
+
const response = await ApplicationAPIClient.execute(
|
|
421
|
+
this._conf,
|
|
422
|
+
"get",
|
|
423
|
+
constructUrl({
|
|
424
|
+
url: this._urls["getDeliveryPromise"],
|
|
425
|
+
params: {},
|
|
426
|
+
}),
|
|
427
|
+
query_params,
|
|
428
|
+
undefined,
|
|
429
|
+
{ ...xHeaders, ...requestHeaders },
|
|
430
|
+
{ responseHeaders }
|
|
431
|
+
);
|
|
432
|
+
|
|
433
|
+
let responseData = response;
|
|
434
|
+
if (responseHeaders) {
|
|
435
|
+
responseData = response[0];
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
const {
|
|
439
|
+
error: res_error,
|
|
440
|
+
} = LogisticApplicationModel.GetPromiseDetails().validate(responseData, {
|
|
441
|
+
abortEarly: false,
|
|
442
|
+
allowUnknown: true,
|
|
443
|
+
});
|
|
444
|
+
|
|
445
|
+
if (res_error) {
|
|
446
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
447
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
448
|
+
} else {
|
|
449
|
+
Logger({
|
|
450
|
+
level: "WARN",
|
|
451
|
+
message: `Response Validation Warnings for application > Logistic > getDeliveryPromise \n ${res_error}`,
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
return response;
|
|
457
|
+
}
|
|
458
|
+
|
|
290
459
|
/**
|
|
291
460
|
* @param {LogisticApplicationValidator.GetLocalitiesParam} arg - Arg object.
|
|
292
461
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -467,7 +636,7 @@ class Logistic {
|
|
|
467
636
|
* @param {LogisticApplicationValidator.GetLocationsParam} arg - Arg object.
|
|
468
637
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
469
638
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
470
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
639
|
+
* @returns {Promise<LogisticApplicationModel.GetStoreResult>} - Success response
|
|
471
640
|
* @name getLocations
|
|
472
641
|
* @summary: Get available selling locations
|
|
473
642
|
* @description: Get stores available for the application based on Delivery Zones and Order Orchestration rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocations/).
|
|
@@ -562,7 +731,7 @@ class Logistic {
|
|
|
562
731
|
|
|
563
732
|
const {
|
|
564
733
|
error: res_error,
|
|
565
|
-
} = LogisticApplicationModel.
|
|
734
|
+
} = LogisticApplicationModel.GetStoreResult().validate(responseData, {
|
|
566
735
|
abortEarly: false,
|
|
567
736
|
allowUnknown: true,
|
|
568
737
|
});
|
|
@@ -585,8 +754,7 @@ class Logistic {
|
|
|
585
754
|
* @param {LogisticApplicationValidator.GetOptimalLocationsParam} arg - Arg object.
|
|
586
755
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
587
756
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
588
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
589
|
-
* Success response
|
|
757
|
+
* @returns {Promise<LogisticApplicationModel.ReAssignStoreResult>} - Success response
|
|
590
758
|
* @name getOptimalLocations
|
|
591
759
|
* @summary: Get selling locations
|
|
592
760
|
* @description: Get optimal fulfillment centre for customers by analyzing their location, product availability, and inventory levels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getOptimalLocations/).
|
|
@@ -643,10 +811,10 @@ class Logistic {
|
|
|
643
811
|
|
|
644
812
|
const {
|
|
645
813
|
error: res_error,
|
|
646
|
-
} = LogisticApplicationModel.
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
);
|
|
814
|
+
} = LogisticApplicationModel.ReAssignStoreResult().validate(responseData, {
|
|
815
|
+
abortEarly: false,
|
|
816
|
+
allowUnknown: true,
|
|
817
|
+
});
|
|
650
818
|
|
|
651
819
|
if (res_error) {
|
|
652
820
|
if (this._conf.options.strictResponseCheck === true) {
|
|
@@ -666,7 +834,7 @@ class Logistic {
|
|
|
666
834
|
* @param {LogisticApplicationValidator.GetPincodeCityParam} arg - Arg object.
|
|
667
835
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
668
836
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
669
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
837
|
+
* @returns {Promise<LogisticApplicationModel.PincodeDetails>} - Success response
|
|
670
838
|
* @name getPincodeCity
|
|
671
839
|
* @summary: Get pincode details
|
|
672
840
|
* @description: Get details of a specific pincode, such as obtaining its city and state information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/).
|
|
@@ -721,7 +889,7 @@ class Logistic {
|
|
|
721
889
|
|
|
722
890
|
const {
|
|
723
891
|
error: res_error,
|
|
724
|
-
} = LogisticApplicationModel.
|
|
892
|
+
} = LogisticApplicationModel.PincodeDetails().validate(responseData, {
|
|
725
893
|
abortEarly: false,
|
|
726
894
|
allowUnknown: true,
|
|
727
895
|
});
|
|
@@ -744,7 +912,7 @@ class Logistic {
|
|
|
744
912
|
* @param {LogisticApplicationValidator.GetPincodeZonesParam} arg - Arg object.
|
|
745
913
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
746
914
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
747
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
915
|
+
* @returns {Promise<LogisticApplicationModel.GetZoneFromPincodeViewResult>}
|
|
748
916
|
* - Success response
|
|
749
917
|
*
|
|
750
918
|
* @name getPincodeZones
|
|
@@ -801,7 +969,7 @@ class Logistic {
|
|
|
801
969
|
|
|
802
970
|
const {
|
|
803
971
|
error: res_error,
|
|
804
|
-
} = LogisticApplicationModel.
|
|
972
|
+
} = LogisticApplicationModel.GetZoneFromPincodeViewResult().validate(
|
|
805
973
|
responseData,
|
|
806
974
|
{ abortEarly: false, allowUnknown: true }
|
|
807
975
|
);
|
|
@@ -824,7 +992,7 @@ class Logistic {
|
|
|
824
992
|
* @param {LogisticApplicationValidator.GetTatProductParam} arg - Arg object.
|
|
825
993
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
826
994
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
827
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
995
|
+
* @returns {Promise<LogisticApplicationModel.TATViewResult>} - Success response
|
|
828
996
|
* @name getTatProduct
|
|
829
997
|
* @summary: Get product's turnaround time
|
|
830
998
|
* @description: Get the estimated delivery time frame for a specific product from a designated store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getTatProduct/).
|
|
@@ -879,7 +1047,7 @@ class Logistic {
|
|
|
879
1047
|
|
|
880
1048
|
const {
|
|
881
1049
|
error: res_error,
|
|
882
|
-
} = LogisticApplicationModel.
|
|
1050
|
+
} = LogisticApplicationModel.TATViewResult().validate(responseData, {
|
|
883
1051
|
abortEarly: false,
|
|
884
1052
|
allowUnknown: true,
|
|
885
1053
|
});
|
|
@@ -902,7 +1070,7 @@ class Logistic {
|
|
|
902
1070
|
* @param {LogisticApplicationValidator.ValidateAddressParam} arg - Arg object.
|
|
903
1071
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
904
1072
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
905
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
1073
|
+
* @returns {Promise<LogisticApplicationModel.ValidateAddressDetails>} -
|
|
906
1074
|
* Success response
|
|
907
1075
|
* @name validateAddress
|
|
908
1076
|
* @summary: Validate address
|
|
@@ -960,7 +1128,7 @@ class Logistic {
|
|
|
960
1128
|
|
|
961
1129
|
const {
|
|
962
1130
|
error: res_error,
|
|
963
|
-
} = LogisticApplicationModel.
|
|
1131
|
+
} = LogisticApplicationModel.ValidateAddressDetails().validate(
|
|
964
1132
|
responseData,
|
|
965
1133
|
{ abortEarly: false, allowUnknown: true }
|
|
966
1134
|
);
|