@gofynd/fdk-client-javascript 1.4.12 → 1.4.13

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.
Files changed (29) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/sdk/application/Content/ContentApplicationModel.d.ts +3 -2
  4. package/sdk/application/Content/ContentApplicationModel.js +5 -2
  5. package/sdk/application/Theme/ThemeApplicationModel.d.ts +3 -2
  6. package/sdk/application/Theme/ThemeApplicationModel.js +5 -2
  7. package/sdk/common/Clickstream.js +12 -0
  8. package/sdk/common/Constant.d.ts +5 -0
  9. package/sdk/common/Constant.js +5 -0
  10. package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -2
  11. package/sdk/partner/Theme/ThemePartnerModel.js +5 -2
  12. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +38 -35
  13. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +42 -39
  14. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -23
  15. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +14 -12
  16. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
  17. package/sdk/platform/Catalog/CatalogPlatformClient.js +2 -2
  18. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1107 -232
  19. package/sdk/platform/Catalog/CatalogPlatformModel.js +466 -224
  20. package/sdk/platform/Content/ContentPlatformModel.d.ts +3 -2
  21. package/sdk/platform/Content/ContentPlatformModel.js +5 -2
  22. package/sdk/platform/Order/OrderPlatformClient.d.ts +5 -49
  23. package/sdk/platform/Order/OrderPlatformClient.js +32 -328
  24. package/sdk/platform/Order/OrderPlatformModel.d.ts +2638 -1394
  25. package/sdk/platform/Order/OrderPlatformModel.js +1068 -1387
  26. package/sdk/platform/Order/OrderPlatformValidator.d.ts +142 -110
  27. package/sdk/platform/Order/OrderPlatformValidator.js +64 -91
  28. package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -2
  29. package/sdk/platform/Theme/ThemePlatformModel.js +5 -2
@@ -14,18 +14,20 @@ const OrderPlatformModel = require("./OrderPlatformModel");
14
14
 
15
15
  /**
16
16
  * @typedef BulkListingParam
17
- * @property {number} pageSize - Page size
18
- * @property {number} pageNo - Page number
19
- * @property {string} startDate - UTC start date in ISO format
20
- * @property {string} endDate - UTC end date in ISO format
21
- * @property {string} [status] - Status for which to fetch the jobs.
22
- * @property {string} [bulkActionType] - Job type.
23
- * @property {string} [searchKey] - Search_key.
17
+ * @property {number} pageSize - The number of records to return per page in the response.
18
+ * @property {number} pageNo - The page number to fetch from the paginated results.
19
+ * @property {string} startDate - The start date for filtering the jobs,
20
+ * expressed in UTC format
21
+ * @property {string} endDate - The end date for filtering the jobs, expressed
22
+ * in UTC format
23
+ * @property {string} [status] - The status of the jobs to filter the results.
24
+ * @property {string} [bulkActionType] - Pecifies the type of job action being requested.
25
+ * @property {string} [searchKey] - A key or keyword used to search for specific jobs.
24
26
  */
25
27
 
26
28
  /**
27
29
  * @typedef BulkStateTransistionParam
28
- * @property {OrderPlatformModel.BulkStateTransistionRequest} body
30
+ * @property {OrderPlatformModel.BulkStateTransistionRequestSchema} body
29
31
  */
30
32
 
31
33
  /**
@@ -33,11 +35,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
33
35
  * @property {OrderPlatformModel.OrderStatus} body
34
36
  */
35
37
 
36
- /**
37
- * @typedef CreateChannelConfigParam
38
- * @property {OrderPlatformModel.CreateChannelConfigData} body
39
- */
40
-
41
38
  /**
42
39
  * @typedef CreateOrderParam
43
40
  * @property {OrderPlatformModel.CreateOrderAPI} body
@@ -68,11 +65,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
68
65
  * @property {string} logId - Log Error ID
69
66
  */
70
67
 
71
- /**
72
- * @typedef FetchCreditBalanceDetailParam
73
- * @property {OrderPlatformModel.FetchCreditBalanceRequestPayload} body
74
- */
75
-
76
68
  /**
77
69
  * @typedef FetchRefundModeConfigParam
78
70
  * @property {OrderPlatformModel.RefundModeConfigRequestPayload} body
@@ -81,7 +73,7 @@ const OrderPlatformModel = require("./OrderPlatformModel");
81
73
  /**
82
74
  * @typedef GenerateInvoiceIDParam
83
75
  * @property {string} invoiceType - Mention the type of invoice id to generate
84
- * @property {OrderPlatformModel.GenerateInvoiceIDRequest} body
76
+ * @property {OrderPlatformModel.GenerateInvoiceIDRequestSchema} body
85
77
  */
