@gofynd/fdk-client-javascript 1.4.12 → 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 +2 -2
- 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 +96 -39
- package/sdk/application/Content/ContentApplicationModel.js +88 -34
- 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 +51 -19
- package/sdk/application/Theme/ThemeApplicationModel.js +47 -24
- 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/common/Clickstream.js +12 -0
- package/sdk/common/Constant.d.ts +5 -0
- package/sdk/common/Constant.js +5 -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 +99 -39
- package/sdk/partner/Theme/ThemePartnerModel.js +95 -38
- 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 +192 -164
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +371 -343
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +99 -99
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +54 -54
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +139 -116
- package/sdk/platform/Catalog/CatalogPlatformClient.js +191 -168
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1374 -749
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1241 -830
- 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 +1244 -397
- package/sdk/platform/Content/ContentPlatformModel.js +526 -392
- 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 +138 -101
- package/sdk/platform/Order/OrderPlatformClient.js +267 -203
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4497 -877
- package/sdk/platform/Order/OrderPlatformModel.js +2336 -812
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +147 -50
- package/sdk/platform/Order/OrderPlatformValidator.js +75 -46
- 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 +40 -13
- package/sdk/platform/Theme/ThemePlatformModel.js +38 -17
- 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
|
@@ -21,7 +21,7 @@ class Serviceability {
|
|
|
21
21
|
*
|
|
22
22
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
23
23
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
24
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
24
|
+
* @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResult>}
|
|
25
25
|
* - Success response
|
|
26
26
|
*
|
|
27
27
|
* @name createCourierPartnerRule
|
|
@@ -79,7 +79,7 @@ class Serviceability {
|
|
|
79
79
|
|
|
80
80
|
const {
|
|
81
81
|
error: res_error,
|
|
82
|
-
} = ServiceabilityPlatformModel.
|
|
82
|
+
} = ServiceabilityPlatformModel.CourierPartnerRuleResult().validate(
|
|
83
83
|
responseData,
|
|
84
84
|
{ abortEarly: false, allowUnknown: true }
|
|
85
85
|
);
|
|
@@ -104,9 +104,8 @@ class Serviceability {
|
|
|
104
104
|
*
|
|
105
105
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
106
106
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
107
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
108
|
-
*
|
|
109
|
-
*
|
|
107
|
+
* @returns {Promise<ServiceabilityPlatformModel.StoreRuleResultSchema>} -
|
|
108
|
+
* Success response
|
|
110
109
|
* @name createStoreRules
|
|
111
110
|
* @summary: Create store rule
|
|
112
111
|
* @description: Create a rule within the order routing rules - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createStoreRules/).
|
|
@@ -162,7 +161,7 @@ class Serviceability {
|
|
|
162
161
|
|
|
163
162
|
const {
|
|
164
163
|
error: res_error,
|
|
165
|
-
} = ServiceabilityPlatformModel.
|
|
164
|
+
} = ServiceabilityPlatformModel.StoreRuleResultSchema().validate(
|
|
166
165
|
responseData,
|
|
167
166
|
{ abortEarly: false, allowUnknown: true }
|
|
168
167
|
);
|
|
@@ -343,7 +342,7 @@ class Serviceability {
|
|
|
343
342
|
*
|
|
344
343
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
345
344
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
346
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
345
|
+
* @returns {Promise<ServiceabilityPlatformModel.ApplicationSelfShipConfigResult>}
|
|
347
346
|
* - Success response
|
|
348
347
|
*
|
|
349
348
|
* @name getApplicationServiceabilitySelfShipment
|
|
@@ -397,7 +396,7 @@ class Serviceability {
|
|
|
397
396
|
|
|
398
397
|
const {
|
|
399
398
|
error: res_error,
|
|
400
|
-
} = ServiceabilityPlatformModel.
|
|
399
|
+
} = ServiceabilityPlatformModel.ApplicationSelfShipConfigResult().validate(
|
|
401
400
|
responseData,
|
|
402
401
|
{ abortEarly: false, allowUnknown: true }
|
|
403
402
|
);
|
|
@@ -422,7 +421,7 @@ class Serviceability {
|
|
|
422
421
|
*
|
|
423
422
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
424
423
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
425
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
424
|
+
* @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResult>}
|
|
426
425
|
* - Success response
|
|
427
426
|
*
|
|
428
427
|
* @name getCourierPartnerRule
|
|
@@ -480,7 +479,7 @@ class Serviceability {
|
|
|
480
479
|
|
|
481
480
|
const {
|
|
482
481
|
error: res_error,
|
|
483
|
-
} = ServiceabilityPlatformModel.
|
|
482
|
+
} = ServiceabilityPlatformModel.CourierPartnerRuleResult().validate(
|
|
484
483
|
responseData,
|
|
485
484
|
{ abortEarly: false, allowUnknown: true }
|
|
486
485
|
);
|
|
@@ -505,7 +504,7 @@ class Serviceability {
|
|
|
505
504
|
*
|
|
506
505
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
507
506
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
508
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
507
|
+
* @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRulesListResult>}
|
|
509
508
|
* - Success response
|
|
510
509
|
*
|
|
511
510
|
* @name getCourierPartnerRules
|
|
@@ -570,7 +569,7 @@ class Serviceability {
|
|
|
570
569
|
|
|
571
570
|
const {
|
|
572
571
|
error: res_error,
|
|
573
|
-
} = ServiceabilityPlatformModel.
|
|
572
|
+
} = ServiceabilityPlatformModel.CourierPartnerRulesListResult().validate(
|
|
574
573
|
responseData,
|
|
575
574
|
{ abortEarly: false, allowUnknown: true }
|
|
576
575
|
);
|
|
@@ -589,6 +588,89 @@ class Serviceability {
|
|
|
589
588
|
return response;
|
|
590
589
|
}
|
|
591
590
|
|
|
591
|
+
/**
|
|
592
|
+
* @param {ServiceabilityPlatformApplicationValidator.GetCourierPartnersParam} arg
|
|
593
|
+
* - Arg object
|
|
594
|
+
*
|
|
595
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
596
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
597
|
+
* @returns {Promise<ServiceabilityPlatformModel.ShipmentCourierPartnerResult>}
|
|
598
|
+
* - Success response
|
|
599
|
+
*
|
|
600
|
+
* @name getCourierPartners
|
|
601
|
+
* @summary: Serviceable Courier Partners.
|
|
602
|
+
* @description: Get all the serviceable courier partners of a destination and the shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartners/).
|
|
603
|
+
*/
|
|
604
|
+
async getCourierPartners(
|
|
605
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
606
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
607
|
+
) {
|
|
608
|
+
const {
|
|
609
|
+
error,
|
|
610
|
+
} = ServiceabilityPlatformApplicationValidator.getCourierPartners().validate(
|
|
611
|
+
{
|
|
612
|
+
body,
|
|
613
|
+
},
|
|
614
|
+
{ abortEarly: false, allowUnknown: true }
|
|
615
|
+
);
|
|
616
|
+
if (error) {
|
|
617
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
// Showing warrnings if extra unknown parameters are found
|
|
621
|
+
const {
|
|
622
|
+
error: warrning,
|
|
623
|
+
} = ServiceabilityPlatformApplicationValidator.getCourierPartners().validate(
|
|
624
|
+
{
|
|
625
|
+
body,
|
|
626
|
+
},
|
|
627
|
+
{ abortEarly: false, allowUnknown: false }
|
|
628
|
+
);
|
|
629
|
+
if (warrning) {
|
|
630
|
+
Logger({
|
|
631
|
+
level: "WARN",
|
|
632
|
+
message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartners \n ${warrning}`,
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
const query_params = {};
|
|
637
|
+
|
|
638
|
+
const response = await PlatformAPIClient.execute(
|
|
639
|
+
this.config,
|
|
640
|
+
"post",
|
|
641
|
+
`/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/shipment/courier-partners`,
|
|
642
|
+
query_params,
|
|
643
|
+
body,
|
|
644
|
+
requestHeaders,
|
|
645
|
+
{ responseHeaders }
|
|
646
|
+
);
|
|
647
|
+
|
|
648
|
+
let responseData = response;
|
|
649
|
+
if (responseHeaders) {
|
|
650
|
+
responseData = response[0];
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
const {
|
|
654
|
+
error: res_error,
|
|
655
|
+
} = ServiceabilityPlatformModel.ShipmentCourierPartnerResult().validate(
|
|
656
|
+
responseData,
|
|
657
|
+
{ abortEarly: false, allowUnknown: true }
|
|
658
|
+
);
|
|
659
|
+
|
|
660
|
+
if (res_error) {
|
|
661
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
662
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
663
|
+
} else {
|
|
664
|
+
Logger({
|
|
665
|
+
level: "WARN",
|
|
666
|
+
message: `Response Validation Warnings for platform > Serviceability > getCourierPartners \n ${res_error}`,
|
|
667
|
+
});
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
return response;
|
|
672
|
+
}
|
|
673
|
+
|
|
592
674
|
/**
|
|
593
675
|
* @param {ServiceabilityPlatformApplicationValidator.GetStoreRuleParam} arg
|
|
594
676
|
* - Arg object
|
|
@@ -677,9 +759,8 @@ class Serviceability {
|
|
|
677
759
|
*
|
|
678
760
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
679
761
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
680
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
681
|
-
*
|
|
682
|
-
*
|
|
762
|
+
* @returns {Promise<ServiceabilityPlatformModel.GetStoreRulesApiResult>} -
|
|
763
|
+
* Success response
|
|
683
764
|
* @name getStoreRules
|
|
684
765
|
* @summary: Get store rules
|
|
685
766
|
* @description: Retrieves an existing order routing setup for a single application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getStoreRules/).
|
|
@@ -742,7 +823,7 @@ class Serviceability {
|
|
|
742
823
|
|
|
743
824
|
const {
|
|
744
825
|
error: res_error,
|
|
745
|
-
} = ServiceabilityPlatformModel.
|
|
826
|
+
} = ServiceabilityPlatformModel.GetStoreRulesApiResult().validate(
|
|
746
827
|
responseData,
|
|
747
828
|
{ abortEarly: false, allowUnknown: true }
|
|
748
829
|
);
|
|
@@ -849,7 +930,7 @@ class Serviceability {
|
|
|
849
930
|
*
|
|
850
931
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
851
932
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
852
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
933
|
+
* @returns {Promise<ServiceabilityPlatformModel.ApplicationSelfShipConfigResult>}
|
|
853
934
|
* - Success response
|
|
854
935
|
*
|
|
855
936
|
* @name patchApplicationServiceabilitySelfShipment
|
|
@@ -907,7 +988,7 @@ class Serviceability {
|
|
|
907
988
|
|
|
908
989
|
const {
|
|
909
990
|
error: res_error,
|
|
910
|
-
} = ServiceabilityPlatformModel.
|
|
991
|
+
} = ServiceabilityPlatformModel.ApplicationSelfShipConfigResult().validate(
|
|
911
992
|
responseData,
|
|
912
993
|
{ abortEarly: false, allowUnknown: true }
|
|
913
994
|
);
|
|
@@ -1014,7 +1095,7 @@ class Serviceability {
|
|
|
1014
1095
|
*
|
|
1015
1096
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1016
1097
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1017
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1098
|
+
* @returns {Promise<ServiceabilityPlatformModel.RulePriorityResult>} -
|
|
1018
1099
|
* Success response
|
|
1019
1100
|
* @name updateCourierPartnerRulePriority
|
|
1020
1101
|
* @summary: Update courier partner rule priority
|
|
@@ -1071,7 +1152,7 @@ class Serviceability {
|
|
|
1071
1152
|
|
|
1072
1153
|
const {
|
|
1073
1154
|
error: res_error,
|
|
1074
|
-
} = ServiceabilityPlatformModel.
|
|
1155
|
+
} = ServiceabilityPlatformModel.RulePriorityResult().validate(
|
|
1075
1156
|
responseData,
|
|
1076
1157
|
{ abortEarly: false, allowUnknown: true }
|
|
1077
1158
|
);
|
|
@@ -1096,7 +1177,7 @@ class Serviceability {
|
|
|
1096
1177
|
*
|
|
1097
1178
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1098
1179
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1099
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1180
|
+
* @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResult>}
|
|
1100
1181
|
* - Success response
|
|
1101
1182
|
*
|
|
1102
1183
|
* @name updateCourierRule
|
|
@@ -1156,7 +1237,7 @@ class Serviceability {
|
|
|
1156
1237
|
|
|
1157
1238
|
const {
|
|
1158
1239
|
error: res_error,
|
|
1159
|
-
} = ServiceabilityPlatformModel.
|
|
1240
|
+
} = ServiceabilityPlatformModel.CourierPartnerRuleResult().validate(
|
|
1160
1241
|
responseData,
|
|
1161
1242
|
{ abortEarly: false, allowUnknown: true }
|
|
1162
1243
|
);
|
|
@@ -1181,7 +1262,7 @@ class Serviceability {
|
|
|
1181
1262
|
*
|
|
1182
1263
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1183
1264
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1184
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1265
|
+
* @returns {Promise<ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResultData>}
|
|
1185
1266
|
* - Success response
|
|
1186
1267
|
*
|
|
1187
1268
|
* @name updatePincodeAuditHistory
|
|
@@ -1239,7 +1320,7 @@ class Serviceability {
|
|
|
1239
1320
|
|
|
1240
1321
|
const {
|
|
1241
1322
|
error: res_error,
|
|
1242
|
-
} = ServiceabilityPlatformModel.
|
|
1323
|
+
} = ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResultData().validate(
|
|
1243
1324
|
responseData,
|
|
1244
1325
|
{ abortEarly: false, allowUnknown: true }
|
|
1245
1326
|
);
|
|
@@ -1264,9 +1345,8 @@ class Serviceability {
|
|
|
1264
1345
|
*
|
|
1265
1346
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1266
1347
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1267
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1268
|
-
*
|
|
1269
|
-
*
|
|
1348
|
+
* @returns {Promise<ServiceabilityPlatformModel.PincodeBulkViewResult>} -
|
|
1349
|
+
* Success response
|
|
1270
1350
|
* @name updatePincodeBulkView
|
|
1271
1351
|
* @summary: Bulk update pincode COD support
|
|
1272
1352
|
* @description: Updates the cash on delivery settings for multiple specified pin codes simultaneously. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeBulkView/).
|
|
@@ -1322,7 +1402,7 @@ class Serviceability {
|
|
|
1322
1402
|
|
|
1323
1403
|
const {
|
|
1324
1404
|
error: res_error,
|
|
1325
|
-
} = ServiceabilityPlatformModel.
|
|
1405
|
+
} = ServiceabilityPlatformModel.PincodeBulkViewResult().validate(
|
|
1326
1406
|
responseData,
|
|
1327
1407
|
{ abortEarly: false, allowUnknown: true }
|
|
1328
1408
|
);
|
|
@@ -1347,7 +1427,7 @@ class Serviceability {
|
|
|
1347
1427
|
*
|
|
1348
1428
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1349
1429
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1350
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1430
|
+
* @returns {Promise<ServiceabilityPlatformModel.PincodeCodStatusListingResult>}
|
|
1351
1431
|
* - Success response
|
|
1352
1432
|
*
|
|
1353
1433
|
* @name updatePincodeCoDListing
|
|
@@ -1405,7 +1485,7 @@ class Serviceability {
|
|
|
1405
1485
|
|
|
1406
1486
|
const {
|
|
1407
1487
|
error: res_error,
|
|
1408
|
-
} = ServiceabilityPlatformModel.
|
|
1488
|
+
} = ServiceabilityPlatformModel.PincodeCodStatusListingResult().validate(
|
|
1409
1489
|
responseData,
|
|
1410
1490
|
{ abortEarly: false, allowUnknown: true }
|
|
1411
1491
|
);
|
|
@@ -1430,8 +1510,7 @@ class Serviceability {
|
|
|
1430
1510
|
*
|
|
1431
1511
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1432
1512
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1433
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1434
|
-
* Success response
|
|
1513
|
+
* @returns {Promise<ServiceabilityPlatformModel.PincodeMOPResult>} - Success response
|
|
1435
1514
|
* @name updatePincodeMopView
|
|
1436
1515
|
* @summary: Update pincode COD support
|
|
1437
1516
|
* @description: Modify and update views related to pincode MOP (Mode of Payment). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeMopView/).
|
|
@@ -1487,10 +1566,10 @@ class Serviceability {
|
|
|
1487
1566
|
|
|
1488
1567
|
const {
|
|
1489
1568
|
error: res_error,
|
|
1490
|
-
} = ServiceabilityPlatformModel.
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
);
|
|
1569
|
+
} = ServiceabilityPlatformModel.PincodeMOPResult().validate(responseData, {
|
|
1570
|
+
abortEarly: false,
|
|
1571
|
+
allowUnknown: true,
|
|
1572
|
+
});
|
|
1494
1573
|
|
|
1495
1574
|
if (res_error) {
|
|
1496
1575
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1512,7 +1591,7 @@ class Serviceability {
|
|
|
1512
1591
|
*
|
|
1513
1592
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1514
1593
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1515
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1594
|
+
* @returns {Promise<ServiceabilityPlatformModel.StoreRuleUpdateResultSchema>}
|
|
1516
1595
|
* - Success response
|
|
1517
1596
|
*
|
|
1518
1597
|
* @name updateStoreRules
|
|
@@ -1572,7 +1651,7 @@ class Serviceability {
|
|
|
1572
1651
|
|
|
1573
1652
|
const {
|
|
1574
1653
|
error: res_error,
|
|
1575
|
-
} = ServiceabilityPlatformModel.
|
|
1654
|
+
} = ServiceabilityPlatformModel.StoreRuleUpdateResultSchema().validate(
|
|
1576
1655
|
responseData,
|
|
1577
1656
|
{ abortEarly: false, allowUnknown: true }
|
|
1578
1657
|
);
|
|
@@ -5,7 +5,7 @@ export = ServiceabilityPlatformApplicationValidator;
|
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* @typedef CreateStoreRulesParam
|
|
8
|
-
* @property {ServiceabilityPlatformModel.
|
|
8
|
+
* @property {ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema} body
|
|
9
9
|
*/
|
|
10
10
|
/** @typedef GetApplicationConfigParam */
|
|
11
11
|
/** @typedef GetApplicationConfigurationParam */
|
|
@@ -20,6 +20,10 @@ export = ServiceabilityPlatformApplicationValidator;
|
|
|
20
20
|
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
21
21
|
* @property {string} [status] - Filter rules based on rule status
|
|
22
22
|
*/
|
|
23
|
+
/**
|
|
24
|
+
* @typedef GetCourierPartnersParam
|
|
25
|
+
* @property {ServiceabilityPlatformModel.ShipmentCourierPartnerDetails} body
|
|
26
|
+
*/
|
|
23
27
|
/**
|
|
24
28
|
* @typedef GetStoreRuleParam
|
|
25
29
|
* @property {string} ruleUid - A `rule_uid` is a unique identifier for a
|
|
@@ -37,7 +41,7 @@ export = ServiceabilityPlatformApplicationValidator;
|
|
|
37
41
|
*/
|
|
38
42
|
/**
|
|
39
43
|
* @typedef PatchApplicationServiceabilitySelfShipmentParam
|
|
40
|
-
* @property {ServiceabilityPlatformModel.
|
|
44
|
+
* @property {ServiceabilityPlatformModel.SelfShipResult} body
|
|
41
45
|
*/
|
|
42
46
|
/**
|
|
43
47
|
* @typedef UpdateApplicationConfigurationParam
|
|
@@ -45,7 +49,7 @@ export = ServiceabilityPlatformApplicationValidator;
|
|
|
45
49
|
*/
|
|
46
50
|
/**
|
|
47
51
|
* @typedef UpdateCourierPartnerRulePriorityParam
|
|
48
|
-
* @property {ServiceabilityPlatformModel.
|
|
52
|
+
* @property {ServiceabilityPlatformModel.RulePriorityDetails} body
|
|
49
53
|
*/
|
|
50
54
|
/**
|
|
51
55
|
* @typedef UpdateCourierRuleParam
|
|
@@ -54,7 +58,7 @@ export = ServiceabilityPlatformApplicationValidator;
|
|
|
54
58
|
*/
|
|
55
59
|
/**
|
|
56
60
|
* @typedef UpdatePincodeAuditHistoryParam
|
|
57
|
-
* @property {ServiceabilityPlatformModel.
|
|
61
|
+
* @property {ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryDetails} body
|
|
58
62
|
*/
|
|
59
63
|
/**
|
|
60
64
|
* @typedef UpdatePincodeBulkViewParam
|
|
@@ -62,7 +66,7 @@ export = ServiceabilityPlatformApplicationValidator;
|
|
|
62
66
|
*/
|
|
63
67
|
/**
|
|
64
68
|
* @typedef UpdatePincodeCoDListingParam
|
|
65
|
-
* @property {ServiceabilityPlatformModel.
|
|
69
|
+
* @property {ServiceabilityPlatformModel.PincodeCodStatusListingDetails} body
|
|
66
70
|
*/
|
|
67
71
|
/**
|
|
68
72
|
* @typedef UpdatePincodeMopViewParam
|
|
@@ -72,7 +76,7 @@ export = ServiceabilityPlatformApplicationValidator;
|
|
|
72
76
|
* @typedef UpdateStoreRulesParam
|
|
73
77
|
* @property {string} ruleUid - A `rule_uid` is a unique identifier for a
|
|
74
78
|
* particular rule object.
|
|
75
|
-
* @property {ServiceabilityPlatformModel.
|
|
79
|
+
* @property {ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema} body
|
|
76
80
|
*/
|
|
77
81
|
/**
|
|
78
82
|
* @typedef UpdateStoreRulesConfigParam
|
|
@@ -93,6 +97,8 @@ declare class ServiceabilityPlatformApplicationValidator {
|
|
|
93
97
|
static getCourierPartnerRule(): GetCourierPartnerRuleParam;
|
|
94
98
|
/** @returns {GetCourierPartnerRulesParam} */
|
|
95
99
|
static getCourierPartnerRules(): GetCourierPartnerRulesParam;
|
|
100
|
+
/** @returns {GetCourierPartnersParam} */
|
|
101
|
+
static getCourierPartners(): GetCourierPartnersParam;
|
|
96
102
|
/** @returns {GetStoreRuleParam} */
|
|
97
103
|
static getStoreRule(): GetStoreRuleParam;
|
|
98
104
|
/** @returns {GetStoreRulesParam} */
|
|
@@ -121,13 +127,13 @@ declare class ServiceabilityPlatformApplicationValidator {
|
|
|
121
127
|
static updateStoreRulesConfig(): UpdateStoreRulesConfigParam;
|
|
122
128
|
}
|
|
123
129
|
declare namespace ServiceabilityPlatformApplicationValidator {
|
|
124
|
-
export { CreateCourierPartnerRuleParam, CreateStoreRulesParam, GetApplicationConfigParam, GetApplicationConfigurationParam, GetApplicationServiceabilitySelfShipmentParam, GetCourierPartnerRuleParam, GetCourierPartnerRulesParam, GetStoreRuleParam, GetStoreRulesParam, InsertApplicationConfigParam, PatchApplicationServiceabilitySelfShipmentParam, UpdateApplicationConfigurationParam, UpdateCourierPartnerRulePriorityParam, UpdateCourierRuleParam, UpdatePincodeAuditHistoryParam, UpdatePincodeBulkViewParam, UpdatePincodeCoDListingParam, UpdatePincodeMopViewParam, UpdateStoreRulesParam, UpdateStoreRulesConfigParam };
|
|
130
|
+
export { CreateCourierPartnerRuleParam, CreateStoreRulesParam, GetApplicationConfigParam, GetApplicationConfigurationParam, GetApplicationServiceabilitySelfShipmentParam, GetCourierPartnerRuleParam, GetCourierPartnerRulesParam, GetCourierPartnersParam, GetStoreRuleParam, GetStoreRulesParam, InsertApplicationConfigParam, PatchApplicationServiceabilitySelfShipmentParam, UpdateApplicationConfigurationParam, UpdateCourierPartnerRulePriorityParam, UpdateCourierRuleParam, UpdatePincodeAuditHistoryParam, UpdatePincodeBulkViewParam, UpdatePincodeCoDListingParam, UpdatePincodeMopViewParam, UpdateStoreRulesParam, UpdateStoreRulesConfigParam };
|
|
125
131
|
}
|
|
126
132
|
type CreateCourierPartnerRuleParam = {
|
|
127
133
|
body: ServiceabilityPlatformModel.CourierPartnerRule;
|
|
128
134
|
};
|
|
129
135
|
type CreateStoreRulesParam = {
|
|
130
|
-
body: ServiceabilityPlatformModel.
|
|
136
|
+
body: ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema;
|
|
131
137
|
};
|
|
132
138
|
type GetCourierPartnerRuleParam = {
|
|
133
139
|
/**
|
|
@@ -149,6 +155,9 @@ type GetCourierPartnerRulesParam = {
|
|
|
149
155
|
*/
|
|
150
156
|
status?: string;
|
|
151
157
|
};
|
|
158
|
+
type GetCourierPartnersParam = {
|
|
159
|
+
body: ServiceabilityPlatformModel.ShipmentCourierPartnerDetails;
|
|
160
|
+
};
|
|
152
161
|
type GetStoreRuleParam = {
|
|
153
162
|
/**
|
|
154
163
|
* - A `rule_uid` is a unique identifier for a
|
|
@@ -165,13 +174,13 @@ type InsertApplicationConfigParam = {
|
|
|
165
174
|
body: ServiceabilityPlatformModel.StoreRuleConfigData;
|
|
166
175
|
};
|
|
167
176
|
type PatchApplicationServiceabilitySelfShipmentParam = {
|
|
168
|
-
body: ServiceabilityPlatformModel.
|
|
177
|
+
body: ServiceabilityPlatformModel.SelfShipResult;
|
|
169
178
|
};
|
|
170
179
|
type UpdateApplicationConfigurationParam = {
|
|
171
180
|
body: ServiceabilityPlatformModel.ApplicationConfig;
|
|
172
181
|
};
|
|
173
182
|
type UpdateCourierPartnerRulePriorityParam = {
|
|
174
|
-
body: ServiceabilityPlatformModel.
|
|
183
|
+
body: ServiceabilityPlatformModel.RulePriorityDetails;
|
|
175
184
|
};
|
|
176
185
|
type UpdateCourierRuleParam = {
|
|
177
186
|
/**
|
|
@@ -181,13 +190,13 @@ type UpdateCourierRuleParam = {
|
|
|
181
190
|
body: ServiceabilityPlatformModel.CourierPartnerRule;
|
|
182
191
|
};
|
|
183
192
|
type UpdatePincodeAuditHistoryParam = {
|
|
184
|
-
body: ServiceabilityPlatformModel.
|
|
193
|
+
body: ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryDetails;
|
|
185
194
|
};
|
|
186
195
|
type UpdatePincodeBulkViewParam = {
|
|
187
196
|
body: ServiceabilityPlatformModel.PincodeMopBulkData;
|
|
188
197
|
};
|
|
189
198
|
type UpdatePincodeCoDListingParam = {
|
|
190
|
-
body: ServiceabilityPlatformModel.
|
|
199
|
+
body: ServiceabilityPlatformModel.PincodeCodStatusListingDetails;
|
|
191
200
|
};
|
|
192
201
|
type UpdatePincodeMopViewParam = {
|
|
193
202
|
body: ServiceabilityPlatformModel.PincodeMopData;
|
|
@@ -198,7 +207,7 @@ type UpdateStoreRulesParam = {
|
|
|
198
207
|
* particular rule object.
|
|
199
208
|
*/
|
|
200
209
|
ruleUid: string;
|
|
201
|
-
body: ServiceabilityPlatformModel.
|
|
210
|
+
body: ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema;
|
|
202
211
|
};
|
|
203
212
|
type UpdateStoreRulesConfigParam = {
|
|
204
213
|
body: ServiceabilityPlatformModel.StoreRuleConfigData;
|
|
@@ -9,7 +9,7 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @typedef CreateStoreRulesParam
|
|
12
|
-
* @property {ServiceabilityPlatformModel.
|
|
12
|
+
* @property {ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema} body
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/** @typedef GetApplicationConfigParam */
|
|
@@ -30,6 +30,11 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
30
30
|
* @property {string} [status] - Filter rules based on rule status
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* @typedef GetCourierPartnersParam
|
|
35
|
+
* @property {ServiceabilityPlatformModel.ShipmentCourierPartnerDetails} body
|
|
36
|
+
*/
|
|
37
|
+
|
|
33
38
|
/**
|
|
34
39
|
* @typedef GetStoreRuleParam
|
|
35
40
|
* @property {string} ruleUid - A `rule_uid` is a unique identifier for a
|
|
@@ -50,7 +55,7 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
50
55
|
|
|
51
56
|
/**
|
|
52
57
|
* @typedef PatchApplicationServiceabilitySelfShipmentParam
|
|
53
|
-
* @property {ServiceabilityPlatformModel.
|
|
58
|
+
* @property {ServiceabilityPlatformModel.SelfShipResult} body
|
|
54
59
|
*/
|
|
55
60
|
|
|
56
61
|
/**
|
|
@@ -60,7 +65,7 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
60
65
|
|
|
61
66
|
/**
|
|
62
67
|
* @typedef UpdateCourierPartnerRulePriorityParam
|
|
63
|
-
* @property {ServiceabilityPlatformModel.
|
|
68
|
+
* @property {ServiceabilityPlatformModel.RulePriorityDetails} body
|
|
64
69
|
*/
|
|
65
70
|
|
|
66
71
|
/**
|
|
@@ -71,7 +76,7 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
71
76
|
|
|
72
77
|
/**
|
|
73
78
|
* @typedef UpdatePincodeAuditHistoryParam
|
|
74
|
-
* @property {ServiceabilityPlatformModel.
|
|
79
|
+
* @property {ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryDetails} body
|
|
75
80
|
*/
|
|
76
81
|
|
|
77
82
|
/**
|
|
@@ -81,7 +86,7 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
81
86
|
|
|
82
87
|
/**
|
|
83
88
|
* @typedef UpdatePincodeCoDListingParam
|
|
84
|
-
* @property {ServiceabilityPlatformModel.
|
|
89
|
+
* @property {ServiceabilityPlatformModel.PincodeCodStatusListingDetails} body
|
|
85
90
|
*/
|
|
86
91
|
|
|
87
92
|
/**
|
|
@@ -93,7 +98,7 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
93
98
|
* @typedef UpdateStoreRulesParam
|
|
94
99
|
* @property {string} ruleUid - A `rule_uid` is a unique identifier for a
|
|
95
100
|
* particular rule object.
|
|
96
|
-
* @property {ServiceabilityPlatformModel.
|
|
101
|
+
* @property {ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema} body
|
|
97
102
|
*/
|
|
98
103
|
|
|
99
104
|
/**
|
|
@@ -112,7 +117,7 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
112
117
|
/** @returns {CreateStoreRulesParam} */
|
|
113
118
|
static createStoreRules() {
|
|
114
119
|
return Joi.object({
|
|
115
|
-
body: ServiceabilityPlatformModel.
|
|
120
|
+
body: ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema().required(),
|
|
116
121
|
}).required();
|
|
117
122
|
}
|
|
118
123
|
|
|
@@ -147,6 +152,13 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
147
152
|
}).required();
|
|
148
153
|
}
|
|
149
154
|
|
|
155
|
+
/** @returns {GetCourierPartnersParam} */
|
|
156
|
+
static getCourierPartners() {
|
|
157
|
+
return Joi.object({
|
|
158
|
+
body: ServiceabilityPlatformModel.ShipmentCourierPartnerDetails().required(),
|
|
159
|
+
}).required();
|
|
160
|
+
}
|
|
161
|
+
|
|
150
162
|
/** @returns {GetStoreRuleParam} */
|
|
151
163
|
static getStoreRule() {
|
|
152
164
|
return Joi.object({
|
|
@@ -173,7 +185,7 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
173
185
|
/** @returns {PatchApplicationServiceabilitySelfShipmentParam} */
|
|
174
186
|
static patchApplicationServiceabilitySelfShipment() {
|
|
175
187
|
return Joi.object({
|
|
176
|
-
body: ServiceabilityPlatformModel.
|
|
188
|
+
body: ServiceabilityPlatformModel.SelfShipResult().required(),
|
|
177
189
|
}).required();
|
|
178
190
|
}
|
|
179
191
|
|
|
@@ -187,7 +199,7 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
187
199
|
/** @returns {UpdateCourierPartnerRulePriorityParam} */
|
|
188
200
|
static updateCourierPartnerRulePriority() {
|
|
189
201
|
return Joi.object({
|
|
190
|
-
body: ServiceabilityPlatformModel.
|
|
202
|
+
body: ServiceabilityPlatformModel.RulePriorityDetails().required(),
|
|
191
203
|
}).required();
|
|
192
204
|
}
|
|
193
205
|
|
|
@@ -202,7 +214,7 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
202
214
|
/** @returns {UpdatePincodeAuditHistoryParam} */
|
|
203
215
|
static updatePincodeAuditHistory() {
|
|
204
216
|
return Joi.object({
|
|
205
|
-
body: ServiceabilityPlatformModel.
|
|
217
|
+
body: ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryDetails().required(),
|
|
206
218
|
}).required();
|
|
207
219
|
}
|
|
208
220
|
|
|
@@ -216,7 +228,7 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
216
228
|
/** @returns {UpdatePincodeCoDListingParam} */
|
|
217
229
|
static updatePincodeCoDListing() {
|
|
218
230
|
return Joi.object({
|
|
219
|
-
body: ServiceabilityPlatformModel.
|
|
231
|
+
body: ServiceabilityPlatformModel.PincodeCodStatusListingDetails().required(),
|
|
220
232
|
}).required();
|
|
221
233
|
}
|
|
222
234
|
|
|
@@ -231,7 +243,7 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
231
243
|
static updateStoreRules() {
|
|
232
244
|
return Joi.object({
|
|
233
245
|
ruleUid: Joi.string().allow("").required(),
|
|
234
|
-
body: ServiceabilityPlatformModel.
|
|
246
|
+
body: ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema().required(),
|
|
235
247
|
}).required();
|
|
236
248
|
}
|
|
237
249
|
|