@gofynd/fdk-client-javascript 1.6.1 → 1.6.3

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 CHANGED
@@ -237,7 +237,7 @@ console.log("Active Theme: ", response.information.name);
237
237
  The above code will log the curl command in the console
238
238
 
239
239
  ```bash
240
- curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.6.1' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
240
+ curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.6.3' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
241
241
  Active Theme: Emerge
242
242
  ```
243
243
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gofynd/fdk-client-javascript",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -401,7 +401,7 @@ declare class Order {
401
401
  * @summary: List shipments
402
402
  * @description: Get a list of shipments based on the filters provided - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipments/).
403
403
  */
404
- getShipments({ lane, bagStatus, statusOverrideLane, timeToDispatch, searchType, searchValue, fromDate, toDate, startDate, endDate, dpIds, stores, salesChannels, pageNo, pageSize, fetchActiveShipment, allowInactive, excludeLockedShipments, paymentMethods, channelShipmentId, channelOrderId, customMeta, orderingChannel, companyAffiliateTag, myOrders, platformUserId, sortType, showCrossCompanyData, tags, customerId, orderType, groupEntity, enforceDateFilter, fulfillmentType, requestHeaders, }?: OrderPlatformValidator.GetShipmentsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>;
404
+ getShipments({ lane, bagStatus, statusAssigned, statusOverrideLane, timeToDispatch, searchType, searchValue, fromDate, toDate, startDate, endDate, statusAssignedStartDate, statusAssignedEndDate, dpIds, stores, salesChannels, pageNo, pageSize, fetchActiveShipment, allowInactive, excludeLockedShipments, paymentMethods, channelShipmentId, channelOrderId, customMeta, orderingChannel, companyAffiliateTag, myOrders, platformUserId, sortType, showCrossCompanyData, tags, customerId, orderType, groupEntity, enforceDateFilter, fulfillmentType, requestHeaders, }?: OrderPlatformValidator.GetShipmentsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>;
405
405
  /**
406
406
  * @param {OrderPlatformValidator.GetStateManagerConfigParam} arg - Arg object
407
407
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -3337,6 +3337,7 @@ class Order {
3337
3337
  {
3338
3338
  lane,
3339
3339
  bagStatus,
3340
+ statusAssigned,
3340
3341
  statusOverrideLane,
3341
3342
  timeToDispatch,
3342
3343
  searchType,
@@ -3345,6 +3346,8 @@ class Order {
3345
3346
  toDate,
3346
3347
  startDate,
3347
3348
  endDate,
3349
+ statusAssignedStartDate,
3350
+ statusAssignedEndDate,
3348
3351
  dpIds,
3349
3352
  stores,
3350
3353
  salesChannels,
@@ -3377,6 +3380,7 @@ class Order {
3377
3380
  {
3378
3381
  lane,
3379
3382
  bagStatus,
3383
+ statusAssigned,
3380
3384
  statusOverrideLane,
3381
3385
  timeToDispatch,
3382
3386
  searchType,
@@ -3385,6 +3389,8 @@ class Order {
3385
3389
  toDate,
3386
3390
  startDate,
3387
3391
  endDate,
3392
+ statusAssignedStartDate,
3393
+ statusAssignedEndDate,
3388
3394
  dpIds,
3389
3395
  stores,
3390
3396
  salesChannels,
@@ -3421,6 +3427,7 @@ class Order {
3421
3427
  {
3422
3428
  lane,
3423
3429
  bagStatus,
3430
+ statusAssigned,
3424
3431
  statusOverrideLane,
3425
3432
  timeToDispatch,
3426
3433
  searchType,
@@ -3429,6 +3436,8 @@ class Order {
3429
3436
  toDate,
3430
3437
  startDate,
3431
3438
  endDate,
3439
+ statusAssignedStartDate,
3440
+ statusAssignedEndDate,
3432
3441
  dpIds,
3433
3442
  stores,
3434
3443
  salesChannels,
@@ -3466,6 +3475,7 @@ class Order {
3466
3475
  const query_params = {};
3467
3476
  query_params["lane"] = lane;
3468
3477
  query_params["bag_status"] = bagStatus;
3478
+ query_params["status_assigned"] = statusAssigned;
3469
3479
  query_params["status_override_lane"] = statusOverrideLane;
3470
3480
  query_params["time_to_dispatch"] = timeToDispatch;
3471
3481
  query_params["search_type"] = searchType;
@@ -3474,6 +3484,8 @@ class Order {
3474
3484
  query_params["to_date"] = toDate;
3475
3485
  query_params["start_date"] = startDate;
3476
3486
  query_params["end_date"] = endDate;
3487
+ query_params["status_assigned_start_date"] = statusAssignedStartDate;
3488
+ query_params["status_assigned_end_date"] = statusAssignedEndDate;
3477
3489
  query_params["dp_ids"] = dpIds;
3478
3490
  query_params["stores"] = stores;
3479
3491
  query_params["sales_channels"] = salesChannels;
@@ -2629,7 +2629,7 @@ export = OrderPlatformModel;
2629
2629
  * @property {string} [last_name] - The last name of the user.
2630
2630
  * @property {string} [mobile] - The mobile phone number of the user.
2631
2631
  * @property {string} [email] - The email address of the user.
2632
- * @property {string} [meta] - Additional metadata related to the user.
2632
+ * @property {Object} [meta] - Additional metadata related to the user.
2633
2633
  * @property {boolean} [is_anonymous_user] - Indicates whether the user is an
2634
2634
  * anonymous user (true) or registered (false).
2635
2635
  * @property {string} [name] - A full name of the user, which may be a
@@ -10202,7 +10202,7 @@ type UserDataInfo = {
10202
10202
  /**
10203
10203
  * - Additional metadata related to the user.
10204
10204
  */
10205
- meta?: string;
10205
+ meta?: any;
10206
10206
  /**
10207
10207
  * - Indicates whether the user is an
10208
10208
  * anonymous user (true) or registered (false).
@@ -2867,7 +2867,7 @@ const Joi = require("joi");
2867
2867
  * @property {string} [last_name] - The last name of the user.
2868
2868
  * @property {string} [mobile] - The mobile phone number of the user.
2869
2869
  * @property {string} [email] - The email address of the user.
2870
- * @property {string} [meta] - Additional metadata related to the user.
2870
+ * @property {Object} [meta] - Additional metadata related to the user.
2871
2871
  * @property {boolean} [is_anonymous_user] - Indicates whether the user is an
2872
2872
  * anonymous user (true) or registered (false).
2873
2873
  * @property {string} [name] - A full name of the user, which may be a
@@ -7924,7 +7924,7 @@ class OrderPlatformModel {
7924
7924
  last_name: Joi.string().allow("").allow(null),
7925
7925
  mobile: Joi.string().allow("").allow(null),
7926
7926
  email: Joi.string().allow("").allow(null),
7927
- meta: Joi.string().allow("").allow(null),
7927
+ meta: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
7928
7928
  is_anonymous_user: Joi.boolean().allow(null),
7929
7929
  name: Joi.string().allow("").allow(null),
7930
7930
  gender: Joi.string().allow("").allow(null),
@@ -292,6 +292,9 @@ export = OrderPlatformValidator;
292
292
  * @typedef GetShipmentsParam
293
293
  * @property {string} [lane] - Name of lane for which data is to be fetched
294
294
  * @property {string} [bagStatus] - Comma separated values of bag statuses.
295
+ * @property {string} [statusAssigned] - Used to filter shipments based on
296
+ * status present in shipment_status_history. For more information on these
297
+ * statuses, refer to the Fynd Partners documentation.
295
298
  * @property {boolean} [statusOverrideLane] - Use this flag to fetch by
296
299
  * bag_status and override lane.
297
300
  * @property {number} [timeToDispatch] - Indicates the time to dispatch.
@@ -305,6 +308,15 @@ export = OrderPlatformValidator;
305
308
  * (YYYY-MM-DDTHH:MM:SSZ) for filtering results.
306
309
  * @property {string} [endDate] - The UTC end date in ISO format
307
310
  * (YYYY-MM-DDTHH:MM:SSZ) for filtering results.
311
+ * @property {string} [statusAssignedStartDate] - Specifies the starting UTC
312
+ * date and time (in ISO format, YYYY-MM-DDTHH:MM:SSZ) to define the lower
313
+ * boundary for filtering shipments based on the `created_at` timestamp of
314
+ * statuses in the shipment's status history. It allows filtering statuses
315
+ * that were created within a specific time range.
316
+ * @property {string} [statusAssignedEndDate] - Specifies the ending UTC date
317
+ * and time (in ISO format, YYYY-MM-DDTHH:MM:SSZ) to define the upper boundary
318
+ * for filtering shipments based on the `created_at` timestamp of statuses in
319
+ * the shipment's status history.
308
320
  * @property {string} [dpIds] - A comma-separated list of delivery partner IDs
309
321
  * to filter results by specific delivery partners.
310
322
  * @property {string} [stores] - A comma-separated list of store IDs used to
@@ -1150,6 +1162,12 @@ type GetShipmentsParam = {
1150
1162
  * - Comma separated values of bag statuses.
1151
1163
  */
1152
1164
  bagStatus?: string;
1165
+ /**
1166
+ * - Used to filter shipments based on
1167
+ * status present in shipment_status_history. For more information on these
1168
+ * statuses, refer to the Fynd Partners documentation.
1169
+ */
1170
+ statusAssigned?: string;
1153
1171
  /**
1154
1172
  * - Use this flag to fetch by
1155
1173
  * bag_status and override lane.
@@ -1187,6 +1205,21 @@ type GetShipmentsParam = {
1187
1205
  * (YYYY-MM-DDTHH:MM:SSZ) for filtering results.
1188
1206
  */
1189
1207
  endDate?: string;
1208
+ /**
1209
+ * - Specifies the starting UTC
1210
+ * date and time (in ISO format, YYYY-MM-DDTHH:MM:SSZ) to define the lower
1211
+ * boundary for filtering shipments based on the `created_at` timestamp of
1212
+ * statuses in the shipment's status history. It allows filtering statuses
1213
+ * that were created within a specific time range.
1214
+ */
1215
+ statusAssignedStartDate?: string;
1216
+ /**
1217
+ * - Specifies the ending UTC date
1218
+ * and time (in ISO format, YYYY-MM-DDTHH:MM:SSZ) to define the upper boundary
1219
+ * for filtering shipments based on the `created_at` timestamp of statuses in
1220
+ * the shipment's status history.
1221
+ */
1222
+ statusAssignedEndDate?: string;
1190
1223
  /**
1191
1224
  * - A comma-separated list of delivery partner IDs
1192
1225
  * to filter results by specific delivery partners.
@@ -331,6 +331,9 @@ const OrderPlatformModel = require("./OrderPlatformModel");
331
331
  * @typedef GetShipmentsParam
332
332
  * @property {string} [lane] - Name of lane for which data is to be fetched
333
333
  * @property {string} [bagStatus] - Comma separated values of bag statuses.
334
+ * @property {string} [statusAssigned] - Used to filter shipments based on
335
+ * status present in shipment_status_history. For more information on these
336
+ * statuses, refer to the Fynd Partners documentation.
334
337
  * @property {boolean} [statusOverrideLane] - Use this flag to fetch by
335
338
  * bag_status and override lane.
336
339
  * @property {number} [timeToDispatch] - Indicates the time to dispatch.
@@ -344,6 +347,15 @@ const OrderPlatformModel = require("./OrderPlatformModel");
344
347
  * (YYYY-MM-DDTHH:MM:SSZ) for filtering results.
345
348
  * @property {string} [endDate] - The UTC end date in ISO format
346
349
  * (YYYY-MM-DDTHH:MM:SSZ) for filtering results.
350
+ * @property {string} [statusAssignedStartDate] - Specifies the starting UTC
351
+ * date and time (in ISO format, YYYY-MM-DDTHH:MM:SSZ) to define the lower
352
+ * boundary for filtering shipments based on the `created_at` timestamp of
353
+ * statuses in the shipment's status history. It allows filtering statuses
354
+ * that were created within a specific time range.
355
+ * @property {string} [statusAssignedEndDate] - Specifies the ending UTC date
356
+ * and time (in ISO format, YYYY-MM-DDTHH:MM:SSZ) to define the upper boundary
357
+ * for filtering shipments based on the `created_at` timestamp of statuses in
358
+ * the shipment's status history.
347
359
  * @property {string} [dpIds] - A comma-separated list of delivery partner IDs
348
360
  * to filter results by specific delivery partners.
349
361
  * @property {string} [stores] - A comma-separated list of store IDs used to
@@ -856,6 +868,7 @@ class OrderPlatformValidator {
856
868
  return Joi.object({
857
869
  lane: Joi.string().allow(""),
858
870
  bagStatus: Joi.string().allow(""),
871
+ statusAssigned: Joi.string().allow(""),
859
872
  statusOverrideLane: Joi.boolean(),
860
873
  timeToDispatch: Joi.number(),
861
874
  searchType: Joi.string().allow(""),
@@ -864,6 +877,8 @@ class OrderPlatformValidator {
864
877
  toDate: Joi.string().allow(""),
865
878
  startDate: Joi.string().allow(""),
866
879
  endDate: Joi.string().allow(""),
880
+ statusAssignedStartDate: Joi.string().allow(""),
881
+ statusAssignedEndDate: Joi.string().allow(""),
867
882
  dpIds: Joi.string().allow(""),
868
883
  stores: Joi.string().allow(""),
869
884
  salesChannels: Joi.string().allow(""),