@gofynd/fdk-client-javascript 1.4.15-beta.2 → 1.4.15
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 +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -18
- package/sdk/application/Cart/CartApplicationClient.d.ts +75 -90
- package/sdk/application/Cart/CartApplicationClient.js +108 -1199
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +81 -142
- package/sdk/application/Catalog/CatalogApplicationClient.js +41 -1344
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
- package/sdk/application/Common/CommonApplicationClient.js +2 -92
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -148
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -727
- package/sdk/application/Content/ContentApplicationClient.d.ts +48 -111
- package/sdk/application/Content/ContentApplicationClient.js +43 -1065
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -13
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +8 -138
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +105 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
- package/sdk/application/Lead/LeadApplicationClient.js +5 -217
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +42 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +91 -493
- package/sdk/application/Order/OrderApplicationClient.d.ts +36 -46
- package/sdk/application/Order/OrderApplicationClient.js +52 -507
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +103 -213
- package/sdk/application/Payment/PaymentApplicationClient.js +84 -2105
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -29
- package/sdk/application/Rewards/RewardsApplicationClient.js +8 -312
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +7 -309
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -176
- package/sdk/application/User/UserApplicationClient.d.ts +87 -138
- package/sdk/application/User/UserApplicationClient.js +44 -1820
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -52
- package/sdk/application/index.d.ts +0 -18
- package/sdk/application/index.js +0 -33
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +157 -30
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1177 -56
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1662 -249
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +774 -162
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +141 -12
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
- package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +5060 -1300
- package/sdk/platform/Cart/CartPlatformModel.js +1985 -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 +178 -117
- package/sdk/platform/Catalog/CatalogPlatformClient.js +468 -172
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6554 -1772
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3264 -1690
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +116 -31
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +85 -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 +122 -191
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +447 -831
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +174 -220
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +164 -199
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1233 -476
- package/sdk/platform/Content/ContentPlatformModel.js +514 -487
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +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 +424 -198
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7747 -1342
- package/sdk/platform/Order/OrderPlatformModel.js +3960 -1262
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +292 -109
- package/sdk/platform/Order/OrderPlatformValidator.js +145 -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 +132 -44
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +681 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +2458 -650
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1266 -572
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +176 -47
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
- package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -7
- 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 +795 -7
- 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/Partner/PartnerPublicClient.js +4 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +12 -10
- 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/Cart/CartApplicationModel.d.ts +0 -3994
- package/sdk/application/Cart/CartApplicationModel.js +0 -2497
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
- package/sdk/application/Cart/CartApplicationValidator.js +0 -530
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
- package/sdk/application/Content/ContentApplicationModel.js +0 -1589
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
- package/sdk/application/Content/ContentApplicationValidator.js +0 -264
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
- package/sdk/application/Order/OrderApplicationModel.js +0 -1471
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
- package/sdk/application/Order/OrderApplicationValidator.js +0 -197
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
- 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
|
@@ -18,7 +18,7 @@ class Serviceability {
|
|
|
18
18
|
* @param {ServiceabilityPlatformValidator.BulkServiceabilityParam} arg - Arg object
|
|
19
19
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
20
20
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
21
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
21
|
+
* @returns {Promise<ServiceabilityPlatformModel.BulkRegionResultItemData>}
|
|
22
22
|
* - Success response
|
|
23
23
|
*
|
|
24
24
|
* @name bulkServiceability
|
|
@@ -82,7 +82,7 @@ class Serviceability {
|
|
|
82
82
|
|
|
83
83
|
const {
|
|
84
84
|
error: res_error,
|
|
85
|
-
} = ServiceabilityPlatformModel.
|
|
85
|
+
} = ServiceabilityPlatformModel.BulkRegionResultItemData().validate(
|
|
86
86
|
responseData,
|
|
87
87
|
{ abortEarly: false, allowUnknown: true }
|
|
88
88
|
);
|
|
@@ -105,7 +105,7 @@ class Serviceability {
|
|
|
105
105
|
* @param {ServiceabilityPlatformValidator.BulkTatParam} arg - Arg object
|
|
106
106
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
107
107
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
108
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
108
|
+
* @returns {Promise<ServiceabilityPlatformModel.BulkRegionResultItemData>}
|
|
109
109
|
* - Success response
|
|
110
110
|
*
|
|
111
111
|
* @name bulkTat
|
|
@@ -168,7 +168,7 @@ class Serviceability {
|
|
|
168
168
|
|
|
169
169
|
const {
|
|
170
170
|
error: res_error,
|
|
171
|
-
} = ServiceabilityPlatformModel.
|
|
171
|
+
} = ServiceabilityPlatformModel.BulkRegionResultItemData().validate(
|
|
172
172
|
responseData,
|
|
173
173
|
{ abortEarly: false, allowUnknown: true }
|
|
174
174
|
);
|
|
@@ -271,14 +271,98 @@ class Serviceability {
|
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
/**
|
|
274
|
-
* @param {ServiceabilityPlatformValidator.
|
|
274
|
+
* @param {ServiceabilityPlatformValidator.CreateCourierPartnerSchemeParam} arg
|
|
275
275
|
* - Arg object
|
|
276
276
|
*
|
|
277
277
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
278
278
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
279
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
279
|
+
* @returns {Promise<ServiceabilityPlatformModel.CourierPartnerV2SchemeModel>}
|
|
280
280
|
* - Success response
|
|
281
281
|
*
|
|
282
|
+
* @name createCourierPartnerScheme
|
|
283
|
+
* @summary: Create Scheme for courier partner extension
|
|
284
|
+
* @description: Create Scheme for courier partner extension - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createCourierPartnerScheme/).
|
|
285
|
+
*/
|
|
286
|
+
async createCourierPartnerScheme(
|
|
287
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
288
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
289
|
+
) {
|
|
290
|
+
const {
|
|
291
|
+
error,
|
|
292
|
+
} = ServiceabilityPlatformValidator.createCourierPartnerScheme().validate(
|
|
293
|
+
{
|
|
294
|
+
body,
|
|
295
|
+
},
|
|
296
|
+
{ abortEarly: false, allowUnknown: true }
|
|
297
|
+
);
|
|
298
|
+
if (error) {
|
|
299
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
// Showing warrnings if extra unknown parameters are found
|
|
303
|
+
const {
|
|
304
|
+
error: warrning,
|
|
305
|
+
} = ServiceabilityPlatformValidator.createCourierPartnerScheme().validate(
|
|
306
|
+
{
|
|
307
|
+
body,
|
|
308
|
+
},
|
|
309
|
+
{ abortEarly: false, allowUnknown: false }
|
|
310
|
+
);
|
|
311
|
+
if (warrning) {
|
|
312
|
+
Logger({
|
|
313
|
+
level: "WARN",
|
|
314
|
+
message: `Parameter Validation warrnings for platform > Serviceability > createCourierPartnerScheme \n ${warrning}`,
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
const query_params = {};
|
|
319
|
+
|
|
320
|
+
const xHeaders = {};
|
|
321
|
+
|
|
322
|
+
const response = await PlatformAPIClient.execute(
|
|
323
|
+
this.config,
|
|
324
|
+
"post",
|
|
325
|
+
`/service/platform/logistics/v2.0/company/${this.config.companyId}/courier-partner/scheme`,
|
|
326
|
+
query_params,
|
|
327
|
+
body,
|
|
328
|
+
{ ...xHeaders, ...requestHeaders },
|
|
329
|
+
{ responseHeaders }
|
|
330
|
+
);
|
|
331
|
+
|
|
332
|
+
let responseData = response;
|
|
333
|
+
if (responseHeaders) {
|
|
334
|
+
responseData = response[0];
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
const {
|
|
338
|
+
error: res_error,
|
|
339
|
+
} = ServiceabilityPlatformModel.CourierPartnerV2SchemeModel().validate(
|
|
340
|
+
responseData,
|
|
341
|
+
{ abortEarly: false, allowUnknown: true }
|
|
342
|
+
);
|
|
343
|
+
|
|
344
|
+
if (res_error) {
|
|
345
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
346
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
347
|
+
} else {
|
|
348
|
+
Logger({
|
|
349
|
+
level: "WARN",
|
|
350
|
+
message: `Response Validation Warnings for platform > Serviceability > createCourierPartnerScheme \n ${res_error}`,
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
return response;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* @param {ServiceabilityPlatformValidator.CreatePackageMaterialParam} arg
|
|
360
|
+
* - Arg object
|
|
361
|
+
*
|
|
362
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
363
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
364
|
+
* @returns {Promise<ServiceabilityPlatformModel.PackageMaterialResult>} -
|
|
365
|
+
* Success response
|
|
282
366
|
* @name createPackageMaterial
|
|
283
367
|
* @summary: Create packaging material
|
|
284
368
|
* @description: Creates a packaging material - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createPackageMaterial/).
|
|
@@ -336,7 +420,7 @@ class Serviceability {
|
|
|
336
420
|
|
|
337
421
|
const {
|
|
338
422
|
error: res_error,
|
|
339
|
-
} = ServiceabilityPlatformModel.
|
|
423
|
+
} = ServiceabilityPlatformModel.PackageMaterialResult().validate(
|
|
340
424
|
responseData,
|
|
341
425
|
{ abortEarly: false, allowUnknown: true }
|
|
342
426
|
);
|
|
@@ -361,7 +445,7 @@ class Serviceability {
|
|
|
361
445
|
*
|
|
362
446
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
363
447
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
364
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
448
|
+
* @returns {Promise<ServiceabilityPlatformModel.PackageRuleResult>} -
|
|
365
449
|
* Success response
|
|
366
450
|
* @name createPackageMaterialRule
|
|
367
451
|
* @summary: Create packaging rule
|
|
@@ -420,10 +504,10 @@ class Serviceability {
|
|
|
420
504
|
|
|
421
505
|
const {
|
|
422
506
|
error: res_error,
|
|
423
|
-
} = ServiceabilityPlatformModel.
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
);
|
|
507
|
+
} = ServiceabilityPlatformModel.PackageRuleResult().validate(responseData, {
|
|
508
|
+
abortEarly: false,
|
|
509
|
+
allowUnknown: true,
|
|
510
|
+
});
|
|
427
511
|
|
|
428
512
|
if (res_error) {
|
|
429
513
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -443,7 +527,7 @@ class Serviceability {
|
|
|
443
527
|
* @param {ServiceabilityPlatformValidator.CreateZoneParam} arg - Arg object
|
|
444
528
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
445
529
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
446
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
530
|
+
* @returns {Promise<ServiceabilityPlatformModel.ZoneResult>} - Success response
|
|
447
531
|
* @name createZone
|
|
448
532
|
* @summary: Create zone
|
|
449
533
|
* @description: Creates a delivery zone. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createZone/).
|
|
@@ -499,7 +583,7 @@ class Serviceability {
|
|
|
499
583
|
|
|
500
584
|
const {
|
|
501
585
|
error: res_error,
|
|
502
|
-
} = ServiceabilityPlatformModel.
|
|
586
|
+
} = ServiceabilityPlatformModel.ZoneResult().validate(responseData, {
|
|
503
587
|
abortEarly: false,
|
|
504
588
|
allowUnknown: true,
|
|
505
589
|
});
|
|
@@ -522,7 +606,7 @@ class Serviceability {
|
|
|
522
606
|
* @param {ServiceabilityPlatformValidator.GetAllStoresParam} arg - Arg object
|
|
523
607
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
524
608
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
525
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
609
|
+
* @returns {Promise<ServiceabilityPlatformModel.GetStoresViewResult>} -
|
|
526
610
|
* Success response
|
|
527
611
|
* @name getAllStores
|
|
528
612
|
* @summary: Get all stores
|
|
@@ -575,7 +659,7 @@ class Serviceability {
|
|
|
575
659
|
|
|
576
660
|
const {
|
|
577
661
|
error: res_error,
|
|
578
|
-
} = ServiceabilityPlatformModel.
|
|
662
|
+
} = ServiceabilityPlatformModel.GetStoresViewResult().validate(
|
|
579
663
|
responseData,
|
|
580
664
|
{ abortEarly: false, allowUnknown: true }
|
|
581
665
|
);
|
|
@@ -600,8 +684,7 @@ class Serviceability {
|
|
|
600
684
|
*
|
|
601
685
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
602
686
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
603
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
604
|
-
* Success response
|
|
687
|
+
* @returns {Promise<ServiceabilityPlatformModel.BulkRegionResult>} - Success response
|
|
605
688
|
* @name getBulkServiceability
|
|
606
689
|
* @summary: Bulk update history
|
|
607
690
|
* @description: Retrieves the history of changes made to serviceability settings for a scheme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getBulkServiceability/).
|
|
@@ -701,10 +784,10 @@ class Serviceability {
|
|
|
701
784
|
|
|
702
785
|
const {
|
|
703
786
|
error: res_error,
|
|
704
|
-
} = ServiceabilityPlatformModel.
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
);
|
|
787
|
+
} = ServiceabilityPlatformModel.BulkRegionResult().validate(responseData, {
|
|
788
|
+
abortEarly: false,
|
|
789
|
+
allowUnknown: true,
|
|
790
|
+
});
|
|
708
791
|
|
|
709
792
|
if (res_error) {
|
|
710
793
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -724,8 +807,7 @@ class Serviceability {
|
|
|
724
807
|
* @param {ServiceabilityPlatformValidator.GetBulkTatParam} arg - Arg object
|
|
725
808
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
726
809
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
727
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
728
|
-
* Success response
|
|
810
|
+
* @returns {Promise<ServiceabilityPlatformModel.BulkRegionResult>} - Success response
|
|
729
811
|
* @name getBulkTat
|
|
730
812
|
* @summary: Locality TAT change history
|
|
731
813
|
* @description: Retrieves the history of changes made to TAT(Turn Around Time) for scheme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getBulkTat/).
|
|
@@ -823,10 +905,10 @@ class Serviceability {
|
|
|
823
905
|
|
|
824
906
|
const {
|
|
825
907
|
error: res_error,
|
|
826
|
-
} = ServiceabilityPlatformModel.
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
);
|
|
908
|
+
} = ServiceabilityPlatformModel.BulkRegionResult().validate(responseData, {
|
|
909
|
+
abortEarly: false,
|
|
910
|
+
allowUnknown: true,
|
|
911
|
+
});
|
|
830
912
|
|
|
831
913
|
if (res_error) {
|
|
832
914
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -921,13 +1003,107 @@ class Serviceability {
|
|
|
921
1003
|
return response;
|
|
922
1004
|
}
|
|
923
1005
|
|
|
1006
|
+
/**
|
|
1007
|
+
* @param {ServiceabilityPlatformValidator.GetCountriesParam} arg - Arg object
|
|
1008
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1009
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1010
|
+
* @returns {Promise<ServiceabilityPlatformModel.GetCountries>} - Success response
|
|
1011
|
+
* @name getCountries
|
|
1012
|
+
* @summary: Get countries
|
|
1013
|
+
* @description: Retrieve a list of countries for logistical purposes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCountries/).
|
|
1014
|
+
*/
|
|
1015
|
+
async getCountries(
|
|
1016
|
+
{ onboarding, pageNo, pageSize, q, hierarchy, requestHeaders } = {
|
|
1017
|
+
requestHeaders: {},
|
|
1018
|
+
},
|
|
1019
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1020
|
+
) {
|
|
1021
|
+
const { error } = ServiceabilityPlatformValidator.getCountries().validate(
|
|
1022
|
+
{
|
|
1023
|
+
onboarding,
|
|
1024
|
+
pageNo,
|
|
1025
|
+
pageSize,
|
|
1026
|
+
q,
|
|
1027
|
+
hierarchy,
|
|
1028
|
+
},
|
|
1029
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1030
|
+
);
|
|
1031
|
+
if (error) {
|
|
1032
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1036
|
+
const {
|
|
1037
|
+
error: warrning,
|
|
1038
|
+
} = ServiceabilityPlatformValidator.getCountries().validate(
|
|
1039
|
+
{
|
|
1040
|
+
onboarding,
|
|
1041
|
+
pageNo,
|
|
1042
|
+
pageSize,
|
|
1043
|
+
q,
|
|
1044
|
+
hierarchy,
|
|
1045
|
+
},
|
|
1046
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1047
|
+
);
|
|
1048
|
+
if (warrning) {
|
|
1049
|
+
Logger({
|
|
1050
|
+
level: "WARN",
|
|
1051
|
+
message: `Parameter Validation warrnings for platform > Serviceability > getCountries \n ${warrning}`,
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
const query_params = {};
|
|
1056
|
+
query_params["onboarding"] = onboarding;
|
|
1057
|
+
query_params["page_no"] = pageNo;
|
|
1058
|
+
query_params["page_size"] = pageSize;
|
|
1059
|
+
query_params["q"] = q;
|
|
1060
|
+
query_params["hierarchy"] = hierarchy;
|
|
1061
|
+
|
|
1062
|
+
const xHeaders = {};
|
|
1063
|
+
|
|
1064
|
+
const response = await PlatformAPIClient.execute(
|
|
1065
|
+
this.config,
|
|
1066
|
+
"get",
|
|
1067
|
+
`/service/platform/logistics/v2.0/company/${this.config.companyId}/countries`,
|
|
1068
|
+
query_params,
|
|
1069
|
+
undefined,
|
|
1070
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1071
|
+
{ responseHeaders }
|
|
1072
|
+
);
|
|
1073
|
+
|
|
1074
|
+
let responseData = response;
|
|
1075
|
+
if (responseHeaders) {
|
|
1076
|
+
responseData = response[0];
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
const {
|
|
1080
|
+
error: res_error,
|
|
1081
|
+
} = ServiceabilityPlatformModel.GetCountries().validate(responseData, {
|
|
1082
|
+
abortEarly: false,
|
|
1083
|
+
allowUnknown: true,
|
|
1084
|
+
});
|
|
1085
|
+
|
|
1086
|
+
if (res_error) {
|
|
1087
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1088
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1089
|
+
} else {
|
|
1090
|
+
Logger({
|
|
1091
|
+
level: "WARN",
|
|
1092
|
+
message: `Response Validation Warnings for platform > Serviceability > getCountries \n ${res_error}`,
|
|
1093
|
+
});
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
return response;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
924
1100
|
/**
|
|
925
1101
|
* @param {ServiceabilityPlatformValidator.GetCourierPartnerAccountParam} arg
|
|
926
1102
|
* - Arg object
|
|
927
1103
|
*
|
|
928
1104
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
929
1105
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
930
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1106
|
+
* @returns {Promise<ServiceabilityPlatformModel.CourierAccountResult>} -
|
|
931
1107
|
* Success response
|
|
932
1108
|
* @name getCourierPartnerAccount
|
|
933
1109
|
* @summary: Get courier account
|
|
@@ -986,7 +1162,7 @@ class Serviceability {
|
|
|
986
1162
|
|
|
987
1163
|
const {
|
|
988
1164
|
error: res_error,
|
|
989
|
-
} = ServiceabilityPlatformModel.
|
|
1165
|
+
} = ServiceabilityPlatformModel.CourierAccountResult().validate(
|
|
990
1166
|
responseData,
|
|
991
1167
|
{ abortEarly: false, allowUnknown: true }
|
|
992
1168
|
);
|
|
@@ -1011,7 +1187,7 @@ class Serviceability {
|
|
|
1011
1187
|
*
|
|
1012
1188
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1013
1189
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1014
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1190
|
+
* @returns {Promise<ServiceabilityPlatformModel.CompanyCourierPartnerAccountListResult>}
|
|
1015
1191
|
* - Success response
|
|
1016
1192
|
*
|
|
1017
1193
|
* @name getCourierPartnerAccounts
|
|
@@ -1086,7 +1262,185 @@ class Serviceability {
|
|
|
1086
1262
|
|
|
1087
1263
|
const {
|
|
1088
1264
|
error: res_error,
|
|
1089
|
-
} = ServiceabilityPlatformModel.
|
|
1265
|
+
} = ServiceabilityPlatformModel.CompanyCourierPartnerAccountListResult().validate(
|
|
1266
|
+
responseData,
|
|
1267
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1268
|
+
);
|
|
1269
|
+
|
|
1270
|
+
if (res_error) {
|
|
1271
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1272
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1273
|
+
} else {
|
|
1274
|
+
Logger({
|
|
1275
|
+
level: "WARN",
|
|
1276
|
+
message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerAccounts \n ${res_error}`,
|
|
1277
|
+
});
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
return response;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
/**
|
|
1285
|
+
* @param {ServiceabilityPlatformValidator.GetCourierPartnerSchemeParam} arg
|
|
1286
|
+
* - Arg object
|
|
1287
|
+
*
|
|
1288
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1289
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1290
|
+
* @returns {Promise<ServiceabilityPlatformModel.CourierPartnerV2SchemeModel>}
|
|
1291
|
+
* - Success response
|
|
1292
|
+
*
|
|
1293
|
+
* @name getCourierPartnerScheme
|
|
1294
|
+
* @summary: Get Scheme for courier partner extension by Id
|
|
1295
|
+
* @description: Update Scheme for courier partner extension by Id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerScheme/).
|
|
1296
|
+
*/
|
|
1297
|
+
async getCourierPartnerScheme(
|
|
1298
|
+
{ schemeId, requestHeaders } = { requestHeaders: {} },
|
|
1299
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1300
|
+
) {
|
|
1301
|
+
const {
|
|
1302
|
+
error,
|
|
1303
|
+
} = ServiceabilityPlatformValidator.getCourierPartnerScheme().validate(
|
|
1304
|
+
{ schemeId },
|
|
1305
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1306
|
+
);
|
|
1307
|
+
if (error) {
|
|
1308
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1312
|
+
const {
|
|
1313
|
+
error: warrning,
|
|
1314
|
+
} = ServiceabilityPlatformValidator.getCourierPartnerScheme().validate(
|
|
1315
|
+
{ schemeId },
|
|
1316
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1317
|
+
);
|
|
1318
|
+
if (warrning) {
|
|
1319
|
+
Logger({
|
|
1320
|
+
level: "WARN",
|
|
1321
|
+
message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartnerScheme \n ${warrning}`,
|
|
1322
|
+
});
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
const query_params = {};
|
|
1326
|
+
|
|
1327
|
+
const xHeaders = {};
|
|
1328
|
+
|
|
1329
|
+
const response = await PlatformAPIClient.execute(
|
|
1330
|
+
this.config,
|
|
1331
|
+
"get",
|
|
1332
|
+
`/service/platform/logistics/v2.0/company/${this.config.companyId}/courier-partner/scheme/${schemeId}`,
|
|
1333
|
+
query_params,
|
|
1334
|
+
undefined,
|
|
1335
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1336
|
+
{ responseHeaders }
|
|
1337
|
+
);
|
|
1338
|
+
|
|
1339
|
+
let responseData = response;
|
|
1340
|
+
if (responseHeaders) {
|
|
1341
|
+
responseData = response[0];
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
const {
|
|
1345
|
+
error: res_error,
|
|
1346
|
+
} = ServiceabilityPlatformModel.CourierPartnerV2SchemeModel().validate(
|
|
1347
|
+
responseData,
|
|
1348
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1349
|
+
);
|
|
1350
|
+
|
|
1351
|
+
if (res_error) {
|
|
1352
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1353
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1354
|
+
} else {
|
|
1355
|
+
Logger({
|
|
1356
|
+
level: "WARN",
|
|
1357
|
+
message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerScheme \n ${res_error}`,
|
|
1358
|
+
});
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
return response;
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
/**
|
|
1366
|
+
* @param {ServiceabilityPlatformValidator.GetCourierPartnerSchemesParam} arg
|
|
1367
|
+
* - Arg object
|
|
1368
|
+
*
|
|
1369
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1370
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1371
|
+
* @returns {Promise<ServiceabilityPlatformModel.courierPartnerSchemeV2List>}
|
|
1372
|
+
* - Success response
|
|
1373
|
+
*
|
|
1374
|
+
* @name getCourierPartnerSchemes
|
|
1375
|
+
* @summary: Get created Schemes for courier partner
|
|
1376
|
+
* @description: Get created Schemes for courier partner - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerSchemes/).
|
|
1377
|
+
*/
|
|
1378
|
+
async getCourierPartnerSchemes(
|
|
1379
|
+
{ schemeType, paymentMode, capabilities, schemeIds, requestHeaders } = {
|
|
1380
|
+
requestHeaders: {},
|
|
1381
|
+
},
|
|
1382
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1383
|
+
) {
|
|
1384
|
+
const {
|
|
1385
|
+
error,
|
|
1386
|
+
} = ServiceabilityPlatformValidator.getCourierPartnerSchemes().validate(
|
|
1387
|
+
{
|
|
1388
|
+
schemeType,
|
|
1389
|
+
paymentMode,
|
|
1390
|
+
capabilities,
|
|
1391
|
+
schemeIds,
|
|
1392
|
+
},
|
|
1393
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1394
|
+
);
|
|
1395
|
+
if (error) {
|
|
1396
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1400
|
+
const {
|
|
1401
|
+
error: warrning,
|
|
1402
|
+
} = ServiceabilityPlatformValidator.getCourierPartnerSchemes().validate(
|
|
1403
|
+
{
|
|
1404
|
+
schemeType,
|
|
1405
|
+
paymentMode,
|
|
1406
|
+
capabilities,
|
|
1407
|
+
schemeIds,
|
|
1408
|
+
},
|
|
1409
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1410
|
+
);
|
|
1411
|
+
if (warrning) {
|
|
1412
|
+
Logger({
|
|
1413
|
+
level: "WARN",
|
|
1414
|
+
message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartnerSchemes \n ${warrning}`,
|
|
1415
|
+
});
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
const query_params = {};
|
|
1419
|
+
query_params["scheme_type"] = schemeType;
|
|
1420
|
+
query_params["payment_mode"] = paymentMode;
|
|
1421
|
+
query_params["capabilities"] = capabilities;
|
|
1422
|
+
query_params["scheme_ids"] = schemeIds;
|
|
1423
|
+
|
|
1424
|
+
const xHeaders = {};
|
|
1425
|
+
|
|
1426
|
+
const response = await PlatformAPIClient.execute(
|
|
1427
|
+
this.config,
|
|
1428
|
+
"get",
|
|
1429
|
+
`/service/platform/logistics/v2.0/company/${this.config.companyId}/courier-partner/scheme`,
|
|
1430
|
+
query_params,
|
|
1431
|
+
undefined,
|
|
1432
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1433
|
+
{ responseHeaders }
|
|
1434
|
+
);
|
|
1435
|
+
|
|
1436
|
+
let responseData = response;
|
|
1437
|
+
if (responseHeaders) {
|
|
1438
|
+
responseData = response[0];
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
const {
|
|
1442
|
+
error: res_error,
|
|
1443
|
+
} = ServiceabilityPlatformModel.courierPartnerSchemeV2List().validate(
|
|
1090
1444
|
responseData,
|
|
1091
1445
|
{ abortEarly: false, allowUnknown: true }
|
|
1092
1446
|
);
|
|
@@ -1097,7 +1451,7 @@ class Serviceability {
|
|
|
1097
1451
|
} else {
|
|
1098
1452
|
Logger({
|
|
1099
1453
|
level: "WARN",
|
|
1100
|
-
message: `Response Validation Warnings for platform > Serviceability >
|
|
1454
|
+
message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerSchemes \n ${res_error}`,
|
|
1101
1455
|
});
|
|
1102
1456
|
}
|
|
1103
1457
|
}
|
|
@@ -1109,9 +1463,8 @@ class Serviceability {
|
|
|
1109
1463
|
* @param {ServiceabilityPlatformValidator.GetOptimalLocationsParam} arg - Arg object
|
|
1110
1464
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1111
1465
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1112
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1113
|
-
*
|
|
1114
|
-
*
|
|
1466
|
+
* @returns {Promise<ServiceabilityPlatformModel.OptimalLocationsResult>} -
|
|
1467
|
+
* Success response
|
|
1115
1468
|
* @name getOptimalLocations
|
|
1116
1469
|
* @summary: Get selling locations
|
|
1117
1470
|
* @description: Retrieves a list selling locations which are best suited to fullfil an order for a customer. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getOptimalLocations/).
|
|
@@ -1169,7 +1522,7 @@ class Serviceability {
|
|
|
1169
1522
|
|
|
1170
1523
|
const {
|
|
1171
1524
|
error: res_error,
|
|
1172
|
-
} = ServiceabilityPlatformModel.
|
|
1525
|
+
} = ServiceabilityPlatformModel.OptimalLocationsResult().validate(
|
|
1173
1526
|
responseData,
|
|
1174
1527
|
{ abortEarly: false, allowUnknown: true }
|
|
1175
1528
|
);
|
|
@@ -1293,7 +1646,7 @@ class Serviceability {
|
|
|
1293
1646
|
*
|
|
1294
1647
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1295
1648
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1296
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1649
|
+
* @returns {Promise<ServiceabilityPlatformModel.PackageRuleResult>} -
|
|
1297
1650
|
* Success response
|
|
1298
1651
|
* @name getPackageMaterialRule
|
|
1299
1652
|
* @summary: Get packaging material rule
|
|
@@ -1352,10 +1705,10 @@ class Serviceability {
|
|
|
1352
1705
|
|
|
1353
1706
|
const {
|
|
1354
1707
|
error: res_error,
|
|
1355
|
-
} = ServiceabilityPlatformModel.
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
);
|
|
1708
|
+
} = ServiceabilityPlatformModel.PackageRuleResult().validate(responseData, {
|
|
1709
|
+
abortEarly: false,
|
|
1710
|
+
allowUnknown: true,
|
|
1711
|
+
});
|
|
1359
1712
|
|
|
1360
1713
|
if (res_error) {
|
|
1361
1714
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1467,9 +1820,8 @@ class Serviceability {
|
|
|
1467
1820
|
* @param {ServiceabilityPlatformValidator.GetPackageMaterialsParam} arg - Arg object
|
|
1468
1821
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1469
1822
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1470
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1471
|
-
*
|
|
1472
|
-
*
|
|
1823
|
+
* @returns {Promise<ServiceabilityPlatformModel.PackageMaterialResult>} -
|
|
1824
|
+
* Success response
|
|
1473
1825
|
* @name getPackageMaterials
|
|
1474
1826
|
* @summary: Get packaging material
|
|
1475
1827
|
* @description: Retrieve a single packaging material - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getPackageMaterials/).
|
|
@@ -1527,7 +1879,7 @@ class Serviceability {
|
|
|
1527
1879
|
|
|
1528
1880
|
const {
|
|
1529
1881
|
error: res_error,
|
|
1530
|
-
} = ServiceabilityPlatformModel.
|
|
1882
|
+
} = ServiceabilityPlatformModel.PackageMaterialResult().validate(
|
|
1531
1883
|
responseData,
|
|
1532
1884
|
{ abortEarly: false, allowUnknown: true }
|
|
1533
1885
|
);
|
|
@@ -1546,6 +1898,98 @@ class Serviceability {
|
|
|
1546
1898
|
return response;
|
|
1547
1899
|
}
|
|
1548
1900
|
|
|
1901
|
+
/**
|
|
1902
|
+
* @param {ServiceabilityPlatformValidator.GetSampleFileServiceabilityStatusParam} arg
|
|
1903
|
+
* - Arg object
|
|
1904
|
+
*
|
|
1905
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1906
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1907
|
+
* @returns {Promise<ServiceabilityPlatformModel.BulkRegionServiceabilityTatResult>}
|
|
1908
|
+
* - Success response
|
|
1909
|
+
*
|
|
1910
|
+
* @name getSampleFileServiceabilityStatus
|
|
1911
|
+
* @summary: Get Serviceability TAT sample files generator status
|
|
1912
|
+
* @description: Get Serviceability TAT sample file generator status - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getSampleFileServiceabilityStatus/).
|
|
1913
|
+
*/
|
|
1914
|
+
async getSampleFileServiceabilityStatus(
|
|
1915
|
+
{ pageNo, pageSize, batchId, requestHeaders } = { requestHeaders: {} },
|
|
1916
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1917
|
+
) {
|
|
1918
|
+
const {
|
|
1919
|
+
error,
|
|
1920
|
+
} = ServiceabilityPlatformValidator.getSampleFileServiceabilityStatus().validate(
|
|
1921
|
+
{
|
|
1922
|
+
pageNo,
|
|
1923
|
+
pageSize,
|
|
1924
|
+
batchId,
|
|
1925
|
+
},
|
|
1926
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1927
|
+
);
|
|
1928
|
+
if (error) {
|
|
1929
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1933
|
+
const {
|
|
1934
|
+
error: warrning,
|
|
1935
|
+
} = ServiceabilityPlatformValidator.getSampleFileServiceabilityStatus().validate(
|
|
1936
|
+
{
|
|
1937
|
+
pageNo,
|
|
1938
|
+
pageSize,
|
|
1939
|
+
batchId,
|
|
1940
|
+
},
|
|
1941
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1942
|
+
);
|
|
1943
|
+
if (warrning) {
|
|
1944
|
+
Logger({
|
|
1945
|
+
level: "WARN",
|
|
1946
|
+
message: `Parameter Validation warrnings for platform > Serviceability > getSampleFileServiceabilityStatus \n ${warrning}`,
|
|
1947
|
+
});
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
const query_params = {};
|
|
1951
|
+
query_params["page_no"] = pageNo;
|
|
1952
|
+
query_params["page_size"] = pageSize;
|
|
1953
|
+
query_params["batch_id"] = batchId;
|
|
1954
|
+
|
|
1955
|
+
const xHeaders = {};
|
|
1956
|
+
|
|
1957
|
+
const response = await PlatformAPIClient.execute(
|
|
1958
|
+
this.config,
|
|
1959
|
+
"get",
|
|
1960
|
+
`/service/platform/logistics/v1.0/company/${this.config.companyId}/localities/bulk-sample`,
|
|
1961
|
+
query_params,
|
|
1962
|
+
undefined,
|
|
1963
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1964
|
+
{ responseHeaders }
|
|
1965
|
+
);
|
|
1966
|
+
|
|
1967
|
+
let responseData = response;
|
|
1968
|
+
if (responseHeaders) {
|
|
1969
|
+
responseData = response[0];
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
const {
|
|
1973
|
+
error: res_error,
|
|
1974
|
+
} = ServiceabilityPlatformModel.BulkRegionServiceabilityTatResult().validate(
|
|
1975
|
+
responseData,
|
|
1976
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1977
|
+
);
|
|
1978
|
+
|
|
1979
|
+
if (res_error) {
|
|
1980
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1981
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1982
|
+
} else {
|
|
1983
|
+
Logger({
|
|
1984
|
+
level: "WARN",
|
|
1985
|
+
message: `Response Validation Warnings for platform > Serviceability > getSampleFileServiceabilityStatus \n ${res_error}`,
|
|
1986
|
+
});
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
return response;
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1549
1993
|
/**
|
|
1550
1994
|
* @param {ServiceabilityPlatformValidator.GetServiceabilityParam} arg - Arg object
|
|
1551
1995
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -1718,7 +2162,7 @@ class Serviceability {
|
|
|
1718
2162
|
* @param {ServiceabilityPlatformValidator.GetZonesParam} arg - Arg object
|
|
1719
2163
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1720
2164
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1721
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
2165
|
+
* @returns {Promise<ServiceabilityPlatformModel.ListViewResult>} - Success response
|
|
1722
2166
|
* @name getZones
|
|
1723
2167
|
* @summary: Get zones
|
|
1724
2168
|
* @description: Retrieves a list of delivery zones. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getZones/).
|
|
@@ -1814,7 +2258,7 @@ class Serviceability {
|
|
|
1814
2258
|
|
|
1815
2259
|
const {
|
|
1816
2260
|
error: res_error,
|
|
1817
|
-
} = ServiceabilityPlatformModel.
|
|
2261
|
+
} = ServiceabilityPlatformModel.ListViewResult().validate(responseData, {
|
|
1818
2262
|
abortEarly: false,
|
|
1819
2263
|
allowUnknown: true,
|
|
1820
2264
|
});
|
|
@@ -1833,6 +2277,91 @@ class Serviceability {
|
|
|
1833
2277
|
return response;
|
|
1834
2278
|
}
|
|
1835
2279
|
|
|
2280
|
+
/**
|
|
2281
|
+
* @param {ServiceabilityPlatformValidator.SampleFileServiceabilityParam} arg
|
|
2282
|
+
* - Arg object
|
|
2283
|
+
*
|
|
2284
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2285
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2286
|
+
* @returns {Promise<ServiceabilityPlatformModel.BulkRegionServiceabilityTatResultItemData>}
|
|
2287
|
+
* - Success response
|
|
2288
|
+
*
|
|
2289
|
+
* @name sampleFileServiceability
|
|
2290
|
+
* @summary: Sample File Download
|
|
2291
|
+
* @description: Sample File Download - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/sampleFileServiceability/).
|
|
2292
|
+
*/
|
|
2293
|
+
async sampleFileServiceability(
|
|
2294
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
2295
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2296
|
+
) {
|
|
2297
|
+
const {
|
|
2298
|
+
error,
|
|
2299
|
+
} = ServiceabilityPlatformValidator.sampleFileServiceability().validate(
|
|
2300
|
+
{
|
|
2301
|
+
body,
|
|
2302
|
+
},
|
|
2303
|
+
{ abortEarly: false, allowUnknown: true }
|
|
2304
|
+
);
|
|
2305
|
+
if (error) {
|
|
2306
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2309
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2310
|
+
const {
|
|
2311
|
+
error: warrning,
|
|
2312
|
+
} = ServiceabilityPlatformValidator.sampleFileServiceability().validate(
|
|
2313
|
+
{
|
|
2314
|
+
body,
|
|
2315
|
+
},
|
|
2316
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2317
|
+
);
|
|
2318
|
+
if (warrning) {
|
|
2319
|
+
Logger({
|
|
2320
|
+
level: "WARN",
|
|
2321
|
+
message: `Parameter Validation warrnings for platform > Serviceability > sampleFileServiceability \n ${warrning}`,
|
|
2322
|
+
});
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
const query_params = {};
|
|
2326
|
+
|
|
2327
|
+
const xHeaders = {};
|
|
2328
|
+
|
|
2329
|
+
const response = await PlatformAPIClient.execute(
|
|
2330
|
+
this.config,
|
|
2331
|
+
"post",
|
|
2332
|
+
`/service/platform/logistics/v1.0/company/${this.config.companyId}/localities/bulk-sample`,
|
|
2333
|
+
query_params,
|
|
2334
|
+
body,
|
|
2335
|
+
{ ...xHeaders, ...requestHeaders },
|
|
2336
|
+
{ responseHeaders }
|
|
2337
|
+
);
|
|
2338
|
+
|
|
2339
|
+
let responseData = response;
|
|
2340
|
+
if (responseHeaders) {
|
|
2341
|
+
responseData = response[0];
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
const {
|
|
2345
|
+
error: res_error,
|
|
2346
|
+
} = ServiceabilityPlatformModel.BulkRegionServiceabilityTatResultItemData().validate(
|
|
2347
|
+
responseData,
|
|
2348
|
+
{ abortEarly: false, allowUnknown: true }
|
|
2349
|
+
);
|
|
2350
|
+
|
|
2351
|
+
if (res_error) {
|
|
2352
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2353
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2354
|
+
} else {
|
|
2355
|
+
Logger({
|
|
2356
|
+
level: "WARN",
|
|
2357
|
+
message: `Response Validation Warnings for platform > Serviceability > sampleFileServiceability \n ${res_error}`,
|
|
2358
|
+
});
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2362
|
+
return response;
|
|
2363
|
+
}
|
|
2364
|
+
|
|
1836
2365
|
/**
|
|
1837
2366
|
* @param {ServiceabilityPlatformValidator.UpdateCompanyConfigurationParam} arg
|
|
1838
2367
|
* - Arg object
|
|
@@ -1922,7 +2451,7 @@ class Serviceability {
|
|
|
1922
2451
|
*
|
|
1923
2452
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1924
2453
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1925
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
2454
|
+
* @returns {Promise<ServiceabilityPlatformModel.CourierAccountResult>} -
|
|
1926
2455
|
* Success response
|
|
1927
2456
|
* @name updateCourierPartnerAccount
|
|
1928
2457
|
* @summary: Update courier account
|
|
@@ -1983,7 +2512,7 @@ class Serviceability {
|
|
|
1983
2512
|
|
|
1984
2513
|
const {
|
|
1985
2514
|
error: res_error,
|
|
1986
|
-
} = ServiceabilityPlatformModel.
|
|
2515
|
+
} = ServiceabilityPlatformModel.CourierAccountResult().validate(
|
|
1987
2516
|
responseData,
|
|
1988
2517
|
{ abortEarly: false, allowUnknown: true }
|
|
1989
2518
|
);
|
|
@@ -2002,13 +2531,102 @@ class Serviceability {
|
|
|
2002
2531
|
return response;
|
|
2003
2532
|
}
|
|
2004
2533
|
|
|
2534
|
+
/**
|
|
2535
|
+
* @param {ServiceabilityPlatformValidator.UpdateCourierPartnerSchemeParam} arg
|
|
2536
|
+
* - Arg object
|
|
2537
|
+
*
|
|
2538
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2539
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2540
|
+
* @returns {Promise<ServiceabilityPlatformModel.CourierPartnerV2SchemeModel>}
|
|
2541
|
+
* - Success response
|
|
2542
|
+
*
|
|
2543
|
+
* @name updateCourierPartnerScheme
|
|
2544
|
+
* @summary: Update Scheme for courier partner extension
|
|
2545
|
+
* @description: Update Scheme for courier partner extension - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateCourierPartnerScheme/).
|
|
2546
|
+
*/
|
|
2547
|
+
async updateCourierPartnerScheme(
|
|
2548
|
+
{ schemeId, body, requestHeaders } = { requestHeaders: {} },
|
|
2549
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2550
|
+
) {
|
|
2551
|
+
const {
|
|
2552
|
+
error,
|
|
2553
|
+
} = ServiceabilityPlatformValidator.updateCourierPartnerScheme().validate(
|
|
2554
|
+
{
|
|
2555
|
+
schemeId,
|
|
2556
|
+
|
|
2557
|
+
body,
|
|
2558
|
+
},
|
|
2559
|
+
{ abortEarly: false, allowUnknown: true }
|
|
2560
|
+
);
|
|
2561
|
+
if (error) {
|
|
2562
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2566
|
+
const {
|
|
2567
|
+
error: warrning,
|
|
2568
|
+
} = ServiceabilityPlatformValidator.updateCourierPartnerScheme().validate(
|
|
2569
|
+
{
|
|
2570
|
+
schemeId,
|
|
2571
|
+
|
|
2572
|
+
body,
|
|
2573
|
+
},
|
|
2574
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2575
|
+
);
|
|
2576
|
+
if (warrning) {
|
|
2577
|
+
Logger({
|
|
2578
|
+
level: "WARN",
|
|
2579
|
+
message: `Parameter Validation warrnings for platform > Serviceability > updateCourierPartnerScheme \n ${warrning}`,
|
|
2580
|
+
});
|
|
2581
|
+
}
|
|
2582
|
+
|
|
2583
|
+
const query_params = {};
|
|
2584
|
+
|
|
2585
|
+
const xHeaders = {};
|
|
2586
|
+
|
|
2587
|
+
const response = await PlatformAPIClient.execute(
|
|
2588
|
+
this.config,
|
|
2589
|
+
"put",
|
|
2590
|
+
`/service/platform/logistics/v2.0/company/${this.config.companyId}/courier-partner/scheme/${schemeId}`,
|
|
2591
|
+
query_params,
|
|
2592
|
+
body,
|
|
2593
|
+
{ ...xHeaders, ...requestHeaders },
|
|
2594
|
+
{ responseHeaders }
|
|
2595
|
+
);
|
|
2596
|
+
|
|
2597
|
+
let responseData = response;
|
|
2598
|
+
if (responseHeaders) {
|
|
2599
|
+
responseData = response[0];
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2602
|
+
const {
|
|
2603
|
+
error: res_error,
|
|
2604
|
+
} = ServiceabilityPlatformModel.CourierPartnerV2SchemeModel().validate(
|
|
2605
|
+
responseData,
|
|
2606
|
+
{ abortEarly: false, allowUnknown: true }
|
|
2607
|
+
);
|
|
2608
|
+
|
|
2609
|
+
if (res_error) {
|
|
2610
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2611
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2612
|
+
} else {
|
|
2613
|
+
Logger({
|
|
2614
|
+
level: "WARN",
|
|
2615
|
+
message: `Response Validation Warnings for platform > Serviceability > updateCourierPartnerScheme \n ${res_error}`,
|
|
2616
|
+
});
|
|
2617
|
+
}
|
|
2618
|
+
}
|
|
2619
|
+
|
|
2620
|
+
return response;
|
|
2621
|
+
}
|
|
2622
|
+
|
|
2005
2623
|
/**
|
|
2006
2624
|
* @param {ServiceabilityPlatformValidator.UpdatePackageMaterialRuleParam} arg
|
|
2007
2625
|
* - Arg object
|
|
2008
2626
|
*
|
|
2009
2627
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2010
2628
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2011
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
2629
|
+
* @returns {Promise<ServiceabilityPlatformModel.PackageRuleResult>} -
|
|
2012
2630
|
* Success response
|
|
2013
2631
|
* @name updatePackageMaterialRule
|
|
2014
2632
|
* @summary: Update packaging rule
|
|
@@ -2069,10 +2687,10 @@ class Serviceability {
|
|
|
2069
2687
|
|
|
2070
2688
|
const {
|
|
2071
2689
|
error: res_error,
|
|
2072
|
-
} = ServiceabilityPlatformModel.
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
);
|
|
2690
|
+
} = ServiceabilityPlatformModel.PackageRuleResult().validate(responseData, {
|
|
2691
|
+
abortEarly: false,
|
|
2692
|
+
allowUnknown: true,
|
|
2693
|
+
});
|
|
2076
2694
|
|
|
2077
2695
|
if (res_error) {
|
|
2078
2696
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -2094,9 +2712,8 @@ class Serviceability {
|
|
|
2094
2712
|
*
|
|
2095
2713
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2096
2714
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2097
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
2098
|
-
*
|
|
2099
|
-
*
|
|
2715
|
+
* @returns {Promise<ServiceabilityPlatformModel.PackageMaterialResult>} -
|
|
2716
|
+
* Success response
|
|
2100
2717
|
* @name updatePackageMaterials
|
|
2101
2718
|
* @summary: Update packaging material
|
|
2102
2719
|
* @description: Update an existing packaging material - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePackageMaterials/).
|
|
@@ -2156,7 +2773,7 @@ class Serviceability {
|
|
|
2156
2773
|
|
|
2157
2774
|
const {
|
|
2158
2775
|
error: res_error,
|
|
2159
|
-
} = ServiceabilityPlatformModel.
|
|
2776
|
+
} = ServiceabilityPlatformModel.PackageMaterialResult().validate(
|
|
2160
2777
|
responseData,
|
|
2161
2778
|
{ abortEarly: false, allowUnknown: true }
|
|
2162
2779
|
);
|
|
@@ -2269,7 +2886,7 @@ class Serviceability {
|
|
|
2269
2886
|
* @param {ServiceabilityPlatformValidator.UpdateZoneByIdParam} arg - Arg object
|
|
2270
2887
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2271
2888
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2272
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
2889
|
+
* @returns {Promise<ServiceabilityPlatformModel.ZoneSuccessResult>} -
|
|
2273
2890
|
* Success response
|
|
2274
2891
|
* @name updateZoneById
|
|
2275
2892
|
* @summary: Update a zone
|
|
@@ -2328,10 +2945,10 @@ class Serviceability {
|
|
|
2328
2945
|
|
|
2329
2946
|
const {
|
|
2330
2947
|
error: res_error,
|
|
2331
|
-
} = ServiceabilityPlatformModel.
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
);
|
|
2948
|
+
} = ServiceabilityPlatformModel.ZoneSuccessResult().validate(responseData, {
|
|
2949
|
+
abortEarly: false,
|
|
2950
|
+
allowUnknown: true,
|
|
2951
|
+
});
|
|
2335
2952
|
|
|
2336
2953
|
if (res_error) {
|
|
2337
2954
|
if (this.config.options.strictResponseCheck === true) {
|