@gofynd/fdk-client-javascript 3.22.0 → 3.23.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 +2 -2
- package/sdk/application/Cart/CartApplicationClient.js +5 -2
- 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 +1364 -192
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +941 -159
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +10 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +12 -0
package/README.md
CHANGED
|
@@ -234,7 +234,7 @@ console.log("Active Theme: ", response.information.name);
|
|
|
234
234
|
The above code will log the curl command in the console
|
|
235
235
|
|
|
236
236
|
```bash
|
|
237
|
-
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.
|
|
237
|
+
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.23.0' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
|
|
238
238
|
Active Theme: Emerge
|
|
239
239
|
```
|
|
240
240
|
|
package/package.json
CHANGED
|
@@ -217,9 +217,9 @@ declare class Cart {
|
|
|
217
217
|
* @returns {Promise<EligibleProductsResult>} - Success response
|
|
218
218
|
* @name getProductsByOfferId
|
|
219
219
|
* @summary: List eligible offer products
|
|
220
|
-
* @description: List all products eligible for the given offer
|
|
220
|
+
* @description: List all products eligible for the given offer. Lookup can be done by offer_code (takes priority) or offer_id. At least one must be provided. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/getProductsByOfferId/).
|
|
221
221
|
*/
|
|
222
|
-
getProductsByOfferId({ offerId, page, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<EligibleProductsResult>;
|
|
222
|
+
getProductsByOfferId({ offerCode, offerId, page, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<EligibleProductsResult>;
|
|
223
223
|
/**
|
|
224
224
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
225
225
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -934,13 +934,16 @@ class Cart {
|
|
|
934
934
|
* @returns {Promise<EligibleProductsResult>} - Success response
|
|
935
935
|
* @name getProductsByOfferId
|
|
936
936
|
* @summary: List eligible offer products
|
|
937
|
-
* @description: List all products eligible for the given offer
|
|
937
|
+
* @description: List all products eligible for the given offer. Lookup can be done by offer_code (takes priority) or offer_id. At least one must be provided. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/getProductsByOfferId/).
|
|
938
938
|
*/
|
|
939
939
|
async getProductsByOfferId(
|
|
940
|
-
{ offerId, page, pageSize, requestHeaders } = {
|
|
940
|
+
{ offerCode, offerId, page, pageSize, requestHeaders } = {
|
|
941
|
+
requestHeaders: {},
|
|
942
|
+
},
|
|
941
943
|
{ responseHeaders } = { responseHeaders: false }
|
|
942
944
|
) {
|
|
943
945
|
const query_params = {};
|
|
946
|
+
query_params["offer_code"] = offerCode;
|
|
944
947
|
query_params["offer_id"] = offerId;
|
|
945
948
|
query_params["page"] = page;
|
|
946
949
|
query_params["page_size"] = pageSize;
|
|
@@ -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
|