86
78
 
87
79
  /**
@@ -98,16 +90,16 @@ const OrderPlatformModel = require("./OrderPlatformModel");
98
90
 
99
91
  /**
100
92
  * @typedef GetAllowedStateTransitionParam
101
- * @property {string} orderingChannel - Ordering channel
102
- * @property {string} status - Current status of a shipment
93
+ * @property {string} orderingChannel - The channel through which orders are placed.
94
+ * @property {string} status - The status key indicates the current status for
95
+ * which the API will provide a list of possible next state transitions.
103
96
  */
104
97
 
105
98
  /** @typedef GetAllowedTemplatesForBulkParam */
106
99
 
107
100
  /**
108
101
  * @typedef GetAnnouncementsParam
109
- * @property {string} [date] - Date On which the announcement is Active (Date
110
- * should in ISO Datetime format IST Time)
102
+ * @property {string} [date] - Date On which the announcement is Active.
111
103
  */
112
104
 
113
105
  /**
@@ -148,14 +140,12 @@ const OrderPlatformModel = require("./OrderPlatformModel");
148
140
  * @property {number} [pageSize]
149
141
  */
150
142
 
151
- /** @typedef GetChannelConfigParam */
152
-
153
143
  /**
154
144
  * @typedef GetFileByStatusParam
155
- * @property {string} batchId
156
- * @property {string} status
157
- * @property {string} fileType
158
- * @property {string} [reportType]
145
+ * @property {string} batchId - Batch Id to identify the bulk operation request.
146
+ * @property {string} status - The status of the jobs to filter the results.
147
+ * @property {string} fileType - The type of file to be downloaded.
148
+ * @property {string} [reportType] - The type of report to be downloaded.
159
149
  */
160
150
 
161
151
  /**
@@ -184,21 +174,27 @@ const OrderPlatformModel = require("./OrderPlatformModel");
184
174
 
185
175
  /**
186
176
  * @typedef GetManifestDetailsParam
187
- * @property {string} manifestId
177
+ * @property {string} manifestId - The unique identifier assigned to the manifest.
178
+ * @property {string} [dpIds] - Filter shipments with the specific Courier
179
+ * partner Ids which is a combination of courier partner extension and scheme Ids.
180
+ * @property {string} [endDate] - End date for the shipment search range in manifest.
181
+ * @property {string} [startDate] - Start date for the shipment search range in manifest.
182
+ * @property {number} [pageNo] - Page number for pagination.
183
+ * @property {number} [pageSize] - Number of records per page for pagination.
188
184
  */
189
185
 
190
186
  /**
191
187
  * @typedef GetManifestShipmentsParam
192
188
  * @property {string} dpIds - Filter shipments with the specific Courier partner
193
189
  * Ids which is a combination of courier partner extension and scheme Ids.
194
- * @property {number} stores - Filter with the specific store.
190
+ * @property {number} stores - Filter results based on specific store IDs.
195
191
  * @property {string} toDate - End date for the shipment search range.
196
192
  * @property {string} fromDate - Start date for the shipment search range.
197
- * @property {string} [dpName] - Filter with the specific courier partner name.
198
- * @property {string} [salesChannels] - Comma-separated list of sales channels.
199
- * @property {string} [searchType] - Type of search (e.g., by shipment ID, order
200
- * ID, AWB number).
201
- * @property {string} [searchValue] - Value to search for based on the search type.
193
+ * @property {string} [dpName] - Filter results based on specific courier partner name.
194
+ * @property {string} [salesChannels] - Filter results based on comma-separated
195
+ * list of sales channels.
196
+ * @property {string} [searchType] - Filter results based on search type.
197
+ * @property {string} [searchValue] - Filter results based on the search value.
202
198
  * @property {number} [pageNo] - Page number for pagination.
203
199
  * @property {number} [pageSize] - Number of records per page for pagination.
204
200
  */
@@ -210,16 +206,20 @@ const OrderPlatformModel = require("./OrderPlatformModel");
210
206
 
