@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.2

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 (294) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +53 -60
  6. package/sdk/application/Cart/CartApplicationClient.js +53 -130
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +143 -489
  8. package/sdk/application/Cart/CartApplicationModel.js +159 -380
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +19 -38
  10. package/sdk/application/Cart/CartApplicationValidator.js +18 -34
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +68 -88
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +94 -114
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +142 -194
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +133 -171
  15. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -3
  16. package/sdk/application/Common/CommonApplicationClient.js +5 -6
  17. package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
  18. package/sdk/application/Common/CommonApplicationModel.js +6 -6
  19. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +27 -34
  20. package/sdk/application/Configuration/ConfigurationApplicationClient.js +27 -34
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +57 -45
  22. package/sdk/application/Configuration/ConfigurationApplicationModel.js +47 -35
  23. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
  24. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
  25. package/sdk/application/Content/ContentApplicationClient.d.ts +33 -23
  26. package/sdk/application/Content/ContentApplicationClient.js +75 -54
  27. package/sdk/application/Content/ContentApplicationModel.d.ts +37 -93
  28. package/sdk/application/Content/ContentApplicationModel.js +32 -83
  29. package/sdk/application/Content/ContentApplicationValidator.d.ts +17 -23
  30. package/sdk/application/Content/ContentApplicationValidator.js +10 -15
  31. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -9
  32. package/sdk/application/FileStorage/FileStorageApplicationClient.js +13 -14
  33. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +25 -23
  34. package/sdk/application/FileStorage/FileStorageApplicationModel.js +18 -16
  35. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
  36. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
  37. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -2
  38. package/sdk/application/Lead/LeadApplicationClient.js +3 -2
  39. package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
  40. package/sdk/application/Lead/LeadApplicationModel.js +19 -19
  41. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -39
  42. package/sdk/application/Logistic/LogisticApplicationClient.js +21 -189
  43. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +173 -532
  44. package/sdk/application/Logistic/LogisticApplicationModel.js +139 -409
  45. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +9 -54
  46. package/sdk/application/Logistic/LogisticApplicationValidator.js +8 -42
  47. package/sdk/application/Order/OrderApplicationClient.d.ts +10 -24
  48. package/sdk/application/Order/OrderApplicationClient.js +13 -96
  49. package/sdk/application/Order/OrderApplicationModel.d.ts +120 -436
  50. package/sdk/application/Order/OrderApplicationModel.js +81 -279
  51. package/sdk/application/Order/OrderApplicationValidator.d.ts +3 -17
  52. package/sdk/application/Order/OrderApplicationValidator.js +2 -15
  53. package/sdk/application/Payment/PaymentApplicationClient.d.ts +99 -96
  54. package/sdk/application/Payment/PaymentApplicationClient.js +114 -111
  55. package/sdk/application/Payment/PaymentApplicationModel.d.ts +289 -293
  56. package/sdk/application/Payment/PaymentApplicationModel.js +241 -243
  57. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
  58. package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
  59. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -13
  60. package/sdk/application/Rewards/RewardsApplicationClient.js +22 -19
  61. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
  62. package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
  63. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
  64. package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
  65. package/sdk/application/Share/ShareApplicationModel.js +1 -1
  66. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  67. package/sdk/application/Theme/ThemeApplicationClient.js +6 -8
  68. package/sdk/application/Theme/ThemeApplicationModel.d.ts +17 -48
  69. package/sdk/application/Theme/ThemeApplicationModel.js +22 -42
  70. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +3 -16
  71. package/sdk/application/Theme/ThemeApplicationValidator.js +2 -9
  72. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  73. package/sdk/application/User/UserApplicationClient.js +10 -10
  74. package/sdk/application/User/UserApplicationModel.d.ts +17 -17
  75. package/sdk/application/User/UserApplicationModel.js +16 -16
  76. package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
  77. package/sdk/application/User/UserApplicationValidator.js +2 -2
  78. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  79. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
  80. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +9 -11
  81. package/sdk/application/Webhook/WebhookApplicationModel.js +6 -8
  82. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
  83. package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
  84. package/sdk/application/index.d.ts +0 -1
  85. package/sdk/application/index.js +0 -2
  86. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
  87. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
  88. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
  89. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
  90. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
  91. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
  92. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  93. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  94. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  95. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  96. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
  97. package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
  98. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
  99. package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
  100. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
  101. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
  102. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
  103. package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
  104. package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
  105. package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
  106. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  107. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
  108. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
  109. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
  110. package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
  111. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
  112. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
  113. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
  114. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
  115. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
  116. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
  117. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  118. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  119. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  123. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  124. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  125. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  126. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  127. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  128. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  129. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
  130. package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
  131. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
  132. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
  133. package/sdk/platform/Cart/CartPlatformModel.d.ts +1321 -4975
  134. package/sdk/platform/Cart/CartPlatformModel.js +1226 -1922
  135. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
  136. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
  137. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
  139. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
  140. package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
  141. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1751 -1501
  142. package/sdk/platform/Catalog/CatalogPlatformModel.js +1224 -1393
  143. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  144. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  145. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
  146. package/sdk/platform/Common/CommonPlatformClient.js +2 -3
  147. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  148. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  149. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
  150. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
  151. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  152. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  153. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
  154. package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
  155. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
  156. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
  157. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  158. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
  159. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  160. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  161. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
  162. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
  163. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  164. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  165. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
  166. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
  167. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +124 -283
  168. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +94 -219
  169. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
  170. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
  171. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
  172. package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
  173. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
  174. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
  175. package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
  176. package/sdk/platform/Content/ContentPlatformClient.js +336 -523
  177. package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
  178. package/sdk/platform/Content/ContentPlatformModel.js +390 -521
  179. package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
  180. package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
  181. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
  182. package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
  183. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  184. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  185. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  186. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  187. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +36 -94
  188. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
  189. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
  191. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  192. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  193. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
  194. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
  195. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  196. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  197. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  198. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  199. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
  200. package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
  201. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  202. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  203. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  204. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  205. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  206. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  207. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -15
  208. package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -83
  209. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -25
  210. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -16
  211. package/sdk/platform/Order/OrderPlatformClient.d.ts +97 -178
  212. package/sdk/platform/Order/OrderPlatformClient.js +245 -597
  213. package/sdk/platform/Order/OrderPlatformModel.d.ts +3071 -5449
  214. package/sdk/platform/Order/OrderPlatformModel.js +1656 -3501
  215. package/sdk/platform/Order/OrderPlatformValidator.d.ts +190 -237
  216. package/sdk/platform/Order/OrderPlatformValidator.js +105 -153
  217. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  218. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  219. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  220. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  221. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
  222. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
  223. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
  224. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
  225. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  226. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  227. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
  228. package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
  229. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
  230. package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
  231. package/sdk/platform/PlatformClient.d.ts +2 -0
  232. package/sdk/platform/PlatformClient.js +4 -0
  233. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  234. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  235. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  236. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  237. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  238. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  239. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
  240. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
  241. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
  242. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
  243. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
  244. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
  245. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
  246. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
  247. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
  248. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
  249. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  250. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  251. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
  252. package/sdk/platform/Share/SharePlatformModel.js +4 -27
  253. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  254. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
  255. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
  256. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
  257. package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
  258. package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
  259. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  260. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  261. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  262. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  263. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  264. package/sdk/platform/User/UserPlatformModel.js +23 -23
  265. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  266. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  267. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
  268. package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
  269. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  270. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  271. package/sdk/platform/index.d.ts +1 -0
  272. package/sdk/platform/index.js +2 -0
  273. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
  274. package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
  275. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  276. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  277. package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
  278. package/sdk/public/Content/ContentPublicClient.js +5 -791
  279. package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
  280. package/sdk/public/Content/ContentPublicModel.js +3 -649
  281. package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
  282. package/sdk/public/Content/ContentPublicValidator.js +2 -88
  283. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  284. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  285. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  286. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  287. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  288. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  289. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
  290. package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
  291. package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
  292. package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
  293. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
  294. package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
