@gofynd/fdk-client-javascript 3.22.0 → 3.24.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 +14 -14
- package/sdk/application/Cart/CartApplicationClient.js +124 -35
- package/sdk/application/Common/CommonApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.js +4 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +84 -13
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +52 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +7 -2
- package/sdk/platform/Catalog/CatalogPlatformModel.js +5 -2
- package/sdk/platform/Common/CommonPlatformClient.js +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +96 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +61 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -12
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -81
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -10
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -12
- package/sdk/platform/Order/OrderPlatformClient.d.ts +28 -0
- package/sdk/platform/Order/OrderPlatformClient.js +179 -3
- package/sdk/platform/Order/OrderPlatformModel.d.ts +155 -6
- package/sdk/platform/Order/OrderPlatformModel.js +105 -3
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +30 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +94 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +574 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +70 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +81 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +14 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +85 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1382 -187
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +955 -155
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +10 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +12 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +14 -1
- package/sdk/platform/User/UserPlatformModel.js +16 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -1
|
@@ -511,6 +511,20 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
511
511
|
* @property {OrderPlatformModel.StoreReassign} body
|
|
512
512
|
*/
|
|
513
513
|
|
|
514
|
+
/**
|
|
515
|
+
* @typedef RequestCourierPartnerForShipmentParam
|
|
516
|
+
* @property {string} shipmentId - The unique identifier for the shipment. This
|
|
517
|
+
* ID is used to track and reference the shipment throughout its journey.
|
|
518
|
+
* @property {OrderPlatformModel.ShipmentCourierPartnerRequestSchema} body
|
|
519
|
+
*/
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* @typedef SaveCourierPartnerPreferenceForShipmentParam
|
|
523
|
+
* @property {string} shipmentId - The unique identifier for the shipment. This
|
|
524
|
+
* ID is used to track and reference the shipment throughout its journey.
|
|
525
|
+
* @property {OrderPlatformModel.ShipmentCourierPartnerPreference} body
|
|
526
|
+
*/
|
|
527
|
+
|
|
514
528
|
/**
|
|
515
529
|
* @typedef SendSmsNinjaParam
|
|
516
530
|
* @property {OrderPlatformModel.SendSmsPayload} body
|
|
@@ -1092,6 +1106,22 @@ class OrderPlatformValidator {
|
|
|
1092
1106
|
}).required();
|
|
1093
1107
|
}
|
|
1094
1108
|
|
|
1109
|
+
/** @returns {RequestCourierPartnerForShipmentParam} */
|
|
1110
|
+
static requestCourierPartnerForShipment() {
|
|
1111
|
+
return Joi.object({
|
|
1112
|
+
shipmentId: Joi.string().allow("").required(),
|
|
1113
|
+
body: OrderPlatformModel.ShipmentCourierPartnerRequestSchema().required(),
|
|
1114
|
+
}).required();
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
/** @returns {SaveCourierPartnerPreferenceForShipmentParam} */
|
|
1118
|
+
static saveCourierPartnerPreferenceForShipment() {
|
|
1119
|
+
return Joi.object({
|
|
1120
|
+
shipmentId: Joi.string().allow("").required(),
|
|
1121
|
+
body: OrderPlatformModel.ShipmentCourierPartnerPreference().required(),
|
|
1122
|
+
}).required();
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1095
1125
|
/** @returns {SendSmsNinjaParam} */
|
|
1096
1126
|
static sendSmsNinja() {
|
|
1097
1127
|
return Joi.object({
|
|
@@ -82,6 +82,20 @@ declare class Serviceability {
|
|
|
82
82
|
* @description: Create the job for exporting the regions in Geoarea in CSV format. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/serviceability/createGeoAreaExportJob/).
|
|
83
83
|
*/
|
|
84
84
|
createGeoAreaExportJob({ geoareaId, requestHeaders }?: ServiceabilityPlatformApplicationValidator.CreateGeoAreaExportJobParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.GeoAreaBulkCreationResult>;
|
|
85
|
+
/**
|
|
86
|
+
* @param {ServiceabilityPlatformApplicationValidator.CreatePolygonParam} arg
|
|
87
|
+
* - Arg object
|
|
88
|
+
*
|
|
89
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
90
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
91
|
+
* @returns {Promise<ServiceabilityPlatformModel.StorePolygonServiceabilityResult>}
|
|
92
|
+
* - Success response
|
|
93
|
+
*
|
|
94
|
+
* @name createPolygon
|
|
95
|
+
* @summary: Create polygon-based serviceability for stores
|
|
96
|
+
* @description: Creates polygon-based serviceability regions for one or more stores for quick commerce. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/serviceability/createPolygon/).
|
|
97
|
+
*/
|
|
98
|
+
createPolygon({ body, requestHeaders }?: ServiceabilityPlatformApplicationValidator.CreatePolygonParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.StorePolygonServiceabilityResult>;
|
|
85
99
|
/**
|
|
86
100
|
* @param {ServiceabilityPlatformApplicationValidator.CreateShipmentsParam} arg
|
|
87
101
|
* - Arg object
|
|
@@ -121,6 +135,18 @@ declare class Serviceability {
|
|
|
121
135
|
* @description: Creates a delivery zone. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/serviceability/createZone/).
|
|
122
136
|
*/
|
|
123
137
|
createZone({ body, requestHeaders }?: ServiceabilityPlatformApplicationValidator.CreateZoneParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.ZoneSchema>;
|
|
138
|
+
/**
|
|
139
|
+
* @param {ServiceabilityPlatformApplicationValidator.CreateZoneProductsBulkPatchJobParam} arg
|
|
140
|
+
* - Arg object
|
|
141
|
+
*
|
|
142
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
143
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
144
|
+
* @returns {Promise<ServiceabilityPlatformModel.ZoneBulkExport>} - Success response
|
|
145
|
+
* @name createZoneProductsBulkPatchJob
|
|
146
|
+
* @summary: Create bulk zone products patch job
|
|
147
|
+
* @description: Initiates a bulk zone products patch operation by accepting a CSV file URL. The file is validated and a background job is created for processing zone product additions or removals. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/serviceability/createZoneProductsBulkPatchJob/).
|
|
148
|
+
*/
|
|
149
|
+
createZoneProductsBulkPatchJob({ body, requestHeaders }?: ServiceabilityPlatformApplicationValidator.CreateZoneProductsBulkPatchJobParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.ZoneBulkExport>;
|
|
124
150
|
/**
|
|
125
151
|
* @param {ServiceabilityPlatformApplicationValidator.DeleteFulfillmentOptionsParam} arg
|
|
126
152
|
* - Arg object
|
|
@@ -161,6 +187,18 @@ declare class Serviceability {
|
|
|
161
187
|
* @description: Download a sample file for geoarea data. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/serviceability/downloadGeoareaSampleFile/).
|
|
162
188
|
*/
|
|
163
189
|
downloadGeoareaSampleFile({ requestHeaders }?: any, { responseHeaders }?: object): Promise<string>;
|
|
190
|
+
/**
|
|
191
|
+
* @param {ServiceabilityPlatformApplicationValidator.DownloadZoneProductsBulkSampleFileParam} arg
|
|
192
|
+
* - Arg object
|
|
193
|
+
*
|
|
194
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
195
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
196
|
+
* @returns {Promise<string>} - Success response
|
|
197
|
+
* @name downloadZoneProductsBulkSampleFile
|
|
198
|
+
* @summary: Download zone products bulk patch sample file
|
|
199
|
+
* @description: Downloads a CSV sample template file for bulk patching zone products. The template includes headers for zone_id, product_type, products, and action. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/serviceability/downloadZoneProductsBulkSampleFile/).
|
|
200
|
+
*/
|
|
201
|
+
downloadZoneProductsBulkSampleFile({ requestHeaders }?: any, { responseHeaders }?: object): Promise<string>;
|
|
164
202
|
/**
|
|
165
203
|
* @param {ServiceabilityPlatformApplicationValidator.GetApplicationConfigParam} arg
|
|
166
204
|
* - Arg object
|
|
@@ -188,6 +226,20 @@ declare class Serviceability {
|
|
|
188
226
|
* @description: This API returns all the Application config that has been applied to the given company and application. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/serviceability/getApplicationConfiguration/).
|
|
189
227
|
*/
|
|
190
228
|
getApplicationConfiguration({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.ApplicationConfigGetResult>;
|
|
229
|
+
/**
|
|
230
|
+
* @param {ServiceabilityPlatformApplicationValidator.GetApplicationCourierPartnersListParam} arg
|
|
231
|
+
* - Arg object
|
|
232
|
+
*
|
|
233
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
234
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
235
|
+
* @returns {Promise<ServiceabilityPlatformModel.GenerateShipmentsAndCourierPartnerResult>}
|
|
236
|
+
* - Success response
|
|
237
|
+
*
|
|
238
|
+
* @name getApplicationCourierPartnersList
|
|
239
|
+
* @summary: Get available application courier partners
|
|
240
|
+
* @description: Retrieves a list of courier partners available for shipping based on serviceability criteria, shipment details, and delivery rules. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/serviceability/getApplicationCourierPartnersList/).
|
|
241
|
+
*/
|
|
242
|
+
getApplicationCourierPartnersList({ body, requestHeaders }?: ServiceabilityPlatformApplicationValidator.GetApplicationCourierPartnersListParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.GenerateShipmentsAndCourierPartnerResult>;
|
|
191
243
|
/**
|
|
192
244
|
* @param {ServiceabilityPlatformApplicationValidator.GetBulkExportParam} arg
|
|
193
245
|
* - Arg object
|
|
@@ -363,6 +415,20 @@ declare class Serviceability {
|
|
|
363
415
|
* @description: Retrieves a listing view of created GeoAreas. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/serviceability/getGeoAreas/).
|
|
364
416
|
*/
|
|
365
417
|
getGeoAreas({ pageSize, isActive, pageNo, type, q, countryIsoCode, state, city, pincode, sector, requestHeaders, }?: ServiceabilityPlatformApplicationValidator.GetGeoAreasParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.GeoAreaGetResponseBody>;
|
|
418
|
+
/**
|
|
419
|
+
* @param {ServiceabilityPlatformApplicationValidator.GetPolygonParam} arg
|
|
420
|
+
* - Arg object
|
|
421
|
+
*
|
|
422
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
423
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
424
|
+
* @returns {Promise<ServiceabilityPlatformModel.StorePolygonServiceabilityGetResult>}
|
|
425
|
+
* - Success response
|
|
426
|
+
*
|
|
427
|
+
* @name getPolygon
|
|
428
|
+
* @summary: Get polygon-based serviceability for stores
|
|
429
|
+
* @description: Retrieves polygon-based serviceability configurations for stores for quick commerce. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/serviceability/getPolygon/).
|
|
430
|
+
*/
|
|
431
|
+
getPolygon({ pageNumber, pageSize, requestHeaders }?: ServiceabilityPlatformApplicationValidator.GetPolygonParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.StorePolygonServiceabilityGetResult>;
|
|
366
432
|
/**
|
|
367
433
|
* @param {ServiceabilityPlatformApplicationValidator.GetStoreRuleParam} arg
|
|
368
434
|
* - Arg object
|
|
@@ -400,6 +466,20 @@ declare class Serviceability {
|
|
|
400
466
|
* @description: Retrieves a single delivery zone - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/serviceability/getZone/).
|
|
401
467
|
*/
|
|
402
468
|
getZone({ zoneId, requestHeaders }?: ServiceabilityPlatformApplicationValidator.GetZoneParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.GetZoneByIdSchema>;
|
|
469
|
+
/**
|
|
470
|
+
* @param {ServiceabilityPlatformApplicationValidator.GetZoneProductsBulkPatchJobStatusParam} arg
|
|
471
|
+
* - Arg object
|
|
472
|
+
*
|
|
473
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
474
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
475
|
+
* @returns {Promise<ServiceabilityPlatformModel.GetZoneProductsBulkPatchResult>}
|
|
476
|
+
* - Success response
|
|
477
|
+
*
|
|
478
|
+
* @name getZoneProductsBulkPatchJobStatus
|
|
479
|
+
* @summary: Get bulk zone products patch job status
|
|
480
|
+
* @description: Retrieves the status and details of a specific bulk zone products patch job by its batch identifier. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/serviceability/getZoneProductsBulkPatchJobStatus/).
|
|
481
|
+
*/
|
|
482
|
+
getZoneProductsBulkPatchJobStatus({ batchId, requestHeaders }?: ServiceabilityPlatformApplicationValidator.GetZoneProductsBulkPatchJobStatusParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.GetZoneProductsBulkPatchResult>;
|
|
403
483
|
/**
|
|
404
484
|
* @param {ServiceabilityPlatformApplicationValidator.GetZonesParam} arg - Arg object
|
|
405
485
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -556,6 +636,20 @@ declare class Serviceability {
|
|
|
556
636
|
* @description: Modify and update views related to pincode MOP (Mode of Payment). - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/serviceability/updatePincodeMopView/).
|
|
557
637
|
*/
|
|
558
638
|
updatePincodeMopView({ body, requestHeaders }?: ServiceabilityPlatformApplicationValidator.UpdatePincodeMopViewParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.PincodeMOPResult>;
|
|
639
|
+
/**
|
|
640
|
+
* @param {ServiceabilityPlatformApplicationValidator.UpdatePolygonParam} arg
|
|
641
|
+
* - Arg object
|
|
642
|
+
*
|
|
643
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
644
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
645
|
+
* @returns {Promise<ServiceabilityPlatformModel.StorePolygonServiceabilityResult>}
|
|
646
|
+
* - Success response
|
|
647
|
+
*
|
|
648
|
+
* @name updatePolygon
|
|
649
|
+
* @summary: Update polygon-based serviceability for stores
|
|
650
|
+
* @description: Updates polygon-based serviceability regions for one or more stores for quick commerce. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/serviceability/updatePolygon/).
|
|
651
|
+
*/
|
|
652
|
+
updatePolygon({ body, requestHeaders }?: ServiceabilityPlatformApplicationValidator.UpdatePolygonParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.StorePolygonServiceabilityResult>;
|
|
559
653
|
/**
|
|
560
654
|
* @param {ServiceabilityPlatformApplicationValidator.UpdateStoreRulePriorityParam} arg
|
|
561
655
|
* - Arg object
|