@gofynd/fdk-client-javascript 1.4.15-beta.6 → 1.4.16-beta.1

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 (237) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +68 -48
  6. package/sdk/application/Cart/CartApplicationClient.js +130 -27
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +59 -58
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +30 -29
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  10. package/sdk/application/Common/CommonApplicationClient.js +1 -1
  11. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
  12. package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
  13. package/sdk/application/Content/ContentApplicationClient.d.ts +19 -30
  14. package/sdk/application/Content/ContentApplicationClient.js +40 -60
  15. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -7
  17. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  18. package/sdk/application/Finance/FinanceApplicationClient.js +126 -0
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
  20. package/sdk/application/Lead/LeadApplicationClient.js +1 -1
  21. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +35 -15
  22. package/sdk/application/Logistic/LogisticApplicationClient.js +118 -8
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
  24. package/sdk/application/Order/OrderApplicationClient.js +62 -8
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
  26. package/sdk/application/Payment/PaymentApplicationClient.js +65 -46
  27. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  28. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  30. package/sdk/application/Theme/ThemeApplicationClient.js +4 -2
  31. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  32. package/sdk/application/User/UserApplicationClient.js +6 -6
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  35. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  37. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  38. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  39. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  40. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  41. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  42. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  43. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  44. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  45. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  46. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  47. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
  48. package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
  49. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  50. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
  51. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  52. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  53. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  54. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  55. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  56. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  57. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  58. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  59. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  60. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  61. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  62. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  63. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  64. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  65. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  66. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  67. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  68. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  69. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  70. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  71. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  72. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  73. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  74. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  75. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  76. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  77. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  78. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  79. package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
  80. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -65
  81. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
  82. package/sdk/platform/Cart/CartPlatformModel.d.ts +5039 -1300
  83. package/sdk/platform/Cart/CartPlatformModel.js +1976 -1217
  84. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
  85. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
  86. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
  87. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
  88. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
  89. package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
  90. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6941 -2203
  91. package/sdk/platform/Catalog/CatalogPlatformModel.js +3224 -1687
  92. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
  93. package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
  94. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  95. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  96. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  97. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  98. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  99. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  100. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  101. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  102. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  103. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  104. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  105. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  106. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  107. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  108. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  109. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  110. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  111. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  112. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  113. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  114. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  115. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  116. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  117. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  118. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  119. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  120. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  121. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  122. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  123. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  124. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  125. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  126. package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
  127. package/sdk/platform/Content/ContentPlatformModel.js +521 -390
  128. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  129. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  130. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  131. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  132. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  133. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  134. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  136. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  137. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  140. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  141. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  144. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  145. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  146. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  147. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  148. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  149. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  150. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
  151. package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
  152. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
  153. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
  154. package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
  155. package/sdk/platform/Order/OrderPlatformClient.js +416 -198
  156. package/sdk/platform/Order/OrderPlatformModel.d.ts +7602 -1269
  157. package/sdk/platform/Order/OrderPlatformModel.js +3926 -1269
  158. package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
  159. package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
  160. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  161. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  162. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  163. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  164. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  165. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  166. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  167. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  168. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  169. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  170. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
  171. package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
  172. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  173. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  174. package/sdk/platform/PlatformClient.d.ts +0 -2
  175. package/sdk/platform/PlatformClient.js +0 -4
  176. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  177. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  178. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  179. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  180. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  181. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +48 -38
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +134 -43
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +38 -44
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +56 -62
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
  192. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  193. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  194. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  195. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  196. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  197. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  198. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  199. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  200. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  201. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  202. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  203. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  204. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  205. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  206. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  207. package/sdk/platform/User/UserPlatformModel.js +23 -23
  208. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  209. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  210. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  211. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  212. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  213. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  214. package/sdk/platform/index.d.ts +0 -1
  215. package/sdk/platform/index.js +0 -2
  216. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  217. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  218. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  219. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  220. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  221. package/sdk/public/Content/ContentPublicClient.js +895 -8
  222. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  223. package/sdk/public/Content/ContentPublicModel.js +649 -3
  224. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  225. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  226. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  227. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  228. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  229. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  230. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  231. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  232. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  233. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  234. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  235. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  236. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  237. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -18,7 +18,7 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
18
18
  * files(products, orders, logistics etc), Required for validating the data of
