@gofynd/fdk-client-javascript 1.4.12 → 1.4.14

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 (297) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  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 +60 -53
  6. package/sdk/application/Cart/CartApplicationClient.js +130 -53
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
  8. package/sdk/application/Cart/CartApplicationModel.js +380 -159
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
  10. package/sdk/application/Cart/CartApplicationValidator.js +34 -18
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
  15. package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
  16. package/sdk/application/Common/CommonApplicationClient.js +6 -5
  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 +34 -27
  20. package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
  22. package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
  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 +23 -33
  26. package/sdk/application/Content/ContentApplicationClient.js +54 -75
  27. package/sdk/application/Content/ContentApplicationModel.d.ts +96 -39
  28. package/sdk/application/Content/ContentApplicationModel.js +88 -34
  29. package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
  30. package/sdk/application/Content/ContentApplicationValidator.js +15 -10
  31. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
  32. package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
  33. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
  34. package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
  35. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
  36. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
  37. package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
  38. package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
  39. package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
  40. package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
  41. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
  42. package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
  43. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
  44. package/sdk/application/Lead/LeadApplicationClient.js +2 -3
  45. package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
  46. package/sdk/application/Lead/LeadApplicationModel.js +19 -19
  47. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
  48. package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
  49. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
  50. package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
  51. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
  52. package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
  53. package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
  54. package/sdk/application/Order/OrderApplicationClient.js +96 -13
  55. package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
  56. package/sdk/application/Order/OrderApplicationModel.js +278 -73
  57. package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
  58. package/sdk/application/Order/OrderApplicationValidator.js +15 -2
  59. package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
  60. package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
  61. package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
  62. package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
  63. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
  64. package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
  65. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
  66. package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
  67. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
  68. package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
  69. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
  70. package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
  71. package/sdk/application/Share/ShareApplicationModel.js +1 -1
  72. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  73. package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
  74. package/sdk/application/Theme/ThemeApplicationModel.d.ts +51 -19
  75. package/sdk/application/Theme/ThemeApplicationModel.js +47 -24
  76. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
  77. package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
  78. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  79. package/sdk/application/User/UserApplicationClient.js +10 -10
  80. package/sdk/application/User/UserApplicationModel.d.ts +17 -17
  81. package/sdk/application/User/UserApplicationModel.js +16 -16
  82. package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
  83. package/sdk/application/User/UserApplicationValidator.js +2 -2
  84. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  85. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
  86. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
  87. package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
  88. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
  89. package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
  90. package/sdk/application/index.d.ts +1 -0
  91. package/sdk/application/index.js +2 -0
  92. package/sdk/common/Clickstream.js +12 -0
  93. package/sdk/common/Constant.d.ts +5 -0
  94. package/sdk/common/Constant.js +5 -0
  95. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  96. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  97. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  98. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  99. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  100. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  101. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  102. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  103. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  104. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  105. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  106. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  107. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
  108. package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
  109. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  110. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
  111. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  112. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  113. package/sdk/partner/Theme/ThemePartnerModel.d.ts +99 -39
  114. package/sdk/partner/Theme/ThemePartnerModel.js +95 -38
  115. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  116. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  117. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  118. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  119. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  120. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  121. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  122. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  123. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  124. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  125. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  126. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  127. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  128. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  129. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  130. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  131. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  132. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  133. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  134. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  135. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  136. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  137. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  138. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  139. package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
  140. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
  141. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
  142. package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
  143. package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
  144. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +192 -164
  145. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +371 -343
  146. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +99 -99
  147. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +54 -54
  148. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +139 -116
  149. package/sdk/platform/Catalog/CatalogPlatformClient.js +191 -168
  150. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1374 -749
  151. package/sdk/platform/Catalog/CatalogPlatformModel.js +1241 -830
  152. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  153. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  154. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  155. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  156. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  157. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  158. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  159. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  160. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  161. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  162. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  163. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  168. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  169. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  172. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  173. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  174. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  175. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  176. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  177. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  178. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  179. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  180. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  181. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  182. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  183. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  184. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  185. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  186. package/sdk/platform/Content/ContentPlatformModel.d.ts +1244 -397
  187. package/sdk/platform/Content/ContentPlatformModel.js +526 -392
  188. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  189. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  190. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  191. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  192. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  193. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  194. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  195. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  196. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  197. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  198. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  199. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  200. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  201. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  202. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  203. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  204. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  205. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  206. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  207. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  208. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  209. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  210. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
  211. package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
  212. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
  213. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  214. package/sdk/platform/Order/OrderPlatformClient.d.ts +138 -101
  215. package/sdk/platform/Order/OrderPlatformClient.js +267 -203
  216. package/sdk/platform/Order/OrderPlatformModel.d.ts +4497 -877
  217. package/sdk/platform/Order/OrderPlatformModel.js +2336 -812
  218. package/sdk/platform/Order/OrderPlatformValidator.d.ts +147 -50
  219. package/sdk/platform/Order/OrderPlatformValidator.js +75 -46
  220. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  221. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  222. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  223. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  224. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  225. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  226. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  227. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  228. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  229. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  230. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
  231. package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
  232. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  233. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  234. package/sdk/platform/PlatformClient.d.ts +0 -2
  235. package/sdk/platform/PlatformClient.js +0 -4
  236. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  237. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  238. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  239. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  240. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  241. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  242. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
  243. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
  244. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
  245. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
  246. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
  247. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
  248. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
  249. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
  250. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
  251. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
  252. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  253. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  254. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  255. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  256. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  257. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  258. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  259. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  260. package/sdk/platform/Theme/ThemePlatformModel.d.ts +40 -13
  261. package/sdk/platform/Theme/ThemePlatformModel.js +38 -17
  262. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  263. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  264. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  265. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  266. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  267. package/sdk/platform/User/UserPlatformModel.js +23 -23
  268. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  269. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  270. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  271. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  272. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  273. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  274. package/sdk/platform/index.d.ts +0 -1
  275. package/sdk/platform/index.js +0 -2
  276. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  277. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  278. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  279. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  280. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  281. package/sdk/public/Content/ContentPublicClient.js +791 -5
  282. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  283. package/sdk/public/Content/ContentPublicModel.js +649 -3
  284. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  285. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  286. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  287. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  288. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  289. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  290. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  291. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  292. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  293. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  294. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  295. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  296. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  297. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -1,6 +1,6 @@