@@ -1,7 +1,7 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef GeneralConfigDetails
4
+ * @typedef GeneralConfigResponse
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 {GeneralConfigDetails} */
329
- static GeneralConfigDetails() {
328
+ /** @returns {GeneralConfigResponse} */
329
+ static GeneralConfigResponse() {
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.object().pattern(/\S/, Joi.any()).required(),
477
+ value: 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.object().pattern(/\S/, Joi.any()),
518
+ created_by: 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.object().pattern(/\S/, Joi.any()),
523
+ _custom_json: 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.object().pattern(/\S/, Joi.any()),
562
+ form_response: 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.object().pattern(/\S/, Joi.any()),
608
+ inputs: Joi.any(),
609
609
  title: Joi.string().allow(""),
610
- timestamps: Joi.object().pattern(/\S/, Joi.any()),
610
+ timestamps: 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.object().pattern(/\S/, Joi.any()),
644
+ user: 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.object().pattern(/\S/, Joi.any()).required(),
654
+ value: Joi.any().required(),
655
655
  ticket_id: Joi.string().allow("").required(),
656
656
  created_on: LeadPlatformModel.CreatedOn(),
657
- created_by: Joi.object().pattern(/\S/, Joi.any()),
657
+ created_by: 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.object().pattern(/\S/, Joi.any()),
678
- assigned_to: Joi.object().pattern(/\S/, Joi.any()),
677
+ created_by: Joi.any(),
678
+ assigned_to: Joi.any(),
679
679
  tags: Joi.array().items(Joi.string().allow("")),
680
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
680
+ _custom_json: Joi.any(),
681
681
  is_feedback_pending: Joi.boolean(),
682
- integration: Joi.object().pattern(/\S/, Joi.any()),
682
+ integration: Joi.any(),
683
683
  _id: Joi.string().allow("").required(),
684
684
  updated_at: Joi.string().allow(""),
685
685
  created_at: Joi.string().allow(""),
@@ -19,37 +19,26 @@ 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.ShipmentInternalPlatformViewResponseSchema>}
22
+ * @returns {Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponse>}
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.ShipmentInternalPlatformViewResponseSchema>;
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>;
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.ShipmentReasonsResponseSchema>} -
37
- * Success response
36
+ * @returns {Promise<OrderPlatformModel.ShipmentReasonsResponse>} - Success response
38
37
  * @name getPlatformShipmentReasons