211
207
  /**
212
208
  * @typedef GetManifestsParam
213
- * @property {string} [status] - Possible Status [ active, closed ]
214
- * @property {string} [startDate] - UTC Start Date in ISO format
215
- * @property {string} [endDate] - UTC End Date in ISO format
216
- * @property {string} [searchType] - Search type options [ fynd_order_id,
217
- * shipment_id, manifest_id, dp_name, awb_no ]
218
- * @property {number} [storeId] - Fetch manifests for a Store.
219
- * @property {string} [searchValue] - Search value for selected search type
220
- * @property {string} [dpIds] - DP Ids separated by ',' (comma)
221
- * @property {number} [pageNo]
222
- * @property {number} [pageSize]
209
+ * @property {string} [status] - Filter for the status of manifests.
210
+ * @property {string} [startDate] - The starting date for filtering manifests in
211
+ * ISO format
212
+ * @property {string} [endDate] - The end date for filtering manifests in ISO format
213
+ * @property {string} [searchType] - Specifies the type of search to perform.
214
+ * @property {number} [storeId] - Filter to fetch manifests for a specific store
215
+ * by its ID.
216
+ * @property {string} [searchValue] - The value to search for based on the
217
+ * selected search type.
218
+ * @property {string} [dpIds] - A comma-separated list of courier partner IDs
219
+ * (DP IDs) to filter the manifests.
220
+ * @property {number} [pageNo] - The number of the page to fetch data.
221
+ * @property {number} [pageSize] - The number of records to return per page for
222
+ * pagination.
223
223
  */
224
224
 
225
225
  /**
@@ -277,8 +277,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
277
277
 
278
278
  /**
279
279
  * @typedef GetShipmentHistoryParam
280
- * @property {string} [shipmentId] - Shipment Id
281
- * @property {number} [bagId] - Bag/Product Id
280
+ * @property {string} [shipmentId] - Identifier for the shipment
281
+ * @property {number} [bagId] - Identifier for a bag or product.
282
282
  */
283
283
 
284
284
  /**
@@ -355,7 +355,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
355
355
 
356
356
  /**
357
357
  * @typedef JobDetailsParam
358
- * @property {string} batchId
358
+ * @property {string} batchId - A unique identifier for the batch associated
359
+ * with this bulk action.
359
360
  */
360
361
 
361
362
  /**
@@ -368,11 +369,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
368
369
  * @property {OrderPlatformModel.PostShipmentHistory} body
369
370
  */
370
371
 
371
- /**
372
- * @typedef ProcessManifestsParam
373
- * @property {OrderPlatformModel.ProcessManifest} body
374
- */
375
-
376
372
  /**
377
373
  * @typedef ReassignLocationParam
378
374
  * @property {OrderPlatformModel.StoreReassign} body
@@ -390,10 +386,10 @@ const OrderPlatformModel = require("./OrderPlatformModel");
390
386
 
391
387
  /**
392
388
  * @typedef TrackShipmentParam
393
- * @property {string} [shipmentId] - Shipment ID
389
+ * @property {string} [shipmentId] - Unique identifier of a shipment on the platform.
394
390
  * @property {string} [awb] - AWB number
395
- * @property {number} [pageNo] - Page number
396
- * @property {number} [pageSize] - Page size
391
+ * @property {number} [pageNo] - Page number for pagination.
392
+ * @property {number} [pageSize] - Number of records per page for pagination.
397
393
  */
398
394
 
399
395
  /**
@@ -424,7 +420,7 @@ const OrderPlatformModel = require("./OrderPlatformModel");
424
420
 
425
421
  /**
426
422
  * @typedef UpdateShipmentStatusParam
427
- * @property {OrderPlatformModel.UpdateShipmentStatusRequest} body
423
+ * @property {OrderPlatformModel.UpdateShipmentStatusRequestSchema} body
428
424
  */
429
425
 
430
426
  /**
@@ -434,8 +430,7 @@ const OrderPlatformModel = require("./OrderPlatformModel");
434
430
 
435
431
  /**
436
432
  * @typedef UploadConsentsParam
437
- * @property {string} manifestId
438
- * @property {OrderPlatformModel.UploadConsent} body
433
+ * @property {OrderPlatformModel.UploadManifestConsent} body
439
434
  */
440
435
 
441
436
  /**
@@ -474,7 +469,7 @@ class OrderPlatformValidator {
474
469
  /** @returns {BulkStateTransistionParam} */
475
470
  static bulkStateTransistion() {
476
471
  return Joi.object({
477
- body: OrderPlatformModel.BulkStateTransistionRequest().required(),
472
+ body: OrderPlatformModel.BulkStateTransistionRequestSchema().required(),
478
473
  }).required();
479
474
  }
480
475
 
@@ -485,13 +480,6 @@ class OrderPlatformValidator {
485
480
  }).required();
486
481
  }
487
482
 
488
- /** @returns {CreateChannelConfigParam} */
489
- static createChannelConfig() {
490
- return Joi.object({
491
- body: OrderPlatformModel.CreateChannelConfigData().required(),
492
- }).required();
493
- }
494
-
495
483
  /** @returns {CreateOrderParam} */