1
1
  export = UserApplicationModel;
2
2
  /**
3
- * @typedef UpdateUserAttributesRequest
3
+ * @typedef UpdateUserAttributes
4
4
  * @property {Object} [attributes] - Describes the request structure to update
5
5
  * the user attribute.
6
6
  */
@@ -181,12 +181,12 @@ export = UserApplicationModel;
181
181
  * @property {UserSchema} [user]
182
182
  */
183
183
  /**
184
- * @typedef UserExistsResponse
184
+ * @typedef UserExistsDetails
185
185
  * @property {boolean} [user_exists] - Boolean which specifies if user is
186
186
  * registered or not.
187
187
  */
188
188
  /**
189
- * @typedef SendOtpResponse
189
+ * @typedef SendOtp
190
190
  * @property {number} [resend_timer] - Time after which opt can be resent.
191
191
  * @property {string} [resend_token] - Unique token to identify the OTP send
192
192
  * request and resend the token.
@@ -293,7 +293,7 @@ export = UserApplicationModel;
293
293
  * @property {boolean} [success] - Whether the user deletion operation was successful.
294
294
  */
295
295
  /**
296
- * @typedef OtpSuccess
296
+ * @typedef SendOtpSuccess
297
297
  * @property {number} [resend_timer] - The time in seconds before an OTP can be resent.
298
298
  * @property {string} [resend_token] - A token used to authorize the resending of an OTP.
299
299
  * @property {string} [register_token] - A token used for completing the
@@ -563,11 +563,11 @@ export = UserApplicationModel;
563
563
  declare class UserApplicationModel {
564
564
  }
565
565
  declare namespace UserApplicationModel {
566
- export { UpdateUserAttributesRequest, UserAttributes, DeleteApplicationUserRequestSchema, EditEmailRequestSchema, SendVerificationLinkMobileRequestSchema, EditMobileRequestSchema, EditProfileRequestSchema, EditProfileMobileSchema, SendEmailOtpRequestSchema, SendEmailForgotOtpRequestSchema, VerifyEmailOtpRequestSchema, VerifyEmailForgotOtpRequestSchema, VerifyOtpRequestSchema, VerifyMobileForgotOtpRequestSchema, SendMobileOtpRequestSchema, SendMobileForgotOtpRequestSchema, UpdatePasswordRequestSchema, FormRegisterRequestSchema, TokenRequestBodySchema, ForgotPasswordRequestSchema, CodeRequestBodySchema, SendResetPasswordEmailRequestSchema, SendResetPasswordMobileRequestSchema, PasswordLoginRequestSchema, SendOtpRequestSchema, OAuthRequestSchema, OAuthRequestAppleSchema, UserObjectSchema, AuthSuccess, UserExistsResponse, SendOtpResponse, ProfileEditSuccess, LoginSuccess, ResetForgotPasswordSuccess, VerifyOtpSuccess, VerifyForgotOtpSuccess, ResetPasswordSuccess, RegisterFormSuccess, VerifyEmailSuccess, HasPasswordSuccess, LogoutSuccess, DeleteUserSuccess, OtpSuccess, EmailOtpSuccess, SessionListSuccess, VerifyMobileOTPSuccess, VerifyEmailOTPSuccess, SendMobileVerifyLinkSuccess, SendEmailVerifyLinkSuccess, APIError, FormRegisterRequestSchemaPhone, OAuthRequestSchemaOauth2, OAuthRequestSchemaProfile, OAuthRequestAppleSchemaOauth, OAuthRequestAppleSchemaProfile, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, Facebook, Accountkit, Google, SessionExpiry, UserSchema, PhoneNumber, Email };
566
+ export { UpdateUserAttributes, UserAttributes, DeleteApplicationUserRequestSchema, EditEmailRequestSchema, SendVerificationLinkMobileRequestSchema, EditMobileRequestSchema, EditProfileRequestSchema, EditProfileMobileSchema, SendEmailOtpRequestSchema, SendEmailForgotOtpRequestSchema, VerifyEmailOtpRequestSchema, VerifyEmailForgotOtpRequestSchema, VerifyOtpRequestSchema, VerifyMobileForgotOtpRequestSchema, SendMobileOtpRequestSchema, SendMobileForgotOtpRequestSchema, UpdatePasswordRequestSchema, FormRegisterRequestSchema, TokenRequestBodySchema, ForgotPasswordRequestSchema, CodeRequestBodySchema, SendResetPasswordEmailRequestSchema, SendResetPasswordMobileRequestSchema, PasswordLoginRequestSchema, SendOtpRequestSchema, OAuthRequestSchema, OAuthRequestAppleSchema, UserObjectSchema, AuthSuccess, UserExistsDetails, SendOtp, ProfileEditSuccess, LoginSuccess, ResetForgotPasswordSuccess, VerifyOtpSuccess, VerifyForgotOtpSuccess, ResetPasswordSuccess, RegisterFormSuccess, VerifyEmailSuccess, HasPasswordSuccess, LogoutSuccess, DeleteUserSuccess, SendOtpSuccess, EmailOtpSuccess, SessionListSuccess, VerifyMobileOTPSuccess, VerifyEmailOTPSuccess, SendMobileVerifyLinkSuccess, SendEmailVerifyLinkSuccess, APIError, FormRegisterRequestSchemaPhone, OAuthRequestSchemaOauth2, OAuthRequestSchemaProfile, OAuthRequestAppleSchemaOauth, OAuthRequestAppleSchemaProfile, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, Facebook, Accountkit, Google, SessionExpiry, UserSchema, PhoneNumber, Email };
567
567
  }
568
- /** @returns {UpdateUserAttributesRequest} */
569
- declare function UpdateUserAttributesRequest(): UpdateUserAttributesRequest;
570
- type UpdateUserAttributesRequest = {
568
+ /** @returns {UpdateUserAttributes} */
569
+ declare function UpdateUserAttributes(): UpdateUserAttributes;
570
+ type UpdateUserAttributes = {
571
571
  /**
572
572
  * - Describes the request structure to update
573
573
  * the user attribute.
@@ -1024,18 +1024,18 @@ type AuthSuccess = {
1024
1024
  user_exists?: boolean;
1025
1025
  user?: UserSchema;
1026
1026
  };
1027
- /** @returns {UserExistsResponse} */
1028
- declare function UserExistsResponse(): UserExistsResponse;
1029
- type UserExistsResponse = {
1027
+ /** @returns {UserExistsDetails} */
1028
+ declare function UserExistsDetails(): UserExistsDetails;
1029
+ type UserExistsDetails = {
1030
1030
  /**
1031
1031
  * - Boolean which specifies if user is
1032
1032
  * registered or not.
1033
1033
  */
1034
1034
  user_exists?: boolean;
1035
1035
  };
1036
- /** @returns {SendOtpResponse} */
1037
- declare function SendOtpResponse(): SendOtpResponse;
1038
- type SendOtpResponse = {
1036
+ /** @returns {SendOtp} */
1037
+ declare function SendOtp(): SendOtp;
1038
+ type SendOtp = {
1039
1039
  /**
1040
1040
  * - Time after which opt can be resent.
1041
1041
  */
@@ -1308,9 +1308,9 @@ type DeleteUserSuccess = {
1308
1308
  */
1309
1309
  success?: boolean;
1310
1310
  };
1311
- /** @returns {OtpSuccess} */
1312
- declare function OtpSuccess(): OtpSuccess;
1313
- type OtpSuccess = {
1311
+ /** @returns {SendOtpSuccess} */
1312
+ declare function SendOtpSuccess(): SendOtpSuccess;
1313
+ type SendOtpSuccess = {
1314
1314
  /**
1315
1315
  * - The time in seconds before an OTP can be resent.
1316
1316
  */
@@ -1,7 +1,7 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef UpdateUserAttributesRequest
4
+ * @typedef UpdateUserAttributes
5
5
  * @property {Object} [attributes] - Describes the request structure to update
6
6
  * the user attribute.
7
7
  */
@@ -211,13 +211,13 @@ const Joi = require("joi");
211
211
  */
212
212
 
213
213
  /**
214
- * @typedef UserExistsResponse
214
+ * @typedef UserExistsDetails
215
215
  * @property {boolean} [user_exists] - Boolean which specifies if user is
216
216
  * registered or not.
217
217
  */
218
218
 
219
219
  /**
220
- * @typedef SendOtpResponse
220
+ * @typedef SendOtp
221
221
  * @property {number} [resend_timer] - Time after which opt can be resent.
222
222
  * @property {string} [resend_token] - Unique token to identify the OTP send
223
223
  * request and resend the token.
@@ -336,7 +336,7 @@ const Joi = require("joi");
336
336
  */
337
337
 
338
338
  /**
339
- * @typedef OtpSuccess
339
+ * @typedef SendOtpSuccess
340
340
  * @property {number} [resend_timer] - The time in seconds before an OTP can be resent.
341
341
  * @property {string} [resend_token] - A token used to authorize the resending of an OTP.
342
342
  * @property {string} [register_token] - A token used for completing the
@@ -639,17 +639,17 @@ const Joi = require("joi");
639
639
  */
640
640
 
641
641
  class UserApplicationModel {
642
- /** @returns {UpdateUserAttributesRequest} */
643
- static UpdateUserAttributesRequest() {
642
+ /** @returns {UpdateUserAttributes} */
643
+ static UpdateUserAttributes() {
644
644
  return Joi.object({
645
- attributes: Joi.any(),
645
+ attributes: Joi.object().pattern(/\S/, Joi.any()),
646
646
  });
647
647
  }
648
648
 
649
649
  /** @returns {UserAttributes} */
650
650
  static UserAttributes() {
651
651
  return Joi.object({
652
- attributes: Joi.any(),
652
+ attributes: Joi.object().pattern(/\S/, Joi.any()),
653
653
  });
654
654
  }
655
655
 
@@ -904,15 +904,15 @@ class UserApplicationModel {
904
904
  });
905
905
  }
906
906
 
907
- /** @returns {UserExistsResponse} */
908
- static UserExistsResponse() {
907
+ /** @returns {UserExistsDetails} */
908
+ static UserExistsDetails() {
909
909
  return Joi.object({
910
910
  user_exists: Joi.boolean(),
911
911
  });
912
912
  }
913
913
 
914
- /** @returns {SendOtpResponse} */
915
- static SendOtpResponse() {
914
+ /** @returns {SendOtp} */
915
+ static SendOtp() {
916
916
  return Joi.object({
917
917
  resend_timer: Joi.number(),
918
918
  resend_token: Joi.string().allow(""),
@@ -1038,8 +1038,8 @@ class UserApplicationModel {
1038
1038
  });
1039
1039
  }
1040
1040
 
1041
- /** @returns {OtpSuccess} */
1042
- static OtpSuccess() {
1041
+ /** @returns {SendOtpSuccess} */
1042
+ static SendOtpSuccess() {
1043
1043
  return Joi.object({
1044
1044
  resend_timer: Joi.number(),
1045
1045
  resend_token: Joi.string().allow(""),
@@ -1105,7 +1105,7 @@ class UserApplicationModel {
1105
1105
  info: Joi.string().allow(""),
1106
1106
  request_id: Joi.string().allow(""),
1107
1107
  error: Joi.string().allow(""),
1108
- meta: Joi.any(),
1108
+ meta: Joi.object().pattern(/\S/, Joi.any()),
1109
1109
  authenticated: Joi.boolean(),
1110
1110
  });
1111
1111
  }
@@ -1340,7 +1340,7 @@ class UserApplicationModel {
1340
1340
  application_id: Joi.string().allow(""),
1341
1341
  user_id: Joi.string().allow(""),
1342
1342
  first_name: Joi.string().allow(""),
1343
- meta: Joi.any(),
1343
+ meta: Joi.object().pattern(/\S/, Joi.any()),
1344
1344
  last_name: Joi.string().allow(""),
1345
1345
  phone_numbers: Joi.array().items(UserApplicationModel.PhoneNumber()),
1346
1346
  emails: Joi.array().items(UserApplicationModel.Email()),
@@ -164,7 +164,7 @@ export = UserApplicationValidator;
164
164
  */
165
165
  /**
166
166
  * @typedef UpdateUserAttributesParam
167
- * @property {UserApplicationModel.UpdateUserAttributesRequest} body
167
+ * @property {UserApplicationModel.UpdateUserAttributes} body
168
168
  */
169
169
  /**
170
170
  * @typedef UserExistsParam
@@ -511,7 +511,7 @@ type UpdateProfileParam = {
511
511
  body: UserApplicationModel.EditProfileRequestSchema;
512
512
  };
513
513
  type UpdateUserAttributesParam = {
514
- body: UserApplicationModel.UpdateUserAttributesRequest;
514
+ body: UserApplicationModel.UpdateUserAttributes;
515
515
  };
516
516
  type UserExistsParam = {
517
517
  /**
@@ -202,7 +202,7 @@ const UserApplicationModel = require("./UserApplicationModel");
202
202
 
203
203
  /**
204
204
  * @typedef UpdateUserAttributesParam
205
- * @property {UserApplicationModel.UpdateUserAttributesRequest} body
205
+ * @property {UserApplicationModel.UpdateUserAttributes} body
206
206
  */
207
207
 
208
208
  /**
@@ -512,7 +512,7 @@ class UserApplicationValidator {
512
512
  /** @returns {UpdateUserAttributesParam} */
513
513
  static updateUserAttributes() {
514
514
  return Joi.object({
515
- body: UserApplicationModel.UpdateUserAttributesRequest().required(),
515
+ body: UserApplicationModel.UpdateUserAttributes().required(),
516
516
  }).required();
517
517
  }
518
518
 
@@ -11,12 +11,12 @@ declare class Webhook {
11
11
  * @param {WebhookApplicationValidator.SaveClickEventParam} arg - Arg object.
12
12
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
13
13
  * @param {import("../ApplicationAPIClient").Options} - Options
14
- * @returns {Promise<WebhookApplicationModel.ClickEventResponse>} - Success response
14
+ * @returns {Promise<WebhookApplicationModel.ClickEventDetails>} - Success response
15
15
  * @name saveClickEvent
16
- * @summary: Endpoint to capture click events from sales channels and persist them in database.
17
- * @description: Send click events from sales channels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/webhook/saveClickEvent/).
16
+ * @summary: Capture and save click events from various sales channels
17
+ * @description: Send click events from various sales channels to enable insightful data collection and analysis. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/webhook/saveClickEvent/).
18
18
  */
19
- saveClickEvent({ body, requestHeaders }?: WebhookApplicationValidator.SaveClickEventParam, { responseHeaders }?: object): Promise<WebhookApplicationModel.ClickEventResponse>;
19
+ saveClickEvent({ body, requestHeaders }?: WebhookApplicationValidator.SaveClickEventParam, { responseHeaders }?: object): Promise<WebhookApplicationModel.ClickEventDetails>;
20
20
  }
21
21
  import WebhookApplicationValidator = require("./WebhookApplicationValidator");
22
22
  import WebhookApplicationModel = require("./WebhookApplicationModel");
@@ -37,10 +37,10 @@ class Webhook {
37
37
  * @param {WebhookApplicationValidator.SaveClickEventParam} arg - Arg object.
38
38
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
39
39
  * @param {import("../ApplicationAPIClient").Options} - Options
40
- * @returns {Promise<WebhookApplicationModel.ClickEventResponse>} - Success response
40
+ * @returns {Promise<WebhookApplicationModel.ClickEventDetails>} - Success response
41
41
  * @name saveClickEvent
42
- * @summary: Endpoint to capture click events from sales channels and persist them in database.
43
- * @description: Send click events from sales channels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/webhook/saveClickEvent/).
42
+ * @summary: Capture and save click events from various sales channels
43
+ * @description: Send click events from various sales channels to enable insightful data collection and analysis. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/webhook/saveClickEvent/).
44
44
  */
45
45
  async saveClickEvent(
46
46
  { body, requestHeaders } = { requestHeaders: {} },
@@ -92,7 +92,7 @@ class Webhook {
92
92
 
93
93
  const {
94
94
  error: res_error,
95
- } = WebhookApplicationModel.ClickEventResponse().validate(responseData, {
95
+ } = WebhookApplicationModel.ClickEventDetails().validate(responseData, {
96
96
  abortEarly: false,
97
97
  allowUnknown: true,
98
98
  });
@@ -4,11 +4,12 @@ export = WebhookApplicationModel;
4
4
  * @property {string} [event_name] - Name of click event.
5
5
  */
6
6
  /**
7
- * @typedef ClickEventRequest
7
+ * @typedef ClickEventPayload
8
8
  * @property {ClickEventBatch[]} [batch] - List of click events captured.
9
+ * @property {string} [sent_at]
9
10
  */
10
11
  /**
11
- * @typedef ClickEventResponse
12
+ * @typedef ClickEventDetails
12
13
  * @property {number} [success_count] - Count of valid events.
13
14
  * @property {number} [failed_count] - Count of events failed in schema validation.
14
15
  * @property {ClickEventBatch[]} [failed_events] - List of failed events with error.
@@ -16,7 +17,7 @@ export = WebhookApplicationModel;
16
17
  declare class WebhookApplicationModel {
17
18
  }
18
19
  declare namespace WebhookApplicationModel {
19
- export { ClickEventBatch, ClickEventRequest, ClickEventResponse };
20
+ export { ClickEventBatch, ClickEventPayload, ClickEventDetails };
20
21
  }
21
22
  /** @returns {ClickEventBatch} */
22
23
  declare function ClickEventBatch(): ClickEventBatch;
@@ -26,17 +27,18 @@ type ClickEventBatch = {
26
27
  */
27
28
  event_name?: string;
28
29
  };
29
- /** @returns {ClickEventRequest} */
30
- declare function ClickEventRequest(): ClickEventRequest;
31
- type ClickEventRequest = {
30
+ /** @returns {ClickEventPayload} */
31
+ declare function ClickEventPayload(): ClickEventPayload;
32
+ type ClickEventPayload = {
32
33
  /**
33
34
  * - List of click events captured.
34
35
  */
35
36
  batch?: ClickEventBatch[];
37
+ sent_at?: string;
36
38
  };
37
- /** @returns {ClickEventResponse} */
38
- declare function ClickEventResponse(): ClickEventResponse;
39
- type ClickEventResponse = {
39
+ /** @returns {ClickEventDetails} */
40
+ declare function ClickEventDetails(): ClickEventDetails;
41
+ type ClickEventDetails = {
40
42
  /**
41
43
  * - Count of valid events.
42
44
  */
@@ -6,12 +6,13 @@ const Joi = require("joi");
6
6
  */
7
7
 
8
8
  /**
9
- * @typedef ClickEventRequest
9
+ * @typedef ClickEventPayload
10
10
  * @property {ClickEventBatch[]} [batch] - List of click events captured.
11
+ * @property {string} [sent_at]
11
12
  */
12
13
 
13
14
  /**
14
- * @typedef ClickEventResponse
15
+ * @typedef ClickEventDetails
15
16
  * @property {number} [success_count] - Count of valid events.
16
17
  * @property {number} [failed_count] - Count of events failed in schema validation.
17
18
  * @property {ClickEventBatch[]} [failed_events] - List of failed events with error.
@@ -25,15 +26,16 @@ class WebhookApplicationModel {
25
26
  });
26
27
  }
27
28
 
28
- /** @returns {ClickEventRequest} */
29
- static ClickEventRequest() {
29
+ /** @returns {ClickEventPayload} */
30
+ static ClickEventPayload() {
30
31
  return Joi.object({
31
32
  batch: Joi.array().items(WebhookApplicationModel.ClickEventBatch()),
33
+ sent_at: Joi.string().allow(""),
32
34
  });
33
35
  }
34
36
 
35
- /** @returns {ClickEventResponse} */
36
- static ClickEventResponse() {
37
+ /** @returns {ClickEventDetails} */
38
+ static ClickEventDetails() {
37
39
  return Joi.object({
38
40
  success_count: Joi.number(),
39
41
  failed_count: Joi.number(),
@@ -1,7 +1,7 @@
1
1
  export = WebhookApplicationValidator;
2
2
  /**
3
3
  * @typedef SaveClickEventParam
4
- * @property {WebhookApplicationModel.ClickEventRequest} body
4
+ * @property {WebhookApplicationModel.ClickEventPayload} body
5
5
  */
6
6
  declare class WebhookApplicationValidator {
7
7
  /** @returns {SaveClickEventParam} */
@@ -11,6 +11,6 @@ declare namespace WebhookApplicationValidator {
11
11
  export { SaveClickEventParam };
12
12
  }
13
13
  type SaveClickEventParam = {
14
- body: WebhookApplicationModel.ClickEventRequest;
14
+ body: WebhookApplicationModel.ClickEventPayload;
15
15
  };
16
16
  import WebhookApplicationModel = require("./WebhookApplicationModel");
@@ -4,14 +4,14 @@ const WebhookApplicationModel = require("./WebhookApplicationModel");
4
4
 
5
5
  /**
6
6
  * @typedef SaveClickEventParam
7
- * @property {WebhookApplicationModel.ClickEventRequest} body
7
+ * @property {WebhookApplicationModel.ClickEventPayload} body
8
8
  */
9
9
 
10
10
  class WebhookApplicationValidator {
11
11
  /** @returns {SaveClickEventParam} */
12
12
  static saveClickEvent() {
13
13
  return Joi.object({
14
- body: WebhookApplicationModel.ClickEventRequest().required(),
14
+ body: WebhookApplicationModel.ClickEventPayload().required(),
15
15
  }).required();
16
16
  }
17
17
  }
@@ -8,6 +8,7 @@ export namespace ApplicationModel {
8
8
  const ConfigurationApplicationModel: typeof import("./Configuration/ConfigurationApplicationModel");
9
9
  const ContentApplicationModel: typeof import("./Content/ContentApplicationModel");
10
10
  const FileStorageApplicationModel: typeof import("./FileStorage/FileStorageApplicationModel");
11
+ const FinanceApplicationModel: typeof import("./Finance/FinanceApplicationModel");
11
12
  const LeadApplicationModel: typeof import("./Lead/LeadApplicationModel");
12
13
  const LogisticApplicationModel: typeof import("./Logistic/LogisticApplicationModel");
13
14
  const OrderApplicationModel: typeof import("./Order/OrderApplicationModel");
@@ -16,6 +16,8 @@ module.exports = {
16
16
 
17
17
  FileStorageApplicationModel: require("./FileStorage/FileStorageApplicationModel"),
18
18
 
19
+ FinanceApplicationModel: require("./Finance/FinanceApplicationModel"),
20
+
19
21
  LeadApplicationModel: require("./Lead/LeadApplicationModel"),
20
22
 
21
23
  LogisticApplicationModel: require("./Logistic/LogisticApplicationModel"),
@@ -350,6 +350,10 @@ if (typeof window != "undefined") {
350
350
 
351
351
  window.FPI.event.on("product_list.view", (eventData) => {
352
352
  Logger({ level: "DEBUG", message: eventData });
353
+ if (eventData.user && eventData.user.user_id) {
354
+ //re identify user if the payload contains user id
355
+ Clickstream.identify(eventData.user.user_id, {}, false);
356
+ }
353
357
  Clickstream.sendEvent("product_listing", {
354
358
  event_type: "impression",
355
359
  query: sg(() => eventData.slug["q"]),
@@ -372,6 +376,10 @@ if (typeof window != "undefined") {
372
376
 
373
377
  window.FPI.event.on("product.view", (eventData) => {
374
378
  Logger({ level: "DEBUG", message: eventData });
379
+ if (eventData.user && eventData.user.user_id) {
380
+ //re identify user if the payload contains user id
381
+ Clickstream.identify(eventData.user.user_id, {}, false);
382
+ }
375
383
  const payload = {
376
384
  event_type: "click",
377
385
  product_id: sg(() => eventData.product["uid"]),
@@ -410,6 +418,10 @@ if (typeof window != "undefined") {
410
418
  };
411
419
  //filter eventData.data to find the products array and item total
412
420
  let products = [];
421
+ if (eventData.user && eventData.user.user_id) {
422
+ //re identify user if the payload contains user id
423
+ Clickstream.identify(eventData.user.user_id, {}, false);
424
+ }
413
425
  if (eventData.data && eventData.data.length > 0) {
414
426
  products = eventData.data
415
427
  .filter((item) => {
@@ -46,6 +46,7 @@ export namespace AVAILABLE_PAGE_TYPE {
46
46
  const SHIPPING_POLICY: string;
47
47
  const RETURN_POLICY: string;
48
48
  const ORDER_STATUS: string;
49
+ const LOCATE_US: string;
49
50
  }
50
51
  export const NAVIGATORS: {
51
52
  "about-us": {
@@ -296,4 +297,8 @@ export const NAVIGATORS: {
296
297
  name: string;
297
298
  link: string;
298
299
  };
300
+ "locate-us": {
301
+ name: string;
302
+ link: string;
303
+ };
299
304
  };
@@ -46,6 +46,7 @@ const AVAILABLE_PAGE_TYPE = {
46
46
  SHIPPING_POLICY: "shipping-policy",
47
47
  RETURN_POLICY: "return-policy",
48
48
  ORDER_STATUS: "order-status",
49
+ LOCATE_US: "locate-us",
49
50
  };
50
51
 
51
52
  Object.freeze(AVAILABLE_PAGE_TYPE);
@@ -329,6 +330,10 @@ const NAVIGATORS = {
329
330
  name: "Order status",
330
331
  link: "/cart/order-status",
331
332
  },
333
+ "locate-us": {
334
+ name: "Locate us",
335
+ link: "/locate-us",
336
+ },
332
337
  };
333
338
 
334
339
  module.exports = {
@@ -3,12 +3,32 @@ declare class FileStorage {
3
3
  constructor(config: any);
4
4
  config: any;
5
5
  /**
6
- * @param {FileStoragePartnerValidator.StartUploadParam} arg - Arg object.
6
+ * @param {FileStoragePartnerValidator.GetAllNamespaceDetailsParam} arg - Arg object.
7
7
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
8
8
  * @param {import("../PartnerAPIClient").Options} - Options
9
- * @returns {Promise<FileStoragePartnerModel.StartResponse>} - Success response
10
- * @name startUpload
11
- * @summary: This operation initiates upload and returns storage link which is valid for 30 Minutes. You can use that storage link to make subsequent upload request with file buffer or blob
9
+ * @returns {Promise<FileStoragePartnerModel.AllNamespaceDetails>} - Success response
10
+ * @name getAllNamespaceDetails
11
+ * @summary: Get details of all namespaces
12
+ * @description: Retrieve information about all available namespaces - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/getAllNamespaceDetails/).
13
+ */
14
+ getAllNamespaceDetails({ requestHeaders }?: FileStoragePartnerValidator.GetAllNamespaceDetailsParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.AllNamespaceDetails>;
15
+ /**
16
+ * @param {FileStoragePartnerValidator.GetNamespaceDetailParam} arg - Arg object.
17
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
18
+ * @param {import("../PartnerAPIClient").Options} - Options
19
+ * @returns {Promise<FileStoragePartnerModel.NamespaceDetails>} - Success response
20
+ * @name getNamespaceDetail
21
+ * @summary: Get details of a namespace
22
+ * @description: Retrieve information about a specific namespace - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/getNamespaceDetail/).
23
+ */
24
+ getNamespaceDetail({ namespace, requestHeaders }?: FileStoragePartnerValidator.GetNamespaceDetailParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.NamespaceDetails>;
25
+ /**
26
+ * @param {FileStoragePartnerValidator.CompleteUploadParam} arg - Arg object.
27
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
28
+ * @param {import("../PartnerAPIClient").Options} - Options
29
+ * @returns {Promise<FileStoragePartnerModel.FileUploadComplete>} - Success response
30
+ * @name completeUpload
31
+ * @summary: This will complete the upload process. After successfully uploading file, you can call this operation to complete the upload process.
12
32
  * @description: Uploads an arbitrarily sized buffer or blob.
13
33
  *
14
34
  * It has three Major Steps:
@@ -27,16 +47,16 @@ declare class FileStorage {
27
47
  * ### Complete
28
48
  * After successfully upload, call `completeUpload` api to complete the upload process.
29
49
  * This operation will return the url for the uploaded file.
30
- * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/startUpload/).
50
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/completeUpload/).
31
51
  */
32
- startUpload({ namespace, body, requestHeaders }?: FileStoragePartnerValidator.StartUploadParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.StartResponse>;
52
+ completeUpload({ namespace, body, requestHeaders }?: FileStoragePartnerValidator.CompleteUploadParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.FileUploadComplete>;
33
53
  /**
34
- * @param {FileStoragePartnerValidator.CompleteUploadParam} arg - Arg object.
54
+ * @param {FileStoragePartnerValidator.StartUploadParam} arg - Arg object.
35
55
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
36
56
  * @param {import("../PartnerAPIClient").Options} - Options
37
- * @returns {Promise<FileStoragePartnerModel.CompleteResponse>} - Success response
38
- * @name completeUpload
39
- * @summary: This will complete the upload process. After successfully uploading file, you can call this operation to complete the upload process
57
+ * @returns {Promise<FileStoragePartnerModel.FileUpload>} - Success response
58
+ * @name startUpload
59
+ * @summary: This operation initiates upload and returns storage link which is valid for 30 Minutes. You can use that storage link to make subsequent upload request with file buffer or blob.
40
60
  * @description: Uploads an arbitrarily sized buffer or blob.
41
61
  *
42
62
  * It has three Major Steps:
@@ -55,9 +75,9 @@ declare class FileStorage {
55
75
  * ### Complete
56
76
  * After successfully upload, call `completeUpload` api to complete the upload process.
57
77
  * This operation will return the url for the uploaded file.
58
- * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/completeUpload/).
78
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/startUpload/).
59
79
  */
60
- completeUpload({ namespace, body, requestHeaders }?: FileStoragePartnerValidator.CompleteUploadParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.CompleteResponse>;
80
+ startUpload({ namespace, body, requestHeaders }?: FileStoragePartnerValidator.StartUploadParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.FileUpload>;
61
81
  /**
62
82
  * @param {FileStoragePartnerValidator.BrowseParam} arg - Arg object.
63
83
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -68,5 +88,59 @@ declare class FileStorage {
68
88
  * @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/browse/).
69
89
  */
70
90
  browse({ namespace, applicationId, companyId, page, limit, requestHeaders }?: FileStoragePartnerValidator.BrowseParam, { responseHeaders }?: object): Promise<any>;
91
+ /**
92
+ * @param {FileStoragePartnerValidator.BrowseFilesParam} arg - Arg object.
93
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
94
+ * @param {import("../PartnerAPIClient").Options} - Options
95
+ * @returns {Promise<Object>} - Success response
96
+ * @name browseFiles
97
+ * @summary: Browse Files
98
+ * @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/browseFiles/).
99
+ */
100
+ browseFiles({ namespace, page, limit, requestHeaders }?: FileStoragePartnerValidator.BrowseFilesParam, { responseHeaders }?: object): Promise<any>;
101
+ /**
102
+ * @param {FileStoragePartnerValidator.OrganizationLevelFetchProxyParam} arg
103
+ * - Arg object.
104
+ *
105
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
106
+ * @param {import("../PartnerAPIClient").Options} - Options
107
+ * @returns {Promise<FileStoragePartnerModel.FetchProxyDetails>} - Success response
108
+ * @name organizationLevelFetchProxy
109
+ * @summary: Proxy
110
+ * @description: Proxy - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/organizationLevelFetchProxy/).
111
+ */
112
+ organizationLevelFetchProxy({ applicationId, companyId, url, requestHeaders }?: FileStoragePartnerValidator.OrganizationLevelFetchProxyParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.FetchProxyDetails>;
113
+ /**
114
+ * @param {FileStoragePartnerValidator.SaveOrganizationLevelProxyParam} arg
115
+ * - Arg object.
116
+ *
117
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
118
+ * @param {import("../PartnerAPIClient").Options} - Options
119
+ * @returns {Promise<FileStoragePartnerModel.SaveProxy>} - Success response
120
+ * @name saveOrganizationLevelProxy
121
+ * @summary: Proxy
122
+ * @description: Proxy - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/saveOrganizationLevelProxy/).
123
+ */
124
+ saveOrganizationLevelProxy({ applicationId, companyId, body, requestHeaders }?: FileStoragePartnerValidator.SaveOrganizationLevelProxyParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.SaveProxy>;
125
+ /**
126
+ * @param {FileStoragePartnerValidator.FetchProxyParam} arg - Arg object.
127
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
128
+ * @param {import("../PartnerAPIClient").Options} - Options
129
+ * @returns {Promise<FileStoragePartnerModel.FetchProxyDetails>} - Success response
130
+ * @name fetchProxy
131
+ * @summary: Proxy
132
+ * @description: Proxy - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/fetchProxy/).
133
+ */
134
+ fetchProxy({ url, requestHeaders }?: FileStoragePartnerValidator.FetchProxyParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.FetchProxyDetails>;
135
+ /**
136
+ * @param {FileStoragePartnerValidator.SaveProxyDetailsParam} arg - Arg object.
137
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
138
+ * @param {import("../PartnerAPIClient").Options} - Options
139
+ * @returns {Promise<FileStoragePartnerModel.SaveProxy>} - Success response
140
+ * @name saveProxyDetails
141
+ * @summary: Proxy
142
+ * @description: Proxy - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/saveProxyDetails/).
143
+ */
144
+ saveProxyDetails({ body, requestHeaders }?: FileStoragePartnerValidator.SaveProxyDetailsParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.SaveProxy>;
71
145
  }
72
146
  import FileStoragePartnerModel = require("./FileStoragePartnerModel");