39
38
  * @summary: List shipment cancellation reasons
40
39
  * @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/).
41
40
  */
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>;
41
+ getPlatformShipmentReasons({ action, requestHeaders }?: OrderPlatformApplicationValidator.GetPlatformShipmentReasonsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentReasonsResponse>;
53
42
  /**
54
43
  * @param {OrderPlatformApplicationValidator.GetShipmentBagReasonsParam} arg
55
44
  * - Arg object
@@ -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.ShipmentInternalPlatformViewResponseSchema>}
116
+ * @returns {Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponse>}
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.ShipmentInternalPlatformViewResponseSchema().validate(
234
+ } = OrderPlatformModel.ShipmentInternalPlatformViewResponse().validate(
235
235
  responseData,
236
236
  { abortEarly: false, allowUnknown: true }
237
237
  );
@@ -256,8 +256,7 @@ 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.ShipmentReasonsResponseSchema>} -
260
- * Success response
259
+ * @returns {Promise<OrderPlatformModel.ShipmentReasonsResponse>} - Success response
261
260
  * @name getPlatformShipmentReasons
262
261
  * @summary: List shipment cancellation reasons
263
262
  * @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/).
@@ -313,84 +312,7 @@ class Order {
313
312
 
314
313
  const {
315
314
  error: res_error,
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, {
315
+ } = OrderPlatformModel.ShipmentReasonsResponse().validate(responseData, {
394
316
  abortEarly: false,
395
317
  allowUnknown: true,
396
318
  });
@@ -401,7 +323,7 @@ class Order {
401
323
  } else {
402
324
  Logger({
403
325
  level: "WARN",
404
- message: `Response Validation Warnings for platform > Order > getRules \n ${res_error}`,
326
+ message: `Response Validation Warnings for platform > Order > getPlatformShipmentReasons \n ${res_error}`,
405
327
  });
406
328
  }
407
329
  }
@@ -9,11 +9,10 @@ export = OrderPlatformApplicationValidator;
9
9
  /**
10
10
  * @typedef GetApplicationShipmentsParam
11
11
  * @property {string} [lane]
12
- * @property {string} [searchType] - Search_type refers to the field that will
13
- * be used as the target for the search operation
12
+ * @property {string} [searchType]
14
13
  * @property {string} [searchId]
15
- * @property {string} [fromDate] - Date time in UTC timezone as per ISO format.
16
- * @property {string} [toDate] - Date time in UTC timezone as per ISO format.
14
+ * @property {string} [fromDate]
15
+ * @property {string} [toDate]
17
16
  * @property {string} [dpIds]
18
17
  * @property {string} [orderingCompanyId]
19
18
  * @property {string} [stores]
@@ -29,10 +28,6 @@ export = OrderPlatformApplicationValidator;
29
28
  * @typedef GetPlatformShipmentReasonsParam
30
29
  * @property {string} action
31
30
  */
32
- /**
33
- * @typedef GetRulesParam
34
- * @property {OrderPlatformModel.RuleListRequestSchema} body
35
- */
36
31
  /**
37
32
  * @typedef GetShipmentBagReasonsParam
38
33
  * @property {string} shipmentId - ID of the bag. An order may contain multiple
@@ -50,15 +45,13 @@ declare class OrderPlatformApplicationValidator {
50
45
  static getApplicationShipments(): GetApplicationShipmentsParam;
51
46
  /** @returns {GetPlatformShipmentReasonsParam} */
52
47
  static getPlatformShipmentReasons(): GetPlatformShipmentReasonsParam;
53
- /** @returns {GetRulesParam} */
54
- static getRules(): GetRulesParam;
55
48
  /** @returns {GetShipmentBagReasonsParam} */
56
49
  static getShipmentBagReasons(): GetShipmentBagReasonsParam;
57
50
  /** @returns {TrackShipmentPlatformParam} */
58
51
  static trackShipmentPlatform(): TrackShipmentPlatformParam;
59
52
  }
