@gofynd/fdk-client-javascript 1.6.4 → 3.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) 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 +100 -80
  6. package/sdk/application/Cart/CartApplicationClient.js +257 -126
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +3 -3
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +61 -21
  16. package/sdk/application/Content/ContentApplicationClient.js +250 -36
  17. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  18. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  19. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +106 -57
  20. package/sdk/application/Logistic/LogisticApplicationClient.js +326 -208
  21. package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
  22. package/sdk/application/Order/OrderApplicationClient.js +140 -21
  23. package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
  24. package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
  25. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  26. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  27. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  28. package/sdk/application/Share/ShareApplicationClient.js +14 -14
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
  30. package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
  31. package/sdk/application/User/UserApplicationClient.d.ts +13 -23
  32. package/sdk/application/User/UserApplicationClient.js +9 -57
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  35. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
  36. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
  37. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
  38. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
  39. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
  40. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
  41. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
  42. package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
  43. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
  44. package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
  45. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
  46. package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
  47. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +0 -10
  48. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +0 -75
  49. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +1 -54
  50. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +0 -43
  51. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
  52. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -6
  53. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  54. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  55. package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
  56. package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
  57. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  58. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
  59. package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
  60. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
  61. package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
  62. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
  63. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
  64. package/sdk/partner/PartnerClient.d.ts +6 -0
  65. package/sdk/partner/PartnerClient.js +9 -0
  66. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
  67. package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
  68. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
  69. package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
  70. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
  71. package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
  72. package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
  73. package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
  74. package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
  75. package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
  76. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
  77. package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
  78. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  79. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  80. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -670
  81. package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
  82. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  83. package/sdk/partner/index.d.ts +3 -0
  84. package/sdk/partner/index.js +6 -0
  85. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
  86. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  87. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
  88. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
  89. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  90. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  91. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
  92. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
  93. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  94. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  95. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  96. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  97. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  98. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  99. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  100. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  101. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +251 -172
  102. package/sdk/platform/Cart/CartPlatformApplicationClient.js +639 -521
  103. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  104. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
  105. package/sdk/platform/Cart/CartPlatformModel.d.ts +3150 -4468
  106. package/sdk/platform/Cart/CartPlatformModel.js +2858 -1867
  107. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +976 -380
  108. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6475 -2015
  109. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1083 -162
  110. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +884 -80
  111. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +325 -568
  112. package/sdk/platform/Catalog/CatalogPlatformClient.js +1162 -1562
  113. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6008 -7688
  114. package/sdk/platform/Catalog/CatalogPlatformModel.js +9522 -6892
  115. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +234 -227
  116. package/sdk/platform/Catalog/CatalogPlatformValidator.js +183 -177
  117. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
  118. package/sdk/platform/Common/CommonPlatformClient.js +5 -6
  119. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  120. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  121. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -238
  122. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +876 -588
  123. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
  124. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
  125. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
  126. package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
  127. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +506 -270
  128. package/sdk/platform/Communication/CommunicationPlatformModel.js +611 -313
  129. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
  130. package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
  131. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +78 -77
  132. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +97 -91
  133. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
  134. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
  135. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +31 -20
  136. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -20
  137. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
  138. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
  139. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
  140. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
  141. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
  142. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
  143. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1206 -459
  144. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1011 -320
  145. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
  146. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
  147. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +255 -140
  148. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1095 -464
  149. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
  150. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
  151. package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
  152. package/sdk/platform/Content/ContentPlatformClient.js +459 -379
  153. package/sdk/platform/Content/ContentPlatformModel.d.ts +871 -1315
  154. package/sdk/platform/Content/ContentPlatformModel.js +940 -599
  155. package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
  156. package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
  157. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
  158. package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
  159. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
  160. package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
  161. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  162. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  163. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
  164. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
  165. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
  166. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
  167. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  168. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  169. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
  170. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
  171. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  172. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  173. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  174. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  175. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
  176. package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
  177. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  178. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  179. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  180. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  181. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  182. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  183. package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
  184. package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
  185. package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
  186. package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
  187. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
  188. package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
  189. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
  190. package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
  191. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
  192. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
  193. package/sdk/platform/Order/OrderPlatformClient.d.ts +486 -277
  194. package/sdk/platform/Order/OrderPlatformClient.js +1491 -938
  195. package/sdk/platform/Order/OrderPlatformModel.d.ts +4560 -8636
  196. package/sdk/platform/Order/OrderPlatformModel.js +3604 -4056
  197. package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
  198. package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
  199. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  200. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  201. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  202. package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
  203. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
  204. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
  205. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
  206. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
  207. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
  208. package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
  209. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3531 -1292
  210. package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1504
  211. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
  212. package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
  213. package/sdk/platform/PlatformClient.d.ts +2 -0
  214. package/sdk/platform/PlatformClient.js +4 -0
  215. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  216. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  217. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  218. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  219. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
  220. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
  221. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
  222. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2188 -302
  223. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +394 -54
  224. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +342 -37
  225. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +150 -212
  226. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +589 -1238
  227. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3581 -2960
  228. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3730 -1779
  229. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +230 -382
  230. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +164 -287
  231. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
  232. package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
  233. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
  234. package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
  235. package/sdk/platform/Share/SharePlatformModel.d.ts +11 -50
  236. package/sdk/platform/Share/SharePlatformModel.js +5 -43
  237. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +36 -16
  238. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +201 -58
  239. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +28 -17
  240. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +33 -16
  241. package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
  242. package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
  243. package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
  244. package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
  245. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
  246. package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
  247. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +18 -71
  248. package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
  249. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
  250. package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
  251. package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
  252. package/sdk/platform/User/UserPlatformModel.js +209 -216
  253. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  254. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  255. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
  256. package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
  257. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  258. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  259. package/sdk/platform/index.d.ts +1 -0
  260. package/sdk/platform/index.js +2 -0
  261. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
  262. package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
  263. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
  264. package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
  265. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
  266. package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
  267. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  268. package/sdk/public/Content/ContentPublicClient.js +183 -0
  269. package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
  270. package/sdk/public/Content/ContentPublicModel.js +47 -1
  271. package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
  272. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  273. package/sdk/public/PublicClient.d.ts +0 -2
  274. package/sdk/public/PublicClient.js +0 -4
  275. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  276. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  277. package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
  278. package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
  279. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  280. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  281. package/sdk/public/index.d.ts +0 -1
  282. package/sdk/public/index.js +0 -2
  283. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  284. package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
  285. package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
  286. package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
  287. package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
  288. package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
  289. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
  290. package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
