@gofynd/fdk-client-javascript 1.1.6 → 1.2.0

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 (321) hide show
  1. package/README.md +12 -0
  2. package/index.js +0 -3
  3. package/package.json +1 -1
  4. package/sdk/application/ApplicationAPIClient.d.ts +15 -1
  5. package/sdk/application/ApplicationAPIClient.js +8 -1
  6. package/sdk/application/ApplicationClient.d.ts +37 -6
  7. package/sdk/application/ApplicationClient.js +31 -0
  8. package/sdk/application/ApplicationConfig.d.ts +52 -12
  9. package/sdk/application/ApplicationConfig.js +37 -2
  10. package/sdk/application/ApplicationModels.d.ts +46 -1
  11. package/sdk/application/ApplicationModels.js +18 -0
  12. package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
  13. package/sdk/application/Cart/CartApplicationClient.js +620 -483
  14. package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
  15. package/sdk/application/Cart/CartApplicationModel.js +1224 -93
  16. package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
  17. package/sdk/application/Cart/CartApplicationValidator.js +270 -15
  18. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
  19. package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
  20. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
  21. package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
  22. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
  23. package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
  24. package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
  25. package/sdk/application/Common/CommonApplicationClient.js +50 -33
  26. package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
  27. package/sdk/application/Common/CommonApplicationModel.js +224 -16
  28. package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
  29. package/sdk/application/Common/CommonApplicationValidator.js +21 -3
  30. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
  31. package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
  32. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
  33. package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
  34. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
  35. package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
  36. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
  37. package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
  38. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
  39. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
  40. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
  41. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
  42. package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
  43. package/sdk/application/Content/ContentApplicationClient.js +409 -277
  44. package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
  45. package/sdk/application/Content/ContentApplicationModel.js +1202 -109
  46. package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
  47. package/sdk/application/Content/ContentApplicationValidator.js +113 -3
  48. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
  49. package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
  50. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
  51. package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
  52. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
  53. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
  54. package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
  55. package/sdk/application/Lead/LeadApplicationClient.js +169 -103
  56. package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
  57. package/sdk/application/Lead/LeadApplicationModel.js +619 -73
  58. package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
  59. package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
  60. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
  61. package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
  62. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
  63. package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
  64. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
  65. package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
  66. package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
  67. package/sdk/application/Order/OrderApplicationClient.js +297 -217
  68. package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
  69. package/sdk/application/Order/OrderApplicationModel.js +776 -57
  70. package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
  71. package/sdk/application/Order/OrderApplicationValidator.js +114 -5
  72. package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
  73. package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
  74. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
  75. package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
  76. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
  77. package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
  78. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
  79. package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
  80. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
  81. package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
  82. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
  83. package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
  84. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
  85. package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
  86. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
  87. package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
  88. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
  89. package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
  90. package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
  91. package/sdk/application/Share/ShareApplicationClient.js +165 -97
  92. package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
  93. package/sdk/application/Share/ShareApplicationModel.js +154 -16
  94. package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
  95. package/sdk/application/Share/ShareApplicationValidator.js +48 -4
  96. package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
  97. package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
  98. package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
  99. package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
  100. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
  101. package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
  102. package/sdk/application/User/UserApplicationClient.d.ts +219 -303
  103. package/sdk/application/User/UserApplicationClient.js +819 -522
  104. package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
  105. package/sdk/application/User/UserApplicationModel.js +983 -44
  106. package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
  107. package/sdk/application/User/UserApplicationValidator.js +265 -31
  108. package/sdk/common/AxiosHelper.js +8 -2
  109. package/sdk/common/Paginator.d.ts +27 -12
  110. package/sdk/common/Paginator.js +15 -0
  111. package/sdk/common/RequestSigner.js +0 -1
  112. package/sdk/partner/PartnerAPIClient.d.ts +15 -1
  113. package/sdk/partner/PartnerAPIClient.js +8 -1
  114. package/sdk/partner/PartnerClient.d.ts +20 -3
  115. package/sdk/partner/PartnerClient.js +17 -0
  116. package/sdk/partner/PartnerConfig.d.ts +40 -14
  117. package/sdk/partner/PartnerConfig.js +31 -6
  118. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
  119. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
  124. package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
  125. package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
  126. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
  127. package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
  128. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
  129. package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
  130. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
  131. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
  132. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
  133. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
  134. package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
  135. package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
  136. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
  137. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
  139. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
  140. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
  141. package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
  142. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
  143. package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
  144. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
  145. package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
  146. package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
  147. package/sdk/platform/Common/CommonPlatformClient.js +48 -33
  148. package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
  149. package/sdk/platform/Common/CommonPlatformModel.js +224 -16
  150. package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
  151. package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
  152. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
  153. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
  154. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
  156. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
  157. package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
  158. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
  159. package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
  160. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
  161. package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
  173. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
  175. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
  177. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
  179. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
  181. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
  182. package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
  183. package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
  184. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
  185. package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
  186. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
  187. package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
  188. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
  189. package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
  191. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
  192. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
  194. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
  195. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
  196. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
  197. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
  198. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
  199. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
  200. package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
  201. package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
  202. package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
  203. package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
  204. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
  205. package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
  206. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
  207. package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
  208. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
  209. package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
  210. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
  211. package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
  212. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
  213. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
  214. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
  215. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
  216. package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
  217. package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
  218. package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
  219. package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
  220. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
  221. package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
  222. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
  223. package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
  224. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
  225. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  226. package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
  227. package/sdk/platform/Order/OrderPlatformClient.js +969 -762
  228. package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
  229. package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
  230. package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
  231. package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
  232. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
  233. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
  234. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
  235. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
  236. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
  237. package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
  238. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
  239. package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
  240. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
  241. package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
  242. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
  243. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
  244. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
  245. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
  246. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
  247. package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
  248. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
  249. package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
  250. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
  251. package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
  252. package/sdk/platform/PlatformAPIClient.d.ts +16 -1
  253. package/sdk/platform/PlatformAPIClient.js +9 -1
  254. package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
  255. package/sdk/platform/PlatformApplicationClient.js +17 -1899
  256. package/sdk/platform/PlatformClient.d.ts +29 -12579
  257. package/sdk/platform/PlatformClient.js +26 -15085
  258. package/sdk/platform/PlatformConfig.d.ts +37 -11
  259. package/sdk/platform/PlatformConfig.js +32 -6
  260. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
  261. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
  262. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
  263. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
  264. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
  265. package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
  266. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
  267. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
  268. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
  269. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
  270. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
  271. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
  272. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
  273. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
  274. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
  275. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
  276. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
  277. package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
  278. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
  279. package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
  280. package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
  281. package/sdk/platform/Share/SharePlatformModel.js +165 -17
  282. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
  283. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
  284. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
  285. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
  286. package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
  287. package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
  288. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
  289. package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
  290. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
  291. package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
  292. package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
  293. package/sdk/platform/User/UserPlatformModel.js +983 -44
  294. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
  295. package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
  296. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
  297. package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
  298. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
  299. package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
  300. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
  301. package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
  302. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
  303. package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
  304. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
  305. package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
  306. package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
  307. package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
  308. package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
  309. package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
  310. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
  311. package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
  312. package/sdk/public/PublicClient.d.ts +19 -3
  313. package/sdk/public/PublicClient.js +16 -0
  314. package/sdk/public/PublicConfig.d.ts +27 -6
  315. package/sdk/public/PublicConfig.js +17 -1
  316. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
  317. package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
  318. package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
  319. package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
  320. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
  321. package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