60
53
  declare namespace OrderPlatformApplicationValidator {
61
- export { FailedOrderLogsParam, GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam, GetRulesParam, GetShipmentBagReasonsParam, TrackShipmentPlatformParam };
54
+ export { FailedOrderLogsParam, GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam, GetShipmentBagReasonsParam, TrackShipmentPlatformParam };
62
55
  }
63
56
  type FailedOrderLogsParam = {
64
57
  /**
@@ -80,19 +73,9 @@ type FailedOrderLogsParam = {
80
73
  };
81
74
  type GetApplicationShipmentsParam = {
82
75
  lane?: string;
83
- /**
84
- * - Search_type refers to the field that will
85
- * be used as the target for the search operation
86
- */
87
76
  searchType?: string;
88
77
  searchId?: string;
89
- /**
90
- * - Date time in UTC timezone as per ISO format.
91
- */
92
78
  fromDate?: string;
93
- /**
94
- * - Date time in UTC timezone as per ISO format.
95
- */
96
79
  toDate?: string;
97
80
  dpIds?: string;
98
81
  orderingCompanyId?: string;
@@ -108,9 +91,6 @@ type GetApplicationShipmentsParam = {
108
91
  type GetPlatformShipmentReasonsParam = {
109
92
  action: string;
110
93
  };
111
- type GetRulesParam = {
112
- body: OrderPlatformModel.RuleListRequestSchema;
113
- };
114
94
  type GetShipmentBagReasonsParam = {
115
95
  /**
116
96
  * - ID of the bag. An order may contain multiple
@@ -128,4 +108,3 @@ type TrackShipmentPlatformParam = {
128
108
  */
129
109
  shipmentId: string;
130
110
  };
131
- import OrderPlatformModel = require("./OrderPlatformModel");
@@ -13,11 +13,10 @@ const OrderPlatformModel = require("./OrderPlatformModel");
13
13
  /**
14
14
  * @typedef GetApplicationShipmentsParam
15
15
  * @property {string} [lane]
16
- * @property {string} [searchType] - Search_type refers to the field that will
17
- * be used as the target for the search operation
16
+ * @property {string} [searchType]
18
17
  * @property {string} [searchId]
19
- * @property {string} [fromDate] - Date time in UTC timezone as per ISO format.
20
- * @property {string} [toDate] - Date time in UTC timezone as per ISO format.
18
+ * @property {string} [fromDate]
19
+ * @property {string} [toDate]
21
20
  * @property {string} [dpIds]
22
21
  * @property {string} [orderingCompanyId]
23
22
  * @property {string} [stores]
@@ -35,11 +34,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
35
34
  * @property {string} action
36
35
  */
37
36
 
38
- /**
39
- * @typedef GetRulesParam
40
- * @property {OrderPlatformModel.RuleListRequestSchema} body
41
- */
42
-
43
37
  /**
44
38
  * @typedef GetShipmentBagReasonsParam
45
39
  * @property {string} shipmentId - ID of the bag. An order may contain multiple
@@ -91,13 +85,6 @@ class OrderPlatformApplicationValidator {
91
85
  }).required();
92
86
  }
93
87
 
94
- /** @returns {GetRulesParam} */
95
- static getRules() {
96
- return Joi.object({
97
- body: OrderPlatformModel.RuleListRequestSchema().required(),
98
- }).required();
99
- }
100
-
101
88
  /** @returns {GetShipmentBagReasonsParam} */
102
89
  static getShipmentBagReasons() {
103
90
  return Joi.object({