@gofynd/fdk-client-javascript 1.4.16-beta.4 → 1.4.16-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +68 -48
- package/sdk/application/Cart/CartApplicationClient.js +118 -27
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +59 -58
- package/sdk/application/Catalog/CatalogApplicationClient.js +30 -29
- 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 +51 -30
- package/sdk/application/Content/ContentApplicationClient.js +161 -56
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -11
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -10
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +35 -15
- package/sdk/application/Logistic/LogisticApplicationClient.js +101 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
- package/sdk/application/Order/OrderApplicationClient.js +56 -8
- 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 +4 -2
- 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/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -21
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -16
- 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 +1200 -167
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
- package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +5070 -1296
- package/sdk/platform/Cart/CartPlatformModel.js +1992 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
- package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6512 -1770
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3228 -1687
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
- 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 +204 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1076 -478
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +253 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +256 -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 +1372 -400
- package/sdk/platform/Content/ContentPlatformModel.js +631 -394
- 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 +95 -39
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -63
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -22
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -24
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -116
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -104
- 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 +17 -6
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
- package/sdk/platform/Order/OrderPlatformClient.js +416 -198
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7607 -1267
- package/sdk/platform/Order/OrderPlatformModel.js +3929 -1269
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
- package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
- 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 +333 -319
- package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
- 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 +46 -36
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -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 +3 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +46 -7
- package/sdk/platform/Share/SharePlatformModel.js +31 -6
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
- package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +810 -6
- 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,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.CourierPartnerRuleResult>}
|
|
25
25
|
* - Success response
|
|
26
26
|
*
|
|
27
27
|
* @name createCourierPartnerRule
|
|
28
|
-
* @summary: Create
|
|
28
|
+
* @summary: Create courier 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.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
|
|
@@ -1189,7 +1270,7 @@ class Serviceability {
|
|
|
1189
1270
|
* @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/).
|
|
1190
1271
|
*/
|
|
1191
1272
|
async updatePincodeAuditHistory(
|
|
1192
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1273
|
+
{ body, pageNumber, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
1193
1274
|
{ responseHeaders } = { responseHeaders: false }
|
|
1194
1275
|
) {
|
|
1195
1276
|
const {
|
|
@@ -1197,6 +1278,8 @@ class Serviceability {
|
|
|
1197
1278
|
} = ServiceabilityPlatformApplicationValidator.updatePincodeAuditHistory().validate(
|
|
1198
1279
|
{
|
|
1199
1280
|
body,
|
|
1281
|
+
pageNumber,
|
|
1282
|
+
pageSize,
|
|
1200
1283
|
},
|
|
1201
1284
|
{ abortEarly: false, allowUnknown: true }
|
|
1202
1285
|
);
|
|
@@ -1210,6 +1293,8 @@ class Serviceability {
|
|
|
1210
1293
|
} = ServiceabilityPlatformApplicationValidator.updatePincodeAuditHistory().validate(
|
|
1211
1294
|
{
|
|
1212
1295
|
body,
|
|
1296
|
+
pageNumber,
|
|
1297
|
+
pageSize,
|
|
1213
1298
|
},
|
|
1214
1299
|
{ abortEarly: false, allowUnknown: false }
|
|
1215
1300
|
);
|
|
@@ -1221,6 +1306,8 @@ class Serviceability {
|
|
|
1221
1306
|
}
|
|
1222
1307
|
|
|
1223
1308
|
const query_params = {};
|
|
1309
|
+
query_params["page_number"] = pageNumber;
|
|
1310
|
+
query_params["page_size"] = pageSize;
|
|
1224
1311
|
|
|
1225
1312
|
const response = await PlatformAPIClient.execute(
|
|
1226
1313
|
this.config,
|
|
@@ -1239,7 +1326,7 @@ class Serviceability {
|
|
|
1239
1326
|
|
|
1240
1327
|
const {
|
|
1241
1328
|
error: res_error,
|
|
1242
|
-
} = ServiceabilityPlatformModel.
|
|
1329
|
+
} = ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResultData().validate(
|
|
1243
1330
|
responseData,
|
|
1244
1331
|
{ abortEarly: false, allowUnknown: true }
|
|
1245
1332
|
);
|
|
@@ -1264,9 +1351,8 @@ class Serviceability {
|
|
|
1264
1351
|
*
|
|
1265
1352
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1266
1353
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1267
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1268
|
-
*
|
|
1269
|
-
*
|
|
1354
|
+
* @returns {Promise<ServiceabilityPlatformModel.PincodeBulkViewResult>} -
|
|
1355
|
+
* Success response
|
|
1270
1356
|
* @name updatePincodeBulkView
|
|
1271
1357
|
* @summary: Bulk update pincode COD support
|
|
1272
1358
|
* @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 +1408,7 @@ class Serviceability {
|
|
|
1322
1408
|
|
|
1323
1409
|
const {
|
|
1324
1410
|
error: res_error,
|
|
1325
|
-
} = ServiceabilityPlatformModel.
|
|
1411
|
+
} = ServiceabilityPlatformModel.PincodeBulkViewResult().validate(
|
|
1326
1412
|
responseData,
|
|
1327
1413
|
{ abortEarly: false, allowUnknown: true }
|
|
1328
1414
|
);
|
|
@@ -1347,7 +1433,7 @@ class Serviceability {
|
|
|
1347
1433
|
*
|
|
1348
1434
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1349
1435
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1350
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1436
|
+
* @returns {Promise<ServiceabilityPlatformModel.PincodeCodStatusListingResult>}
|
|
1351
1437
|
* - Success response
|
|
1352
1438
|
*
|
|
1353
1439
|
* @name updatePincodeCoDListing
|
|
@@ -1355,7 +1441,7 @@ class Serviceability {
|
|
|
1355
1441
|
* @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/).
|
|
1356
1442
|
*/
|
|
1357
1443
|
async updatePincodeCoDListing(
|
|
1358
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1444
|
+
{ body, pageNumber, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
1359
1445
|
{ responseHeaders } = { responseHeaders: false }
|
|
1360
1446
|
) {
|
|
1361
1447
|
const {
|
|
@@ -1363,6 +1449,8 @@ class Serviceability {
|
|
|
1363
1449
|
} = ServiceabilityPlatformApplicationValidator.updatePincodeCoDListing().validate(
|
|
1364
1450
|
{
|
|
1365
1451
|
body,
|
|
1452
|
+
pageNumber,
|
|
1453
|
+
pageSize,
|
|
1366
1454
|
},
|
|
1367
1455
|
{ abortEarly: false, allowUnknown: true }
|
|
1368
1456
|
);
|
|
@@ -1376,6 +1464,8 @@ class Serviceability {
|
|
|
1376
1464
|
} = ServiceabilityPlatformApplicationValidator.updatePincodeCoDListing().validate(
|
|
1377
1465
|
{
|
|
1378
1466
|
body,
|
|
1467
|
+
pageNumber,
|
|
1468
|
+
pageSize,
|
|
1379
1469
|
},
|
|
1380
1470
|
{ abortEarly: false, allowUnknown: false }
|
|
1381
1471
|
);
|
|
@@ -1387,6 +1477,8 @@ class Serviceability {
|
|
|
1387
1477
|
}
|
|
1388
1478
|
|
|
1389
1479
|
const query_params = {};
|
|
1480
|
+
query_params["page_number"] = pageNumber;
|
|
1481
|
+
query_params["page_size"] = pageSize;
|
|
1390
1482
|
|
|
1391
1483
|
const response = await PlatformAPIClient.execute(
|
|
1392
1484
|
this.config,
|
|
@@ -1405,7 +1497,7 @@ class Serviceability {
|
|
|
1405
1497
|
|
|
1406
1498
|
const {
|
|
1407
1499
|
error: res_error,
|
|
1408
|
-
} = ServiceabilityPlatformModel.
|
|
1500
|
+
} = ServiceabilityPlatformModel.PincodeCodStatusListingResult().validate(
|
|
1409
1501
|
responseData,
|
|
1410
1502
|
{ abortEarly: false, allowUnknown: true }
|
|
1411
1503
|
);
|
|
@@ -1430,8 +1522,7 @@ class Serviceability {
|
|
|
1430
1522
|
*
|
|
1431
1523
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1432
1524
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1433
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1434
|
-
* Success response
|
|
1525
|
+
* @returns {Promise<ServiceabilityPlatformModel.PincodeMOPResult>} - Success response
|
|
1435
1526
|
* @name updatePincodeMopView
|
|
1436
1527
|
* @summary: Update pincode COD support
|
|
1437
1528
|
* @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 +1578,10 @@ class Serviceability {
|
|
|
1487
1578
|
|
|
1488
1579
|
const {
|
|
1489
1580
|
error: res_error,
|
|
1490
|
-
} = ServiceabilityPlatformModel.
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
);
|
|
1581
|
+
} = ServiceabilityPlatformModel.PincodeMOPResult().validate(responseData, {
|
|
1582
|
+
abortEarly: false,
|
|
1583
|
+
allowUnknown: true,
|
|
1584
|
+
});
|
|
1494
1585
|
|
|
1495
1586
|
if (res_error) {
|
|
1496
1587
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1512,7 +1603,7 @@ class Serviceability {
|
|
|
1512
1603
|
*
|
|
1513
1604
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1514
1605
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1515
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1606
|
+
* @returns {Promise<ServiceabilityPlatformModel.StoreRuleUpdateResultSchema>}
|
|
1516
1607
|
* - Success response
|
|
1517
1608
|
*
|
|
1518
1609
|
* @name updateStoreRules
|
|
@@ -1572,7 +1663,7 @@ class Serviceability {
|
|
|
1572
1663
|
|
|
1573
1664
|
const {
|
|
1574
1665
|
error: res_error,
|
|
1575
|
-
} = ServiceabilityPlatformModel.
|
|
1666
|
+
} = ServiceabilityPlatformModel.StoreRuleUpdateResultSchema().validate(
|
|
1576
1667
|
responseData,
|
|
1577
1668
|
{ abortEarly: false, allowUnknown: true }
|
|
1578
1669
|
);
|
|
@@ -5,14 +5,14 @@ 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 */
|
|
12
12
|
/** @typedef GetApplicationServiceabilitySelfShipmentParam */
|
|
13
13
|
/**
|
|
14
14
|
* @typedef GetCourierPartnerRuleParam
|
|
15
|
-
* @property {string} ruleId -
|
|
15
|
+
* @property {string} ruleId - Unique identifier of the courier partner rule
|
|
16
16
|
*/
|
|
17
17
|
/**
|
|
18
18
|
* @typedef GetCourierPartnerRulesParam
|
|
@@ -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,16 +49,18 @@ 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
|
|
52
|
-
* @property {string} ruleId -
|
|
56
|
+
* @property {string} ruleId - Unique identifier of the courier partner rule.
|
|
53
57
|
* @property {ServiceabilityPlatformModel.CourierPartnerRule} body
|
|
54
58
|
*/
|
|
55
59
|
/**
|
|
56
60
|
* @typedef UpdatePincodeAuditHistoryParam
|
|
57
|
-
* @property {
|
|
61
|
+
* @property {number} [pageNumber] - Page number to be fetched.
|
|
62
|
+
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
63
|
+
* @property {ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryDetails} body
|
|
58
64
|
*/
|
|
59
65
|
/**
|
|
60
66
|
* @typedef UpdatePincodeBulkViewParam
|
|
@@ -62,7 +68,9 @@ export = ServiceabilityPlatformApplicationValidator;
|
|
|
62
68
|
*/
|
|
63
69
|
/**
|
|
64
70
|
* @typedef UpdatePincodeCoDListingParam
|
|
65
|
-
* @property {
|
|
71
|
+
* @property {number} [pageNumber] - Page number to be fetched.
|
|
72
|
+
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
73
|
+
* @property {ServiceabilityPlatformModel.PincodeCodStatusListingDetails} body
|
|
66
74
|
*/
|
|
67
75
|
/**
|
|
68
76
|
* @typedef UpdatePincodeMopViewParam
|
|
@@ -72,7 +80,7 @@ export = ServiceabilityPlatformApplicationValidator;
|
|
|
72
80
|
* @typedef UpdateStoreRulesParam
|
|
73
81
|
* @property {string} ruleUid - A `rule_uid` is a unique identifier for a
|
|
74
82
|
* particular rule object.
|
|
75
|
-
* @property {ServiceabilityPlatformModel.
|
|
83
|
+
* @property {ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema} body
|
|
76
84
|
*/
|
|
77
85
|
/**
|
|
78
86
|
* @typedef UpdateStoreRulesConfigParam
|
|
@@ -93,6 +101,8 @@ declare class ServiceabilityPlatformApplicationValidator {
|
|
|
93
101
|
static getCourierPartnerRule(): GetCourierPartnerRuleParam;
|
|
94
102
|
/** @returns {GetCourierPartnerRulesParam} */
|
|
95
103
|
static getCourierPartnerRules(): GetCourierPartnerRulesParam;
|
|
104
|
+
/** @returns {GetCourierPartnersParam} */
|
|
105
|
+
static getCourierPartners(): GetCourierPartnersParam;
|
|
96
106
|
/** @returns {GetStoreRuleParam} */
|
|
97
107
|
static getStoreRule(): GetStoreRuleParam;
|
|
98
108
|
/** @returns {GetStoreRulesParam} */
|
|
@@ -121,17 +131,17 @@ declare class ServiceabilityPlatformApplicationValidator {
|
|
|
121
131
|
static updateStoreRulesConfig(): UpdateStoreRulesConfigParam;
|
|
122
132
|
}
|
|
123
133
|
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 };
|
|
134
|
+
export { CreateCourierPartnerRuleParam, CreateStoreRulesParam, GetApplicationConfigParam, GetApplicationConfigurationParam, GetApplicationServiceabilitySelfShipmentParam, GetCourierPartnerRuleParam, GetCourierPartnerRulesParam, GetCourierPartnersParam, GetStoreRuleParam, GetStoreRulesParam, InsertApplicationConfigParam, PatchApplicationServiceabilitySelfShipmentParam, UpdateApplicationConfigurationParam, UpdateCourierPartnerRulePriorityParam, UpdateCourierRuleParam, UpdatePincodeAuditHistoryParam, UpdatePincodeBulkViewParam, UpdatePincodeCoDListingParam, UpdatePincodeMopViewParam, UpdateStoreRulesParam, UpdateStoreRulesConfigParam };
|
|
125
135
|
}
|
|
126
136
|
type CreateCourierPartnerRuleParam = {
|
|
127
137
|
body: ServiceabilityPlatformModel.CourierPartnerRule;
|
|
128
138
|
};
|
|
129
139
|
type CreateStoreRulesParam = {
|
|
130
|
-
body: ServiceabilityPlatformModel.
|
|
140
|
+
body: ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema;
|
|
131
141
|
};
|
|
132
142
|
type GetCourierPartnerRuleParam = {
|
|
133
143
|
/**
|
|
134
|
-
* -
|
|
144
|
+
* - Unique identifier of the courier partner rule
|
|
135
145
|
*/
|
|
136
146
|
ruleId: string;
|
|
137
147
|
};
|
|
@@ -149,6 +159,9 @@ type GetCourierPartnerRulesParam = {
|
|
|
149
159
|
*/
|
|
150
160
|
status?: string;
|
|
151
161
|
};
|
|
162
|
+
type GetCourierPartnersParam = {
|
|
163
|
+
body: ServiceabilityPlatformModel.ShipmentCourierPartnerDetails;
|
|
164
|
+
};
|
|
152
165
|
type GetStoreRuleParam = {
|
|
153
166
|
/**
|
|
154
167
|
* - A `rule_uid` is a unique identifier for a
|
|
@@ -165,29 +178,45 @@ type InsertApplicationConfigParam = {
|
|
|
165
178
|
body: ServiceabilityPlatformModel.StoreRuleConfigData;
|
|
166
179
|
};
|
|
167
180
|
type PatchApplicationServiceabilitySelfShipmentParam = {
|
|
168
|
-
body: ServiceabilityPlatformModel.
|
|
181
|
+
body: ServiceabilityPlatformModel.SelfShipResult;
|
|
169
182
|
};
|
|
170
183
|
type UpdateApplicationConfigurationParam = {
|
|
171
184
|
body: ServiceabilityPlatformModel.ApplicationConfig;
|
|
172
185
|
};
|
|
173
186
|
type UpdateCourierPartnerRulePriorityParam = {
|
|
174
|
-
body: ServiceabilityPlatformModel.
|
|
187
|
+
body: ServiceabilityPlatformModel.RulePriorityDetails;
|
|
175
188
|
};
|
|
176
189
|
type UpdateCourierRuleParam = {
|
|
177
190
|
/**
|
|
178
|
-
* -
|
|
191
|
+
* - Unique identifier of the courier partner rule.
|
|
179
192
|
*/
|
|
180
193
|
ruleId: string;
|
|
181
194
|
body: ServiceabilityPlatformModel.CourierPartnerRule;
|
|
182
195
|
};
|
|
183
196
|
type UpdatePincodeAuditHistoryParam = {
|
|
184
|
-
|
|
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;
|
|
185
206
|
};
|
|
186
207
|
type UpdatePincodeBulkViewParam = {
|
|
187
208
|
body: ServiceabilityPlatformModel.PincodeMopBulkData;
|
|
188
209
|
};
|
|
189
210
|
type UpdatePincodeCoDListingParam = {
|
|
190
|
-
|
|
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;
|
|
191
220
|
};
|
|
192
221
|
type UpdatePincodeMopViewParam = {
|
|
193
222
|
body: ServiceabilityPlatformModel.PincodeMopData;
|
|
@@ -198,7 +227,7 @@ type UpdateStoreRulesParam = {
|
|
|
198
227
|
* particular rule object.
|
|
199
228
|
*/
|
|
200
229
|
ruleUid: string;
|
|
201
|
-
body: ServiceabilityPlatformModel.
|
|
230
|
+
body: ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema;
|
|
202
231
|
};
|
|
203
232
|
type UpdateStoreRulesConfigParam = {
|
|
204
233
|
body: ServiceabilityPlatformModel.StoreRuleConfigData;
|