@gofynd/fdk-client-javascript 1.4.2-beta.3 → 1.4.2-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +62 -62
- package/sdk/application/Cart/CartApplicationClient.js +82 -71
- package/sdk/application/Cart/CartApplicationValidator.d.ts +189 -34
- package/sdk/application/Cart/CartApplicationValidator.js +59 -34
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +78 -78
- package/sdk/application/Catalog/CatalogApplicationClient.js +78 -78
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -4
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -6
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -67
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +32 -106
- package/sdk/application/Content/ContentApplicationClient.d.ts +34 -64
- package/sdk/application/Content/ContentApplicationClient.js +34 -115
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -42
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +6 -42
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -14
- package/sdk/application/Lead/LeadApplicationClient.js +14 -14
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +12 -12
- package/sdk/application/Logistic/LogisticApplicationClient.js +12 -12
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -24
- package/sdk/application/Order/OrderApplicationClient.js +24 -24
- package/sdk/application/Order/OrderApplicationModel.d.ts +29 -1
- package/sdk/application/Order/OrderApplicationModel.js +34 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +89 -89
- package/sdk/application/Payment/PaymentApplicationClient.js +94 -94
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +524 -3
- package/sdk/application/Payment/PaymentApplicationModel.js +335 -2
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +54 -54
- package/sdk/application/PosCart/PosCartApplicationClient.js +54 -54
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -25
- package/sdk/application/Rewards/RewardsApplicationClient.js +14 -41
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -14
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -8
- package/sdk/application/User/UserApplicationClient.d.ts +66 -66
- package/sdk/application/User/UserApplicationClient.js +68 -71
- package/sdk/application/User/UserApplicationModel.d.ts +32 -27
- package/sdk/application/User/UserApplicationModel.js +22 -32
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +38 -38
- package/sdk/partner/Theme/ThemePartnerClient.js +38 -38
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -8
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +8 -8
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +34 -36
- package/sdk/platform/Billing/BillingPlatformClient.js +34 -36
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +98 -175
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +98 -254
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +92 -18
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +28 -18
- package/sdk/platform/Cart/CartPlatformModel.d.ts +12 -0
- package/sdk/platform/Cart/CartPlatformModel.js +12 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +221 -108
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +460 -113
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +72 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +46 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +335 -136
- package/sdk/platform/Catalog/CatalogPlatformClient.js +551 -136
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +38 -5
- package/sdk/platform/Catalog/CatalogPlatformModel.js +47 -3
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -3
- package/sdk/platform/Common/CommonPlatformClient.js +3 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +115 -290
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +115 -510
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -13
- package/sdk/platform/Communication/CommunicationPlatformClient.js +2 -29
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +32 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -32
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +52 -127
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +52 -204
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +35 -111
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +35 -212
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +142 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +96 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +130 -218
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +136 -314
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +4 -4
- package/sdk/platform/Content/ContentPlatformClient.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformClient.js +7 -7
- package/sdk/platform/Content/ContentPlatformModel.d.ts +18 -1
- package/sdk/platform/Content/ContentPlatformModel.js +20 -0
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Content/ContentPlatformValidator.js +4 -4
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +22 -48
- package/sdk/platform/Discount/DiscountPlatformClient.js +22 -73
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +20 -56
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +23 -56
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +12 -48
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +12 -48
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +15 -1
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +14 -0
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +44 -44
- package/sdk/platform/Finance/FinancePlatformClient.js +44 -44
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +12 -12
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +22 -48
- package/sdk/platform/Lead/LeadPlatformClient.js +22 -72
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +4 -4
- package/sdk/platform/Order/OrderPlatformClient.d.ts +79 -208
- package/sdk/platform/Order/OrderPlatformClient.js +79 -294
- package/sdk/platform/Order/OrderPlatformModel.d.ts +42 -1
- package/sdk/platform/Order/OrderPlatformModel.js +44 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +4 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +81 -81
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +81 -81
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -1
- package/sdk/platform/Payment/PaymentPlatformModel.js +19 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +23 -40
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +23 -61
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +10 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +11 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +170 -33
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +171 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +2 -2
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +11 -11
- package/sdk/platform/Share/SharePlatformApplicationClient.js +29 -16
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +13 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -2
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +56 -56
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +56 -56
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +6 -6
- package/sdk/platform/Theme/ThemePlatformClient.js +6 -6
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +33 -33
- package/sdk/platform/User/UserPlatformApplicationClient.js +33 -33
- package/sdk/platform/User/UserPlatformModel.d.ts +81 -11
- package/sdk/platform/User/UserPlatformModel.js +80 -10
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +32 -45
- package/sdk/platform/Webhook/WebhookPlatformClient.js +32 -45
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +58 -1
- package/sdk/platform/Webhook/WebhookPlatformModel.js +66 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -2
- package/sdk/public/Partner/PartnerPublicClient.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicClient.js +4 -4
|
@@ -1182,8 +1182,8 @@ class Serviceability {
|
|
|
1182
1182
|
* - Success response
|
|
1183
1183
|
*
|
|
1184
1184
|
* @name updatePincodeAuditHistory
|
|
1185
|
-
* @summary:
|
|
1186
|
-
* @description:
|
|
1185
|
+
* @summary: Update pincode audit history.
|
|
1186
|
+
* @description: Modify and update audit history records for pincode-related activities. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeAuditHistory/).
|
|
1187
1187
|
*/
|
|
1188
1188
|
async updatePincodeAuditHistory(
|
|
1189
1189
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1265,8 +1265,8 @@ class Serviceability {
|
|
|
1265
1265
|
* - Success response
|
|
1266
1266
|
*
|
|
1267
1267
|
* @name updatePincodeBulkView
|
|
1268
|
-
* @summary:
|
|
1269
|
-
* @description:
|
|
1268
|
+
* @summary: Update pincode bulk view.
|
|
1269
|
+
* @description: Modify and update views related to bulk operations on pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeBulkView/).
|
|
1270
1270
|
*/
|
|
1271
1271
|
async updatePincodeBulkView(
|
|
1272
1272
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1348,8 +1348,8 @@ class Serviceability {
|
|
|
1348
1348
|
* - Success response
|
|
1349
1349
|
*
|
|
1350
1350
|
* @name updatePincodeCoDListing
|
|
1351
|
-
* @summary:
|
|
1352
|
-
* @description:
|
|
1351
|
+
* @summary: Update pincode CoD (Cash on Delivery) listing.
|
|
1352
|
+
* @description: Modify and update listings for CoD based on pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeCoDListing/).
|
|
1353
1353
|
*/
|
|
1354
1354
|
async updatePincodeCoDListing(
|
|
1355
1355
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1430,8 +1430,8 @@ class Serviceability {
|
|
|
1430
1430
|
* @returns {Promise<ServiceabilityPlatformModel.PincodeMOPresponse>} -
|
|
1431
1431
|
* Success response
|
|
1432
1432
|
* @name updatePincodeMopView
|
|
1433
|
-
* @summary:
|
|
1434
|
-
* @description:
|
|
1433
|
+
* @summary: Update pincode MOP (Mode of Payment) view.
|
|
1434
|
+
* @description: Modify and update views related to pincode MOP. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeMopView/).
|
|
1435
1435
|
*/
|
|
1436
1436
|
async updatePincodeMopView(
|
|
1437
1437
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -71,8 +71,8 @@ declare class Serviceability {
|
|
|
71
71
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
72
72
|
* @returns {Promise<ServiceabilityPlatformModel.ZoneResponse>} - Success response
|
|
73
73
|
* @name createZone
|
|
74
|
-
* @summary:
|
|
75
|
-
* @description:
|
|
74
|
+
* @summary: Create zone.
|
|
75
|
+
* @description: Generate and add a new zone. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createZone/).
|
|
76
76
|
*/
|
|
77
77
|
createZone({ body, requestHeaders }?: ServiceabilityPlatformValidator.CreateZoneParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.ZoneResponse>;
|
|
78
78
|
/**
|
|
@@ -82,8 +82,8 @@ declare class Serviceability {
|
|
|
82
82
|
* @returns {Promise<ServiceabilityPlatformModel.GetStoresViewResponse>} -
|
|
83
83
|
* Success response
|
|
84
84
|
* @name getAllStores
|
|
85
|
-
* @summary:
|
|
86
|
-
* @description:
|
|
85
|
+
* @summary: Get all stores.
|
|
86
|
+
* @description: Retrieve a list of all available stores data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getAllStores/).
|
|
87
87
|
*/
|
|
88
88
|
getAllStores({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.GetStoresViewResponse>;
|
|
89
89
|
/**
|
|
@@ -153,13 +153,14 @@ declare class Serviceability {
|
|
|
153
153
|
* @param {ServiceabilityPlatformValidator.GetOptimalLocationsParam} arg - Arg object
|
|
154
154
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
155
155
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
156
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
157
|
-
* Success response
|
|
156
|
+
* @returns {Promise<ServiceabilityPlatformModel.OptimalLocationsResponse>}
|
|
157
|
+
* - Success response
|
|
158
|
+
*
|
|
158
159
|
* @name getOptimalLocations
|
|
159
|
-
* @summary:
|
|
160
|
-
* @description:
|
|
160
|
+
* @summary: Retrieve optimal locations
|
|
161
|
+
* @description: Retrieve optimal locations based on the specific criteria - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getOptimalLocations/).
|
|
161
162
|
*/
|
|
162
|
-
getOptimalLocations({ body, requestHeaders }?: ServiceabilityPlatformValidator.GetOptimalLocationsParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.
|
|
163
|
+
getOptimalLocations({ body, requestHeaders }?: ServiceabilityPlatformValidator.GetOptimalLocationsParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.OptimalLocationsResponse>;
|
|
163
164
|
/**
|
|
164
165
|
* @param {ServiceabilityPlatformValidator.GetPackageMaterialListParam} arg
|
|
165
166
|
* - Arg object
|
|
@@ -444,8 +444,8 @@ class Serviceability {
|
|
|
444
444
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
445
445
|
* @returns {Promise<ServiceabilityPlatformModel.ZoneResponse>} - Success response
|
|
446
446
|
* @name createZone
|
|
447
|
-
* @summary:
|
|
448
|
-
* @description:
|
|
447
|
+
* @summary: Create zone.
|
|
448
|
+
* @description: Generate and add a new zone. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createZone/).
|
|
449
449
|
*/
|
|
450
450
|
async createZone(
|
|
451
451
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -524,8 +524,8 @@ class Serviceability {
|
|
|
524
524
|
* @returns {Promise<ServiceabilityPlatformModel.GetStoresViewResponse>} -
|
|
525
525
|
* Success response
|
|
526
526
|
* @name getAllStores
|
|
527
|
-
* @summary:
|
|
528
|
-
* @description:
|
|
527
|
+
* @summary: Get all stores.
|
|
528
|
+
* @description: Retrieve a list of all available stores data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getAllStores/).
|
|
529
529
|
*/
|
|
530
530
|
async getAllStores(
|
|
531
531
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -1108,11 +1108,12 @@ class Serviceability {
|
|
|
1108
1108
|
* @param {ServiceabilityPlatformValidator.GetOptimalLocationsParam} arg - Arg object
|
|
1109
1109
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1110
1110
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1111
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1112
|
-
* Success response
|
|
1111
|
+
* @returns {Promise<ServiceabilityPlatformModel.OptimalLocationsResponse>}
|
|
1112
|
+
* - Success response
|
|
1113
|
+
*
|
|
1113
1114
|
* @name getOptimalLocations
|
|
1114
|
-
* @summary:
|
|
1115
|
-
* @description:
|
|
1115
|
+
* @summary: Retrieve optimal locations
|
|
1116
|
+
* @description: Retrieve optimal locations based on the specific criteria - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getOptimalLocations/).
|
|
1116
1117
|
*/
|
|
1117
1118
|
async getOptimalLocations(
|
|
1118
1119
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1153,7 +1154,7 @@ class Serviceability {
|
|
|
1153
1154
|
const response = await PlatformAPIClient.execute(
|
|
1154
1155
|
this.config,
|
|
1155
1156
|
"post",
|
|
1156
|
-
`/service/platform/logistics/v1.0/company/${this.config.companyId}/
|
|
1157
|
+
`/service/platform/logistics/v1.0/company/${this.config.companyId}/optimal-locations`,
|
|
1157
1158
|
query_params,
|
|
1158
1159
|
body,
|
|
1159
1160
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -1167,7 +1168,7 @@ class Serviceability {
|
|
|
1167
1168
|
|
|
1168
1169
|
const {
|
|
1169
1170
|
error: res_error,
|
|
1170
|
-
} = ServiceabilityPlatformModel.
|
|
1171
|
+
} = ServiceabilityPlatformModel.OptimalLocationsResponse().validate(
|
|
1171
1172
|
responseData,
|
|
1172
1173
|
{ abortEarly: false, allowUnknown: true }
|
|
1173
1174
|
);
|
|
@@ -382,21 +382,6 @@ export = ServiceabilityPlatformModel;
|
|
|
382
382
|
* @property {ServiceabilityPageResponse} page
|
|
383
383
|
* @property {ItemResponse[]} [items]
|
|
384
384
|
*/
|
|
385
|
-
/**
|
|
386
|
-
* @typedef ReAssignStoreRequest
|
|
387
|
-
* @property {string} to_pincode
|
|
388
|
-
* @property {string} identifier
|
|
389
|
-
* @property {Object} configuration
|
|
390
|
-
* @property {string[]} ignored_locations
|
|
391
|
-
* @property {Object[]} articles
|
|
392
|
-
*/
|
|
393
|
-
/**
|
|
394
|
-
* @typedef ReAssignStoreResponse
|
|
395
|
-
* @property {string} to_pincode
|
|
396
|
-
* @property {boolean} success
|
|
397
|
-
* @property {Object} error
|
|
398
|
-
* @property {Object[]} [articles]
|
|
399
|
-
*/
|
|
400
385
|
/**
|
|
401
386
|
* @typedef PincodeMopData
|
|
402
387
|
* @property {number[]} pincodes
|
|
@@ -937,10 +922,77 @@ export = ServiceabilityPlatformModel;
|
|
|
937
922
|
* @typedef RulePriorityResponse
|
|
938
923
|
* @property {boolean} [success]
|
|
939
924
|
*/
|
|
925
|
+
/**
|
|
926
|
+
* @typedef ArticleAssignment
|
|
927
|
+
* @property {string} [level]
|
|
928
|
+
* @property {string} [strategy] - The strategy parameter allows users to
|
|
929
|
+
* specify the desired approach or criteria for selecting optimal locations.
|
|
930
|
+
*/
|
|
931
|
+
/**
|
|
932
|
+
* @typedef ServiceabilityLocation
|
|
933
|
+
* @property {string} longitude - The longitude of the serviceability location.
|
|
934
|
+
* @property {string} latitude - The latitude of the serviceability location.
|
|
935
|
+
*/
|
|
936
|
+
/**
|
|
937
|
+
* @typedef LocationDetailsServiceability
|
|
938
|
+
* @property {string} [pincode] - The pincode of the serviceability location.
|
|
939
|
+
* @property {string} [sector] - The sector of the serviceability location.
|
|
940
|
+
* @property {string} [state] - The state of the serviceability location.
|
|
941
|
+
* @property {string} country - The country of the serviceability location.
|
|
942
|
+
* @property {string} [city] - The city of the serviceability location.
|
|
943
|
+
* @property {string} country_iso_code - The ISO code of the country.
|
|
944
|
+
* @property {ServiceabilityLocation} [location]
|
|
945
|
+
*/
|
|
946
|
+
/**
|
|
947
|
+
* @typedef OptimalLocationsArticles
|
|
948
|
+
* @property {number} item_id
|
|
949
|
+
* @property {string} size
|
|
950
|
+
* @property {string} quantity
|
|
951
|
+
* @property {string} [group_id]
|
|
952
|
+
* @property {boolean} [is_primary_item]
|
|
953
|
+
* @property {Object} [meta]
|
|
954
|
+
* @property {ArticleAssignment} article_assignment
|
|
955
|
+
* @property {number[]} ignore_locations
|
|
956
|
+
* @property {number[]} assign_locations
|
|
957
|
+
* @property {number} [seller_id]
|
|
958
|
+
*/
|
|
959
|
+
/**
|
|
960
|
+
* @typedef OptimlLocationsRequestSchema
|
|
961
|
+
* @property {string} channel_id
|
|
962
|
+
* @property {string} channel_type
|
|
963
|
+
* @property {LocationDetailsServiceability} to_serviceability
|
|
964
|
+
* @property {OptimalLocationsArticles} [article]
|
|
965
|
+
*/
|
|
966
|
+
/**
|
|
967
|
+
* @typedef OptimalLocationArticlesResponse
|
|
968
|
+
* @property {number} item_id
|
|
969
|
+
* @property {string} size
|
|
970
|
+
* @property {number} quantity
|
|
971
|
+
* @property {string} [group_id]
|
|
972
|
+
* @property {boolean} [is_primary_item]
|
|
973
|
+
* @property {Object} [meta]
|
|
974
|
+
* @property {ArticleAssignment} article_assignment
|
|
975
|
+
* @property {number} [seller_id]
|
|
976
|
+
* @property {number[]} ignore_locations
|
|
977
|
+
* @property {number[]} assign_locations
|
|
978
|
+
* @property {number} price_effective
|
|
979
|
+
* @property {number} mto_quantity
|
|
980
|
+
* @property {string} _id
|
|
981
|
+
* @property {string} uid
|
|
982
|
+
*/
|
|
983
|
+
/**
|
|
984
|
+
* @typedef OptimalLocationAssignedStoresResponse
|
|
985
|
+
* @property {number} store_id
|
|
986
|
+
* @property {OptimalLocationArticlesResponse[]} articles
|
|
987
|
+
*/
|
|
988
|
+
/**
|
|
989
|
+
* @typedef OptimalLocationsResponse
|
|
990
|
+
* @property {OptimalLocationAssignedStoresResponse[]} assigned_stores
|
|
991
|
+
*/
|
|
940
992
|
declare class ServiceabilityPlatformModel {
|
|
941
993
|
}
|
|
942
994
|
declare namespace ServiceabilityPlatformModel {
|
|
943
|
-
export { UpdateZoneConfigRequest, ServiceabilityErrorResponse, ApplicationServiceabilityConfig, ApplicationServiceabilityConfigResponse, EntityRegionView_Request, EntityRegionView_Error, EntityRegionView_page, getAppRegionZonesResponse, PageSchema, EntityRegionView_Items, EntityRegionView_Response, ListViewSummary, ZoneDataItem, ListViewProduct, ListViewChannels, ListViewItems, ListViewResponse, CompanyStoreView_PageItems, CompanyStoreView_Response, GetZoneDataViewChannels, ZoneProductTypes, ZoneMappingType, UpdateZoneData, ZoneUpdateRequest, ZoneSuccessResponse, GetZoneDataViewItems, GetSingleZoneDataViewResponse, GetZoneByIdSchema, CreateZoneData, ZoneResponse, GetZoneFromPincodeViewRequest, Zone, GetZoneFromPincodeViewResponse, GetZoneFromApplicationIdViewResponse, ServiceabilityPageResponse, MobileNo, ManagerResponse, ModifiedByResponse, IntegrationTypeResponse, ProductReturnConfigResponse, ContactNumberResponse, AddressResponse, CreatedByResponse, EwayBillResponse, EinvoiceResponse, GstCredentialsResponse, WarningsResponse, OpeningClosing, TimmingResponse, DocumentsResponse, Dp, LogisticsResponse, ItemResponse, GetStoresViewResponse,
|
|
995
|
+
export { UpdateZoneConfigRequest, ServiceabilityErrorResponse, ApplicationServiceabilityConfig, ApplicationServiceabilityConfigResponse, EntityRegionView_Request, EntityRegionView_Error, EntityRegionView_page, getAppRegionZonesResponse, PageSchema, EntityRegionView_Items, EntityRegionView_Response, ListViewSummary, ZoneDataItem, ListViewProduct, ListViewChannels, ListViewItems, ListViewResponse, CompanyStoreView_PageItems, CompanyStoreView_Response, GetZoneDataViewChannels, ZoneProductTypes, ZoneMappingType, UpdateZoneData, ZoneUpdateRequest, ZoneSuccessResponse, GetZoneDataViewItems, GetSingleZoneDataViewResponse, GetZoneByIdSchema, CreateZoneData, ZoneResponse, GetZoneFromPincodeViewRequest, Zone, GetZoneFromPincodeViewResponse, GetZoneFromApplicationIdViewResponse, ServiceabilityPageResponse, MobileNo, ManagerResponse, ModifiedByResponse, IntegrationTypeResponse, ProductReturnConfigResponse, ContactNumberResponse, AddressResponse, CreatedByResponse, EwayBillResponse, EinvoiceResponse, GstCredentialsResponse, WarningsResponse, OpeningClosing, TimmingResponse, DocumentsResponse, Dp, LogisticsResponse, ItemResponse, GetStoresViewResponse, PincodeMopData, PincodeMopUpdateResponse, PincodeMOPresponse, CommonError, PincodeMopBulkData, PincodeBulkViewResponse, PincodeCodStatusListingRequest, PincodeCodStatusListingResponse, Error, PincodeCodStatusListingPage, PincodeCodStatusListingSummary, PincodeMopUpdateAuditHistoryRequest, PincodeMopUpdateAuditHistoryPaging, PincodeMopUpdateAuditHistoryResponse, PincodeMopUpdateAuditHistoryResponseData, ArithmeticOperations, SchemeRulesFeatures, SchemeRules, CourierAccount, ErrorResponse, CourierPartnerAccountFailureResponse, Page, CourierPartnerList, LocationRuleValues, LocationRule, StringComparisonOperations, IntComparisonOperations, CourierPartnerRuleConditions, CourierPartnerRule, FailureResponse, CourierPartnerRulesListResponse, CompanyConfig, ZoneConfig, ApplicationConfig, BulkRegionJobSerializer, BulkRegionResponseItemData, BulkRegionResponse, SelfShipResponse, ApplicationSelfShipConfig, ApplicationSelfShipConfigResponse, StoreRuleConfigData, CustomerRadiusSchema, StoreRuleConditionSchema, StoreRuleDataSchema, StorePrioritySchema, GetStoreRulesApiResponse, CreateStoreRuleRequestSchema, StoreRuleResponseSchema, StoreRuleUpdateResponseSchema, ServiceabilityModel, CourierPartnerSchemeFeatures, CourierPartnerSchemeModel, CourierAccountResponse, CompanyCourierPartnerAccountListResponse, PackageMaterial, PackageMaterialResponse, PackageMaterialRule, PackageRule, PackageRuleResponse, Channel, PackageMaterialRuleList, PackageMaterialList, PackageRuleProduct, PackageRuleProductTag, PackageRuleCategory, PackageMaterialRuleQuantity, RulePriorityRequest, RulePriorityResponse, ArticleAssignment, ServiceabilityLocation, LocationDetailsServiceability, OptimalLocationsArticles, OptimlLocationsRequestSchema, OptimalLocationArticlesResponse, OptimalLocationAssignedStoresResponse, OptimalLocationsResponse };
|
|
944
996
|
}
|
|
945
997
|
/** @returns {UpdateZoneConfigRequest} */
|
|
946
998
|
declare function UpdateZoneConfigRequest(): UpdateZoneConfigRequest;
|
|
@@ -1379,23 +1431,6 @@ type GetStoresViewResponse = {
|
|
|
1379
1431
|
page: ServiceabilityPageResponse;
|
|
1380
1432
|
items?: ItemResponse[];
|
|
1381
1433
|
};
|
|
1382
|
-
/** @returns {ReAssignStoreRequest} */
|
|
1383
|
-
declare function ReAssignStoreRequest(): ReAssignStoreRequest;
|
|
1384
|
-
type ReAssignStoreRequest = {
|
|
1385
|
-
to_pincode: string;
|
|
1386
|
-
identifier: string;
|
|
1387
|
-
configuration: any;
|
|
1388
|
-
ignored_locations: string[];
|
|
1389
|
-
articles: any[];
|
|
1390
|
-
};
|
|
1391
|
-
/** @returns {ReAssignStoreResponse} */
|
|
1392
|
-
declare function ReAssignStoreResponse(): ReAssignStoreResponse;
|
|
1393
|
-
type ReAssignStoreResponse = {
|
|
1394
|
-
to_pincode: string;
|
|
1395
|
-
success: boolean;
|
|
1396
|
-
error: any;
|
|
1397
|
-
articles?: any[];
|
|
1398
|
-
};
|
|
1399
1434
|
/** @returns {PincodeMopData} */
|
|
1400
1435
|
declare function PincodeMopData(): PincodeMopData;
|
|
1401
1436
|
type PincodeMopData = {
|
|
@@ -2004,3 +2039,105 @@ declare function RulePriorityResponse(): RulePriorityResponse;
|
|
|
2004
2039
|
type RulePriorityResponse = {
|
|
2005
2040
|
success?: boolean;
|
|
2006
2041
|
};
|
|
2042
|
+
/** @returns {ArticleAssignment} */
|
|
2043
|
+
declare function ArticleAssignment(): ArticleAssignment;
|
|
2044
|
+
type ArticleAssignment = {
|
|
2045
|
+
level?: string;
|
|
2046
|
+
/**
|
|
2047
|
+
* - The strategy parameter allows users to
|
|
2048
|
+
* specify the desired approach or criteria for selecting optimal locations.
|
|
2049
|
+
*/
|
|
2050
|
+
strategy?: string;
|
|
2051
|
+
};
|
|
2052
|
+
/** @returns {ServiceabilityLocation} */
|
|
2053
|
+
declare function ServiceabilityLocation(): ServiceabilityLocation;
|
|
2054
|
+
type ServiceabilityLocation = {
|
|
2055
|
+
/**
|
|
2056
|
+
* - The longitude of the serviceability location.
|
|
2057
|
+
*/
|
|
2058
|
+
longitude: string;
|
|
2059
|
+
/**
|
|
2060
|
+
* - The latitude of the serviceability location.
|
|
2061
|
+
*/
|
|
2062
|
+
latitude: string;
|
|
2063
|
+
};
|
|
2064
|
+
/** @returns {LocationDetailsServiceability} */
|
|
2065
|
+
declare function LocationDetailsServiceability(): LocationDetailsServiceability;
|
|
2066
|
+
type LocationDetailsServiceability = {
|
|
2067
|
+
/**
|
|
2068
|
+
* - The pincode of the serviceability location.
|
|
2069
|
+
*/
|
|
2070
|
+
pincode?: string;
|
|
2071
|
+
/**
|
|
2072
|
+
* - The sector of the serviceability location.
|
|
2073
|
+
*/
|
|
2074
|
+
sector?: string;
|
|
2075
|
+
/**
|
|
2076
|
+
* - The state of the serviceability location.
|
|
2077
|
+
*/
|
|
2078
|
+
state?: string;
|
|
2079
|
+
/**
|
|
2080
|
+
* - The country of the serviceability location.
|
|
2081
|
+
*/
|
|
2082
|
+
country: string;
|
|
2083
|
+
/**
|
|
2084
|
+
* - The city of the serviceability location.
|
|
2085
|
+
*/
|
|
2086
|
+
city?: string;
|
|
2087
|
+
/**
|
|
2088
|
+
* - The ISO code of the country.
|
|
2089
|
+
*/
|
|
2090
|
+
country_iso_code: string;
|
|
2091
|
+
location?: ServiceabilityLocation;
|
|
2092
|
+
};
|
|
2093
|
+
/** @returns {OptimalLocationsArticles} */
|
|
2094
|
+
declare function OptimalLocationsArticles(): OptimalLocationsArticles;
|
|
2095
|
+
type OptimalLocationsArticles = {
|
|
2096
|
+
item_id: number;
|
|
2097
|
+
size: string;
|
|
2098
|
+
quantity: string;
|
|
2099
|
+
group_id?: string;
|
|
2100
|
+
is_primary_item?: boolean;
|
|
2101
|
+
meta?: any;
|
|
2102
|
+
article_assignment: ArticleAssignment;
|
|
2103
|
+
ignore_locations: number[];
|
|
2104
|
+
assign_locations: number[];
|
|
2105
|
+
seller_id?: number;
|
|
2106
|
+
};
|
|
2107
|
+
/** @returns {OptimlLocationsRequestSchema} */
|
|
2108
|
+
declare function OptimlLocationsRequestSchema(): OptimlLocationsRequestSchema;
|
|
2109
|
+
type OptimlLocationsRequestSchema = {
|
|
2110
|
+
channel_id: string;
|
|
2111
|
+
channel_type: string;
|
|
2112
|
+
to_serviceability: LocationDetailsServiceability;
|
|
2113
|
+
article?: OptimalLocationsArticles;
|
|
2114
|
+
};
|
|
2115
|
+
/** @returns {OptimalLocationArticlesResponse} */
|
|
2116
|
+
declare function OptimalLocationArticlesResponse(): OptimalLocationArticlesResponse;
|
|
2117
|
+
type OptimalLocationArticlesResponse = {
|
|
2118
|
+
item_id: number;
|
|
2119
|
+
size: string;
|
|
2120
|
+
quantity: number;
|
|
2121
|
+
group_id?: string;
|
|
2122
|
+
is_primary_item?: boolean;
|
|
2123
|
+
meta?: any;
|
|
2124
|
+
article_assignment: ArticleAssignment;
|
|
2125
|
+
seller_id?: number;
|
|
2126
|
+
ignore_locations: number[];
|
|
2127
|
+
assign_locations: number[];
|
|
2128
|
+
price_effective: number;
|
|
2129
|
+
mto_quantity: number;
|
|
2130
|
+
_id: string;
|
|
2131
|
+
uid: string;
|
|
2132
|
+
};
|
|
2133
|
+
/** @returns {OptimalLocationAssignedStoresResponse} */
|
|
2134
|
+
declare function OptimalLocationAssignedStoresResponse(): OptimalLocationAssignedStoresResponse;
|
|
2135
|
+
type OptimalLocationAssignedStoresResponse = {
|
|
2136
|
+
store_id: number;
|
|
2137
|
+
articles: OptimalLocationArticlesResponse[];
|
|
2138
|
+
};
|
|
2139
|
+
/** @returns {OptimalLocationsResponse} */
|
|
2140
|
+
declare function OptimalLocationsResponse(): OptimalLocationsResponse;
|
|
2141
|
+
type OptimalLocationsResponse = {
|
|
2142
|
+
assigned_stores: OptimalLocationAssignedStoresResponse[];
|
|
2143
|
+
};
|
|
@@ -437,23 +437,6 @@ const Joi = require("joi");
|
|
|
437
437
|
* @property {ItemResponse[]} [items]
|
|
438
438
|
*/
|
|
439
439
|
|
|
440
|
-
/**
|
|
441
|
-
* @typedef ReAssignStoreRequest
|
|
442
|
-
* @property {string} to_pincode
|
|
443
|
-
* @property {string} identifier
|
|
444
|
-
* @property {Object} configuration
|
|
445
|
-
* @property {string[]} ignored_locations
|
|
446
|
-
* @property {Object[]} articles
|
|
447
|
-
*/
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
* @typedef ReAssignStoreResponse
|
|
451
|
-
* @property {string} to_pincode
|
|
452
|
-
* @property {boolean} success
|
|
453
|
-
* @property {Object} error
|
|
454
|
-
* @property {Object[]} [articles]
|
|
455
|
-
*/
|
|
456
|
-
|
|
457
440
|
/**
|
|
458
441
|
* @typedef PincodeMopData
|
|
459
442
|
* @property {number[]} pincodes
|
|
@@ -1062,6 +1045,81 @@ const Joi = require("joi");
|
|
|
1062
1045
|
* @property {boolean} [success]
|
|
1063
1046
|
*/
|
|
1064
1047
|
|
|
1048
|
+
/**
|
|
1049
|
+
* @typedef ArticleAssignment
|
|
1050
|
+
* @property {string} [level]
|
|
1051
|
+
* @property {string} [strategy] - The strategy parameter allows users to
|
|
1052
|
+
* specify the desired approach or criteria for selecting optimal locations.
|
|
1053
|
+
*/
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* @typedef ServiceabilityLocation
|
|
1057
|
+
* @property {string} longitude - The longitude of the serviceability location.
|
|
1058
|
+
* @property {string} latitude - The latitude of the serviceability location.
|
|
1059
|
+
*/
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* @typedef LocationDetailsServiceability
|
|
1063
|
+
* @property {string} [pincode] - The pincode of the serviceability location.
|
|
1064
|
+
* @property {string} [sector] - The sector of the serviceability location.
|
|
1065
|
+
* @property {string} [state] - The state of the serviceability location.
|
|
1066
|
+
* @property {string} country - The country of the serviceability location.
|
|
1067
|
+
* @property {string} [city] - The city of the serviceability location.
|
|
1068
|
+
* @property {string} country_iso_code - The ISO code of the country.
|
|
1069
|
+
* @property {ServiceabilityLocation} [location]
|
|
1070
|
+
*/
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* @typedef OptimalLocationsArticles
|
|
1074
|
+
* @property {number} item_id
|
|
1075
|
+
* @property {string} size
|
|
1076
|
+
* @property {string} quantity
|
|
1077
|
+
* @property {string} [group_id]
|
|
1078
|
+
* @property {boolean} [is_primary_item]
|
|
1079
|
+
* @property {Object} [meta]
|
|
1080
|
+
* @property {ArticleAssignment} article_assignment
|
|
1081
|
+
* @property {number[]} ignore_locations
|
|
1082
|
+
* @property {number[]} assign_locations
|
|
1083
|
+
* @property {number} [seller_id]
|
|
1084
|
+
*/
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* @typedef OptimlLocationsRequestSchema
|
|
1088
|
+
* @property {string} channel_id
|
|
1089
|
+
* @property {string} channel_type
|
|
1090
|
+
* @property {LocationDetailsServiceability} to_serviceability
|
|
1091
|
+
* @property {OptimalLocationsArticles} [article]
|
|
1092
|
+
*/
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* @typedef OptimalLocationArticlesResponse
|
|
1096
|
+
* @property {number} item_id
|
|
1097
|
+
* @property {string} size
|
|
1098
|
+
* @property {number} quantity
|
|
1099
|
+
* @property {string} [group_id]
|
|
1100
|
+
* @property {boolean} [is_primary_item]
|
|
1101
|
+
* @property {Object} [meta]
|
|
1102
|
+
* @property {ArticleAssignment} article_assignment
|
|
1103
|
+
* @property {number} [seller_id]
|
|
1104
|
+
* @property {number[]} ignore_locations
|
|
1105
|
+
* @property {number[]} assign_locations
|
|
1106
|
+
* @property {number} price_effective
|
|
1107
|
+
* @property {number} mto_quantity
|
|
1108
|
+
* @property {string} _id
|
|
1109
|
+
* @property {string} uid
|
|
1110
|
+
*/
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* @typedef OptimalLocationAssignedStoresResponse
|
|
1114
|
+
* @property {number} store_id
|
|
1115
|
+
* @property {OptimalLocationArticlesResponse[]} articles
|
|
1116
|
+
*/
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* @typedef OptimalLocationsResponse
|
|
1120
|
+
* @property {OptimalLocationAssignedStoresResponse[]} assigned_stores
|
|
1121
|
+
*/
|
|
1122
|
+
|
|
1065
1123
|
class ServiceabilityPlatformModel {
|
|
1066
1124
|
/** @returns {UpdateZoneConfigRequest} */
|
|
1067
1125
|
static UpdateZoneConfigRequest() {
|
|
@@ -1644,27 +1702,6 @@ class ServiceabilityPlatformModel {
|
|
|
1644
1702
|
});
|
|
1645
1703
|
}
|
|
1646
1704
|
|
|
1647
|
-
/** @returns {ReAssignStoreRequest} */
|
|
1648
|
-
static ReAssignStoreRequest() {
|
|
1649
|
-
return Joi.object({
|
|
1650
|
-
to_pincode: Joi.string().allow("").required(),
|
|
1651
|
-
identifier: Joi.string().allow("").required(),
|
|
1652
|
-
configuration: Joi.any().required(),
|
|
1653
|
-
ignored_locations: Joi.array().items(Joi.string().allow("")).required(),
|
|
1654
|
-
articles: Joi.array().items(Joi.any()).required(),
|
|
1655
|
-
});
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1658
|
-
/** @returns {ReAssignStoreResponse} */
|
|
1659
|
-
static ReAssignStoreResponse() {
|
|
1660
|
-
return Joi.object({
|
|
1661
|
-
to_pincode: Joi.string().allow("").required(),
|
|
1662
|
-
success: Joi.boolean().required(),
|
|
1663
|
-
error: Joi.any().required(),
|
|
1664
|
-
articles: Joi.array().items(Joi.any()),
|
|
1665
|
-
});
|
|
1666
|
-
}
|
|
1667
|
-
|
|
1668
1705
|
/** @returns {PincodeMopData} */
|
|
1669
1706
|
static PincodeMopData() {
|
|
1670
1707
|
return Joi.object({
|
|
@@ -2450,5 +2487,101 @@ class ServiceabilityPlatformModel {
|
|
|
2450
2487
|
success: Joi.boolean(),
|
|
2451
2488
|
});
|
|
2452
2489
|
}
|
|
2490
|
+
|
|
2491
|
+
/** @returns {ArticleAssignment} */
|
|
2492
|
+
static ArticleAssignment() {
|
|
2493
|
+
return Joi.object({
|
|
2494
|
+
level: Joi.string().allow(""),
|
|
2495
|
+
strategy: Joi.string().allow(""),
|
|
2496
|
+
});
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
/** @returns {ServiceabilityLocation} */
|
|
2500
|
+
static ServiceabilityLocation() {
|
|
2501
|
+
return Joi.object({
|
|
2502
|
+
longitude: Joi.string().allow("").required(),
|
|
2503
|
+
latitude: Joi.string().allow("").required(),
|
|
2504
|
+
});
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
/** @returns {LocationDetailsServiceability} */
|
|
2508
|
+
static LocationDetailsServiceability() {
|
|
2509
|
+
return Joi.object({
|
|
2510
|
+
pincode: Joi.string().allow(""),
|
|
2511
|
+
sector: Joi.string().allow(""),
|
|
2512
|
+
state: Joi.string().allow(""),
|
|
2513
|
+
country: Joi.string().allow("").required(),
|
|
2514
|
+
city: Joi.string().allow(""),
|
|
2515
|
+
country_iso_code: Joi.string().allow("").required(),
|
|
2516
|
+
location: ServiceabilityPlatformModel.ServiceabilityLocation(),
|
|
2517
|
+
});
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
/** @returns {OptimalLocationsArticles} */
|
|
2521
|
+
static OptimalLocationsArticles() {
|
|
2522
|
+
return Joi.object({
|
|
2523
|
+
item_id: Joi.number().required(),
|
|
2524
|
+
size: Joi.string().allow("").required(),
|
|
2525
|
+
quantity: Joi.string().allow("").required(),
|
|
2526
|
+
group_id: Joi.string().allow(""),
|
|
2527
|
+
is_primary_item: Joi.boolean(),
|
|
2528
|
+
meta: Joi.any(),
|
|
2529
|
+
article_assignment: ServiceabilityPlatformModel.ArticleAssignment().required(),
|
|
2530
|
+
ignore_locations: Joi.array().items(Joi.number()).required(),
|
|
2531
|
+
assign_locations: Joi.array().items(Joi.number()).required(),
|
|
2532
|
+
seller_id: Joi.number(),
|
|
2533
|
+
});
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2536
|
+
/** @returns {OptimlLocationsRequestSchema} */
|
|
2537
|
+
static OptimlLocationsRequestSchema() {
|
|
2538
|
+
return Joi.object({
|
|
2539
|
+
channel_id: Joi.string().allow("").required(),
|
|
2540
|
+
channel_type: Joi.string().allow("").required(),
|
|
2541
|
+
to_serviceability: ServiceabilityPlatformModel.LocationDetailsServiceability().required(),
|
|
2542
|
+
article: ServiceabilityPlatformModel.OptimalLocationsArticles(),
|
|
2543
|
+
});
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
/** @returns {OptimalLocationArticlesResponse} */
|
|
2547
|
+
static OptimalLocationArticlesResponse() {
|
|
2548
|
+
return Joi.object({
|
|
2549
|
+
item_id: Joi.number().required(),
|
|
2550
|
+
size: Joi.string().allow("").required(),
|
|
2551
|
+
quantity: Joi.number().required(),
|
|
2552
|
+
group_id: Joi.string().allow(""),
|
|
2553
|
+
is_primary_item: Joi.boolean(),
|
|
2554
|
+
meta: Joi.any(),
|
|
2555
|
+
article_assignment: ServiceabilityPlatformModel.ArticleAssignment().required(),
|
|
2556
|
+
seller_id: Joi.number(),
|
|
2557
|
+
ignore_locations: Joi.array().items(Joi.number()).required(),
|
|
2558
|
+
assign_locations: Joi.array().items(Joi.number()).required(),
|
|
2559
|
+
price_effective: Joi.number().required(),
|
|
2560
|
+
mto_quantity: Joi.number().required(),
|
|
2561
|
+
_id: Joi.string().allow("").required(),
|
|
2562
|
+
uid: Joi.string().allow("").required(),
|
|
2563
|
+
});
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2566
|
+
/** @returns {OptimalLocationAssignedStoresResponse} */
|
|
2567
|
+
static OptimalLocationAssignedStoresResponse() {
|
|
2568
|
+
return Joi.object({
|
|
2569
|
+
store_id: Joi.number().required(),
|
|
2570
|
+
articles: Joi.array()
|
|
2571
|
+
.items(ServiceabilityPlatformModel.OptimalLocationArticlesResponse())
|
|
2572
|
+
.required(),
|
|
2573
|
+
});
|
|
2574
|
+
}
|
|
2575
|
+
|
|
2576
|
+
/** @returns {OptimalLocationsResponse} */
|
|
2577
|
+
static OptimalLocationsResponse() {
|
|
2578
|
+
return Joi.object({
|
|
2579
|
+
assigned_stores: Joi.array()
|
|
2580
|
+
.items(
|
|
2581
|
+
ServiceabilityPlatformModel.OptimalLocationAssignedStoresResponse()
|
|
2582
|
+
)
|
|
2583
|
+
.required(),
|
|
2584
|
+
});
|
|
2585
|
+
}
|
|
2453
2586
|
}
|
|
2454
2587
|
module.exports = ServiceabilityPlatformModel;
|
|
@@ -71,7 +71,7 @@ export = ServiceabilityPlatformValidator;
|
|
|
71
71
|
*/
|
|
72
72
|
/**
|
|
73
73
|
* @typedef GetOptimalLocationsParam
|
|
74
|
-
* @property {ServiceabilityPlatformModel.
|
|
74
|
+
* @property {ServiceabilityPlatformModel.OptimlLocationsRequestSchema} body
|
|
75
75
|
*/
|
|
76
76
|
/**
|
|
77
77
|
* @typedef GetPackageMaterialListParam
|
|
@@ -365,7 +365,7 @@ type GetCourierPartnerAccountsParam = {
|
|
|
365
365
|
transportType?: string;
|
|
366
366
|
};
|
|
367
367
|
type GetOptimalLocationsParam = {
|
|
368
|
-
body: ServiceabilityPlatformModel.
|
|
368
|
+
body: ServiceabilityPlatformModel.OptimlLocationsRequestSchema;
|
|
369
369
|
};
|
|
370
370
|
type GetPackageMaterialListParam = {
|
|
371
371
|
/**
|
|
@@ -86,7 +86,7 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
88
|
* @typedef GetOptimalLocationsParam
|
|
89
|
-
* @property {ServiceabilityPlatformModel.
|
|
89
|
+
* @property {ServiceabilityPlatformModel.OptimlLocationsRequestSchema} body
|
|
90
90
|
*/
|
|
91
91
|
|
|
92
92
|
/**
|
|
@@ -294,7 +294,7 @@ class ServiceabilityPlatformValidator {
|
|
|
294
294
|
/** @returns {GetOptimalLocationsParam} */
|
|
295
295
|
static getOptimalLocations() {
|
|
296
296
|
return Joi.object({
|
|
297
|
-
body: ServiceabilityPlatformModel.
|
|
297
|
+
body: ServiceabilityPlatformModel.OptimlLocationsRequestSchema().required(),
|
|
298
298
|
}).required();
|
|
299
299
|
}
|
|
300
300
|
|