@gofynd/fdk-client-javascript 1.2.0 → 1.3.0
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 +44 -7
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +3 -3
- package/sdk/application/ApplicationAPIClient.js +6 -4
- package/sdk/application/ApplicationClient.d.ts +2 -3
- package/sdk/application/ApplicationClient.js +1 -45
- package/sdk/application/ApplicationConfig.d.ts +46 -6
- package/sdk/application/ApplicationConfig.js +15 -16
- package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
- package/sdk/application/Cart/CartApplicationClient.js +225 -134
- package/sdk/application/Cart/CartApplicationModel.d.ts +4 -4
- package/sdk/application/Cart/CartApplicationModel.js +4 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
- package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
- package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
- package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
- package/sdk/application/Common/CommonApplicationClient.js +13 -11
- package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
- package/sdk/application/Common/CommonApplicationModel.js +2 -58
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
- package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
- package/sdk/application/Content/ContentApplicationClient.js +159 -80
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
- package/sdk/application/Content/ContentApplicationModel.js +11 -763
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
- package/sdk/application/Lead/LeadApplicationClient.js +50 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
- package/sdk/application/Lead/LeadApplicationModel.js +21 -481
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
- package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
- package/sdk/application/Order/OrderApplicationClient.js +88 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
- package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
- package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
- package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
- package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
- package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
- package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
- package/sdk/application/Share/ShareApplicationClient.js +51 -31
- package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
- package/sdk/application/Share/ShareApplicationModel.js +0 -38
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
- package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
- package/sdk/application/User/UserApplicationClient.d.ts +74 -35
- package/sdk/application/User/UserApplicationClient.js +252 -161
- package/sdk/application/User/UserApplicationModel.d.ts +3 -401
- package/sdk/application/User/UserApplicationModel.js +2 -490
- package/sdk/common/AxiosHelper.js +1 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +5 -4
- package/sdk/partner/PartnerAPIClient.js +7 -4
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
- package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
- package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
- package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
- package/sdk/platform/Cart/CartPlatformModel.js +104 -54
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
- package/sdk/platform/Common/CommonPlatformClient.js +13 -11
- package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
- package/sdk/platform/Common/CommonPlatformModel.js +23 -57
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
- package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
- package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
- package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
- package/sdk/platform/Content/ContentPlatformModel.js +8 -231
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
- package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
- package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
- package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
- package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
- package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
- package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
- package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
- package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
- package/sdk/platform/Order/OrderPlatformClient.js +738 -205
- package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
- package/sdk/platform/Order/OrderPlatformModel.js +225 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
- package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
- package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
- package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
- package/sdk/platform/PlatformAPIClient.d.ts +3 -3
- package/sdk/platform/PlatformAPIClient.js +2 -2
- package/sdk/platform/PlatformClient.d.ts +2 -2
- package/sdk/platform/PlatformClient.js +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
- package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
- package/sdk/platform/Share/SharePlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
- package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
- package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
- package/sdk/platform/User/UserPlatformModel.js +3 -899
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
- package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
- package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +96 -9
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +117 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
- package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
- package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
- package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -48
- package/sdk/application/ApplicationModels.js +0 -38
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
|
@@ -13,13 +13,17 @@ class Serviceability {
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @param {ServiceabilityPlatformValidator.CreateZoneParam} arg - Arg object
|
|
16
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
16
17
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
17
18
|
* @returns {Promise<ServiceabilityPlatformModel.ZoneResponse>} - Success response
|
|
18
19
|
* @name createZone
|
|
19
20
|
* @summary: Creation of a new zone
|
|
20
21
|
* @description: This API allows you to create a new zone with the specified information. A zone enables serviceability based on given pincodes or regions. By creating a zone and including specific pincodes or regions, you can ensure that the stores associated with the zone are serviceable for those added pincodes or regions. This functionality is particularly useful when you need to ensure serviceability for multiple pincodes or regions by grouping them into a single zone. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createZone/).
|
|
21
22
|
*/
|
|
22
|
-
async createZone(
|
|
23
|
+
async createZone(
|
|
24
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
25
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
26
|
+
) {
|
|
23
27
|
const { error } = ServiceabilityPlatformValidator.createZone().validate(
|
|
24
28
|
{
|
|
25
29
|
body,
|
|
@@ -56,12 +60,12 @@ class Serviceability {
|
|
|
56
60
|
`/service/platform/logistics/v1.0/company/${this.config.companyId}/zone`,
|
|
57
61
|
query_params,
|
|
58
62
|
body,
|
|
59
|
-
xHeaders,
|
|
60
|
-
{
|
|
63
|
+
{ ...xHeaders, ...requestHeaders },
|
|
64
|
+
{ responseHeaders }
|
|
61
65
|
);
|
|
62
66
|
|
|
63
67
|
let responseData = response;
|
|
64
|
-
if (
|
|
68
|
+
if (responseHeaders) {
|
|
65
69
|
responseData = response[0];
|
|
66
70
|
}
|
|
67
71
|
|
|
@@ -84,6 +88,7 @@ class Serviceability {
|
|
|
84
88
|
|
|
85
89
|
/**
|
|
86
90
|
* @param {ServiceabilityPlatformValidator.GetAllStoresParam} arg - Arg object
|
|
91
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
87
92
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
88
93
|
* @returns {Promise<ServiceabilityPlatformModel.GetStoresViewResponse>} -
|
|
89
94
|
* Success response
|
|
@@ -91,7 +96,10 @@ class Serviceability {
|
|
|
91
96
|
* @summary: GET stores data
|
|
92
97
|
* @description: This API returns stores data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getAllStores/).
|
|
93
98
|
*/
|
|
94
|
-
async getAllStores(
|
|
99
|
+
async getAllStores(
|
|
100
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
101
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
102
|
+
) {
|
|
95
103
|
const { error } = ServiceabilityPlatformValidator.getAllStores().validate(
|
|
96
104
|
{},
|
|
97
105
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -124,12 +132,12 @@ class Serviceability {
|
|
|
124
132
|
`/service/platform/logistics/v1.0/company/${this.config.companyId}/logistics/stores`,
|
|
125
133
|
query_params,
|
|
126
134
|
undefined,
|
|
127
|
-
xHeaders,
|
|
128
|
-
{
|
|
135
|
+
{ ...xHeaders, ...requestHeaders },
|
|
136
|
+
{ responseHeaders }
|
|
129
137
|
);
|
|
130
138
|
|
|
131
139
|
let responseData = response;
|
|
132
|
-
if (
|
|
140
|
+
if (responseHeaders) {
|
|
133
141
|
responseData = response[0];
|
|
134
142
|
}
|
|
135
143
|
|
|
@@ -152,6 +160,7 @@ class Serviceability {
|
|
|
152
160
|
|
|
153
161
|
/**
|
|
154
162
|
* @param {ServiceabilityPlatformValidator.GetCompanyStoreViewParam} arg - Arg object
|
|
163
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
155
164
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
156
165
|
* @returns {Promise<ServiceabilityPlatformModel.CompanyStoreView_Response>}
|
|
157
166
|
* - Success response
|
|
@@ -161,8 +170,8 @@ class Serviceability {
|
|
|
161
170
|
* @description: This API returns Company Store View of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCompanyStoreView/).
|
|
162
171
|
*/
|
|
163
172
|
async getCompanyStoreView(
|
|
164
|
-
{ pageNumber, pageSize } = {},
|
|
165
|
-
{
|
|
173
|
+
{ pageNumber, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
174
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
166
175
|
) {
|
|
167
176
|
const {
|
|
168
177
|
error,
|
|
@@ -206,12 +215,12 @@ class Serviceability {
|
|
|
206
215
|
`/service/platform/logistics/v1.0/company/${this.config.companyId}/all-stores`,
|
|
207
216
|
query_params,
|
|
208
217
|
undefined,
|
|
209
|
-
xHeaders,
|
|
210
|
-
{
|
|
218
|
+
{ ...xHeaders, ...requestHeaders },
|
|
219
|
+
{ responseHeaders }
|
|
211
220
|
);
|
|
212
221
|
|
|
213
222
|
let responseData = response;
|
|
214
|
-
if (
|
|
223
|
+
if (responseHeaders) {
|
|
215
224
|
responseData = response[0];
|
|
216
225
|
}
|
|
217
226
|
|
|
@@ -234,6 +243,7 @@ class Serviceability {
|
|
|
234
243
|
|
|
235
244
|
/**
|
|
236
245
|
* @param {ServiceabilityPlatformValidator.GetDpAccountParam} arg - Arg object
|
|
246
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
237
247
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
238
248
|
* @returns {Promise<ServiceabilityPlatformModel.CompanyDpAccountListResponse>}
|
|
239
249
|
* - Success response
|
|
@@ -243,8 +253,15 @@ class Serviceability {
|
|
|
243
253
|
* @description: This API returns response DpAccount of a company from mongo database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getDpAccount/).
|
|
244
254
|
*/
|
|
245
255
|
async getDpAccount(
|
|
246
|
-
{
|
|
247
|
-
|
|
256
|
+
{
|
|
257
|
+
pageNumber,
|
|
258
|
+
pageSize,
|
|
259
|
+
stage,
|
|
260
|
+
paymentMode,
|
|
261
|
+
transportType,
|
|
262
|
+
requestHeaders,
|
|
263
|
+
} = { requestHeaders: {} },
|
|
264
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
248
265
|
) {
|
|
249
266
|
const { error } = ServiceabilityPlatformValidator.getDpAccount().validate(
|
|
250
267
|
{
|
|
@@ -295,12 +312,12 @@ class Serviceability {
|
|
|
295
312
|
`/service/platform/logistics/v1.0/company/${this.config.companyId}/courier/account`,
|
|
296
313
|
query_params,
|
|
297
314
|
undefined,
|
|
298
|
-
xHeaders,
|
|
299
|
-
{
|
|
315
|
+
{ ...xHeaders, ...requestHeaders },
|
|
316
|
+
{ responseHeaders }
|
|
300
317
|
);
|
|
301
318
|
|
|
302
319
|
let responseData = response;
|
|
303
|
-
if (
|
|
320
|
+
if (responseHeaders) {
|
|
304
321
|
responseData = response[0];
|
|
305
322
|
}
|
|
306
323
|
|
|
@@ -323,6 +340,7 @@ class Serviceability {
|
|
|
323
340
|
|
|
324
341
|
/**
|
|
325
342
|
* @param {ServiceabilityPlatformValidator.GetDpCompanyRulesParam} arg - Arg object
|
|
343
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
326
344
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
327
345
|
* @returns {Promise<ServiceabilityPlatformModel.DPCompanyRuleResponse>} -
|
|
328
346
|
* Success response
|
|
@@ -330,7 +348,10 @@ class Serviceability {
|
|
|
330
348
|
* @summary: Get All DpCompanyRules applied to company from database.
|
|
331
349
|
* @description: This API returns response of all DpCompanyRules from mongo database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getDpCompanyRules/).
|
|
332
350
|
*/
|
|
333
|
-
async getDpCompanyRules(
|
|
351
|
+
async getDpCompanyRules(
|
|
352
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
353
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
354
|
+
) {
|
|
334
355
|
const {
|
|
335
356
|
error,
|
|
336
357
|
} = ServiceabilityPlatformValidator.getDpCompanyRules().validate(
|
|
@@ -365,12 +386,12 @@ class Serviceability {
|
|
|
365
386
|
`/service/platform/logistics/v1.0/company/${this.config.companyId}/courier/priority`,
|
|
366
387
|
query_params,
|
|
367
388
|
undefined,
|
|
368
|
-
xHeaders,
|
|
369
|
-
{
|
|
389
|
+
{ ...xHeaders, ...requestHeaders },
|
|
390
|
+
{ responseHeaders }
|
|
370
391
|
);
|
|
371
392
|
|
|
372
393
|
let responseData = response;
|
|
373
|
-
if (
|
|
394
|
+
if (responseHeaders) {
|
|
374
395
|
responseData = response[0];
|
|
375
396
|
}
|
|
376
397
|
|
|
@@ -393,6 +414,7 @@ class Serviceability {
|
|
|
393
414
|
|
|
394
415
|
/**
|
|
395
416
|
* @param {ServiceabilityPlatformValidator.GetDpRuleInsertParam} arg - Arg object
|
|
417
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
396
418
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
397
419
|
* @returns {Promise<ServiceabilityPlatformModel.DpMultipleRuleSuccessResponse>}
|
|
398
420
|
* - Success response
|
|
@@ -402,8 +424,8 @@ class Serviceability {
|
|
|
402
424
|
* @description: This API returns response of DpRules from mongo database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getDpRuleInsert/).
|
|
403
425
|
*/
|
|
404
426
|
async getDpRuleInsert(
|
|
405
|
-
{ pageNumber, pageSize } = {},
|
|
406
|
-
{
|
|
427
|
+
{ pageNumber, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
428
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
407
429
|
) {
|
|
408
430
|
const {
|
|
409
431
|
error,
|
|
@@ -447,12 +469,12 @@ class Serviceability {
|
|
|
447
469
|
`/service/platform/logistics/v1.0/company/${this.config.companyId}/courier/rules`,
|
|
448
470
|
query_params,
|
|
449
471
|
undefined,
|
|
450
|
-
xHeaders,
|
|
451
|
-
{
|
|
472
|
+
{ ...xHeaders, ...requestHeaders },
|
|
473
|
+
{ responseHeaders }
|
|
452
474
|
);
|
|
453
475
|
|
|
454
476
|
let responseData = response;
|
|
455
|
-
if (
|
|
477
|
+
if (responseHeaders) {
|
|
456
478
|
responseData = response[0];
|
|
457
479
|
}
|
|
458
480
|
|
|
@@ -475,6 +497,7 @@ class Serviceability {
|
|
|
475
497
|
|
|
476
498
|
/**
|
|
477
499
|
* @param {ServiceabilityPlatformValidator.GetDpRulesParam} arg - Arg object
|
|
500
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
478
501
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
479
502
|
* @returns {Promise<ServiceabilityPlatformModel.DpRuleSuccessResponse>} -
|
|
480
503
|
* Success response
|
|
@@ -482,7 +505,10 @@ class Serviceability {
|
|
|
482
505
|
* @summary: Fetching of DpRules from database.
|
|
483
506
|
* @description: This API returns response of DpRules from mongo database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getDpRules/).
|
|
484
507
|
*/
|
|
485
|
-
async getDpRules(
|
|
508
|
+
async getDpRules(
|
|
509
|
+
{ ruleUid, requestHeaders } = { requestHeaders: {} },
|
|
510
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
511
|
+
) {
|
|
486
512
|
const { error } = ServiceabilityPlatformValidator.getDpRules().validate(
|
|
487
513
|
{
|
|
488
514
|
ruleUid,
|
|
@@ -519,12 +545,12 @@ class Serviceability {
|
|
|
519
545
|
`/service/platform/logistics/v1.0/company/${this.config.companyId}/courier/rules/${ruleUid}`,
|
|
520
546
|
query_params,
|
|
521
547
|
undefined,
|
|
522
|
-
xHeaders,
|
|
523
|
-
{
|
|
548
|
+
{ ...xHeaders, ...requestHeaders },
|
|
549
|
+
{ responseHeaders }
|
|
524
550
|
);
|
|
525
551
|
|
|
526
552
|
let responseData = response;
|
|
527
|
-
if (
|
|
553
|
+
if (responseHeaders) {
|
|
528
554
|
responseData = response[0];
|
|
529
555
|
}
|
|
530
556
|
|
|
@@ -547,6 +573,7 @@ class Serviceability {
|
|
|
547
573
|
|
|
548
574
|
/**
|
|
549
575
|
* @param {ServiceabilityPlatformValidator.GetEntityRegionViewParam} arg - Arg object
|
|
576
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
550
577
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
551
578
|
* @returns {Promise<ServiceabilityPlatformModel.EntityRegionView_Response>}
|
|
552
579
|
* - Success response
|
|
@@ -555,7 +582,10 @@ class Serviceability {
|
|
|
555
582
|
* @summary: Get country and state list
|
|
556
583
|
* @description: This API returns response for Entity Region View. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getEntityRegionView/).
|
|
557
584
|
*/
|
|
558
|
-
async getEntityRegionView(
|
|
585
|
+
async getEntityRegionView(
|
|
586
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
587
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
588
|
+
) {
|
|
559
589
|
const {
|
|
560
590
|
error,
|
|
561
591
|
} = ServiceabilityPlatformValidator.getEntityRegionView().validate(
|
|
@@ -594,12 +624,12 @@ class Serviceability {
|
|
|
594
624
|
`/service/platform/logistics/v1.0/company/${this.config.companyId}/regions`,
|
|
595
625
|
query_params,
|
|
596
626
|
body,
|
|
597
|
-
xHeaders,
|
|
598
|
-
{
|
|
627
|
+
{ ...xHeaders, ...requestHeaders },
|
|
628
|
+
{ responseHeaders }
|
|
599
629
|
);
|
|
600
630
|
|
|
601
631
|
let responseData = response;
|
|
602
|
-
if (
|
|
632
|
+
if (responseHeaders) {
|
|
603
633
|
responseData = response[0];
|
|
604
634
|
}
|
|
605
635
|
|
|
@@ -622,6 +652,7 @@ class Serviceability {
|
|
|
622
652
|
|
|
623
653
|
/**
|
|
624
654
|
* @param {ServiceabilityPlatformValidator.GetListViewParam} arg - Arg object
|
|
655
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
625
656
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
626
657
|
* @returns {Promise<ServiceabilityPlatformModel.ListViewResponse>} - Success response
|
|
627
658
|
* @name getListView
|
|
@@ -629,8 +660,10 @@ class Serviceability {
|
|
|
629
660
|
* @description: This API returns Zone List View of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getListView/).
|
|
630
661
|
*/
|
|
631
662
|
async getListView(
|
|
632
|
-
{ pageNumber, pageSize, name, isActive, channelIds, q } = {
|
|
633
|
-
|
|
663
|
+
{ pageNumber, pageSize, name, isActive, channelIds, q, requestHeaders } = {
|
|
664
|
+
requestHeaders: {},
|
|
665
|
+
},
|
|
666
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
634
667
|
) {
|
|
635
668
|
const { error } = ServiceabilityPlatformValidator.getListView().validate(
|
|
636
669
|
{
|
|
@@ -684,12 +717,12 @@ class Serviceability {
|
|
|
684
717
|
`/service/platform/logistics/v1.0/company/${this.config.companyId}/zones`,
|
|
685
718
|
query_params,
|
|
686
719
|
undefined,
|
|
687
|
-
xHeaders,
|
|
688
|
-
{
|
|
720
|
+
{ ...xHeaders, ...requestHeaders },
|
|
721
|
+
{ responseHeaders }
|
|
689
722
|
);
|
|
690
723
|
|
|
691
724
|
let responseData = response;
|
|
692
|
-
if (
|
|
725
|
+
if (responseHeaders) {
|
|
693
726
|
responseData = response[0];
|
|
694
727
|
}
|
|
695
728
|
|
|
@@ -712,6 +745,7 @@ class Serviceability {
|
|
|
712
745
|
|
|
713
746
|
/**
|
|
714
747
|
* @param {ServiceabilityPlatformValidator.GetOptimalLocationsParam} arg - Arg object
|
|
748
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
715
749
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
716
750
|
* @returns {Promise<ServiceabilityPlatformModel.ReAssignStoreResponse>} -
|
|
717
751
|
* Success response
|
|
@@ -719,7 +753,10 @@ class Serviceability {
|
|
|
719
753
|
* @summary: Get serviceable store of the item
|
|
720
754
|
* @description: This API returns serviceable store of the item. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getOptimalLocations/).
|
|
721
755
|
*/
|
|
722
|
-
async getOptimalLocations(
|
|
756
|
+
async getOptimalLocations(
|
|
757
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
758
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
759
|
+
) {
|
|
723
760
|
const {
|
|
724
761
|
error,
|
|
725
762
|
} = ServiceabilityPlatformValidator.getOptimalLocations().validate(
|
|
@@ -758,12 +795,12 @@ class Serviceability {
|
|
|
758
795
|
`/service/platform/logistics/v1.0/company/${this.config.companyId}/reassign`,
|
|
759
796
|
query_params,
|
|
760
797
|
body,
|
|
761
|
-
xHeaders,
|
|
762
|
-
{
|
|
798
|
+
{ ...xHeaders, ...requestHeaders },
|
|
799
|
+
{ responseHeaders }
|
|
763
800
|
);
|
|
764
801
|
|
|
765
802
|
let responseData = response;
|
|
766
|
-
if (
|
|
803
|
+
if (responseHeaders) {
|
|
767
804
|
responseData = response[0];
|
|
768
805
|
}
|
|
769
806
|
|
|
@@ -786,6 +823,7 @@ class Serviceability {
|
|
|
786
823
|
|
|
787
824
|
/**
|
|
788
825
|
* @param {ServiceabilityPlatformValidator.GetStoreParam} arg - Arg object
|
|
826
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
789
827
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
790
828
|
* @returns {Promise<ServiceabilityPlatformModel.GetStoresViewResponse>} -
|
|
791
829
|
* Success response
|
|
@@ -793,7 +831,10 @@ class Serviceability {
|
|
|
793
831
|
* @summary: GET stores data
|
|
794
832
|
* @description: This API returns stores data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getStore/).
|
|
795
833
|
*/
|
|
796
|
-
async getStore(
|
|
834
|
+
async getStore(
|
|
835
|
+
{ storeUid, requestHeaders } = { requestHeaders: {} },
|
|
836
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
837
|
+
) {
|
|
797
838
|
const { error } = ServiceabilityPlatformValidator.getStore().validate(
|
|
798
839
|
{
|
|
799
840
|
storeUid,
|
|
@@ -830,12 +871,12 @@ class Serviceability {
|
|
|
830
871
|
`/service/platform/logistics/v1.0/company/${this.config.companyId}/stores/${storeUid}`,
|
|
831
872
|
query_params,
|
|
832
873
|
undefined,
|
|
833
|
-
xHeaders,
|
|
834
|
-
{
|
|
874
|
+
{ ...xHeaders, ...requestHeaders },
|
|
875
|
+
{ responseHeaders }
|
|
835
876
|
);
|
|
836
877
|
|
|
837
878
|
let responseData = response;
|
|
838
|
-
if (
|
|
879
|
+
if (responseHeaders) {
|
|
839
880
|
responseData = response[0];
|
|
840
881
|
}
|
|
841
882
|
|
|
@@ -858,6 +899,7 @@ class Serviceability {
|
|
|
858
899
|
|
|
859
900
|
/**
|
|
860
901
|
* @param {ServiceabilityPlatformValidator.GetZoneDataViewParam} arg - Arg object
|
|
902
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
861
903
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
862
904
|
* @returns {Promise<ServiceabilityPlatformModel.GetSingleZoneDataViewResponse>}
|
|
863
905
|
* - Success response
|
|
@@ -866,7 +908,10 @@ class Serviceability {
|
|
|
866
908
|
* @summary: Zone Data View of application.
|
|
867
909
|
* @description: This API returns Zone Data View of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getZoneDataView/).
|
|
868
910
|
*/
|
|
869
|
-
async getZoneDataView(
|
|
911
|
+
async getZoneDataView(
|
|
912
|
+
{ zoneId, requestHeaders } = { requestHeaders: {} },
|
|
913
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
914
|
+
) {
|
|
870
915
|
const {
|
|
871
916
|
error,
|
|
872
917
|
} = ServiceabilityPlatformValidator.getZoneDataView().validate(
|
|
@@ -905,12 +950,12 @@ class Serviceability {
|
|
|
905
950
|
`/service/platform/logistics/v1.0/company/${this.config.companyId}/zone/${zoneId}`,
|
|
906
951
|
query_params,
|
|
907
952
|
undefined,
|
|
908
|
-
xHeaders,
|
|
909
|
-
{
|
|
953
|
+
{ ...xHeaders, ...requestHeaders },
|
|
954
|
+
{ responseHeaders }
|
|
910
955
|
);
|
|
911
956
|
|
|
912
957
|
let responseData = response;
|
|
913
|
-
if (
|
|
958
|
+
if (responseHeaders) {
|
|
914
959
|
responseData = response[0];
|
|
915
960
|
}
|
|
916
961
|
|
|
@@ -933,6 +978,7 @@ class Serviceability {
|
|
|
933
978
|
|
|
934
979
|
/**
|
|
935
980
|
* @param {ServiceabilityPlatformValidator.GetZoneListViewParam} arg - Arg object
|
|
981
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
936
982
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
937
983
|
* @returns {Promise<ServiceabilityPlatformModel.ListViewResponse>} - Success response
|
|
938
984
|
* @name getZoneListView
|
|
@@ -949,8 +995,9 @@ class Serviceability {
|
|
|
949
995
|
channelIds,
|
|
950
996
|
q,
|
|
951
997
|
zoneId,
|
|
952
|
-
|
|
953
|
-
|
|
998
|
+
requestHeaders,
|
|
999
|
+
} = { requestHeaders: {} },
|
|
1000
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
954
1001
|
) {
|
|
955
1002
|
const {
|
|
956
1003
|
error,
|
|
@@ -1012,12 +1059,12 @@ class Serviceability {
|
|
|
1012
1059
|
`/service/platform/logistics/v1.0/company/${this.config.companyId}/zones-list`,
|
|
1013
1060
|
query_params,
|
|
1014
1061
|
undefined,
|
|
1015
|
-
xHeaders,
|
|
1016
|
-
{
|
|
1062
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1063
|
+
{ responseHeaders }
|
|
1017
1064
|
);
|
|
1018
1065
|
|
|
1019
1066
|
let responseData = response;
|
|
1020
|
-
if (
|
|
1067
|
+
if (responseHeaders) {
|
|
1021
1068
|
responseData = response[0];
|
|
1022
1069
|
}
|
|
1023
1070
|
|
|
@@ -1040,6 +1087,7 @@ class Serviceability {
|
|
|
1040
1087
|
|
|
1041
1088
|
/**
|
|
1042
1089
|
* @param {ServiceabilityPlatformValidator.UpdateDpRuleParam} arg - Arg object
|
|
1090
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1043
1091
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1044
1092
|
* @returns {Promise<ServiceabilityPlatformModel.DpRuleUpdateSuccessResponse>}
|
|
1045
1093
|
* - Success response
|
|
@@ -1048,7 +1096,10 @@ class Serviceability {
|
|
|
1048
1096
|
* @summary: Updating of DpRules from database.
|
|
1049
1097
|
* @description: This API updates and returns response of DpRules from mongo database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateDpRule/).
|
|
1050
1098
|
*/
|
|
1051
|
-
async updateDpRule(
|
|
1099
|
+
async updateDpRule(
|
|
1100
|
+
{ ruleUid, body, requestHeaders } = { requestHeaders: {} },
|
|
1101
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1102
|
+
) {
|
|
1052
1103
|
const { error } = ServiceabilityPlatformValidator.updateDpRule().validate(
|
|
1053
1104
|
{
|
|
1054
1105
|
ruleUid,
|
|
@@ -1087,12 +1138,12 @@ class Serviceability {
|
|
|
1087
1138
|
`/service/platform/logistics/v1.0/company/${this.config.companyId}/courier/rules/${ruleUid}`,
|
|
1088
1139
|
query_params,
|
|
1089
1140
|
body,
|
|
1090
|
-
xHeaders,
|
|
1091
|
-
{
|
|
1141
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1142
|
+
{ responseHeaders }
|
|
1092
1143
|
);
|
|
1093
1144
|
|
|
1094
1145
|
let responseData = response;
|
|
1095
|
-
if (
|
|
1146
|
+
if (responseHeaders) {
|
|
1096
1147
|
responseData = response[0];
|
|
1097
1148
|
}
|
|
1098
1149
|
|
|
@@ -1117,6 +1168,7 @@ class Serviceability {
|
|
|
1117
1168
|
* @param {ServiceabilityPlatformValidator.UpdateZoneControllerViewParam} arg
|
|
1118
1169
|
* - Arg object
|
|
1119
1170
|
*
|
|
1171
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1120
1172
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1121
1173
|
* @returns {Promise<ServiceabilityPlatformModel.ZoneSuccessResponse>} -
|
|
1122
1174
|
* Success response
|
|
@@ -1125,8 +1177,8 @@ class Serviceability {
|
|
|
1125
1177
|
* @description: This API returns response of updation of zone in mongo database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateZoneControllerView/).
|
|
1126
1178
|
*/
|
|
1127
1179
|
async updateZoneControllerView(
|
|
1128
|
-
{ zoneId, body } = {},
|
|
1129
|
-
{
|
|
1180
|
+
{ zoneId, body, requestHeaders } = { requestHeaders: {} },
|
|
1181
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1130
1182
|
) {
|
|
1131
1183
|
const {
|
|
1132
1184
|
error,
|
|
@@ -1170,12 +1222,12 @@ class Serviceability {
|
|
|
1170
1222
|
`/service/platform/logistics/v1.0/company/${this.config.companyId}/zone/${zoneId}`,
|
|
1171
1223
|
query_params,
|
|
1172
1224
|
body,
|
|
1173
|
-
xHeaders,
|
|
1174
|
-
{
|
|
1225
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1226
|
+
{ responseHeaders }
|
|
1175
1227
|
);
|
|
1176
1228
|
|
|
1177
1229
|
let responseData = response;
|
|
1178
|
-
if (
|
|
1230
|
+
if (responseHeaders) {
|
|
1179
1231
|
responseData = response[0];
|
|
1180
1232
|
}
|
|
1181
1233
|
|
|
@@ -1198,6 +1250,7 @@ class Serviceability {
|
|
|
1198
1250
|
|
|
1199
1251
|
/**
|
|
1200
1252
|
* @param {ServiceabilityPlatformValidator.UpsertDpAccountParam} arg - Arg object
|
|
1253
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1201
1254
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1202
1255
|
* @returns {Promise<ServiceabilityPlatformModel.CompanyDpAccountResponse>}
|
|
1203
1256
|
* - Success response
|
|
@@ -1206,7 +1259,10 @@ class Serviceability {
|
|
|
1206
1259
|
* @summary: Upsertion of DpAccount in database.
|
|
1207
1260
|
* @description: This API returns response of upsertion of DpAccount in mongo database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/upsertDpAccount/).
|
|
1208
1261
|
*/
|
|
1209
|
-
async upsertDpAccount(
|
|
1262
|
+
async upsertDpAccount(
|
|
1263
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1264
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1265
|
+
) {
|
|
1210
1266
|
const {
|
|
1211
1267
|
error,
|
|
1212
1268
|
} = ServiceabilityPlatformValidator.upsertDpAccount().validate(
|
|
@@ -1245,12 +1301,12 @@ class Serviceability {
|
|
|
1245
1301
|
`/service/platform/logistics/v1.0/company/${this.config.companyId}/courier/account`,
|
|
1246
1302
|
query_params,
|
|
1247
1303
|
body,
|
|
1248
|
-
xHeaders,
|
|
1249
|
-
{
|
|
1304
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1305
|
+
{ responseHeaders }
|
|
1250
1306
|
);
|
|
1251
1307
|
|
|
1252
1308
|
let responseData = response;
|
|
1253
|
-
if (
|
|
1309
|
+
if (responseHeaders) {
|
|
1254
1310
|
responseData = response[0];
|
|
1255
1311
|
}
|
|
1256
1312
|
|
|
@@ -1273,6 +1329,7 @@ class Serviceability {
|
|
|
1273
1329
|
|
|
1274
1330
|
/**
|
|
1275
1331
|
* @param {ServiceabilityPlatformValidator.UpsertDpCompanyRulesParam} arg - Arg object
|
|
1332
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1276
1333
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1277
1334
|
* @returns {Promise<ServiceabilityPlatformModel.DPCompanyRuleResponse>} -
|
|
1278
1335
|
* Success response
|
|
@@ -1280,7 +1337,10 @@ class Serviceability {
|
|
|
1280
1337
|
* @summary: Upsert of DpCompanyRules in database.
|
|
1281
1338
|
* @description: This API returns response of upsert of DpCompanyRules in mongo database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/upsertDpCompanyRules/).
|
|
1282
1339
|
*/
|
|
1283
|
-
async upsertDpCompanyRules(
|
|
1340
|
+
async upsertDpCompanyRules(
|
|
1341
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1342
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1343
|
+
) {
|
|
1284
1344
|
const {
|
|
1285
1345
|
error,
|
|
1286
1346
|
} = ServiceabilityPlatformValidator.upsertDpCompanyRules().validate(
|
|
@@ -1319,12 +1379,12 @@ class Serviceability {
|
|
|
1319
1379
|
`/service/platform/logistics/v1.0/company/${this.config.companyId}/courier/priority`,
|
|
1320
1380
|
query_params,
|
|
1321
1381
|
body,
|
|
1322
|
-
xHeaders,
|
|
1323
|
-
{
|
|
1382
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1383
|
+
{ responseHeaders }
|
|
1324
1384
|
);
|
|
1325
1385
|
|
|
1326
1386
|
let responseData = response;
|
|
1327
|
-
if (
|
|
1387
|
+
if (responseHeaders) {
|
|
1328
1388
|
responseData = response[0];
|
|
1329
1389
|
}
|
|
1330
1390
|
|
|
@@ -1347,6 +1407,7 @@ class Serviceability {
|
|
|
1347
1407
|
|
|
1348
1408
|
/**
|
|
1349
1409
|
* @param {ServiceabilityPlatformValidator.UpsertDpRulesParam} arg - Arg object
|
|
1410
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1350
1411
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1351
1412
|
* @returns {Promise<ServiceabilityPlatformModel.DpRuleSuccessResponse>} -
|
|
1352
1413
|
* Success response
|
|
@@ -1354,7 +1415,10 @@ class Serviceability {
|
|
|
1354
1415
|
* @summary: Upsert of DpRules in database.
|
|
1355
1416
|
* @description: This API returns response of upsert of DpRules in mongo database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/upsertDpRules/).
|
|
1356
1417
|
*/
|
|
1357
|
-
async upsertDpRules(
|
|
1418
|
+
async upsertDpRules(
|
|
1419
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1420
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1421
|
+
) {
|
|
1358
1422
|
const { error } = ServiceabilityPlatformValidator.upsertDpRules().validate(
|
|
1359
1423
|
{
|
|
1360
1424
|
body,
|
|
@@ -1391,12 +1455,12 @@ class Serviceability {
|
|
|
1391
1455
|
`/service/platform/logistics/v1.0/company/${this.config.companyId}/courier/rules`,
|
|
1392
1456
|
query_params,
|
|
1393
1457
|
body,
|
|
1394
|
-
xHeaders,
|
|
1395
|
-
{
|
|
1458
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1459
|
+
{ responseHeaders }
|
|
1396
1460
|
);
|
|
1397
1461
|
|
|
1398
1462
|
let responseData = response;
|
|
1399
|
-
if (
|
|
1463
|
+
if (responseHeaders) {
|
|
1400
1464
|
responseData = response[0];
|
|
1401
1465
|
}
|
|
1402
1466
|
|