@@ -1,30 +1,370 @@
1
1
  const Joi = require("joi");
2
2
 
3
- class ThemeModel {
3
+ /**
4
+ * @typedef AddThemeRequestSchema
5
+ * @property {string} [theme_id]
6
+ */
7
+
8
+ /**
9
+ * @typedef AllAvailablePageSchema
10
+ * @property {AvailablePageSchema[]} [pages]
11
+ */
12
+
13
+ /**
14
+ * @typedef AssetsSchema
15
+ * @property {CommonJs} [common_js]
16
+ * @property {Css} [css]
17
+ * @property {UmdJs} [umd_js]
18
+ */
19
+
20
+ /**
21
+ * @typedef AvailablePagePredicate
22
+ * @property {AvailablePageRoutePredicate} [route]
23
+ * @property {AvailablePageScreenPredicate} [screen]
24
+ * @property {AvailablePageUserPredicate} [user]
25
+ */
26
+
27
+ /**
28
+ * @typedef AvailablePageRoutePredicate
29
+ * @property {string} [exact_url]
30
+ * @property {Object} [query]
31
+ * @property {string} [selected]
32
+ */
33
+
34
+ /**
35
+ * @typedef AvailablePageSchema
36
+ * @property {string} [_id]
37
+ * @property {string} [path]
38
+ * @property {Object[]} [props]
39
+ * @property {AvailablePageSchemaSections[]} [sections]
40
+ * @property {AvailablePageSectionMetaAttributes[]} [sections_meta]
41
+ * @property {AvailablePageSeo} [seo]
42
+ * @property {string} [text]
43
+ * @property {string} [theme]
44
+ * @property {string} [type]
45
+ * @property {string} [value]
46
+ */
47
+
48
+ /**
49
+ * @typedef AvailablePageSchemaSections
50
+ * @property {Object[]} [blocks]
51
+ * @property {string} [label]
52
+ * @property {string} [name]
53
+ * @property {AvailablePagePredicate} [predicate]
54
+ * @property {Object} [preset]
55
+ * @property {Object} [props]
56
+ */
57
+
58
+ /**
59
+ * @typedef AvailablePageScreenPredicate
60
+ * @property {boolean} [desktop]
61
+ * @property {boolean} [mobile]
62
+ * @property {boolean} [tablet]
63
+ */
64
+
65
+ /**
66
+ * @typedef AvailablePageSectionMetaAttributes
67
+ * @property {Object} [attributes]
68
+ */
69
+
70
+ /**
71
+ * @typedef AvailablePageSeo
72
+ * @property {string} [_id]
73
+ * @property {string} [description]
74
+ * @property {string} [title]
75
+ */
76
+
77
+ /**
78
+ * @typedef AvailablePageUserPredicate
79
+ * @property {boolean} [anonymous]
80
+ * @property {boolean} [authenticated]
81
+ */
82
+
83
+ /**
84
+ * @typedef availableSectionSchema
85
+ * @property {Blocks[]} [blocks]
86
+ * @property {string} [label]
87
+ * @property {string} [name]
88
+ * @property {BlocksProps[]} [props]
89
+ */
90
+
91
+ /**
92
+ * @typedef BlitzkriegApiErrorSchema
93
+ * @property {string} [message]
94
+ */
95
+
96
+ /**
97
+ * @typedef BlitzkriegInternalServerErrorSchema
98
+ * @property {string} [message]
99
+ */
100
+
101
+ /**
102
+ * @typedef BlitzkriegNotFoundSchema
103
+ * @property {string} [message]
104
+ */
105
+
106
+ /**
107
+ * @typedef Blocks
108
+ * @property {string} [name]
109
+ * @property {BlocksProps[]} [props]
110
+ * @property {string} [type]
111
+ */
112
+
113
+ /**
114
+ * @typedef BlocksProps
115
+ * @property {string} [id]
116
+ * @property {string} [label]
117
+ * @property {string} [type]
118
+ */
119
+
120
+ /**
121
+ * @typedef Bold
122
+ * @property {string} [file]
123
+ * @property {string} [name]
124
+ */
125
+
126
+ /**
127
+ * @typedef Colors
128
+ * @property {string} [accent_color]
129
+ * @property {string} [bg_color]
130
+ * @property {string} [button_secondary_color]
131
+ * @property {string} [link_color]
132
+ * @property {string} [primary_color]
133
+ * @property {string} [secondary_color]
134
+ */
135
+
136
+ /**
137
+ * @typedef CommonJs
138
+ * @property {string} [link]
139
+ */
140
+
141
+ /**
142
+ * @typedef Config
143
+ * @property {string} [current]
144
+ * @property {GlobalSchema} [global_schema]
145
+ * @property {ListSchemaItem[]} [list]
146
+ * @property {Preset} [preset]
147
+ */
148
+
149
+ /**
150
+ * @typedef ConfigPage
151
+ * @property {string} [page]
152
+ * @property {Object} [settings]
153
+ */
154
+
155
+ /**
156
+ * @typedef Css
157
+ * @property {string} [link]
158
+ * @property {string[]} [links]
159
+ */
160
+
161
+ /**
162
+ * @typedef Custom
163
+ * @property {Object} [props]
164
+ */
165
+
166
+ /**
167
+ * @typedef Font
168
+ * @property {string} [family]
169
+ * @property {Variants} [variants]
170
+ */
171
+
172
+ /**
173
+ * @typedef FontsSchema
174
+ * @property {FontsSchemaItems} [items]
175
+ * @property {string} [kind]
176
+ */
177
+
178
+ /**
179
+ * @typedef FontsSchemaItems
180
+ * @property {string} [category]
181
+ * @property {string} [family]
182
+ * @property {FontsSchemaItemsFiles} [files]
183
+ * @property {string} [kind]
184
+ * @property {string} [last_modified]
185
+ * @property {string[]} [subsets]
186
+ * @property {string[]} [variants]
187
+ * @property {string} [version]
188
+ */
189
+
190
+ /**
191
+ * @typedef FontsSchemaItemsFiles
192
+ * @property {string} [bold]
193
+ * @property {string} [italic]
194
+ * @property {string} [regular]
195
+ */
196
+
197
+ /**
198
+ * @typedef GlobalSchema
199
+ * @property {GlobalSchemaProps[]} [props]
200
+ */
201
+
202
+ /**
203
+ * @typedef GlobalSchemaProps
204
+ * @property {string} [category]
205
+ * @property {string} [id]
206
+ * @property {string} [label]
207
+ * @property {string} [type]
208
+ */
209
+
210
+ /**
211
+ * @typedef Images
212
+ * @property {string[]} [android]
213
+ * @property {string[]} [desktop]
214
+ * @property {string[]} [ios]
215
+ * @property {string[]} [thumbnail]
216
+ */
217
+
218
+ /**
219
+ * @typedef Information
220
+ * @property {string} [description]
221
+ * @property {string[]} [features]
222
+ * @property {Images} [images]
223
+ * @property {string} [name]
224
+ */
225
+
226
+ /**
227
+ * @typedef Light
228
+ * @property {string} [file]
229
+ * @property {string} [name]
230
+ */
231
+
232
+ /**
233
+ * @typedef ListSchemaItem
234
+ * @property {Object} [global_config]
235
+ * @property {string} [name]
236
+ * @property {ConfigPage[]} [page]
237
+ */
238
+
239
+ /**
240
+ * @typedef Medium
241
+ * @property {string} [file]
242
+ * @property {string} [name]
243
+ */
244
+
245
+ /**
246
+ * @typedef PaginationSchema
247
+ * @property {number} [current]
248
+ * @property {boolean} [has_next]
249
+ * @property {number} [item_total]
250
+ * @property {number} [size]
251
+ * @property {string} [type]
252
+ */
253
+
254
+ /**
255
+ * @typedef Preset
256
+ * @property {AvailablePageSchema[]} [pages]
257
+ */
258
+
259
+ /**
260
+ * @typedef Regular
261
+ * @property {string} [file]
262
+ * @property {string} [name]
263
+ */
264
+
265
+ /**
266
+ * @typedef Sections
267
+ * @property {string} [attributes]
268
+ */
269
+
270
+ /**
271
+ * @typedef SemiBold
272
+ * @property {string} [file]
273
+ * @property {string} [name]
274
+ */
275
+
276
+ /**
277
+ * @typedef Src
278
+ * @property {string} [link]
279
+ */
280
+
281
+ /**
282
+ * @typedef ThemesListingResponseSchema
283
+ * @property {ThemesSchema[]} [items]
284
+ * @property {PaginationSchema} [page]
285
+ */
286
+
287
+ /**
288
+ * @typedef ThemesSchema
289
+ * @property {number} [__v]
290
+ * @property {string} [_id]
291
+ * @property {string} [application]
292
+ * @property {boolean} [applied]
293
+ * @property {boolean} [archived]
294
+ * @property {AssetsSchema} [assets]
295
+ * @property {availableSectionSchema[]} [available_sections]
296
+ * @property {Colors} [colors]
297
+ * @property {Config} [config]
298
+ * @property {string} [created_at]
299
+ * @property {boolean} [customized]
300
+ * @property {Font} [font]
301
+ * @property {Information} [information]
302
+ * @property {string} [parent_theme]
303
+ * @property {string} [parent_theme_version]
304
+ * @property {boolean} [published]
305
+ * @property {Src} [src]
306
+ * @property {Object} [styles]
307
+ * @property {string[]} [tags]
308
+ * @property {string} [updated_at]
309
+ * @property {string} [version]
310
+ */
311
+
312
+ /**
313
+ * @typedef UmdJs
314
+ * @property {string} [link]
315
+ * @property {string[]} [links]
316
+ */
317
+
318
+ /**
319
+ * @typedef UpgradableThemeSchema
320
+ * @property {string} [applied_theme]
321
+ * @property {string} [parent_theme]
322
+ * @property {boolean} [upgrade]
323
+ */
324
+
325
+ /**
326
+ * @typedef Variants
327
+ * @property {Bold} [bold]
328
+ * @property {Light} [light]
329
+ * @property {Medium} [medium]
330
+ * @property {Regular} [regular]
331
+ * @property {SemiBold} [semi_bold]
332
+ */
333
+
334
+ class ThemePlatformModel {
335
+ /** @returns {AddThemeRequestSchema} */
4
336
  static AddThemeRequestSchema() {
5
337
  return Joi.object({
6
338
  theme_id: Joi.string().allow(""),
7
339
  });
8
340
  }
341
+
342
+ /** @returns {AllAvailablePageSchema} */
9
343
  static AllAvailablePageSchema() {
10
344
  return Joi.object({
11
- pages: Joi.array().items(ThemeModel.AvailablePageSchema()),
345
+ pages: Joi.array().items(ThemePlatformModel.AvailablePageSchema()),
12
346
  });
13
347
  }
348
+
349
+ /** @returns {AssetsSchema} */
14
350
  static AssetsSchema() {
15
351
  return Joi.object({
16
- common_js: ThemeModel.CommonJs(),
17
- css: ThemeModel.Css(),
18
- umd_js: ThemeModel.UmdJs(),
352
+ common_js: ThemePlatformModel.CommonJs(),
353
+ css: ThemePlatformModel.Css(),
354
+ umd_js: ThemePlatformModel.UmdJs(),
19
355
  });
20
356
  }
357
+
358
+ /** @returns {AvailablePagePredicate} */
21
359
  static AvailablePagePredicate() {
22
360
  return Joi.object({
23
- route: ThemeModel.AvailablePageRoutePredicate(),
24
- screen: ThemeModel.AvailablePageScreenPredicate(),
25
- user: ThemeModel.AvailablePageUserPredicate(),
361
+ route: ThemePlatformModel.AvailablePageRoutePredicate(),
362
+ screen: ThemePlatformModel.AvailablePageScreenPredicate(),
363
+ user: ThemePlatformModel.AvailablePageUserPredicate(),
26
364
  });
27
365
  }
366
+
367
+ /** @returns {AvailablePageRoutePredicate} */
28
368
  static AvailablePageRoutePredicate() {
29
369
  return Joi.object({
30
370
  exact_url: Joi.string().allow(""),
@@ -32,32 +372,40 @@ class ThemeModel {
32
372
  selected: Joi.string().allow(""),
33
373
  });
34
374
  }
375
+
376
+ /** @returns {AvailablePageSchema} */
35
377
  static AvailablePageSchema() {
36
378
  return Joi.object({
37
379
  _id: Joi.string().allow(""),
38
380
  path: Joi.string().allow(""),
39
381
  props: Joi.array().items(Joi.any()),
40
- sections: Joi.array().items(ThemeModel.AvailablePageSchemaSections()),
382
+ sections: Joi.array().items(
383
+ ThemePlatformModel.AvailablePageSchemaSections()
384
+ ),
41
385
  sections_meta: Joi.array().items(
42
- ThemeModel.AvailablePageSectionMetaAttributes()
386
+ ThemePlatformModel.AvailablePageSectionMetaAttributes()
43
387
  ),
44
- seo: ThemeModel.AvailablePageSeo(),
388
+ seo: ThemePlatformModel.AvailablePageSeo(),
45
389
  text: Joi.string().allow(""),
46
390
  theme: Joi.string().allow(""),
47
391
  type: Joi.string().allow(""),
48
392
  value: Joi.string().allow(""),
49
393
  });
50
394
  }
395
+
396
+ /** @returns {AvailablePageSchemaSections} */
51
397
  static AvailablePageSchemaSections() {
52
398
  return Joi.object({
53
399
  blocks: Joi.array().items(Joi.any()),
54
400
  label: Joi.string().allow(""),
55
401
  name: Joi.string().allow(""),
56
- predicate: ThemeModel.AvailablePagePredicate(),
402
+ predicate: ThemePlatformModel.AvailablePagePredicate(),
57
403
  preset: Joi.any(),
58
404
  props: Joi.any(),
59
405
  });
60
406
  }
407
+
408
+ /** @returns {AvailablePageScreenPredicate} */
61
409
  static AvailablePageScreenPredicate() {
62
410
  return Joi.object({
63
411
  desktop: Joi.boolean(),
@@ -65,11 +413,15 @@ class ThemeModel {
65
413
  tablet: Joi.boolean(),
66
414
  });
67
415
  }
416
+
417
+ /** @returns {AvailablePageSectionMetaAttributes} */
68
418
  static AvailablePageSectionMetaAttributes() {
69
419
  return Joi.object({
70
420
  attributes: Joi.any(),
71
421
  });
72
422
  }
423
+
424
+ /** @returns {AvailablePageSeo} */
73
425
  static AvailablePageSeo() {
74
426
  return Joi.object({
75
427
  _id: Joi.string().allow(""),
@@ -77,42 +429,56 @@ class ThemeModel {
77
429
  title: Joi.string().allow(""),
78
430
  });
79
431
  }
432
+
433
+ /** @returns {AvailablePageUserPredicate} */
80
434
  static AvailablePageUserPredicate() {
81
435
  return Joi.object({
82
436
  anonymous: Joi.boolean(),
83
437
  authenticated: Joi.boolean(),
84
438
  });
85
439
  }
440
+
441
+ /** @returns {availableSectionSchema} */
86
442
  static availableSectionSchema() {
87
443
  return Joi.object({
88
- blocks: Joi.array().items(ThemeModel.Blocks()),
444
+ blocks: Joi.array().items(ThemePlatformModel.Blocks()),
89
445
  label: Joi.string().allow(""),
90
446
  name: Joi.string().allow(""),
91
- props: Joi.array().items(ThemeModel.BlocksProps()),
447
+ props: Joi.array().items(ThemePlatformModel.BlocksProps()),
92
448
  });
93
449
  }
450
+
451
+ /** @returns {BlitzkriegApiErrorSchema} */
94
452
  static BlitzkriegApiErrorSchema() {
95
453
  return Joi.object({
96
454
  message: Joi.string().allow(""),
97
455
  });
98
456
  }
457
+
458
+ /** @returns {BlitzkriegInternalServerErrorSchema} */
99
459
  static BlitzkriegInternalServerErrorSchema() {
100
460
  return Joi.object({
101
461
  message: Joi.string().allow(""),
102
462
  });
103
463
  }
464
+
465
+ /** @returns {BlitzkriegNotFoundSchema} */
104
466
  static BlitzkriegNotFoundSchema() {
105
467
  return Joi.object({
106
468
  message: Joi.string().allow(""),
107
469
  });
108
470
  }
471
+
472
+ /** @returns {Blocks} */
109
473
  static Blocks() {
110
474
  return Joi.object({
111
475
  name: Joi.string().allow(""),
112
- props: Joi.array().items(ThemeModel.BlocksProps()),
476
+ props: Joi.array().items(ThemePlatformModel.BlocksProps()),
113
477
  type: Joi.string().allow(""),
114
478
  });
115
479
  }
480
+
481
+ /** @returns {BlocksProps} */
116
482
  static BlocksProps() {
117
483
  return Joi.object({
118
484
  id: Joi.string().allow(""),
@@ -120,12 +486,16 @@ class ThemeModel {
120
486
  type: Joi.string().allow(""),
121
487
  });
122
488
  }
489
+
490
+ /** @returns {Bold} */
123
491
  static Bold() {
124
492
  return Joi.object({
125
493
  file: Joi.string().allow(""),
126
494
  name: Joi.string().allow(""),
127
495
  });
128
496
  }
497
+
498
+ /** @returns {Colors} */
129
499
  static Colors() {
130
500
  return Joi.object({
131
501
  accent_color: Joi.string().allow(""),
@@ -136,53 +506,69 @@ class ThemeModel {
136
506
  secondary_color: Joi.string().allow(""),
137
507
  });
138
508
  }
509
+
510
+ /** @returns {CommonJs} */
139
511
  static CommonJs() {
140
512
  return Joi.object({
141
513
  link: Joi.string().allow(""),
142
514
  });
143
515
  }
516
+
517
+ /** @returns {Config} */
144
518
  static Config() {
145
519
  return Joi.object({
146
520
  current: Joi.string().allow(""),
147
- global_schema: ThemeModel.GlobalSchema(),
148
- list: Joi.array().items(ThemeModel.ListSchemaItem()),
149
- preset: ThemeModel.Preset(),
521
+ global_schema: ThemePlatformModel.GlobalSchema(),
522
+ list: Joi.array().items(ThemePlatformModel.ListSchemaItem()),
523
+ preset: ThemePlatformModel.Preset(),
150
524
  });
151
525
  }
526
+
527
+ /** @returns {ConfigPage} */
152
528
  static ConfigPage() {
153
529
  return Joi.object({
154
530
  page: Joi.string().allow(""),
155
531
  settings: Joi.any(),
156
532
  });
157
533
  }
534
+
535
+ /** @returns {Css} */
158
536
  static Css() {
159
537
  return Joi.object({
160
538
  link: Joi.string().allow(""),
161
539
  links: Joi.array().items(Joi.string().allow("")),
162
540
  });
163
541
  }
542
+
543
+ /** @returns {Custom} */
164
544
  static Custom() {
165
545
  return Joi.object({
166
546
  props: Joi.any(),
167
547
  });
168
548
  }
549
+
550
+ /** @returns {Font} */
169
551
  static Font() {
170
552
  return Joi.object({
171
553
  family: Joi.string().allow(""),
172
- variants: ThemeModel.Variants(),
554
+ variants: ThemePlatformModel.Variants(),
173
555
  });
174
556
  }
557
+
558
+ /** @returns {FontsSchema} */
175
559
  static FontsSchema() {
176
560
  return Joi.object({
177
- items: ThemeModel.FontsSchemaItems(),
561
+ items: ThemePlatformModel.FontsSchemaItems(),
178
562
  kind: Joi.string().allow(""),
179
563
  });
180
564
  }
565
+
566
+ /** @returns {FontsSchemaItems} */
181
567
  static FontsSchemaItems() {
182
568
  return Joi.object({
183
569
  category: Joi.string().allow(""),
184
570
  family: Joi.string().allow(""),
185
- files: ThemeModel.FontsSchemaItemsFiles(),
571
+ files: ThemePlatformModel.FontsSchemaItemsFiles(),
186
572
  kind: Joi.string().allow(""),
187
573
  last_modified: Joi.string().allow(""),
188
574
  subsets: Joi.array().items(Joi.string().allow("")),
@@ -190,6 +576,8 @@ class ThemeModel {
190
576
  version: Joi.string().allow(""),
191
577
  });
192
578
  }
579
+
580
+ /** @returns {FontsSchemaItemsFiles} */
193
581
  static FontsSchemaItemsFiles() {
194
582
  return Joi.object({
195
583
  bold: Joi.string().allow(""),
@@ -197,11 +585,15 @@ class ThemeModel {
197
585
  regular: Joi.string().allow(""),
198
586
  });
199
587
  }
588
+
589
+ /** @returns {GlobalSchema} */
200
590
  static GlobalSchema() {
201
591
  return Joi.object({
202
- props: Joi.array().items(ThemeModel.GlobalSchemaProps()),
592
+ props: Joi.array().items(ThemePlatformModel.GlobalSchemaProps()),
203
593
  });
204
594
  }
595
+
596
+ /** @returns {GlobalSchemaProps} */
205
597
  static GlobalSchemaProps() {
206
598
  return Joi.object({
207
599
  category: Joi.string().allow(""),
@@ -210,6 +602,8 @@ class ThemeModel {
210
602
  type: Joi.string().allow(""),
211
603
  });
212
604
  }
605
+
606
+ /** @returns {Images} */
213
607
  static Images() {
214
608
  return Joi.object({
215
609
  android: Joi.array().items(Joi.string().allow("")),
@@ -218,33 +612,43 @@ class ThemeModel {
218
612
  thumbnail: Joi.array().items(Joi.string().allow("")),
219
613
  });
220
614
  }
615
+
616
+ /** @returns {Information} */
221
617
  static Information() {
222
618
  return Joi.object({
223
619
  description: Joi.string().allow(""),
224
620
  features: Joi.array().items(Joi.string().allow("")),
225
- images: ThemeModel.Images(),
621
+ images: ThemePlatformModel.Images(),
226
622
  name: Joi.string().allow(""),
227
623
  });
228
624
  }
625
+
626
+ /** @returns {Light} */
229
627
  static Light() {
230
628
  return Joi.object({
231
629
  file: Joi.string().allow(""),
232
630
  name: Joi.string().allow(""),
233
631
  });
234
632
  }
633
+
634
+ /** @returns {ListSchemaItem} */
235
635
  static ListSchemaItem() {
236
636
  return Joi.object({
237
637
  global_config: Joi.any(),
238
638
  name: Joi.string().allow(""),
239
- page: Joi.array().items(ThemeModel.ConfigPage()),
639
+ page: Joi.array().items(ThemePlatformModel.ConfigPage()),
240
640
  });
241
641
  }
642
+
643
+ /** @returns {Medium} */
242
644
  static Medium() {
243
645
  return Joi.object({
244
646
  file: Joi.string().allow(""),
245
647
  name: Joi.string().allow(""),
246
648
  });
247
649
  }
650
+
651
+ /** @returns {PaginationSchema} */
248
652
  static PaginationSchema() {
249
653
  return Joi.object({
250
654
  current: Joi.number(),
@@ -254,39 +658,53 @@ class ThemeModel {
254
658
  type: Joi.string().allow(""),
255
659
  });
256
660
  }
661
+
662
+ /** @returns {Preset} */
257
663
  static Preset() {
258
664
  return Joi.object({
259
- pages: Joi.array().items(ThemeModel.AvailablePageSchema()),
665
+ pages: Joi.array().items(ThemePlatformModel.AvailablePageSchema()),
260
666
  });
261
667
  }
668
+
669
+ /** @returns {Regular} */
262
670
  static Regular() {
263
671
  return Joi.object({
264
672
  file: Joi.string().allow(""),
265
673
  name: Joi.string().allow(""),
266
674
  });
267
675
  }
676
+
677
+ /** @returns {Sections} */
268
678
  static Sections() {
269
679
  return Joi.object({
270
680
  attributes: Joi.string().allow(""),
271
681
  });
272
682
  }
683
+
684
+ /** @returns {SemiBold} */
273
685
  static SemiBold() {
274
686
  return Joi.object({
275
687
  file: Joi.string().allow(""),
276
688
  name: Joi.string().allow(""),
277
689
  });
278
690
  }
691
+
692
+ /** @returns {Src} */
279
693
  static Src() {
280
694
  return Joi.object({
281
695
  link: Joi.string().allow(""),
282
696
  });
283
697
  }
698
+
699
+ /** @returns {ThemesListingResponseSchema} */
284
700
  static ThemesListingResponseSchema() {
285
701
  return Joi.object({
286
- items: Joi.array().items(ThemeModel.ThemesSchema()),
287
- page: ThemeModel.PaginationSchema(),
702
+ items: Joi.array().items(ThemePlatformModel.ThemesSchema()),
703
+ page: ThemePlatformModel.PaginationSchema(),
288
704
  });
289
705
  }
706
+
707
+ /** @returns {ThemesSchema} */
290
708
  static ThemesSchema() {
291
709
  return Joi.object({
292
710
  __v: Joi.number(),
@@ -294,32 +712,36 @@ class ThemeModel {
294
712
  application: Joi.string().allow(""),
295
713
  applied: Joi.boolean(),
296
714
  archived: Joi.boolean(),
297
- assets: ThemeModel.AssetsSchema(),
715
+ assets: ThemePlatformModel.AssetsSchema(),
298
716
  available_sections: Joi.array().items(
299
- ThemeModel.availableSectionSchema()
717
+ ThemePlatformModel.availableSectionSchema()
300
718
  ),
301
- colors: ThemeModel.Colors(),
302
- config: ThemeModel.Config(),
719
+ colors: ThemePlatformModel.Colors(),
720
+ config: ThemePlatformModel.Config(),
303
721
  created_at: Joi.string().allow(""),
304
722
  customized: Joi.boolean(),
305
- font: ThemeModel.Font(),
306
- information: ThemeModel.Information(),
723
+ font: ThemePlatformModel.Font(),
724
+ information: ThemePlatformModel.Information(),
307
725
  parent_theme: Joi.string().allow(""),
308
726
  parent_theme_version: Joi.string().allow(""),
309
727
  published: Joi.boolean(),
310
- src: ThemeModel.Src(),
728
+ src: ThemePlatformModel.Src(),
311
729
  styles: Joi.any(),
312
730
  tags: Joi.array().items(Joi.string().allow("")),
313
731
  updated_at: Joi.string().allow(""),
314
732
  version: Joi.string().allow(""),
315
733
  });
316
734
  }
735
+
736
+ /** @returns {UmdJs} */
317
737
  static UmdJs() {
318
738
  return Joi.object({
319
739
  link: Joi.string().allow(""),
320
740
  links: Joi.array().items(Joi.string().allow("")),
321
741
  });
322
742
  }
743
+
744
+ /** @returns {UpgradableThemeSchema} */
323
745
  static UpgradableThemeSchema() {
324
746
  return Joi.object({
325
747
  applied_theme: Joi.string().allow(""),
@@ -327,14 +749,16 @@ class ThemeModel {
327
749
  upgrade: Joi.boolean(),
328
750
  });
329
751
  }
752
+
753
+ /** @returns {Variants} */
330
754
  static Variants() {
331
755
  return Joi.object({
332
- bold: ThemeModel.Bold(),
333
- light: ThemeModel.Light(),
334
- medium: ThemeModel.Medium(),
335
- regular: ThemeModel.Regular(),
336
- semi_bold: ThemeModel.SemiBold(),
756
+ bold: ThemePlatformModel.Bold(),
757
+ light: ThemePlatformModel.Light(),
758
+ medium: ThemePlatformModel.Medium(),
759
+ regular: ThemePlatformModel.Regular(),
760
+ semi_bold: ThemePlatformModel.SemiBold(),
337
761
  });
338
762
  }
339
763
  }
340
- module.exports = ThemeModel;
764
+ module.exports = ThemePlatformModel;