496
484
  static createOrder() {
497
485
  return Joi.object({
@@ -534,13 +522,6 @@ class OrderPlatformValidator {
534
522
  }).required();
535
523
  }
536
524
 
537
- /** @returns {FetchCreditBalanceDetailParam} */
538
- static fetchCreditBalanceDetail() {
539
- return Joi.object({
540
- body: OrderPlatformModel.FetchCreditBalanceRequestPayload().required(),
541
- }).required();
542
- }
543
-
544
525
  /** @returns {FetchRefundModeConfigParam} */
545
526
  static fetchRefundModeConfig() {
546
527
  return Joi.object({
@@ -552,7 +533,7 @@ class OrderPlatformValidator {
552
533
  static generateInvoiceID() {
553
534
  return Joi.object({
554
535
  invoiceType: Joi.string().allow("").required(),
555
- body: OrderPlatformModel.GenerateInvoiceIDRequest().required(),
536
+ body: OrderPlatformModel.GenerateInvoiceIDRequestSchema().required(),
556
537
  }).required();
557
538
  }
558
539
 
@@ -639,11 +620,6 @@ class OrderPlatformValidator {
639
620
  }).required();
640
621
  }
641
622
 
642
- /** @returns {GetChannelConfigParam} */
643
- static getChannelConfig() {
644
- return Joi.object({}).required();
645
- }
646
-
647
623
  /** @returns {GetFileByStatusParam} */
648
624
  static getFileByStatus() {
649
625
  return Joi.object({
@@ -683,6 +659,11 @@ class OrderPlatformValidator {
683
659
  static getManifestDetails() {
684
660
  return Joi.object({
685
661
  manifestId: Joi.string().allow("").required(),
662
+ dpIds: Joi.string().allow(""),
663
+ endDate: Joi.string().allow(""),
664
+ startDate: Joi.string().allow(""),
665
+ pageNo: Joi.number(),
666
+ pageSize: Joi.number(),
686
667
  }).required();
687
668
  }
688
669
 
@@ -888,13 +869,6 @@ class OrderPlatformValidator {
888
869
  }).required();
889
870
  }
890
871
 
891
- /** @returns {ProcessManifestsParam} */
892
- static processManifests() {
893
- return Joi.object({
894
- body: OrderPlatformModel.ProcessManifest().required(),
895
- }).required();
896
- }
897
-
898
872
  /** @returns {ReassignLocationParam} */
899
873
  static reassignLocation() {
900
874
  return Joi.object({
@@ -961,7 +935,7 @@ class OrderPlatformValidator {
961
935
  /** @returns {UpdateShipmentStatusParam} */
962
936
  static updateShipmentStatus() {
963
937
  return Joi.object({
964
- body: OrderPlatformModel.UpdateShipmentStatusRequest().required(),
938
+ body: OrderPlatformModel.UpdateShipmentStatusRequestSchema().required(),
965
939
  }).required();
966
940
  }
967
941
 
@@ -975,8 +949,7 @@ class OrderPlatformValidator {
975
949
  /** @returns {UploadConsentsParam} */
976
950
  static uploadConsents() {
977
951
  return Joi.object({
978
- manifestId: Joi.string().allow("").required(),
979
- body: OrderPlatformModel.UploadConsent().required(),
952
+ body: OrderPlatformModel.UploadManifestConsent().required(),
980
953
  }).required();
981
954
  }
982
955
 
@@ -584,7 +584,8 @@ export = ThemePlatformModel;
584
584
  * | "register"
585
585
  * | "shipping-policy"
586
586
  * | "return-policy"
587
- * | "order-status"} PageType
587
+ * | "order-status"
588
+ * | "locate-us"} PageType
588
589
  */
589
590
  declare class ThemePlatformModel {
590
591
  }
@@ -1617,4 +1618,4 @@ type ActionPage = {
1617
1618
  * @returns {PageType}
1618
1619
  */
1619
1620
  declare function PageType(): PageType;
1620
- type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-emails" | "profile-phones" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status";
1621
+ type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-emails" | "profile-phones" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status" | "locate-us";
@@ -665,7 +665,8 @@ const Joi = require("joi");
665
665
  * | "register"
666
666
  * | "shipping-policy"
667
667
  * | "return-policy"
668
- * | "order-status"} PageType
668
+ * | "order-status"
669
+ * | "locate-us"} PageType
669
670
  */
670
671
 
671
672
  class ThemePlatformModel {
@@ -1551,7 +1552,9 @@ class ThemePlatformModel {
1551
1552
 
1552
1553
  "return-policy",
1553
1554
 
1554
- "order-status"
1555
+ "order-status",
1556
+
1557
+ "locate-us"
1555
1558
  );
1556
1559
  }
1557
1560
  }