19
19
  * the file being uploaded, decides where exactly the file will be stored
20
20
  * inside the storage bucket.
21
- * @property {FileStoragePlatformModel.StartResponse} body
21
+ * @property {FileStoragePlatformModel.FileUpload} body
22
22
  */
23
23
 
24
24
  /**
@@ -29,7 +29,7 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
29
29
 
30
30
  /**
31
31
  * @typedef GetSignUrlsParam
32
- * @property {FileStoragePlatformModel.SignUrlRequest} body
32
+ * @property {FileStoragePlatformModel.SignUrl} body
33
33
  */
34
34
 
35
35
  /**
@@ -43,7 +43,7 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
43
43
  * files(products, orders, logistics etc), Required for validating the data of
44
44
  * the file being uploaded, decides where exactly the file will be stored
45
45
  * inside the storage bucket.
46
- * @property {FileStoragePlatformModel.StartRequest} body
46
+ * @property {FileStoragePlatformModel.FileUploadStart} body
47
47
  */
48
48
 
49
49
  class FileStoragePlatformValidator {
@@ -60,7 +60,7 @@ class FileStoragePlatformValidator {
60
60
  static completeUpload() {
61
61
  return Joi.object({
62
62
  namespace: Joi.string().allow("").required(),
63
- body: FileStoragePlatformModel.StartResponse().required(),
63
+ body: FileStoragePlatformModel.FileUpload().required(),
64
64
  }).required();
65
65
  }
66
66
 
@@ -75,7 +75,7 @@ class FileStoragePlatformValidator {
75
75
  /** @returns {GetSignUrlsParam} */
76
76
  static getSignUrls() {
77
77
  return Joi.object({
78
- body: FileStoragePlatformModel.SignUrlRequest().required(),
78
+ body: FileStoragePlatformModel.SignUrl().required(),
79
79
  }).required();
80
80
  }
81
81
 
@@ -90,7 +90,7 @@ class FileStoragePlatformValidator {
90
90
  static startUpload() {
91
91
  return Joi.object({
92
92
  namespace: Joi.string().allow("").required(),
93
- body: FileStoragePlatformModel.StartRequest().required(),
93
+ body: FileStoragePlatformModel.FileUploadStart().required(),
94
94
  }).required();
95
95
  }
96
96
  }
@@ -46,12 +46,12 @@ declare class Lead {
46
46
  * @param {LeadPlatformValidator.GetGeneralConfigParam} arg - Arg object
47
47
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
48
48
  * @param {import("../PlatformAPIClient").Options} - Options
49
- * @returns {Promise<LeadPlatformModel.GeneralConfigResponse>} - Success response
49
+ * @returns {Promise<LeadPlatformModel.GeneralConfigDetails>} - Success response
50
50
  * @name getGeneralConfig
51
51
  * @summary: Get general configuration
52
52
  * @description: Get general configuration settings related to support system for company tickets - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getGeneralConfig/).
53
53
  */
54
- getGeneralConfig({ requestHeaders }?: any, { responseHeaders }?: object): Promise<LeadPlatformModel.GeneralConfigResponse>;
54
+ getGeneralConfig({ requestHeaders }?: any, { responseHeaders }?: object): Promise<LeadPlatformModel.GeneralConfigDetails>;
55
55
  /**
56
56
  * @param {LeadPlatformValidator.GetPlatformTicketParam} arg - Arg object
57
57
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -336,7 +336,7 @@ class Lead {
336
336
  * @param {LeadPlatformValidator.GetGeneralConfigParam} arg - Arg object
337
337
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
338
338
  * @param {import("../PlatformAPIClient").Options} - Options
339
- * @returns {Promise<LeadPlatformModel.GeneralConfigResponse>} - Success response
339
+ * @returns {Promise<LeadPlatformModel.GeneralConfigDetails>} - Success response
340
340
  * @name getGeneralConfig
341
341
  * @summary: Get general configuration
342
342
  * @description: Get general configuration settings related to support system for company tickets - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getGeneralConfig/).
@@ -388,7 +388,7 @@ class Lead {
388
388
 
389
389
  const {
390
390
  error: res_error,
391
- } = LeadPlatformModel.GeneralConfigResponse().validate(responseData, {
391
+ } = LeadPlatformModel.GeneralConfigDetails().validate(responseData, {
392
392
  abortEarly: false,
393
393
  allowUnknown: true,
394
394
  });
@@ -1,6 +1,6 @@
1
1
  export = LeadPlatformModel;
2
2
  /**
3
- * @typedef GeneralConfigResponse
3
+ * @typedef GeneralConfigDetails
4
4
  * @property {string} [_id]
5
5
  * @property {SupportCommunicationSchema[]} [support_communication]
6
6
  * @property {boolean} [show_communication_info]
@@ -288,11 +288,11 @@ export = LeadPlatformModel;
288
288
  declare class LeadPlatformModel {
289
289
  }
290
290
  declare namespace LeadPlatformModel {
291
- export { GeneralConfigResponse, SupportCommunicationSchema, SupportSchema, GeneralConfigIntegrationSchema, TicketList, Page, TicketHistoryList, CustomFormList, CreateCustomFormPayload, EditCustomFormPayload, EditTicketPayload, AgentChangePayload, Filter, TicketHistoryPayload, TicketContext, CreatedOn, TicketAsset, TicketContent, AddTicketPayload, Priority, SLA, Status, TicketFeedbackList, TicketFeedbackPayload, SubmitButton, PollForAssignment, CustomForm, FeedbackForm, TicketCategory, FeedbackResponseItem, TicketFeedback, TicketHistory, Ticket, ErrorMessage, PriorityEnum, HistoryTypeEnum, TicketAssetTypeEnum, TicketSourceEnum };
291
+ export { GeneralConfigDetails, SupportCommunicationSchema, SupportSchema, GeneralConfigIntegrationSchema, TicketList, Page, TicketHistoryList, CustomFormList, CreateCustomFormPayload, EditCustomFormPayload, EditTicketPayload, AgentChangePayload, Filter, TicketHistoryPayload, TicketContext, CreatedOn, TicketAsset, TicketContent, AddTicketPayload, Priority, SLA, Status, TicketFeedbackList, TicketFeedbackPayload, SubmitButton, PollForAssignment, CustomForm, FeedbackForm, TicketCategory, FeedbackResponseItem, TicketFeedback, TicketHistory, Ticket, ErrorMessage, PriorityEnum, HistoryTypeEnum, TicketAssetTypeEnum, TicketSourceEnum };
292
292
  }
293
- /** @returns {GeneralConfigResponse} */
294
- declare function GeneralConfigResponse(): GeneralConfigResponse;
295
- type GeneralConfigResponse = {
293
+ /** @returns {GeneralConfigDetails} */
294
+ declare function GeneralConfigDetails(): GeneralConfigDetails;
295
+ type GeneralConfigDetails = {
296
296
  _id?: string;
297
297
  support_communication?: SupportCommunicationSchema[];
298
298
  show_communication_info?: boolean;
@@ -1,7 +1,7 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef GeneralConfigResponse
4
+ * @typedef GeneralConfigDetails
5
5
  * @property {string} [_id]
6
6
  * @property {SupportCommunicationSchema[]} [support_communication]
7
7
  * @property {boolean} [show_communication_info]
@@ -325,8 +325,8 @@ const Joi = require("joi");
325
325
  /** @typedef {"platform_panel" | "sales_channel"} TicketSourceEnum */
326
326
 
327
327
  class LeadPlatformModel {
328
- /** @returns {GeneralConfigResponse} */
329
- static GeneralConfigResponse() {
328
+ /** @returns {GeneralConfigDetails} */
329
+ static GeneralConfigDetails() {
330
330
  return Joi.object({
331
331
  _id: Joi.string().allow(""),
332
332
  support_communication: Joi.array().items(
@@ -474,7 +474,7 @@ class LeadPlatformModel {
474
474
  /** @returns {TicketHistoryPayload} */
475
475
  static TicketHistoryPayload() {
476
476
  return Joi.object({
477
- value: Joi.any().required(),
477
+ value: Joi.object().pattern(/\S/, Joi.any()).required(),
478
478
  type: LeadPlatformModel.HistoryTypeEnum().required(),
479
479
  });
480
480
  }
@@ -515,12 +515,12 @@ class LeadPlatformModel {
515
515
  /** @returns {AddTicketPayload} */
516
516
  static AddTicketPayload() {
517
517
  return Joi.object({
518
- created_by: Joi.any(),
518
+ created_by: Joi.object().pattern(/\S/, Joi.any()),
519
519
  status: Joi.string().allow(""),
520
520
  priority: LeadPlatformModel.PriorityEnum(),
521
521
  category: Joi.string().allow("").required(),
522
522
  content: LeadPlatformModel.TicketContent().required(),
523
- _custom_json: Joi.any(),
523
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
524
524
  });
525
525
  }
526
526
 
@@ -559,7 +559,7 @@ class LeadPlatformModel {
559
559
  /** @returns {TicketFeedbackPayload} */
560
560
  static TicketFeedbackPayload() {
561
561
  return Joi.object({
562
- form_response: Joi.any(),
562
+ form_response: Joi.object().pattern(/\S/, Joi.any()),
563
563
  });
564
564
  }
565
565
 
@@ -605,9 +605,9 @@ class LeadPlatformModel {
605
605
  /** @returns {FeedbackForm} */
606
606
  static FeedbackForm() {
607
607
  return Joi.object({
608
- inputs: Joi.any(),
608
+ inputs: Joi.object().pattern(/\S/, Joi.any()),
609
609
  title: Joi.string().allow(""),
610
- timestamps: Joi.any(),
610
+ timestamps: Joi.object().pattern(/\S/, Joi.any()),
611
611
  });
612
612
  }
613
613
 
@@ -641,7 +641,7 @@ class LeadPlatformModel {
641
641
  .items(LeadPlatformModel.FeedbackResponseItem())
642
642
  .required(),
643
643
  category: Joi.string().allow(""),
644
- user: Joi.any(),
644
+ user: Joi.object().pattern(/\S/, Joi.any()),
645
645
  updated_at: Joi.string().allow(""),
646
646
  created_at: Joi.string().allow(""),
647
647
  });
@@ -651,10 +651,10 @@ class LeadPlatformModel {
651
651
  static TicketHistory() {
652
652
  return Joi.object({
653
653
  type: Joi.string().allow("").required(),
654
- value: Joi.any().required(),
654
+ value: Joi.object().pattern(/\S/, Joi.any()).required(),
655
655
  ticket_id: Joi.string().allow("").required(),
656
656
  created_on: LeadPlatformModel.CreatedOn(),
657
- created_by: Joi.any(),
657
+ created_by: Joi.object().pattern(/\S/, Joi.any()),
658
658
  _id: Joi.string().allow("").required(),
659
659
  updated_at: Joi.string().allow(""),
660
660
  created_at: Joi.string().allow(""),
@@ -674,12 +674,12 @@ class LeadPlatformModel {
674
674
  status: LeadPlatformModel.Status().required(),
675
675
  priority: LeadPlatformModel.Priority().required(),
676
676
  sla: LeadPlatformModel.SLA(),
677
- created_by: Joi.any(),
678
- assigned_to: Joi.any(),
677
+ created_by: Joi.object().pattern(/\S/, Joi.any()),
678
+ assigned_to: Joi.object().pattern(/\S/, Joi.any()),
679
679
  tags: Joi.array().items(Joi.string().allow("")),
680
- _custom_json: Joi.any(),
680
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
681
681
  is_feedback_pending: Joi.boolean(),
682
- integration: Joi.any(),
682
+ integration: Joi.object().pattern(/\S/, Joi.any()),
683
683
  _id: Joi.string().allow("").required(),
684
684
  updated_at: Joi.string().allow(""),
685
685
  created_at: Joi.string().allow(""),
@@ -19,26 +19,37 @@ declare class Order {
19
19
  *
20
20
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
21
21
  * @param {import("../PlatformAPIClient").Options} - Options
22
- * @returns {Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponse>}
22
+ * @returns {Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>}
23
23
  * - Success response
24
24
  *
25
25
  * @name getApplicationShipments
26
26
  * @summary: List sales channel shipments
27
27
  * @description: Get shipments of a particular sales channel based on the filters provided - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getApplicationShipments/).
28
28
  */
29
- getApplicationShipments({ lane, searchType, searchId, fromDate, toDate, dpIds, orderingCompanyId, stores, salesChannel, requestByExt, pageNo, pageSize, customerId, isPrioritySort, excludeLockedShipments, requestHeaders, }?: OrderPlatformApplicationValidator.GetApplicationShipmentsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponse>;
29
+ getApplicationShipments({ lane, searchType, searchId, fromDate, toDate, dpIds, orderingCompanyId, stores, salesChannel, requestByExt, pageNo, pageSize, customerId, isPrioritySort, excludeLockedShipments, requestHeaders, }?: OrderPlatformApplicationValidator.GetApplicationShipmentsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>;
30
30
  /**
31
31
  * @param {OrderPlatformApplicationValidator.GetPlatformShipmentReasonsParam} arg
32
32
  * - Arg object
33
33
  *
34
34
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
35
35
  * @param {import("../PlatformAPIClient").Options} - Options
36
- * @returns {Promise<OrderPlatformModel.ShipmentReasonsResponse>} - Success response
36
+ * @returns {Promise<OrderPlatformModel.ShipmentReasonsResponseSchema>} -
37
+ * Success response
37
38
  * @name getPlatformShipmentReasons
38
39
  * @summary: List shipment cancellation reasons
39
40
  * @description: Get reasons to perform full or partial cancellation of a shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getPlatformShipmentReasons/).
40
41
  */
41
- getPlatformShipmentReasons({ action, requestHeaders }?: OrderPlatformApplicationValidator.GetPlatformShipmentReasonsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentReasonsResponse>;
42
+ getPlatformShipmentReasons({ action, requestHeaders }?: OrderPlatformApplicationValidator.GetPlatformShipmentReasonsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentReasonsResponseSchema>;
43
+ /**
44
+ * @param {OrderPlatformApplicationValidator.GetRulesParam} arg - Arg object
45
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
46
+ * @param {import("../PlatformAPIClient").Options} - Options
47
+ * @returns {Promise<OrderPlatformModel.RuleListResponseSchema>} - Success response
48
+ * @name getRules
49
+ * @summary: List of RMA rules based on the given input conditions.
50
+ * @description: Retrieves a comprehensive list of RMA (Return Merchandise Authorization) rules associated with a specific company and application. These rules dictate the processes for handling returns, including actions, reasons, quality control (QC) types, and associated questions. The endpoint allows for filtering and pagination based on input conditions, providing a tailored set of rules that match the criteria specified. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRules/).
51
+ */
52
+ getRules({ body, requestHeaders }?: OrderPlatformApplicationValidator.GetRulesParam, { responseHeaders }?: object): Promise<OrderPlatformModel.RuleListResponseSchema>;
42
53
  /**
43
54
  * @param {OrderPlatformApplicationValidator.GetShipmentBagReasonsParam} arg
44
55
  * - Arg object
@@ -47,8 +58,8 @@ declare class Order {
47
58
  * @param {import("../PlatformAPIClient").Options} - Options
48
59
  * @returns {Promise<OrderPlatformModel.ShipmentBagReasons>} - Success response
49
60
  * @name getShipmentBagReasons
50
- * @summary: List bag cancellation reasons
51
- * @description: Get reasons to perform full or partial cancellation of a shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentBagReasons/).
61
+ * @summary: Retrieve Reasons for Cancellation and Return journey
62
+ * @description: Allows users to retrieve a comprehensive list of reasons for cancellation or returning a shipment. It provides both cancellation and return reasons, with an emphasis on Quality Control (QC) evaluations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentBagReasons/).
52
63
  */
53
64
  getShipmentBagReasons({ shipmentId, lineNumber, requestHeaders }?: OrderPlatformApplicationValidator.GetShipmentBagReasonsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentBagReasons>;
54
65
  /**
@@ -113,7 +113,7 @@ class Order {
113
113
  *
114
114
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
115
115
  * @param {import("../PlatformAPIClient").Options} - Options
116
- * @returns {Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponse>}
116
+ * @returns {Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>}
117
117
  * - Success response
118
118
  *
119
119
  * @name getApplicationShipments
@@ -231,7 +231,7 @@ class Order {
231
231
 
232
232
  const {
233
233
  error: res_error,
234
- } = OrderPlatformModel.ShipmentInternalPlatformViewResponse().validate(
234
+ } = OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema().validate(
235
235
  responseData,
236
236
  { abortEarly: false, allowUnknown: true }
237
237
  );
@@ -256,7 +256,8 @@ class Order {
256
256
  *
257
257
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
258
258
  * @param {import("../PlatformAPIClient").Options} - Options
259
- * @returns {Promise<OrderPlatformModel.ShipmentReasonsResponse>} - Success response
259
+ * @returns {Promise<OrderPlatformModel.ShipmentReasonsResponseSchema>} -
260
+ * Success response
260
261
  * @name getPlatformShipmentReasons
261
262
  * @summary: List shipment cancellation reasons
262
263
  * @description: Get reasons to perform full or partial cancellation of a shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getPlatformShipmentReasons/).
@@ -312,7 +313,84 @@ class Order {
312
313
 
313
314
  const {
314
315
  error: res_error,
315
- } = OrderPlatformModel.ShipmentReasonsResponse().validate(responseData, {
316
+ } = OrderPlatformModel.ShipmentReasonsResponseSchema().validate(
317
+ responseData,
318
+ { abortEarly: false, allowUnknown: true }
319
+ );
320
+
321
+ if (res_error) {
322
+ if (this.config.options.strictResponseCheck === true) {
323
+ return Promise.reject(new FDKResponseValidationError(res_error));
324
+ } else {
325
+ Logger({
326
+ level: "WARN",
327
+ message: `Response Validation Warnings for platform > Order > getPlatformShipmentReasons \n ${res_error}`,
328
+ });
329
+ }
330
+ }
331
+
332
+ return response;
333
+ }
334
+
335
+ /**
336
+ * @param {OrderPlatformApplicationValidator.GetRulesParam} arg - Arg object
337
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
338
+ * @param {import("../PlatformAPIClient").Options} - Options
339
+ * @returns {Promise<OrderPlatformModel.RuleListResponseSchema>} - Success response
340
+ * @name getRules
341
+ * @summary: List of RMA rules based on the given input conditions.
342
+ * @description: Retrieves a comprehensive list of RMA (Return Merchandise Authorization) rules associated with a specific company and application. These rules dictate the processes for handling returns, including actions, reasons, quality control (QC) types, and associated questions. The endpoint allows for filtering and pagination based on input conditions, providing a tailored set of rules that match the criteria specified. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRules/).
343
+ */
344
+ async getRules(
345
+ { body, requestHeaders } = { requestHeaders: {} },
346
+ { responseHeaders } = { responseHeaders: false }
347
+ ) {
348
+ const { error } = OrderPlatformApplicationValidator.getRules().validate(
349
+ {
350
+ body,
351
+ },
352
+ { abortEarly: false, allowUnknown: true }
353
+ );
354
+ if (error) {
355
+ return Promise.reject(new FDKClientValidationError(error));
356
+ }
357
+
358
+ // Showing warrnings if extra unknown parameters are found
359
+ const {
360
+ error: warrning,
361
+ } = OrderPlatformApplicationValidator.getRules().validate(
362
+ {
363
+ body,
364
+ },
365
+ { abortEarly: false, allowUnknown: false }
366
+ );
367
+ if (warrning) {
368
+ Logger({
369
+ level: "WARN",
370
+ message: `Parameter Validation warrnings for platform > Order > getRules \n ${warrning}`,
371
+ });
372
+ }
373
+
374
+ const query_params = {};
375
+
376
+ const response = await PlatformAPIClient.execute(
377
+ this.config,
378
+ "post",
379
+ `/service/platform/order-manage/v1.0/company/${this.config.companyId}/application/${this.applicationId}/rule_list`,
380
+ query_params,
381
+ body,
382
+ requestHeaders,
383
+ { responseHeaders }
384
+ );
385
+
386
+ let responseData = response;
387
+ if (responseHeaders) {
388
+ responseData = response[0];
389
+ }
390
+
391
+ const {
392
+ error: res_error,
393
+ } = OrderPlatformModel.RuleListResponseSchema().validate(responseData, {
316
394
  abortEarly: false,
317
395
  allowUnknown: true,
318
396
  });
@@ -323,7 +401,7 @@ class Order {
323
401
  } else {
324
402
  Logger({
325
403
  level: "WARN",
326
- message: `Response Validation Warnings for platform > Order > getPlatformShipmentReasons \n ${res_error}`,
404
+ message: `Response Validation Warnings for platform > Order > getRules \n ${res_error}`,
327
405
  });
328
406
  }
329
407
  }
@@ -339,8 +417,8 @@ class Order {
339
417
  * @param {import("../PlatformAPIClient").Options} - Options
340
418
  * @returns {Promise<OrderPlatformModel.ShipmentBagReasons>} - Success response
341
419
  * @name getShipmentBagReasons
342
- * @summary: List bag cancellation reasons
343
- * @description: Get reasons to perform full or partial cancellation of a shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentBagReasons/).
420
+ * @summary: Retrieve Reasons for Cancellation and Return journey
421
+ * @description: Allows users to retrieve a comprehensive list of reasons for cancellation or returning a shipment. It provides both cancellation and return reasons, with an emphasis on Quality Control (QC) evaluations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentBagReasons/).
344
422
  */
345
423
  async getShipmentBagReasons(
346
424
  { shipmentId, lineNumber, requestHeaders } = { requestHeaders: {} },
@@ -8,35 +8,47 @@ export = OrderPlatformApplicationValidator;
8
8
  */
9
9
  /**
10
10
  * @typedef GetApplicationShipmentsParam
11
- * @property {string} [lane]
12
- * @property {string} [searchType]
13
- * @property {string} [searchId]
14
- * @property {string} [fromDate]
15
- * @property {string} [toDate]
16
- * @property {string} [dpIds]
17
- * @property {string} [orderingCompanyId]
18
- * @property {string} [stores]
19
- * @property {string} [salesChannel]
20
- * @property {string} [requestByExt]
21
- * @property {number} [pageNo]
22
- * @property {number} [pageSize]
23
- * @property {string} [customerId]
24
- * @property {boolean} [isPrioritySort]
25
- * @property {boolean} [excludeLockedShipments]
11
+ * @property {string} [lane] - Optional parameter to specify the lane for
12
+ * filtering results.
13
+ * @property {string} [searchType] - Search_type refers to the field that will
14
+ * be used as the target for the search operation
15
+ * @property {string} [searchId] - Identifier used for the search operation
16
+ * based on the selected search type.
17
+ * @property {string} [fromDate] - Date time in UTC timezone as per ISO format.
18
+ * @property {string} [toDate] - Date time in UTC timezone as per ISO format.
19
+ * @property {string} [dpIds] - Comma-separated list of delivery partner IDs to
20
+ * filter results.
21
+ * @property {string} [orderingCompanyId] - ID of the company placing the order,
22
+ * used for filtering results.
23
+ * @property {string} [stores] - Comma-separated list of store IDs to filter results.
24
+ * @property {string} [salesChannel] - The sales channel to filter results.
25
+ * @property {string} [requestByExt] - Identifier for external requests.
26
+ * @property {number} [pageNo] - The page number for pagination of results.
27
+ * @property {number} [pageSize] - The number of results to return per page for
28
+ * pagination.
29
+ * @property {string} [customerId] - ID of the customer to filter results
30
+ * related to specific customer.
31
+ * @property {boolean} [isPrioritySort] - Flag to determine if results should be
32
+ * sorted by priority. Defaults to true.
33
+ * @property {boolean} [excludeLockedShipments] - Flag to exclude shipments that
34
+ * are currently locked from the results.
26
35
  */
27
36
  /**
28
37
  * @typedef GetPlatformShipmentReasonsParam
29
38
  * @property {string} action
30
39
  */
40
+ /**
41
+ * @typedef GetRulesParam
42
+ * @property {OrderPlatformModel.RuleListRequestSchema} body
43
+ */
31
44
  /**
32
45
  * @typedef GetShipmentBagReasonsParam
33
- * @property {string} shipmentId - ID of the bag. An order may contain multiple
34
- * items and may get divided into one or more shipment, each having its own ID.
35
- * @property {number} lineNumber - Line number of bag.
46
+ * @property {string} shipmentId - The unique identifier for the shipment
47
+ * @property {number} lineNumber - A unique identifier of the bag's line number.
36
48
  */
37
49
  /**
38
50
  * @typedef TrackShipmentPlatformParam
39
- * @property {string} shipmentId - Shipment Id
51
+ * @property {string} shipmentId - The unique identifier for the shipment
40
52
  */
41
53
  declare class OrderPlatformApplicationValidator {
42
54
  /** @returns {FailedOrderLogsParam} */
@@ -45,13 +57,15 @@ declare class OrderPlatformApplicationValidator {
45
57
  static getApplicationShipments(): GetApplicationShipmentsParam;
46
58
  /** @returns {GetPlatformShipmentReasonsParam} */
47
59
  static getPlatformShipmentReasons(): GetPlatformShipmentReasonsParam;
60
+ /** @returns {GetRulesParam} */
61
+ static getRules(): GetRulesParam;
48
62
  /** @returns {GetShipmentBagReasonsParam} */
49
63
  static getShipmentBagReasons(): GetShipmentBagReasonsParam;
50
64
  /** @returns {TrackShipmentPlatformParam} */
51
65
  static trackShipmentPlatform(): TrackShipmentPlatformParam;
52
66
  }
53
67
  declare namespace OrderPlatformApplicationValidator {
54
- export { FailedOrderLogsParam, GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam, GetShipmentBagReasonsParam, TrackShipmentPlatformParam };
68
+ export { FailedOrderLogsParam, GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam, GetRulesParam, GetShipmentBagReasonsParam, TrackShipmentPlatformParam };
55
69
  }
56
70
  type FailedOrderLogsParam = {
57
71
  /**
@@ -72,39 +86,96 @@ type FailedOrderLogsParam = {
72
86
  searchValue?: string;
73
87
  };
74
88
  type GetApplicationShipmentsParam = {
89
+ /**
90
+ * - Optional parameter to specify the lane for
91
+ * filtering results.
92
+ */
75
93
  lane?: string;
94
+ /**
95
+ * - Search_type refers to the field that will
96
+ * be used as the target for the search operation
97
+ */
76
98
  searchType?: string;
99
+ /**
100
+ * - Identifier used for the search operation
101
+ * based on the selected search type.
102
+ */
77
103
  searchId?: string;
104
+ /**
105
+ * - Date time in UTC timezone as per ISO format.
106
+ */
78
107
  fromDate?: string;
108
+ /**
109
+ * - Date time in UTC timezone as per ISO format.
110
+ */
79
111
  toDate?: string;
112
+ /**
113
+ * - Comma-separated list of delivery partner IDs to
114
+ * filter results.
115
+ */
80
116
  dpIds?: string;
117
+ /**
118
+ * - ID of the company placing the order,
119
+ * used for filtering results.
120
+ */
81
121
  orderingCompanyId?: string;
122
+ /**
123
+ * - Comma-separated list of store IDs to filter results.
124
+ */
82
125
  stores?: string;
126
+ /**
127
+ * - The sales channel to filter results.
128
+ */
83
129
  salesChannel?: string;
130
+ /**
131
+ * - Identifier for external requests.
132
+ */
84
133
  requestByExt?: string;
134
+ /**
135
+ * - The page number for pagination of results.
136
+ */
85
137
  pageNo?: number;
138
+ /**
139
+ * - The number of results to return per page for
140
+ * pagination.
141
+ */
86
142
  pageSize?: number;
143
+ /**
144
+ * - ID of the customer to filter results
145
+ * related to specific customer.
146
+ */
87
147
  customerId?: string;
148
+ /**
149
+ * - Flag to determine if results should be
150
+ * sorted by priority. Defaults to true.
151
+ */
88
152
  isPrioritySort?: boolean;
153
+ /**
154
+ * - Flag to exclude shipments that
155
+ * are currently locked from the results.
156
+ */
89
157
  excludeLockedShipments?: boolean;
90
158
  };
91
159
  type GetPlatformShipmentReasonsParam = {
92
160
  action: string;
93
161
  };
162
+ type GetRulesParam = {
163
+ body: OrderPlatformModel.RuleListRequestSchema;
164
+ };
94
165
  type GetShipmentBagReasonsParam = {
95
166
  /**
96
- * - ID of the bag. An order may contain multiple
97
- * items and may get divided into one or more shipment, each having its own ID.
167
+ * - The unique identifier for the shipment
98
168
  */
99
169
  shipmentId: string;
100
170
  /**
101
- * - Line number of bag.
171
+ * - A unique identifier of the bag's line number.
102
172
  */
103
173
  lineNumber: number;
104
174
  };
105
175
  type TrackShipmentPlatformParam = {
106
176
  /**
107
- * - Shipment Id
177
+ * - The unique identifier for the shipment
108
178
  */
109
179
  shipmentId: string;
110
180
  };
181
+ import OrderPlatformModel = require("./OrderPlatformModel");