@gofynd/fdk-client-javascript 1.6.4 → 2.0.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 +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +5 -5
- package/sdk/application/Cart/CartApplicationClient.js +26 -268
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +20 -20
- package/sdk/application/Catalog/CatalogApplicationClient.js +98 -347
- package/sdk/application/Common/CommonApplicationClient.js +1 -16
- package/sdk/application/Communication/CommunicationApplicationClient.js +1 -24
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +24 -2
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +58 -137
- package/sdk/application/Content/ContentApplicationClient.d.ts +47 -7
- package/sdk/application/Content/ContentApplicationClient.js +222 -191
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- package/sdk/application/Finance/FinanceApplicationClient.js +1 -16
- package/sdk/application/Lead/LeadApplicationClient.d.ts +4 -4
- package/sdk/application/Lead/LeadApplicationClient.js +21 -52
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -56
- package/sdk/application/Logistic/LogisticApplicationClient.js +57 -332
- package/sdk/application/Order/OrderApplicationClient.d.ts +11 -11
- package/sdk/application/Order/OrderApplicationClient.js +68 -153
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -12
- package/sdk/application/Payment/PaymentApplicationClient.js +7 -487
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
- package/sdk/application/Rewards/RewardsApplicationClient.js +6 -59
- package/sdk/application/Share/ShareApplicationClient.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationClient.js +21 -75
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +3 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +19 -47
- package/sdk/application/User/UserApplicationClient.js +1 -407
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -8
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +4 -4
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +1 -55
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +1 -408
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -37
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +2 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +29 -25
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +65 -42
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1008 -794
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +573 -460
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +10 -5
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +5 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +2 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +2 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +67 -9
- package/sdk/platform/Cart/CartPlatformModel.js +38 -5
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.js +4 -4
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +47 -13
- package/sdk/platform/Catalog/CatalogPlatformModel.js +29 -7
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +7 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +71 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +70 -6
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +0 -27
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +8 -60
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +31 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -3
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +13 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +68 -11
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +49 -7
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +169 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1279 -132
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +156 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +180 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +162 -0
- package/sdk/platform/Content/ContentPlatformClient.js +1697 -497
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1053 -35
- package/sdk/platform/Content/ContentPlatformModel.js +717 -34
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +127 -1
- package/sdk/platform/Content/ContentPlatformValidator.js +171 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +34 -0
- package/sdk/platform/Discount/DiscountPlatformClient.js +59 -0
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +365 -93
- package/sdk/platform/Discount/DiscountPlatformModel.js +98 -93
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +54 -34
- package/sdk/platform/Discount/DiscountPlatformValidator.js +27 -17
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +0 -156
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +0 -1072
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -137
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +0 -173
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +1 -1105
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +0 -1125
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -0
- package/sdk/platform/Lead/LeadPlatformModel.js +2 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +212 -0
- package/sdk/platform/Order/OrderPlatformClient.js +397 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +41 -9
- package/sdk/platform/Order/OrderPlatformModel.js +20 -7
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +58 -10
- package/sdk/platform/Partner/PartnerPlatformModel.js +19 -10
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -2
- package/sdk/platform/Payment/PaymentPlatformModel.js +8 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +5 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.js +2 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +240 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +1753 -277
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +320 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +269 -19
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +53 -104
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +201 -629
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +5720 -2891
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3414 -2181
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +138 -216
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +81 -148
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
- package/sdk/platform/Share/SharePlatformModel.js +2 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +10 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +79 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +13 -1
- package/sdk/platform/User/UserPlatformApplicationValidator.js +12 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +52 -1
- package/sdk/platform/User/UserPlatformModel.js +36 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +5 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.js +2 -0
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +1 -1
- package/sdk/public/Catalog/CatalogPublicClient.js +6 -11
- package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -16
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -3
- package/sdk/public/Content/ContentPublicClient.js +261 -104
- package/sdk/public/Content/ContentPublicModel.d.ts +155 -1
- package/sdk/public/Content/ContentPublicModel.js +102 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -1
- package/sdk/public/Content/ContentPublicValidator.js +26 -0
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/Webhook/WebhookPublicClient.js +1 -40
|
@@ -16,6 +16,7 @@ const Joi = require("joi");
|
|
|
16
16
|
* @property {number} [current] - The current page number.
|
|
17
17
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
18
18
|
* @property {number} [size] - The number of items per page.
|
|
19
|
+
* @property {number} [page_size] - The number of items per page.
|
|
19
20
|
*/
|
|
20
21
|
|
|
21
22
|
/**
|
|
@@ -223,6 +224,7 @@ class LeadPartnerModel {
|
|
|
223
224
|
current: Joi.number(),
|
|
224
225
|
type: Joi.string().allow("").required(),
|
|
225
226
|
size: Joi.number(),
|
|
227
|
+
page_size: Joi.number(),
|
|
226
228
|
});
|
|
227
229
|
}
|
|
228
230
|
|
|
@@ -182,12 +182,13 @@ declare class Logistics {
|
|
|
182
182
|
*
|
|
183
183
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
184
184
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
185
|
-
* @returns {Promise<LogisticsPartnerModel.
|
|
185
|
+
* @returns {Promise<LogisticsPartnerModel.CourierAccountDetailsBody>} -
|
|
186
|
+
* Success response
|
|
186
187
|
* @name createCourierPartnerAccount
|
|
187
|
-
* @summary:
|
|
188
|
-
* @description:
|
|
188
|
+
* @summary: Create courier account
|
|
189
|
+
* @description: Retrieves a list of courier partner accounts. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/createCourierPartnerAccount/).
|
|
189
190
|
*/
|
|
190
|
-
createCourierPartnerAccount({ companyId, body, requestHeaders }?: LogisticsPartnerValidator.CreateCourierPartnerAccountParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.
|
|
191
|
+
createCourierPartnerAccount({ companyId, body, requestHeaders }?: LogisticsPartnerValidator.CreateCourierPartnerAccountParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CourierAccountDetailsBody>;
|
|
191
192
|
/**
|
|
192
193
|
* @param {LogisticsPartnerValidator.GetCourierPartnerAccountsParam} arg - Arg object.
|
|
193
194
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -196,30 +197,31 @@ declare class Logistics {
|
|
|
196
197
|
* - Success response
|
|
197
198
|
*
|
|
198
199
|
* @name getCourierPartnerAccounts
|
|
199
|
-
* @summary:
|
|
200
|
-
* @description:
|
|
200
|
+
* @summary: List courier accounts
|
|
201
|
+
* @description: Retrieves a list of courier partner accounts. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCourierPartnerAccounts/).
|
|
201
202
|
*/
|
|
202
|
-
getCourierPartnerAccounts({ companyId, pageNo, pageSize, stage, paymentMode, transportType, requestHeaders, }?: LogisticsPartnerValidator.GetCourierPartnerAccountsParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CompanyCourierPartnerAccountListResult>;
|
|
203
|
+
getCourierPartnerAccounts({ companyId, pageNo, pageSize, stage, paymentMode, transportType, accountIds, selfShip, ownAccount, q, requestHeaders, }?: LogisticsPartnerValidator.GetCourierPartnerAccountsParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CompanyCourierPartnerAccountListResult>;
|
|
203
204
|
/**
|
|
204
205
|
* @param {LogisticsPartnerValidator.UpdateCourierPartnerAccountParam} arg
|
|
205
206
|
* - Arg object.
|
|
206
207
|
*
|
|
207
208
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
208
209
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
209
|
-
* @returns {Promise<LogisticsPartnerModel.
|
|
210
|
+
* @returns {Promise<LogisticsPartnerModel.CourierAccountDetailsBody>} -
|
|
211
|
+
* Success response
|
|
210
212
|
* @name updateCourierPartnerAccount
|
|
211
|
-
* @summary: Update
|
|
212
|
-
* @description: Updates
|
|
213
|
+
* @summary: Update courier account
|
|
214
|
+
* @description: Updates an existing courier partner account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/updateCourierPartnerAccount/).
|
|
213
215
|
*/
|
|
214
|
-
updateCourierPartnerAccount({ companyId, accountId, body, requestHeaders }?: LogisticsPartnerValidator.UpdateCourierPartnerAccountParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.
|
|
216
|
+
updateCourierPartnerAccount({ companyId, accountId, body, requestHeaders }?: LogisticsPartnerValidator.UpdateCourierPartnerAccountParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CourierAccountDetailsBody>;
|
|
215
217
|
/**
|
|
216
218
|
* @param {LogisticsPartnerValidator.GetCourierPartnerAccountParam} arg - Arg object.
|
|
217
219
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
218
220
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
219
221
|
* @returns {Promise<LogisticsPartnerModel.CourierAccountResult>} - Success response
|
|
220
222
|
* @name getCourierPartnerAccount
|
|
221
|
-
* @summary:
|
|
222
|
-
* @description:
|
|
223
|
+
* @summary: Get courier account
|
|
224
|
+
* @description: Retrieves a single courier partner account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCourierPartnerAccount/).
|
|
223
225
|
*/
|
|
224
226
|
getCourierPartnerAccount({ companyId, accountId, requestHeaders }?: LogisticsPartnerValidator.GetCourierPartnerAccountParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CourierAccountResult>;
|
|
225
227
|
/**
|
|
@@ -229,54 +231,56 @@ declare class Logistics {
|
|
|
229
231
|
* @returns {Promise<LogisticsPartnerModel.GetCountries>} - Success response
|
|
230
232
|
* @name getCountries
|
|
231
233
|
* @summary: Get all countries and associated data
|
|
232
|
-
* @description: Retrieve of
|
|
234
|
+
* @description: Retrieve a list of countries for logistical purposes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCountries/).
|
|
233
235
|
*/
|
|
234
|
-
getCountries({
|
|
236
|
+
getCountries({ onboard, pageNo, pageSize, q, hierarchy, requestHeaders }?: LogisticsPartnerValidator.GetCountriesParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.GetCountries>;
|
|
235
237
|
/**
|
|
236
238
|
* @param {LogisticsPartnerValidator.CreateCourierPartnerSchemeParam} arg -
|
|
237
239
|
* Arg object.
|
|
238
240
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
239
241
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
240
|
-
* @returns {Promise<LogisticsPartnerModel.
|
|
241
|
-
* Success response
|
|
242
|
+
* @returns {Promise<LogisticsPartnerModel.CourierPartnerSchemeModelSchema>}
|
|
243
|
+
* - Success response
|
|
244
|
+
*
|
|
242
245
|
* @name createCourierPartnerScheme
|
|
243
246
|
* @summary: Create Scheme for courier partner extension
|
|
244
247
|
* @description: Create Scheme for courier partner extension - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/createCourierPartnerScheme/).
|
|
245
248
|
*/
|
|
246
|
-
createCourierPartnerScheme({ body, requestHeaders }?: LogisticsPartnerValidator.CreateCourierPartnerSchemeParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.
|
|
249
|
+
createCourierPartnerScheme({ body, requestHeaders }?: LogisticsPartnerValidator.CreateCourierPartnerSchemeParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CourierPartnerSchemeModelSchema>;
|
|
247
250
|
/**
|
|
248
251
|
* @param {LogisticsPartnerValidator.GetCourierPartnerSchemesParam} arg - Arg object.
|
|
249
252
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
250
253
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
251
|
-
* @returns {Promise<LogisticsPartnerModel.
|
|
254
|
+
* @returns {Promise<LogisticsPartnerModel.CourierPartnerSchemeList>} -
|
|
252
255
|
* Success response
|
|
253
256
|
* @name getCourierPartnerSchemes
|
|
254
257
|
* @summary: Get created Schemes for courier partner
|
|
255
258
|
* @description: Get created Schemes for courier partner - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCourierPartnerSchemes/).
|
|
256
259
|
*/
|
|
257
|
-
getCourierPartnerSchemes({ schemeType, paymentMode, capabilities, schemeIds, requestHeaders }?: LogisticsPartnerValidator.GetCourierPartnerSchemesParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.
|
|
260
|
+
getCourierPartnerSchemes({ schemeType, paymentMode, capabilities, schemeIds, requestHeaders }?: LogisticsPartnerValidator.GetCourierPartnerSchemesParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CourierPartnerSchemeList>;
|
|
258
261
|
/**
|
|
259
262
|
* @param {LogisticsPartnerValidator.UpdateCourierPartnerSchemeParam} arg -
|
|
260
263
|
* Arg object.
|
|
261
264
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
262
265
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
263
|
-
* @returns {Promise<LogisticsPartnerModel.
|
|
266
|
+
* @returns {Promise<LogisticsPartnerModel.CourierPartnerPutSchema>} -
|
|
264
267
|
* Success response
|
|
265
268
|
* @name updateCourierPartnerScheme
|
|
266
269
|
* @summary: Update Scheme for courier partner extension
|
|
267
270
|
* @description: Update Scheme for courier partner extension - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/updateCourierPartnerScheme/).
|
|
268
271
|
*/
|
|
269
|
-
updateCourierPartnerScheme({ schemeId, body, requestHeaders }?: LogisticsPartnerValidator.UpdateCourierPartnerSchemeParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.
|
|
272
|
+
updateCourierPartnerScheme({ schemeId, body, requestHeaders }?: LogisticsPartnerValidator.UpdateCourierPartnerSchemeParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CourierPartnerPutSchema>;
|
|
270
273
|
/**
|
|
271
274
|
* @param {LogisticsPartnerValidator.GetCourierPartnerSchemeParam} arg - Arg object.
|
|
272
275
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
273
276
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
274
|
-
* @returns {Promise<LogisticsPartnerModel.
|
|
275
|
-
* Success response
|
|
277
|
+
* @returns {Promise<LogisticsPartnerModel.CourierPartnerSchemeModelSchema>}
|
|
278
|
+
* - Success response
|
|
279
|
+
*
|
|
276
280
|
* @name getCourierPartnerScheme
|
|
277
281
|
* @summary: Get Scheme for courier partner extension by Id
|
|
278
282
|
* @description: Update Scheme for courier partner extension by Id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCourierPartnerScheme/).
|
|
279
283
|
*/
|
|
280
|
-
getCourierPartnerScheme({ schemeId, requestHeaders }?: LogisticsPartnerValidator.GetCourierPartnerSchemeParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.
|
|
284
|
+
getCourierPartnerScheme({ schemeId, requestHeaders }?: LogisticsPartnerValidator.GetCourierPartnerSchemeParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CourierPartnerSchemeModelSchema>;
|
|
281
285
|
}
|
|
282
286
|
import LogisticsPartnerModel = require("./LogisticsPartnerModel");
|
|
@@ -62,7 +62,7 @@ class Logistics {
|
|
|
62
62
|
const response = await PartnerAPIClient.execute(
|
|
63
63
|
this.config,
|
|
64
64
|
"post",
|
|
65
|
-
`/service/partner/logistics/
|
|
65
|
+
`/service/partner/logistics/v2.0/organization/${this.config.organizationId}/localities/bulk-sample`,
|
|
66
66
|
query_params,
|
|
67
67
|
body,
|
|
68
68
|
requestHeaders,
|
|
@@ -152,7 +152,7 @@ class Logistics {
|
|
|
152
152
|
const response = await PartnerAPIClient.execute(
|
|
153
153
|
this.config,
|
|
154
154
|
"get",
|
|
155
|
-
`/service/partner/logistics/
|
|
155
|
+
`/service/partner/logistics/v2.0/organization/${this.config.organizationId}/localities/bulk-sample`,
|
|
156
156
|
query_params,
|
|
157
157
|
undefined,
|
|
158
158
|
requestHeaders,
|
|
@@ -232,7 +232,7 @@ class Logistics {
|
|
|
232
232
|
const response = await PartnerAPIClient.execute(
|
|
233
233
|
this.config,
|
|
234
234
|
"post",
|
|
235
|
-
`/service/partner/logistics/
|
|
235
|
+
`/service/partner/logistics/v2.0/organization/${this.config.organizationId}/courier-partner/${extensionId}/scheme/${schemeId}/tat`,
|
|
236
236
|
query_params,
|
|
237
237
|
body,
|
|
238
238
|
requestHeaders,
|
|
@@ -349,7 +349,7 @@ class Logistics {
|
|
|
349
349
|
const response = await PartnerAPIClient.execute(
|
|
350
350
|
this.config,
|
|
351
351
|
"get",
|
|
352
|
-
`/service/partner/logistics/
|
|
352
|
+
`/service/partner/logistics/v2.0/organization/${this.config.organizationId}/courier-partner/${extensionId}/scheme/${schemeId}/tat`,
|
|
353
353
|
query_params,
|
|
354
354
|
undefined,
|
|
355
355
|
requestHeaders,
|
|
@@ -1381,7 +1381,7 @@ class Logistics {
|
|
|
1381
1381
|
const response = await PartnerAPIClient.execute(
|
|
1382
1382
|
this.config,
|
|
1383
1383
|
"post",
|
|
1384
|
-
`/service/partner/logistics/
|
|
1384
|
+
`/service/partner/logistics/v2.0/organization/${this.config.organizationId}/courier-partner/${extensionId}/scheme/${schemeId}/serviceability/bulk`,
|
|
1385
1385
|
query_params,
|
|
1386
1386
|
body,
|
|
1387
1387
|
requestHeaders,
|
|
@@ -1502,7 +1502,7 @@ class Logistics {
|
|
|
1502
1502
|
const response = await PartnerAPIClient.execute(
|
|
1503
1503
|
this.config,
|
|
1504
1504
|
"get",
|
|
1505
|
-
`/service/partner/logistics/
|
|
1505
|
+
`/service/partner/logistics/v2.0/organization/${this.config.organizationId}/courier-partner/${extensionId}/scheme/${schemeId}/serviceability/bulk`,
|
|
1506
1506
|
query_params,
|
|
1507
1507
|
undefined,
|
|
1508
1508
|
requestHeaders,
|
|
@@ -1541,10 +1541,11 @@ class Logistics {
|
|
|
1541
1541
|
*
|
|
1542
1542
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1543
1543
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1544
|
-
* @returns {Promise<LogisticsPartnerModel.
|
|
1544
|
+
* @returns {Promise<LogisticsPartnerModel.CourierAccountDetailsBody>} -
|
|
1545
|
+
* Success response
|
|
1545
1546
|
* @name createCourierPartnerAccount
|
|
1546
|
-
* @summary:
|
|
1547
|
-
* @description:
|
|
1547
|
+
* @summary: Create courier account
|
|
1548
|
+
* @description: Retrieves a list of courier partner accounts. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/createCourierPartnerAccount/).
|
|
1548
1549
|
*/
|
|
1549
1550
|
async createCourierPartnerAccount(
|
|
1550
1551
|
{ companyId, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1599,10 +1600,10 @@ class Logistics {
|
|
|
1599
1600
|
|
|
1600
1601
|
const {
|
|
1601
1602
|
error: res_error,
|
|
1602
|
-
} = LogisticsPartnerModel.
|
|
1603
|
-
|
|
1604
|
-
allowUnknown: true
|
|
1605
|
-
|
|
1603
|
+
} = LogisticsPartnerModel.CourierAccountDetailsBody().validate(
|
|
1604
|
+
responseData,
|
|
1605
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1606
|
+
);
|
|
1606
1607
|
|
|
1607
1608
|
if (res_error) {
|
|
1608
1609
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1626,8 +1627,8 @@ class Logistics {
|
|
|
1626
1627
|
* - Success response
|
|
1627
1628
|
*
|
|
1628
1629
|
* @name getCourierPartnerAccounts
|
|
1629
|
-
* @summary:
|
|
1630
|
-
* @description:
|
|
1630
|
+
* @summary: List courier accounts
|
|
1631
|
+
* @description: Retrieves a list of courier partner accounts. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCourierPartnerAccounts/).
|
|
1631
1632
|
*/
|
|
1632
1633
|
async getCourierPartnerAccounts(
|
|
1633
1634
|
{
|
|
@@ -1637,6 +1638,10 @@ class Logistics {
|
|
|
1637
1638
|
stage,
|
|
1638
1639
|
paymentMode,
|
|
1639
1640
|
transportType,
|
|
1641
|
+
accountIds,
|
|
1642
|
+
selfShip,
|
|
1643
|
+
ownAccount,
|
|
1644
|
+
q,
|
|
1640
1645
|
requestHeaders,
|
|
1641
1646
|
} = { requestHeaders: {} },
|
|
1642
1647
|
{ responseHeaders } = { responseHeaders: false }
|
|
@@ -1651,6 +1656,10 @@ class Logistics {
|
|
|
1651
1656
|
stage,
|
|
1652
1657
|
paymentMode,
|
|
1653
1658
|
transportType,
|
|
1659
|
+
accountIds,
|
|
1660
|
+
selfShip,
|
|
1661
|
+
ownAccount,
|
|
1662
|
+
q,
|
|
1654
1663
|
},
|
|
1655
1664
|
{ abortEarly: false, allowUnknown: true }
|
|
1656
1665
|
);
|
|
@@ -1669,6 +1678,10 @@ class Logistics {
|
|
|
1669
1678
|
stage,
|
|
1670
1679
|
paymentMode,
|
|
1671
1680
|
transportType,
|
|
1681
|
+
accountIds,
|
|
1682
|
+
selfShip,
|
|
1683
|
+
ownAccount,
|
|
1684
|
+
q,
|
|
1672
1685
|
},
|
|
1673
1686
|
{ abortEarly: false, allowUnknown: false }
|
|
1674
1687
|
);
|
|
@@ -1685,6 +1698,10 @@ class Logistics {
|
|
|
1685
1698
|
query_params["stage"] = stage;
|
|
1686
1699
|
query_params["payment_mode"] = paymentMode;
|
|
1687
1700
|
query_params["transport_type"] = transportType;
|
|
1701
|
+
query_params["account_ids"] = accountIds;
|
|
1702
|
+
query_params["self_ship"] = selfShip;
|
|
1703
|
+
query_params["own_account"] = ownAccount;
|
|
1704
|
+
query_params["q"] = q;
|
|
1688
1705
|
|
|
1689
1706
|
const response = await PartnerAPIClient.execute(
|
|
1690
1707
|
this.config,
|
|
@@ -1728,10 +1745,11 @@ class Logistics {
|
|
|
1728
1745
|
*
|
|
1729
1746
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1730
1747
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1731
|
-
* @returns {Promise<LogisticsPartnerModel.
|
|
1748
|
+
* @returns {Promise<LogisticsPartnerModel.CourierAccountDetailsBody>} -
|
|
1749
|
+
* Success response
|
|
1732
1750
|
* @name updateCourierPartnerAccount
|
|
1733
|
-
* @summary: Update
|
|
1734
|
-
* @description: Updates
|
|
1751
|
+
* @summary: Update courier account
|
|
1752
|
+
* @description: Updates an existing courier partner account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/updateCourierPartnerAccount/).
|
|
1735
1753
|
*/
|
|
1736
1754
|
async updateCourierPartnerAccount(
|
|
1737
1755
|
{ companyId, accountId, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1788,10 +1806,10 @@ class Logistics {
|
|
|
1788
1806
|
|
|
1789
1807
|
const {
|
|
1790
1808
|
error: res_error,
|
|
1791
|
-
} = LogisticsPartnerModel.
|
|
1792
|
-
|
|
1793
|
-
allowUnknown: true
|
|
1794
|
-
|
|
1809
|
+
} = LogisticsPartnerModel.CourierAccountDetailsBody().validate(
|
|
1810
|
+
responseData,
|
|
1811
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1812
|
+
);
|
|
1795
1813
|
|
|
1796
1814
|
if (res_error) {
|
|
1797
1815
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1813,8 +1831,8 @@ class Logistics {
|
|
|
1813
1831
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1814
1832
|
* @returns {Promise<LogisticsPartnerModel.CourierAccountResult>} - Success response
|
|
1815
1833
|
* @name getCourierPartnerAccount
|
|
1816
|
-
* @summary:
|
|
1817
|
-
* @description:
|
|
1834
|
+
* @summary: Get courier account
|
|
1835
|
+
* @description: Retrieves a single courier partner account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCourierPartnerAccount/).
|
|
1818
1836
|
*/
|
|
1819
1837
|
async getCourierPartnerAccount(
|
|
1820
1838
|
{ companyId, accountId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1895,20 +1913,21 @@ class Logistics {
|
|
|
1895
1913
|
* @returns {Promise<LogisticsPartnerModel.GetCountries>} - Success response
|
|
1896
1914
|
* @name getCountries
|
|
1897
1915
|
* @summary: Get all countries and associated data
|
|
1898
|
-
* @description: Retrieve of
|
|
1916
|
+
* @description: Retrieve a list of countries for logistical purposes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCountries/).
|
|
1899
1917
|
*/
|
|
1900
1918
|
async getCountries(
|
|
1901
|
-
{
|
|
1919
|
+
{ onboard, pageNo, pageSize, q, hierarchy, requestHeaders } = {
|
|
1902
1920
|
requestHeaders: {},
|
|
1903
1921
|
},
|
|
1904
1922
|
{ responseHeaders } = { responseHeaders: false }
|
|
1905
1923
|
) {
|
|
1906
1924
|
const { error } = LogisticsPartnerValidator.getCountries().validate(
|
|
1907
1925
|
{
|
|
1908
|
-
|
|
1926
|
+
onboard,
|
|
1909
1927
|
pageNo,
|
|
1910
1928
|
pageSize,
|
|
1911
1929
|
q,
|
|
1930
|
+
hierarchy,
|
|
1912
1931
|
},
|
|
1913
1932
|
{ abortEarly: false, allowUnknown: true }
|
|
1914
1933
|
);
|
|
@@ -1921,10 +1940,11 @@ class Logistics {
|
|
|
1921
1940
|
error: warrning,
|
|
1922
1941
|
} = LogisticsPartnerValidator.getCountries().validate(
|
|
1923
1942
|
{
|
|
1924
|
-
|
|
1943
|
+
onboard,
|
|
1925
1944
|
pageNo,
|
|
1926
1945
|
pageSize,
|
|
1927
1946
|
q,
|
|
1947
|
+
hierarchy,
|
|
1928
1948
|
},
|
|
1929
1949
|
{ abortEarly: false, allowUnknown: false }
|
|
1930
1950
|
);
|
|
@@ -1936,10 +1956,11 @@ class Logistics {
|
|
|
1936
1956
|
}
|
|
1937
1957
|
|
|
1938
1958
|
const query_params = {};
|
|
1939
|
-
query_params["
|
|
1959
|
+
query_params["onboard"] = onboard;
|
|
1940
1960
|
query_params["page_no"] = pageNo;
|
|
1941
1961
|
query_params["page_size"] = pageSize;
|
|
1942
1962
|
query_params["q"] = q;
|
|
1963
|
+
query_params["hierarchy"] = hierarchy;
|
|
1943
1964
|
|
|
1944
1965
|
const response = await PartnerAPIClient.execute(
|
|
1945
1966
|
this.config,
|
|
@@ -1982,8 +2003,9 @@ class Logistics {
|
|
|
1982
2003
|
* Arg object.
|
|
1983
2004
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1984
2005
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1985
|
-
* @returns {Promise<LogisticsPartnerModel.
|
|
1986
|
-
* Success response
|
|
2006
|
+
* @returns {Promise<LogisticsPartnerModel.CourierPartnerSchemeModelSchema>}
|
|
2007
|
+
* - Success response
|
|
2008
|
+
*
|
|
1987
2009
|
* @name createCourierPartnerScheme
|
|
1988
2010
|
* @summary: Create Scheme for courier partner extension
|
|
1989
2011
|
* @description: Create Scheme for courier partner extension - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/createCourierPartnerScheme/).
|
|
@@ -2039,7 +2061,7 @@ class Logistics {
|
|
|
2039
2061
|
|
|
2040
2062
|
const {
|
|
2041
2063
|
error: res_error,
|
|
2042
|
-
} = LogisticsPartnerModel.
|
|
2064
|
+
} = LogisticsPartnerModel.CourierPartnerSchemeModelSchema().validate(
|
|
2043
2065
|
responseData,
|
|
2044
2066
|
{ abortEarly: false, allowUnknown: true }
|
|
2045
2067
|
);
|
|
@@ -2062,7 +2084,7 @@ class Logistics {
|
|
|
2062
2084
|
* @param {LogisticsPartnerValidator.GetCourierPartnerSchemesParam} arg - Arg object.
|
|
2063
2085
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2064
2086
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
2065
|
-
* @returns {Promise<LogisticsPartnerModel.
|
|
2087
|
+
* @returns {Promise<LogisticsPartnerModel.CourierPartnerSchemeList>} -
|
|
2066
2088
|
* Success response
|
|
2067
2089
|
* @name getCourierPartnerSchemes
|
|
2068
2090
|
* @summary: Get created Schemes for courier partner
|
|
@@ -2131,7 +2153,7 @@ class Logistics {
|
|
|
2131
2153
|
|
|
2132
2154
|
const {
|
|
2133
2155
|
error: res_error,
|
|
2134
|
-
} = LogisticsPartnerModel.
|
|
2156
|
+
} = LogisticsPartnerModel.CourierPartnerSchemeList().validate(
|
|
2135
2157
|
responseData,
|
|
2136
2158
|
{ abortEarly: false, allowUnknown: true }
|
|
2137
2159
|
);
|
|
@@ -2155,7 +2177,7 @@ class Logistics {
|
|
|
2155
2177
|
* Arg object.
|
|
2156
2178
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2157
2179
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
2158
|
-
* @returns {Promise<LogisticsPartnerModel.
|
|
2180
|
+
* @returns {Promise<LogisticsPartnerModel.CourierPartnerPutSchema>} -
|
|
2159
2181
|
* Success response
|
|
2160
2182
|
* @name updateCourierPartnerScheme
|
|
2161
2183
|
* @summary: Update Scheme for courier partner extension
|
|
@@ -2214,10 +2236,10 @@ class Logistics {
|
|
|
2214
2236
|
|
|
2215
2237
|
const {
|
|
2216
2238
|
error: res_error,
|
|
2217
|
-
} = LogisticsPartnerModel.
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
);
|
|
2239
|
+
} = LogisticsPartnerModel.CourierPartnerPutSchema().validate(responseData, {
|
|
2240
|
+
abortEarly: false,
|
|
2241
|
+
allowUnknown: true,
|
|
2242
|
+
});
|
|
2221
2243
|
|
|
2222
2244
|
if (res_error) {
|
|
2223
2245
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -2237,8 +2259,9 @@ class Logistics {
|
|
|
2237
2259
|
* @param {LogisticsPartnerValidator.GetCourierPartnerSchemeParam} arg - Arg object.
|
|
2238
2260
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2239
2261
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
2240
|
-
* @returns {Promise<LogisticsPartnerModel.
|
|
2241
|
-
* Success response
|
|
2262
|
+
* @returns {Promise<LogisticsPartnerModel.CourierPartnerSchemeModelSchema>}
|
|
2263
|
+
* - Success response
|
|
2264
|
+
*
|
|
2242
2265
|
* @name getCourierPartnerScheme
|
|
2243
2266
|
* @summary: Get Scheme for courier partner extension by Id
|
|
2244
2267
|
* @description: Update Scheme for courier partner extension by Id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCourierPartnerScheme/).
|
|
@@ -2294,7 +2317,7 @@ class Logistics {
|
|
|
2294
2317
|
|
|
2295
2318
|
const {
|
|
2296
2319
|
error: res_error,
|
|
2297
|
-
} = LogisticsPartnerModel.
|
|
2320
|
+
} = LogisticsPartnerModel.CourierPartnerSchemeModelSchema().validate(
|
|
2298
2321
|
responseData,
|
|
2299
2322
|
{ abortEarly: false, allowUnknown: true }
|
|
2300
2323
|
);
|