@gofynd/fdk-client-javascript 1.4.16-beta.2 → 1.4.16-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +48 -68
- package/sdk/application/Cart/CartApplicationClient.js +27 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
- package/sdk/application/Catalog/CatalogApplicationClient.js +29 -30
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +30 -51
- package/sdk/application/Content/ContentApplicationClient.js +56 -161
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
- package/sdk/application/Logistic/LogisticApplicationClient.js +8 -101
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
- package/sdk/application/Order/OrderApplicationClient.js +8 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +2 -4
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +6 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/common/Utility.js +6 -3
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- 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 +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +167 -1200
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +115 -419
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -121
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1294 -5068
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1992
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
- package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6389
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1681 -3222
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +131 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -204
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +475 -1073
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -253
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -256
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +403 -1375
- package/sdk/platform/Content/ContentPlatformModel.js +394 -631
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- 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 +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- 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 +6 -17
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
- package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
- package/sdk/platform/Order/OrderPlatformClient.js +198 -416
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
- package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
- package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +105 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
- 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 +319 -333
- package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- 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 +36 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +49 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +30 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
- package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +7 -46
- package/sdk/platform/Share/SharePlatformModel.js +6 -31
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- 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 +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +6 -810
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- 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/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -111
|
@@ -21,11 +21,11 @@ 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.CourierPartnerRuleResponse>}
|
|
25
25
|
* - Success response
|
|
26
26
|
*
|
|
27
27
|
* @name createCourierPartnerRule
|
|
28
|
-
* @summary: Create
|
|
28
|
+
* @summary: Create rourier rule
|
|
29
29
|
* @description: Creates a rule within the delivery configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createCourierPartnerRule/).
|
|
30
30
|
*/
|
|
31
31
|
async createCourierPartnerRule(
|
|
@@ -79,7 +79,7 @@ class Serviceability {
|
|
|
79
79
|
|
|
80
80
|
const {
|
|
81
81
|
error: res_error,
|
|
82
|
-
} = ServiceabilityPlatformModel.
|
|
82
|
+
} = ServiceabilityPlatformModel.CourierPartnerRuleResponse().validate(
|
|
83
83
|
responseData,
|
|
84
84
|
{ abortEarly: false, allowUnknown: true }
|
|
85
85
|
);
|
|
@@ -104,8 +104,9 @@ 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
|
-
* Success response
|
|
107
|
+
* @returns {Promise<ServiceabilityPlatformModel.StoreRuleResponseSchema>}
|
|
108
|
+
* - Success response
|
|
109
|
+
*
|
|
109
110
|
* @name createStoreRules
|
|
110
111
|
* @summary: Create store rule
|
|
111
112
|
* @description: Create a rule within the order routing rules - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createStoreRules/).
|
|
@@ -161,7 +162,7 @@ class Serviceability {
|
|
|
161
162
|
|
|
162
163
|
const {
|
|
163
164
|
error: res_error,
|
|
164
|
-
} = ServiceabilityPlatformModel.
|
|
165
|
+
} = ServiceabilityPlatformModel.StoreRuleResponseSchema().validate(
|
|
165
166
|
responseData,
|
|
166
167
|
{ abortEarly: false, allowUnknown: true }
|
|
167
168
|
);
|
|
@@ -342,7 +343,7 @@ class Serviceability {
|
|
|
342
343
|
*
|
|
343
344
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
344
345
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
345
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
346
|
+
* @returns {Promise<ServiceabilityPlatformModel.ApplicationSelfShipConfigResponse>}
|
|
346
347
|
* - Success response
|
|
347
348
|
*
|
|
348
349
|
* @name getApplicationServiceabilitySelfShipment
|
|
@@ -396,7 +397,7 @@ class Serviceability {
|
|
|
396
397
|
|
|
397
398
|
const {
|
|
398
399
|
error: res_error,
|
|
399
|
-
} = ServiceabilityPlatformModel.
|
|
400
|
+
} = ServiceabilityPlatformModel.ApplicationSelfShipConfigResponse().validate(
|
|
400
401
|
responseData,
|
|
401
402
|
{ abortEarly: false, allowUnknown: true }
|
|
402
403
|
);
|
|
@@ -421,7 +422,7 @@ class Serviceability {
|
|
|
421
422
|
*
|
|
422
423
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
423
424
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
424
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
425
|
+
* @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponse>}
|
|
425
426
|
* - Success response
|
|
426
427
|
*
|
|
427
428
|
* @name getCourierPartnerRule
|
|
@@ -479,7 +480,7 @@ class Serviceability {
|
|
|
479
480
|
|
|
480
481
|
const {
|
|
481
482
|
error: res_error,
|
|
482
|
-
} = ServiceabilityPlatformModel.
|
|
483
|
+
} = ServiceabilityPlatformModel.CourierPartnerRuleResponse().validate(
|
|
483
484
|
responseData,
|
|
484
485
|
{ abortEarly: false, allowUnknown: true }
|
|
485
486
|
);
|
|
@@ -504,7 +505,7 @@ class Serviceability {
|
|
|
504
505
|
*
|
|
505
506
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
506
507
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
507
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
508
|
+
* @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRulesListResponse>}
|
|
508
509
|
* - Success response
|
|
509
510
|
*
|
|
510
511
|
* @name getCourierPartnerRules
|
|
@@ -569,7 +570,7 @@ class Serviceability {
|
|
|
569
570
|
|
|
570
571
|
const {
|
|
571
572
|
error: res_error,
|
|
572
|
-
} = ServiceabilityPlatformModel.
|
|
573
|
+
} = ServiceabilityPlatformModel.CourierPartnerRulesListResponse().validate(
|
|
573
574
|
responseData,
|
|
574
575
|
{ abortEarly: false, allowUnknown: true }
|
|
575
576
|
);
|
|
@@ -588,89 +589,6 @@ class Serviceability {
|
|
|
588
589
|
return response;
|
|
589
590
|
}
|
|
590
591
|
|
|
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
|
-
|
|
674
592
|
/**
|
|
675
593
|
* @param {ServiceabilityPlatformApplicationValidator.GetStoreRuleParam} arg
|
|
676
594
|
* - Arg object
|
|
@@ -759,8 +677,9 @@ class Serviceability {
|
|
|
759
677
|
*
|
|
760
678
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
761
679
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
762
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
763
|
-
* Success response
|
|
680
|
+
* @returns {Promise<ServiceabilityPlatformModel.GetStoreRulesApiResponse>}
|
|
681
|
+
* - Success response
|
|
682
|
+
*
|
|
764
683
|
* @name getStoreRules
|
|
765
684
|
* @summary: Get store rules
|
|
766
685
|
* @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/).
|
|
@@ -823,7 +742,7 @@ class Serviceability {
|
|
|
823
742
|
|
|
824
743
|
const {
|
|
825
744
|
error: res_error,
|
|
826
|
-
} = ServiceabilityPlatformModel.
|
|
745
|
+
} = ServiceabilityPlatformModel.GetStoreRulesApiResponse().validate(
|
|
827
746
|
responseData,
|
|
828
747
|
{ abortEarly: false, allowUnknown: true }
|
|
829
748
|
);
|
|
@@ -930,7 +849,7 @@ class Serviceability {
|
|
|
930
849
|
*
|
|
931
850
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
932
851
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
933
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
852
|
+
* @returns {Promise<ServiceabilityPlatformModel.ApplicationSelfShipConfigResponse>}
|
|
934
853
|
* - Success response
|
|
935
854
|
*
|
|
936
855
|
* @name patchApplicationServiceabilitySelfShipment
|
|
@@ -988,7 +907,7 @@ class Serviceability {
|
|
|
988
907
|
|
|
989
908
|
const {
|
|
990
909
|
error: res_error,
|
|
991
|
-
} = ServiceabilityPlatformModel.
|
|
910
|
+
} = ServiceabilityPlatformModel.ApplicationSelfShipConfigResponse().validate(
|
|
992
911
|
responseData,
|
|
993
912
|
{ abortEarly: false, allowUnknown: true }
|
|
994
913
|
);
|
|
@@ -1095,7 +1014,7 @@ class Serviceability {
|
|
|
1095
1014
|
*
|
|
1096
1015
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1097
1016
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1098
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1017
|
+
* @returns {Promise<ServiceabilityPlatformModel.RulePriorityResponse>} -
|
|
1099
1018
|
* Success response
|
|
1100
1019
|
* @name updateCourierPartnerRulePriority
|
|
1101
1020
|
* @summary: Update courier partner rule priority
|
|
@@ -1152,7 +1071,7 @@ class Serviceability {
|
|
|
1152
1071
|
|
|
1153
1072
|
const {
|
|
1154
1073
|
error: res_error,
|
|
1155
|
-
} = ServiceabilityPlatformModel.
|
|
1074
|
+
} = ServiceabilityPlatformModel.RulePriorityResponse().validate(
|
|
1156
1075
|
responseData,
|
|
1157
1076
|
{ abortEarly: false, allowUnknown: true }
|
|
1158
1077
|
);
|
|
@@ -1177,7 +1096,7 @@ class Serviceability {
|
|
|
1177
1096
|
*
|
|
1178
1097
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1179
1098
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1180
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1099
|
+
* @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponse>}
|
|
1181
1100
|
* - Success response
|
|
1182
1101
|
*
|
|
1183
1102
|
* @name updateCourierRule
|
|
@@ -1237,7 +1156,7 @@ class Serviceability {
|
|
|
1237
1156
|
|
|
1238
1157
|
const {
|
|
1239
1158
|
error: res_error,
|
|
1240
|
-
} = ServiceabilityPlatformModel.
|
|
1159
|
+
} = ServiceabilityPlatformModel.CourierPartnerRuleResponse().validate(
|
|
1241
1160
|
responseData,
|
|
1242
1161
|
{ abortEarly: false, allowUnknown: true }
|
|
1243
1162
|
);
|
|
@@ -1262,7 +1181,7 @@ class Serviceability {
|
|
|
1262
1181
|
*
|
|
1263
1182
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1264
1183
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1265
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1184
|
+
* @returns {Promise<ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResponseData>}
|
|
1266
1185
|
* - Success response
|
|
1267
1186
|
*
|
|
1268
1187
|
* @name updatePincodeAuditHistory
|
|
@@ -1270,7 +1189,7 @@ class Serviceability {
|
|
|
1270
1189
|
* @description: Retrieves the history of changes made to cash on delivery settings for pincodes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeAuditHistory/).
|
|
1271
1190
|
*/
|
|
1272
1191
|
async updatePincodeAuditHistory(
|
|
1273
|
-
{ body,
|
|
1192
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1274
1193
|
{ responseHeaders } = { responseHeaders: false }
|
|
1275
1194
|
) {
|
|
1276
1195
|
const {
|
|
@@ -1278,8 +1197,6 @@ class Serviceability {
|
|
|
1278
1197
|
} = ServiceabilityPlatformApplicationValidator.updatePincodeAuditHistory().validate(
|
|
1279
1198
|
{
|
|
1280
1199
|
body,
|
|
1281
|
-
pageNumber,
|
|
1282
|
-
pageSize,
|
|
1283
1200
|
},
|
|
1284
1201
|
{ abortEarly: false, allowUnknown: true }
|
|
1285
1202
|
);
|
|
@@ -1293,8 +1210,6 @@ class Serviceability {
|
|
|
1293
1210
|
} = ServiceabilityPlatformApplicationValidator.updatePincodeAuditHistory().validate(
|
|
1294
1211
|
{
|
|
1295
1212
|
body,
|
|
1296
|
-
pageNumber,
|
|
1297
|
-
pageSize,
|
|
1298
1213
|
},
|
|
1299
1214
|
{ abortEarly: false, allowUnknown: false }
|
|
1300
1215
|
);
|
|
@@ -1306,8 +1221,6 @@ class Serviceability {
|
|
|
1306
1221
|
}
|
|
1307
1222
|
|
|
1308
1223
|
const query_params = {};
|
|
1309
|
-
query_params["page_number"] = pageNumber;
|
|
1310
|
-
query_params["page_size"] = pageSize;
|
|
1311
1224
|
|
|
1312
1225
|
const response = await PlatformAPIClient.execute(
|
|
1313
1226
|
this.config,
|
|
@@ -1326,7 +1239,7 @@ class Serviceability {
|
|
|
1326
1239
|
|
|
1327
1240
|
const {
|
|
1328
1241
|
error: res_error,
|
|
1329
|
-
} = ServiceabilityPlatformModel.
|
|
1242
|
+
} = ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResponseData().validate(
|
|
1330
1243
|
responseData,
|
|
1331
1244
|
{ abortEarly: false, allowUnknown: true }
|
|
1332
1245
|
);
|
|
@@ -1351,8 +1264,9 @@ class Serviceability {
|
|
|
1351
1264
|
*
|
|
1352
1265
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1353
1266
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1354
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1355
|
-
* Success response
|
|
1267
|
+
* @returns {Promise<ServiceabilityPlatformModel.PincodeBulkViewResponse>}
|
|
1268
|
+
* - Success response
|
|
1269
|
+
*
|
|
1356
1270
|
* @name updatePincodeBulkView
|
|
1357
1271
|
* @summary: Bulk update pincode COD support
|
|
1358
1272
|
* @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/).
|
|
@@ -1408,7 +1322,7 @@ class Serviceability {
|
|
|
1408
1322
|
|
|
1409
1323
|
const {
|
|
1410
1324
|
error: res_error,
|
|
1411
|
-
} = ServiceabilityPlatformModel.
|
|
1325
|
+
} = ServiceabilityPlatformModel.PincodeBulkViewResponse().validate(
|
|
1412
1326
|
responseData,
|
|
1413
1327
|
{ abortEarly: false, allowUnknown: true }
|
|
1414
1328
|
);
|
|
@@ -1433,7 +1347,7 @@ class Serviceability {
|
|
|
1433
1347
|
*
|
|
1434
1348
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1435
1349
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1436
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1350
|
+
* @returns {Promise<ServiceabilityPlatformModel.PincodeCodStatusListingResponse>}
|
|
1437
1351
|
* - Success response
|
|
1438
1352
|
*
|
|
1439
1353
|
* @name updatePincodeCoDListing
|
|
@@ -1441,7 +1355,7 @@ class Serviceability {
|
|
|
1441
1355
|
* @description: Retrieves a list of pincodes along with the count based on whether cash on delivery settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeCoDListing/).
|
|
1442
1356
|
*/
|
|
1443
1357
|
async updatePincodeCoDListing(
|
|
1444
|
-
{ body,
|
|
1358
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1445
1359
|
{ responseHeaders } = { responseHeaders: false }
|
|
1446
1360
|
) {
|
|
1447
1361
|
const {
|
|
@@ -1449,8 +1363,6 @@ class Serviceability {
|
|
|
1449
1363
|
} = ServiceabilityPlatformApplicationValidator.updatePincodeCoDListing().validate(
|
|
1450
1364
|
{
|
|
1451
1365
|
body,
|
|
1452
|
-
pageNumber,
|
|
1453
|
-
pageSize,
|
|
1454
1366
|
},
|
|
1455
1367
|
{ abortEarly: false, allowUnknown: true }
|
|
1456
1368
|
);
|
|
@@ -1464,8 +1376,6 @@ class Serviceability {
|
|
|
1464
1376
|
} = ServiceabilityPlatformApplicationValidator.updatePincodeCoDListing().validate(
|
|
1465
1377
|
{
|
|
1466
1378
|
body,
|
|
1467
|
-
pageNumber,
|
|
1468
|
-
pageSize,
|
|
1469
1379
|
},
|
|
1470
1380
|
{ abortEarly: false, allowUnknown: false }
|
|
1471
1381
|
);
|
|
@@ -1477,8 +1387,6 @@ class Serviceability {
|
|
|
1477
1387
|
}
|
|
1478
1388
|
|
|
1479
1389
|
const query_params = {};
|
|
1480
|
-
query_params["page_number"] = pageNumber;
|
|
1481
|
-
query_params["page_size"] = pageSize;
|
|
1482
1390
|
|
|
1483
1391
|
const response = await PlatformAPIClient.execute(
|
|
1484
1392
|
this.config,
|
|
@@ -1497,7 +1405,7 @@ class Serviceability {
|
|
|
1497
1405
|
|
|
1498
1406
|
const {
|
|
1499
1407
|
error: res_error,
|
|
1500
|
-
} = ServiceabilityPlatformModel.
|
|
1408
|
+
} = ServiceabilityPlatformModel.PincodeCodStatusListingResponse().validate(
|
|
1501
1409
|
responseData,
|
|
1502
1410
|
{ abortEarly: false, allowUnknown: true }
|
|
1503
1411
|
);
|
|
@@ -1522,7 +1430,8 @@ class Serviceability {
|
|
|
1522
1430
|
*
|
|
1523
1431
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1524
1432
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1525
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1433
|
+
* @returns {Promise<ServiceabilityPlatformModel.PincodeMOPresponse>} -
|
|
1434
|
+
* Success response
|
|
1526
1435
|
* @name updatePincodeMopView
|
|
1527
1436
|
* @summary: Update pincode COD support
|
|
1528
1437
|
* @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/).
|
|
@@ -1578,10 +1487,10 @@ class Serviceability {
|
|
|
1578
1487
|
|
|
1579
1488
|
const {
|
|
1580
1489
|
error: res_error,
|
|
1581
|
-
} = ServiceabilityPlatformModel.
|
|
1582
|
-
|
|
1583
|
-
allowUnknown: true
|
|
1584
|
-
|
|
1490
|
+
} = ServiceabilityPlatformModel.PincodeMOPresponse().validate(
|
|
1491
|
+
responseData,
|
|
1492
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1493
|
+
);
|
|
1585
1494
|
|
|
1586
1495
|
if (res_error) {
|
|
1587
1496
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1603,7 +1512,7 @@ class Serviceability {
|
|
|
1603
1512
|
*
|
|
1604
1513
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1605
1514
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1606
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1515
|
+
* @returns {Promise<ServiceabilityPlatformModel.StoreRuleUpdateResponseSchema>}
|
|
1607
1516
|
* - Success response
|
|
1608
1517
|
*
|
|
1609
1518
|
* @name updateStoreRules
|
|
@@ -1663,7 +1572,7 @@ class Serviceability {
|
|
|
1663
1572
|
|
|
1664
1573
|
const {
|
|
1665
1574
|
error: res_error,
|
|
1666
|
-
} = ServiceabilityPlatformModel.
|
|
1575
|
+
} = ServiceabilityPlatformModel.StoreRuleUpdateResponseSchema().validate(
|
|
1667
1576
|
responseData,
|
|
1668
1577
|
{ abortEarly: false, allowUnknown: true }
|
|
1669
1578
|
);
|
|
@@ -5,14 +5,14 @@ export = ServiceabilityPlatformApplicationValidator;
|
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* @typedef CreateStoreRulesParam
|
|
8
|
-
* @property {ServiceabilityPlatformModel.
|
|
8
|
+
* @property {ServiceabilityPlatformModel.CreateStoreRuleRequestSchema} body
|
|
9
9
|
*/
|
|
10
10
|
/** @typedef GetApplicationConfigParam */
|
|
11
11
|
/** @typedef GetApplicationConfigurationParam */
|
|
12
12
|
/** @typedef GetApplicationServiceabilitySelfShipmentParam */
|
|
13
13
|
/**
|
|
14
14
|
* @typedef GetCourierPartnerRuleParam
|
|
15
|
-
* @property {string} ruleId -
|
|
15
|
+
* @property {string} ruleId - A `rule_id` is a unique identifier for a rule.
|
|
16
16
|
*/
|
|
17
17
|
/**
|
|
18
18
|
* @typedef GetCourierPartnerRulesParam
|
|
@@ -20,10 +20,6 @@ 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
|
-
*/
|
|
27
23
|
/**
|
|
28
24
|
* @typedef GetStoreRuleParam
|
|
29
25
|
* @property {string} ruleUid - A `rule_uid` is a unique identifier for a
|
|
@@ -41,7 +37,7 @@ export = ServiceabilityPlatformApplicationValidator;
|
|
|
41
37
|
*/
|
|
42
38
|
/**
|
|
43
39
|
* @typedef PatchApplicationServiceabilitySelfShipmentParam
|
|
44
|
-
* @property {ServiceabilityPlatformModel.
|
|
40
|
+
* @property {ServiceabilityPlatformModel.SelfShipResponse} body
|
|
45
41
|
*/
|
|
46
42
|
/**
|
|
47
43
|
* @typedef UpdateApplicationConfigurationParam
|
|
@@ -49,18 +45,16 @@ export = ServiceabilityPlatformApplicationValidator;
|
|
|
49
45
|
*/
|
|
50
46
|
/**
|
|
51
47
|
* @typedef UpdateCourierPartnerRulePriorityParam
|
|
52
|
-
* @property {ServiceabilityPlatformModel.
|
|
48
|
+
* @property {ServiceabilityPlatformModel.RulePriorityRequest} body
|
|
53
49
|
*/
|
|
54
50
|
/**
|
|
55
51
|
* @typedef UpdateCourierRuleParam
|
|
56
|
-
* @property {string} ruleId -
|
|
52
|
+
* @property {string} ruleId - A `rule_id` is a unique identifier for a particular Dp.
|
|
57
53
|
* @property {ServiceabilityPlatformModel.CourierPartnerRule} body
|
|
58
54
|
*/
|
|
59
55
|
/**
|
|
60
56
|
* @typedef UpdatePincodeAuditHistoryParam
|
|
61
|
-
* @property {
|
|
62
|
-
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
63
|
-
* @property {ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryDetails} body
|
|
57
|
+
* @property {ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryRequest} body
|
|
64
58
|
*/
|
|
65
59
|
/**
|
|
66
60
|
* @typedef UpdatePincodeBulkViewParam
|
|
@@ -68,9 +62,7 @@ export = ServiceabilityPlatformApplicationValidator;
|
|
|
68
62
|
*/
|
|
69
63
|
/**
|
|
70
64
|
* @typedef UpdatePincodeCoDListingParam
|
|
71
|
-
* @property {
|
|
72
|
-
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
73
|
-
* @property {ServiceabilityPlatformModel.PincodeCodStatusListingDetails} body
|
|
65
|
+
* @property {ServiceabilityPlatformModel.PincodeCodStatusListingRequest} body
|
|
74
66
|
*/
|
|
75
67
|
/**
|
|
76
68
|
* @typedef UpdatePincodeMopViewParam
|
|
@@ -80,7 +72,7 @@ export = ServiceabilityPlatformApplicationValidator;
|
|
|
80
72
|
* @typedef UpdateStoreRulesParam
|
|
81
73
|
* @property {string} ruleUid - A `rule_uid` is a unique identifier for a
|
|
82
74
|
* particular rule object.
|
|
83
|
-
* @property {ServiceabilityPlatformModel.
|
|
75
|
+
* @property {ServiceabilityPlatformModel.CreateStoreRuleRequestSchema} body
|
|
84
76
|
*/
|
|
85
77
|
/**
|
|
86
78
|
* @typedef UpdateStoreRulesConfigParam
|
|
@@ -101,8 +93,6 @@ declare class ServiceabilityPlatformApplicationValidator {
|
|
|
101
93
|
static getCourierPartnerRule(): GetCourierPartnerRuleParam;
|
|
102
94
|
/** @returns {GetCourierPartnerRulesParam} */
|
|
103
95
|
static getCourierPartnerRules(): GetCourierPartnerRulesParam;
|
|
104
|
-
/** @returns {GetCourierPartnersParam} */
|
|
105
|
-
static getCourierPartners(): GetCourierPartnersParam;
|
|
106
96
|
/** @returns {GetStoreRuleParam} */
|
|
107
97
|
static getStoreRule(): GetStoreRuleParam;
|
|
108
98
|
/** @returns {GetStoreRulesParam} */
|
|
@@ -131,17 +121,17 @@ declare class ServiceabilityPlatformApplicationValidator {
|
|
|
131
121
|
static updateStoreRulesConfig(): UpdateStoreRulesConfigParam;
|
|
132
122
|
}
|
|
133
123
|
declare namespace ServiceabilityPlatformApplicationValidator {
|
|
134
|
-
export { CreateCourierPartnerRuleParam, CreateStoreRulesParam, GetApplicationConfigParam, GetApplicationConfigurationParam, GetApplicationServiceabilitySelfShipmentParam, GetCourierPartnerRuleParam, GetCourierPartnerRulesParam,
|
|
124
|
+
export { CreateCourierPartnerRuleParam, CreateStoreRulesParam, GetApplicationConfigParam, GetApplicationConfigurationParam, GetApplicationServiceabilitySelfShipmentParam, GetCourierPartnerRuleParam, GetCourierPartnerRulesParam, GetStoreRuleParam, GetStoreRulesParam, InsertApplicationConfigParam, PatchApplicationServiceabilitySelfShipmentParam, UpdateApplicationConfigurationParam, UpdateCourierPartnerRulePriorityParam, UpdateCourierRuleParam, UpdatePincodeAuditHistoryParam, UpdatePincodeBulkViewParam, UpdatePincodeCoDListingParam, UpdatePincodeMopViewParam, UpdateStoreRulesParam, UpdateStoreRulesConfigParam };
|
|
135
125
|
}
|
|
136
126
|
type CreateCourierPartnerRuleParam = {
|
|
137
127
|
body: ServiceabilityPlatformModel.CourierPartnerRule;
|
|
138
128
|
};
|
|
139
129
|
type CreateStoreRulesParam = {
|
|
140
|
-
body: ServiceabilityPlatformModel.
|
|
130
|
+
body: ServiceabilityPlatformModel.CreateStoreRuleRequestSchema;
|
|
141
131
|
};
|
|
142
132
|
type GetCourierPartnerRuleParam = {
|
|
143
133
|
/**
|
|
144
|
-
* -
|
|
134
|
+
* - A `rule_id` is a unique identifier for a rule.
|
|
145
135
|
*/
|
|
146
136
|
ruleId: string;
|
|
147
137
|
};
|
|
@@ -159,9 +149,6 @@ type GetCourierPartnerRulesParam = {
|
|
|
159
149
|
*/
|
|
160
150
|
status?: string;
|
|
161
151
|
};
|
|
162
|
-
type GetCourierPartnersParam = {
|
|
163
|
-
body: ServiceabilityPlatformModel.ShipmentCourierPartnerDetails;
|
|
164
|
-
};
|
|
165
152
|
type GetStoreRuleParam = {
|
|
166
153
|
/**
|
|
167
154
|
* - A `rule_uid` is a unique identifier for a
|
|
@@ -178,45 +165,29 @@ type InsertApplicationConfigParam = {
|
|
|
178
165
|
body: ServiceabilityPlatformModel.StoreRuleConfigData;
|
|
179
166
|
};
|
|
180
167
|
type PatchApplicationServiceabilitySelfShipmentParam = {
|
|
181
|
-
body: ServiceabilityPlatformModel.
|
|
168
|
+
body: ServiceabilityPlatformModel.SelfShipResponse;
|
|
182
169
|
};
|
|
183
170
|
type UpdateApplicationConfigurationParam = {
|
|
184
171
|
body: ServiceabilityPlatformModel.ApplicationConfig;
|
|
185
172
|
};
|
|
186
173
|
type UpdateCourierPartnerRulePriorityParam = {
|
|
187
|
-
body: ServiceabilityPlatformModel.
|
|
174
|
+
body: ServiceabilityPlatformModel.RulePriorityRequest;
|
|
188
175
|
};
|
|
189
176
|
type UpdateCourierRuleParam = {
|
|
190
177
|
/**
|
|
191
|
-
* -
|
|
178
|
+
* - A `rule_id` is a unique identifier for a particular Dp.
|
|
192
179
|
*/
|
|
193
180
|
ruleId: string;
|
|
194
181
|
body: ServiceabilityPlatformModel.CourierPartnerRule;
|
|
195
182
|
};
|
|
196
183
|
type UpdatePincodeAuditHistoryParam = {
|
|
197
|
-
|
|
198
|
-
* - Page number to be fetched.
|
|
199
|
-
*/
|
|
200
|
-
pageNumber?: number;
|
|
201
|
-
/**
|
|
202
|
-
* - Determines the items to be displayed in a page
|
|
203
|
-
*/
|
|
204
|
-
pageSize?: number;
|
|
205
|
-
body: ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryDetails;
|
|
184
|
+
body: ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryRequest;
|
|
206
185
|
};
|
|
207
186
|
type UpdatePincodeBulkViewParam = {
|
|
208
187
|
body: ServiceabilityPlatformModel.PincodeMopBulkData;
|
|
209
188
|
};
|
|
210
189
|
type UpdatePincodeCoDListingParam = {
|
|
211
|
-
|
|
212
|
-
* - Page number to be fetched.
|
|
213
|
-
*/
|
|
214
|
-
pageNumber?: number;
|
|
215
|
-
/**
|
|
216
|
-
* - Determines the items to be displayed in a page
|
|
217
|
-
*/
|
|
218
|
-
pageSize?: number;
|
|
219
|
-
body: ServiceabilityPlatformModel.PincodeCodStatusListingDetails;
|
|
190
|
+
body: ServiceabilityPlatformModel.PincodeCodStatusListingRequest;
|
|
220
191
|
};
|
|
221
192
|
type UpdatePincodeMopViewParam = {
|
|
222
193
|
body: ServiceabilityPlatformModel.PincodeMopData;
|
|
@@ -227,7 +198,7 @@ type UpdateStoreRulesParam = {
|
|
|
227
198
|
* particular rule object.
|
|
228
199
|
*/
|
|
229
200
|
ruleUid: string;
|
|
230
|
-
body: ServiceabilityPlatformModel.
|
|
201
|
+
body: ServiceabilityPlatformModel.CreateStoreRuleRequestSchema;
|
|
231
202
|
};
|
|
232
203
|
type UpdateStoreRulesConfigParam = {
|
|
233
204
|
body: ServiceabilityPlatformModel.StoreRuleConfigData;
|