@@ -16,25 +16,21 @@ class Theme {
16
16
  }
17
17
 
18
18
  /**
19
- * @param {ThemePlatformApplicationValidator.AddThemeToApplicationParam} arg
20
- * - Arg object
21
- *
19
+ * @param {ThemePlatformApplicationValidator.ApplyThemeParam} arg - Arg object
22
20
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
23
21
  * @param {import("../PlatformAPIClient").Options} - Options
24
22
  * @returns {Promise<ThemePlatformModel.ThemesSchema>} - Success response
25
- * @name addThemeToApplication
26
- * @summary: Create theme in sales channel
27
- * @description: Include a theme in an application drafts from theme collection. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/addThemeToApplication/).
23
+ * @name applyTheme
24
+ * @summary: Apply a theme
25
+ * @description: Change current applied theme with new draft theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/applyTheme/).
28
26
  */
29
- async addThemeToApplication(
30
- { body, requestHeaders } = { requestHeaders: {} },
27
+ async applyTheme(
28
+ { themeId, requestHeaders } = { requestHeaders: {} },
31
29
  { responseHeaders } = { responseHeaders: false }
32
30
  ) {
33
- const {
34
- error,
35
- } = ThemePlatformApplicationValidator.addThemeToApplication().validate(
31
+ const { error } = ThemePlatformApplicationValidator.applyTheme().validate(
36
32
  {
37
- body,
33
+ themeId,
38
34
  },
39
35
  { abortEarly: false, allowUnknown: true }
40
36
  );
@@ -45,16 +41,16 @@ class Theme {
45
41
  // Showing warrnings if extra unknown parameters are found
46
42
  const {
47
43
  error: warrning,
48
- } = ThemePlatformApplicationValidator.addThemeToApplication().validate(
44
+ } = ThemePlatformApplicationValidator.applyTheme().validate(
49
45
  {
50
- body,
46
+ themeId,
51
47
  },
52
48
  { abortEarly: false, allowUnknown: false }
53
49
  );
54
50
  if (warrning) {
55
51
  Logger({
56
52
  level: "WARN",
57
- message: `Parameter Validation warrnings for platform > Theme > addThemeToApplication \n ${warrning}`,
53
+ message: `Parameter Validation warrnings for platform > Theme > applyTheme \n ${warrning}`,
58
54
  });
59
55
  }
60
56
 
@@ -62,10 +58,10 @@ class Theme {
62
58
 
63
59
  const response = await PlatformAPIClient.execute(
64
60
  this.config,
65
- "post",
66
- `/service/platform/theme/v2.0/company/${this.config.companyId}/application/${this.applicationId}/`,
61
+ "patch",
62
+ `/service/platform/theme/v2.0/company/${this.config.companyId}/application/${this.applicationId}/${themeId}/apply`,
67
63
  query_params,
68
- body,
64
+ undefined,
69
65
  requestHeaders,
70
66
  { responseHeaders }
71
67
  );
@@ -88,7 +84,7 @@ class Theme {
88
84
  } else {
89
85
  Logger({
90
86
  level: "WARN",
91
- message: `Response Validation Warnings for platform > Theme > addThemeToApplication \n ${res_error}`,
87
+ message: `Response Validation Warnings for platform > Theme > applyTheme \n ${res_error}`,
92
88
  });
93
89
  }
94
90
  }
@@ -97,21 +93,22 @@ class Theme {
97
93
  }
98
94
 
99
95
  /**
100
- * @param {ThemePlatformApplicationValidator.ApplyThemeParam} arg - Arg object
96
+ * @param {ThemePlatformApplicationValidator.CreatePageParam} arg - Arg object
101
97
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
102
98
  * @param {import("../PlatformAPIClient").Options} - Options
103
- * @returns {Promise<ThemePlatformModel.ThemesSchema>} - Success response
104
- * @name applyTheme
105
- * @summary: Apply a theme
106
- * @description: Change current applied theme with new draft theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/applyTheme/).
99
+ * @returns {Promise<ThemePlatformModel.AvailablePageSchema>} - Success response
100
+ * @name createPage
101
+ * @summary: Create theme page
102
+ * @description: Generate and add a new page to the selected theme of the Platform. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/createPage/).
107
103
  */
108
- async applyTheme(
109
- { themeId, requestHeaders } = { requestHeaders: {} },
104
+ async createPage(
105
+ { themeId, body, requestHeaders } = { requestHeaders: {} },
110
106
  { responseHeaders } = { responseHeaders: false }
111
107
  ) {
112
- const { error } = ThemePlatformApplicationValidator.applyTheme().validate(
108
+ const { error } = ThemePlatformApplicationValidator.createPage().validate(
113
109
  {
114
110
  themeId,
111
+ body,
115
112
  },
116
113
  { abortEarly: false, allowUnknown: true }
117
114
  );
@@ -122,16 +119,17 @@ class Theme {
122
119
  // Showing warrnings if extra unknown parameters are found
123
120
  const {
124
121
  error: warrning,
125
- } = ThemePlatformApplicationValidator.applyTheme().validate(
122
+ } = ThemePlatformApplicationValidator.createPage().validate(
126
123
  {
127
124
  themeId,
125
+ body,
128
126
  },
129
127
  { abortEarly: false, allowUnknown: false }
130
128
  );
131
129
  if (warrning) {
132
130
  Logger({
133
131
  level: "WARN",
134
- message: `Parameter Validation warrnings for platform > Theme > applyTheme \n ${warrning}`,
132
+ message: `Parameter Validation warrnings for platform > Theme > createPage \n ${warrning}`,
135
133
  });
136
134
  }
137
135
 
@@ -139,10 +137,10 @@ class Theme {
139
137
 
140
138
  const response = await PlatformAPIClient.execute(
141
139
  this.config,
142
- "patch",
143
- `/service/platform/theme/v2.0/company/${this.config.companyId}/application/${this.applicationId}/${themeId}/apply`,
140
+ "post",
141
+ `/service/platform/theme/v1.0/company/${this.config.companyId}/application/${this.applicationId}/${themeId}/page`,
144
142
  query_params,
145
- undefined,
143
+ body,
146
144
  requestHeaders,
147
145
  { responseHeaders }
148
146
  );
@@ -154,7 +152,7 @@ class Theme {
154
152
 
155
153
  const {
156
154
  error: res_error,
157
- } = ThemePlatformModel.ThemesSchema().validate(responseData, {
155
+ } = ThemePlatformModel.AvailablePageSchema().validate(responseData, {
158
156
  abortEarly: false,
159
157
  allowUnknown: true,
160
158
  });
@@ -165,7 +163,7 @@ class Theme {
165
163
  } else {
166
164
  Logger({
167
165
  level: "WARN",
168
- message: `Response Validation Warnings for platform > Theme > applyTheme \n ${res_error}`,
166
+ message: `Response Validation Warnings for platform > Theme > createPage \n ${res_error}`,
169
167
  });
170
168
  }
171
169
  }
@@ -174,21 +172,20 @@ class Theme {
174
172
  }
175
173
 
176
174
  /**
177
- * @param {ThemePlatformApplicationValidator.CreatePageParam} arg - Arg object
175
+ * @param {ThemePlatformApplicationValidator.CreateThemeParam} arg - Arg object
178
176
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
179
177
  * @param {import("../PlatformAPIClient").Options} - Options
180
- * @returns {Promise<ThemePlatformModel.AvailablePageSchema>} - Success response
181
- * @name createPage
182
- * @summary: Create theme page
183
- * @description: Generate and add a new page to the selected theme of the Platform. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/createPage/).
178
+ * @returns {Promise<ThemePlatformModel.ThemesSchema>} - Success response
179
+ * @name createTheme
180
+ * @summary: Get Create theme
181
+ * @description: Creating a new theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/createTheme/).
184
182
  */
185
- async createPage(
186
- { themeId, body, requestHeaders } = { requestHeaders: {} },
183
+ async createTheme(
184
+ { body, requestHeaders } = { requestHeaders: {} },
187
185
  { responseHeaders } = { responseHeaders: false }
188
186
  ) {
189
- const { error } = ThemePlatformApplicationValidator.createPage().validate(
187
+ const { error } = ThemePlatformApplicationValidator.createTheme().validate(
190
188
  {
191
- themeId,
192
189
  body,
193
190
  },
194
191
  { abortEarly: false, allowUnknown: true }
@@ -200,9 +197,8 @@ class Theme {
200
197
  // Showing warrnings if extra unknown parameters are found
201
198
  const {
202
199
  error: warrning,
203
- } = ThemePlatformApplicationValidator.createPage().validate(
200
+ } = ThemePlatformApplicationValidator.createTheme().validate(
204
201
  {
205
- themeId,
206
202
  body,
207
203
  },
208
204
  { abortEarly: false, allowUnknown: false }
@@ -210,7 +206,7 @@ class Theme {
210
206
  if (warrning) {
211
207
  Logger({
212
208
  level: "WARN",
213
- message: `Parameter Validation warrnings for platform > Theme > createPage \n ${warrning}`,
209
+ message: `Parameter Validation warrnings for platform > Theme > createTheme \n ${warrning}`,
214
210
  });
215
211
  }
216
212
 
@@ -219,7 +215,7 @@ class Theme {
219
215
  const response = await PlatformAPIClient.execute(
220
216
  this.config,
221
217
  "post",
222
- `/service/platform/theme/v1.0/company/${this.config.companyId}/application/${this.applicationId}/${themeId}/page`,
218
+ `/service/platform/theme/v2.0/company/${this.config.companyId}/application/${this.applicationId}`,
223
219
  query_params,
224
220
  body,
225
221
  requestHeaders,
@@ -233,7 +229,7 @@ class Theme {
233
229
 
234
230
  const {
235
231
  error: res_error,
236
- } = ThemePlatformModel.AvailablePageSchema().validate(responseData, {
232
+ } = ThemePlatformModel.ThemesSchema().validate(responseData, {
237
233
  abortEarly: false,
238
234
  allowUnknown: true,
239
235
  });
@@ -244,7 +240,7 @@ class Theme {
244
240
  } else {
245
241
  Logger({
246
242
  level: "WARN",
247
- message: `Response Validation Warnings for platform > Theme > createPage \n ${res_error}`,
243
+ message: `Response Validation Warnings for platform > Theme > createTheme \n ${res_error}`,
248
244
  });
249
245
  }
250
246
  }
@@ -943,6 +939,157 @@ class Theme {
943
939
  return response;
944
940
  }
945
941
 
942
+ /**
943
+ * @param {ThemePlatformApplicationValidator.GetFontsV2Param} arg - Arg object
944
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
945
+ * @param {import("../PlatformAPIClient").Options} - Options
946
+ * @returns {Promise<ThemePlatformModel.FontsSchema>} - Success response
947
+ * @name getFontsV2
948
+ * @summary: List theme fonts
949
+ * @description: Retrieve a list of available fonts that can be used by themes in the platform. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/getFontsV2/).
950
+ */
951
+ async getFontsV2(
952
+ { requestHeaders } = { requestHeaders: {} },
953
+ { responseHeaders } = { responseHeaders: false }
954
+ ) {
955
+ const { error } = ThemePlatformApplicationValidator.getFontsV2().validate(
956
+ {},
957
+ { abortEarly: false, allowUnknown: true }
958
+ );
959
+ if (error) {
960
+ return Promise.reject(new FDKClientValidationError(error));
961
+ }
962
+
963
+ // Showing warrnings if extra unknown parameters are found
964
+ const {
965
+ error: warrning,
966
+ } = ThemePlatformApplicationValidator.getFontsV2().validate(
967
+ {},
968
+ { abortEarly: false, allowUnknown: false }
969
+ );
970
+ if (warrning) {
971
+ Logger({
972
+ level: "WARN",
973
+ message: `Parameter Validation warrnings for platform > Theme > getFontsV2 \n ${warrning}`,
974
+ });
975
+ }
976
+
977
+ const query_params = {};
978
+
979
+ const response = await PlatformAPIClient.execute(
980
+ this.config,
981
+ "get",
982
+ `/service/platform/theme/v2.0/company/${this.config.companyId}/application/${this.applicationId}/fonts`,
983
+ query_params,
984
+ undefined,
985
+ requestHeaders,
986
+ { responseHeaders }
987
+ );
988
+
989
+ let responseData = response;
990
+ if (responseHeaders) {
991
+ responseData = response[0];
992
+ }
993
+
994
+ const {
995
+ error: res_error,
996
+ } = ThemePlatformModel.FontsSchema().validate(responseData, {
997
+ abortEarly: false,
998
+ allowUnknown: true,
999
+ });
1000
+
1001
+ if (res_error) {
1002
+ if (this.config.options.strictResponseCheck === true) {
1003
+ return Promise.reject(new FDKResponseValidationError(res_error));
1004
+ } else {
1005
+ Logger({
1006
+ level: "WARN",
1007
+ message: `Response Validation Warnings for platform > Theme > getFontsV2 \n ${res_error}`,
1008
+ });
1009
+ }
1010
+ }
1011
+
1012
+ return response;
1013
+ }
1014
+
1015
+ /**
1016
+ * @param {ThemePlatformApplicationValidator.GetLatestVersionOfThemeBySlugParam} arg
1017
+ * - Arg object
1018
+ *
1019
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1020
+ * @param {import("../PlatformAPIClient").Options} - Options
1021
+ * @returns {Promise<ThemePlatformModel.MarketplaceTheme[]>} - Success response
1022
+ * @name getLatestVersionOfThemeBySlug
1023
+ * @summary: Get latest version of theme by slug.
1024
+ * @description: Retrieve the most recent version of a theme using its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/getLatestVersionOfThemeBySlug/).
1025
+ */
1026
+ async getLatestVersionOfThemeBySlug(
1027
+ { slugName, requestHeaders } = { requestHeaders: {} },
1028
+ { responseHeaders } = { responseHeaders: false }
1029
+ ) {
1030
+ const {
1031
+ error,
1032
+ } = ThemePlatformApplicationValidator.getLatestVersionOfThemeBySlug().validate(
1033
+ {
1034
+ slugName,
1035
+ },
1036
+ { abortEarly: false, allowUnknown: true }
1037
+ );
1038
+ if (error) {
1039
+ return Promise.reject(new FDKClientValidationError(error));
1040
+ }
1041
+
1042
+ // Showing warrnings if extra unknown parameters are found
1043
+ const {
1044
+ error: warrning,
1045
+ } = ThemePlatformApplicationValidator.getLatestVersionOfThemeBySlug().validate(
1046
+ {
1047
+ slugName,
1048
+ },
1049
+ { abortEarly: false, allowUnknown: false }
1050
+ );
1051
+ if (warrning) {
1052
+ Logger({
1053
+ level: "WARN",
1054
+ message: `Parameter Validation warrnings for platform > Theme > getLatestVersionOfThemeBySlug \n ${warrning}`,
1055
+ });
1056
+ }
1057
+
1058
+ const query_params = {};
1059
+
1060
+ const response = await PlatformAPIClient.execute(
1061
+ this.config,
1062
+ "get",
1063
+ `/service/platform/theme/v2.0/company/${this.config.companyId}/application/${this.applicationId}/slug/${slugName}/latest`,
1064
+ query_params,
1065
+ undefined,
1066
+ requestHeaders,
1067
+ { responseHeaders }
1068
+ );
1069
+
1070
+ let responseData = response;
1071
+ if (responseHeaders) {
1072
+ responseData = response[0];
1073
+ }
1074
+
1075
+ const { error: res_error } = Joi.array()
1076
+ .items(ThemePlatformModel.MarketplaceTheme())
1077
+ .validate(responseData, { abortEarly: false, allowUnknown: true });
1078
+
1079
+ if (res_error) {
1080
+ if (this.config.options.strictResponseCheck === true) {
1081
+ return Promise.reject(new FDKResponseValidationError(res_error));
1082
+ } else {
1083
+ Logger({
1084
+ level: "WARN",
1085
+ message: `Response Validation Warnings for platform > Theme > getLatestVersionOfThemeBySlug \n ${res_error}`,
1086
+ });
1087
+ }
1088
+ }
1089
+
1090
+ return response;
1091
+ }
1092
+
946
1093
  /**
947
1094
  * @param {ThemePlatformApplicationValidator.GetPageParam} arg - Arg object
948
1095
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -1260,10 +1407,10 @@ class Theme {
1260
1407
  * @param {ThemePlatformApplicationValidator.IsUpgradableParam} arg - Arg object
1261
1408
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1262
1409
  * @param {import("../PlatformAPIClient").Options} - Options
1263
- * @returns {Promise<ThemePlatformModel.ThemeUpgradable>} - Success response
1410
+ * @returns {Promise<ThemePlatformModel.ThemeUpgradableResponse>} - Success response
1264
1411
  * @name isUpgradable
1265
1412
  * @summary: Check theme is upgradable
1266
- * @description: Determine if a public theme is eligible for an upgrade to a new version after any new version released in marketplace. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/isUpgradable/).
1413
+ * @description: Determine if a public theme is eligible for an upgrade to a new version after any new version released in marketplace. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/isUpgradable/).
1267
1414
  */
1268
1415
  async isUpgradable(
1269
1416
  { themeId, requestHeaders } = { requestHeaders: {} },
@@ -1314,7 +1461,7 @@ class Theme {
1314
1461
 
1315
1462
  const {
1316
1463
  error: res_error,
1317
- } = ThemePlatformModel.ThemeUpgradable().validate(responseData, {
1464
+ } = ThemePlatformModel.ThemeUpgradableResponse().validate(responseData, {
1318
1465
  abortEarly: false,
1319
1466
  allowUnknown: true,
1320
1467
  });
@@ -1426,16 +1573,13 @@ class Theme {
1426
1573
  * @description: Modify and update the content of a page. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/updatePage/).
1427
1574
  */
1428
1575
  async updatePage(
1429
- { themeId, pageValue, socketId, body, requestHeaders } = {
1430
- requestHeaders: {},
1431
- },
1576
+ { themeId, pageValue, body, requestHeaders } = { requestHeaders: {} },
1432
1577
  { responseHeaders } = { responseHeaders: false }
1433
1578
  ) {
1434
1579
  const { error } = ThemePlatformApplicationValidator.updatePage().validate(
1435
1580
  {
1436
1581
  themeId,
1437
1582
  pageValue,
1438
- socketId,
1439
1583
  body,
1440
1584
  },
1441
1585
  { abortEarly: false, allowUnknown: true }
@@ -1451,7 +1595,6 @@ class Theme {
1451
1595
  {
1452
1596
  themeId,
1453
1597
  pageValue,
1454
- socketId,
1455
1598
  body,
1456
1599
  },
1457
1600
  { abortEarly: false, allowUnknown: false }
@@ -1468,7 +1611,7 @@ class Theme {
1468
1611
  const response = await PlatformAPIClient.execute(
1469
1612
  this.config,
1470
1613
  "put",
1471
- `/service/platform/theme/v1.0/company/${this.config.companyId}/application/${this.applicationId}/${themeId}/${pageValue}/${socketId}`,
1614
+ `/service/platform/theme/v1.0/company/${this.config.companyId}/application/${this.applicationId}/${themeId}/${pageValue}`,
1472
1615
  query_params,
1473
1616
  body,
1474
1617
  requestHeaders,
@@ -1,8 +1,4 @@
1
1
  export = ThemePlatformApplicationValidator;
2
- /**
3
- * @typedef AddThemeToApplicationParam
4
- * @property {ThemePlatformModel.ThemeReq} body
5
- */
6
2
  /**
7
3
  * @typedef ApplyThemeParam
8
4
  * @property {string} themeId - The ID of the apply
@@ -12,6 +8,10 @@ export = ThemePlatformApplicationValidator;
12
8
  * @property {string} themeId - ID of the theme
13
9
  * @property {ThemePlatformModel.AvailablePageSchema} body
14
10
  */
11
+ /**
12
+ * @typedef CreateThemeParam
13
+ * @property {ThemePlatformModel.CompanyThemeReqSchema} body
14
+ */
15
15
  /**
16
16
  * @typedef DeletePageParam
17
17
  * @property {string} themeId - ID of the theme
@@ -38,6 +38,11 @@ export = ThemePlatformApplicationValidator;
38
38
  * @property {string} [companyMode] - The mode of the company
39
39
  */
40
40
  /** @typedef GetFontsParam */
41
+ /** @typedef GetFontsV2Param */
42
+ /**
43
+ * @typedef GetLatestVersionOfThemeBySlugParam
44
+ * @property {string} slugName - Slug of theme
45
+ */
41
46
  /**
42
47
  * @typedef GetPageParam
43
48
  * @property {string} themeId - ID of the theme to be retrieved
@@ -68,13 +73,12 @@ export = ThemePlatformApplicationValidator;
68
73
  * @typedef UpdatePageParam
69
74
  * @property {string} themeId - ID of the theme
70
75
  * @property {string} pageValue - Value of the page to be updated
71
- * @property {string} socketId - Unique socket id for websocket
72
76
  * @property {ThemePlatformModel.AvailablePageSchema} body
73
77
  */
74
78
  /**
75
79
  * @typedef UpdateThemeParam
76
80
  * @property {string} themeId - The ID of the theme.
77
- * @property {ThemePlatformModel.UpdateThemeRequestBody} body
81
+ * @property {ThemePlatformModel.ThemesSchema} body
78
82
  */
79
83
  /**
80
84
  * @typedef UpdateThemeNameParam
@@ -86,12 +90,12 @@ export = ThemePlatformApplicationValidator;
86
90
  * @property {string} themeId - The ID of the upgrade
87
91
  */
88
92
  declare class ThemePlatformApplicationValidator {
89
- /** @returns {AddThemeToApplicationParam} */
90
- static addThemeToApplication(): AddThemeToApplicationParam;
91
93
  /** @returns {ApplyThemeParam} */
92
94
  static applyTheme(): ApplyThemeParam;
93
95
  /** @returns {CreatePageParam} */
94
96
  static createPage(): CreatePageParam;
97
+ /** @returns {CreateThemeParam} */
98
+ static createTheme(): CreateThemeParam;
95
99
  /** @returns {DeletePageParam} */
96
100
  static deletePage(): DeletePageParam;
97
101
  /** @returns {DeleteThemeParam} */
@@ -110,6 +114,10 @@ declare class ThemePlatformApplicationValidator {
110
114
  static getExtensionSections(): GetExtensionSectionsParam;
111
115
  /** @returns {GetFontsParam} */
112
116
  static getFonts(): any;
117
+ /** @returns {GetFontsV2Param} */
118
+ static getFontsV2(): any;
119
+ /** @returns {GetLatestVersionOfThemeBySlugParam} */
120
+ static getLatestVersionOfThemeBySlug(): GetLatestVersionOfThemeBySlugParam;
113
121
  /** @returns {GetPageParam} */
114
122
  static getPage(): GetPageParam;
115
123
  /** @returns {GetThemeByIdParam} */
@@ -132,11 +140,8 @@ declare class ThemePlatformApplicationValidator {
132
140
  static upgradeTheme(): UpgradeThemeParam;
133
141
  }
134
142
  declare namespace ThemePlatformApplicationValidator {
135
- export { AddThemeToApplicationParam, ApplyThemeParam, CreatePageParam, DeletePageParam, DeleteThemeParam, DuplicateThemeParam, GetAllPagesParam, GetApplicationThemesParam, GetApplicationThemesCountParam, GetAppliedThemeParam, GetExtensionSectionsParam, GetFontsParam, GetPageParam, GetThemeByIdParam, GetThemeForPreviewParam, GetThemeLastModifiedParam, IsUpgradableParam, UpdateMultiplePagesParam, UpdatePageParam, UpdateThemeParam, UpdateThemeNameParam, UpgradeThemeParam };
143
+ export { ApplyThemeParam, CreatePageParam, CreateThemeParam, DeletePageParam, DeleteThemeParam, DuplicateThemeParam, GetAllPagesParam, GetApplicationThemesParam, GetApplicationThemesCountParam, GetAppliedThemeParam, GetExtensionSectionsParam, GetFontsParam, GetFontsV2Param, GetLatestVersionOfThemeBySlugParam, GetPageParam, GetThemeByIdParam, GetThemeForPreviewParam, GetThemeLastModifiedParam, IsUpgradableParam, UpdateMultiplePagesParam, UpdatePageParam, UpdateThemeParam, UpdateThemeNameParam, UpgradeThemeParam };
136
144
  }
137
- type AddThemeToApplicationParam = {
138
- body: ThemePlatformModel.ThemeReq;
139
- };
140
145
  type ApplyThemeParam = {
141
146
  /**
142
147
  * - The ID of the apply
@@ -150,6 +155,9 @@ type CreatePageParam = {
150
155
  themeId: string;
151
156
  body: ThemePlatformModel.AvailablePageSchema;
152
157
  };
158
+ type CreateThemeParam = {
159
+ body: ThemePlatformModel.CompanyThemeReqSchema;
160
+ };
153
161
  type DeletePageParam = {
154
162
  /**
155
163
  * - ID of the theme
@@ -188,6 +196,12 @@ type GetExtensionSectionsParam = {
188
196
  */
189
197
  companyMode?: string;
190
198
  };
199
+ type GetLatestVersionOfThemeBySlugParam = {
200
+ /**
201
+ * - Slug of theme
202
+ */
203
+ slugName: string;
204
+ };
191
205
  type GetPageParam = {
192
206
  /**
193
207
  * - ID of the theme to be retrieved
@@ -238,10 +252,6 @@ type UpdatePageParam = {
238
252
  * - Value of the page to be updated
239
253
  */
240
254
  pageValue: string;
241
- /**
242
- * - Unique socket id for websocket
243
- */
244
- socketId: string;
245
255
  body: ThemePlatformModel.AvailablePageSchema;
246
256
  };
247
257
  type UpdateThemeParam = {
@@ -249,7 +259,7 @@ type UpdateThemeParam = {
249
259
  * - The ID of the theme.
250
260
  */
251
261
  themeId: string;
252
- body: ThemePlatformModel.UpdateThemeRequestBody;
262
+ body: ThemePlatformModel.ThemesSchema;
253
263
  };
254
264
  type UpdateThemeNameParam = {
255
265
  /**
@@ -268,4 +278,5 @@ type GetApplicationThemesParam = any;
268
278
  type GetApplicationThemesCountParam = any;
269
279
  type GetAppliedThemeParam = any;
270
280
  type GetFontsParam = any;
281
+ type GetFontsV2Param = any;
271
282
  import ThemePlatformModel = require("./ThemePlatformModel");
@@ -2,11 +2,6 @@ const Joi = require("joi");
2
2
 
3
3
  const ThemePlatformModel = require("./ThemePlatformModel");
4
4
 
5
- /**
6
- * @typedef AddThemeToApplicationParam
7
- * @property {ThemePlatformModel.ThemeReq} body
8
- */
9
-
10
5
  /**
11
6
  * @typedef ApplyThemeParam
12
7
  * @property {string} themeId - The ID of the apply
@@ -18,6 +13,11 @@ const ThemePlatformModel = require("./ThemePlatformModel");
18
13
  * @property {ThemePlatformModel.AvailablePageSchema} body
19
14
  */
20
15
 
16
+ /**
17
+ * @typedef CreateThemeParam
18
+ * @property {ThemePlatformModel.CompanyThemeReqSchema} body
19
+ */
20
+
21
21
  /**
22
22
  * @typedef DeletePageParam
23
23
  * @property {string} themeId - ID of the theme
@@ -53,6 +53,13 @@ const ThemePlatformModel = require("./ThemePlatformModel");
53
53
 
54
54
  /** @typedef GetFontsParam */
55
55
 
56
+ /** @typedef GetFontsV2Param */
57
+
58
+ /**
59
+ * @typedef GetLatestVersionOfThemeBySlugParam
60
+ * @property {string} slugName - Slug of theme
61
+ */
62
+
56
63
  /**
57
64
  * @typedef GetPageParam
58
65
  * @property {string} themeId - ID of the theme to be retrieved
@@ -89,14 +96,13 @@ const ThemePlatformModel = require("./ThemePlatformModel");
89
96
  * @typedef UpdatePageParam
90
97
  * @property {string} themeId - ID of the theme
91
98
  * @property {string} pageValue - Value of the page to be updated
92
- * @property {string} socketId - Unique socket id for websocket
93
99
  * @property {ThemePlatformModel.AvailablePageSchema} body
94
100
  */
95
101
 
96
102
  /**
97
103
  * @typedef UpdateThemeParam
98
104
  * @property {string} themeId - The ID of the theme.
99
- * @property {ThemePlatformModel.UpdateThemeRequestBody} body
105
+ * @property {ThemePlatformModel.ThemesSchema} body
100
106
  */
101
107
 
102
108
  /**
@@ -111,13 +117,6 @@ const ThemePlatformModel = require("./ThemePlatformModel");
111
117
  */
112
118
 
113
119
  class ThemePlatformApplicationValidator {
114
- /** @returns {AddThemeToApplicationParam} */
115
- static addThemeToApplication() {
116
- return Joi.object({
117
- body: ThemePlatformModel.ThemeReq().required(),
118
- }).required();
119
- }
120
-
121
120
  /** @returns {ApplyThemeParam} */
122
121
  static applyTheme() {
123
122
  return Joi.object({
@@ -133,6 +132,13 @@ class ThemePlatformApplicationValidator {
133
132
  }).required();
134
133
  }
135
134
 
135
+ /** @returns {CreateThemeParam} */
136
+ static createTheme() {
137
+ return Joi.object({
138
+ body: ThemePlatformModel.CompanyThemeReqSchema().required(),
139
+ }).required();
140
+ }
141
+
136
142
  /** @returns {DeletePageParam} */
137
143
  static deletePage() {
138
144
  return Joi.object({
@@ -190,6 +196,18 @@ class ThemePlatformApplicationValidator {
190
196
  return Joi.object({}).required();
191
197
  }
192
198
 
199
+ /** @returns {GetFontsV2Param} */
200
+ static getFontsV2() {
201
+ return Joi.object({}).required();
202
+ }
203
+
204
+ /** @returns {GetLatestVersionOfThemeBySlugParam} */
205
+ static getLatestVersionOfThemeBySlug() {
206
+ return Joi.object({
207
+ slugName: Joi.string().allow("").required(),
208
+ }).required();
209
+ }
210
+
193
211
  /** @returns {GetPageParam} */
194
212
  static getPage() {
195
213
  return Joi.object({
@@ -239,7 +257,6 @@ class ThemePlatformApplicationValidator {
239
257
  return Joi.object({
240
258
  themeId: Joi.string().allow("").required(),
241
259
  pageValue: Joi.string().allow("").required(),
242
- socketId: Joi.string().allow("").required(),
243
260
  body: ThemePlatformModel.AvailablePageSchema().required(),
244
261
  }).required();
245
262
  }
@@ -248,7 +265,7 @@ class ThemePlatformApplicationValidator {
248
265
  static updateTheme() {
249
266
  return Joi.object({
250
267
  themeId: Joi.string().allow("").required(),
251
- body: ThemePlatformModel.UpdateThemeRequestBody().required(),
268
+ body: ThemePlatformModel.ThemesSchema().required(),
252
269
  }).required();
253
270
  }
254
271