@gofynd/fdk-client-javascript 1.1.6 → 1.3.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 (348) hide show
  1. package/README.md +52 -3
  2. package/index.js +0 -3
  3. package/package.json +1 -2
  4. package/sdk/application/ApplicationAPIClient.d.ts +15 -1
  5. package/sdk/application/ApplicationAPIClient.js +12 -3
  6. package/sdk/application/ApplicationClient.d.ts +36 -6
  7. package/sdk/application/ApplicationClient.js +30 -43
  8. package/sdk/application/ApplicationConfig.d.ts +92 -12
  9. package/sdk/application/ApplicationConfig.js +48 -14
  10. package/sdk/application/Cart/CartApplicationClient.d.ts +200 -357
  11. package/sdk/application/Cart/CartApplicationClient.js +711 -483
  12. package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
  13. package/sdk/application/Cart/CartApplicationModel.js +1224 -93
  14. package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
  15. package/sdk/application/Cart/CartApplicationValidator.js +270 -15
  16. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +274 -422
  17. package/sdk/application/Catalog/CatalogApplicationClient.js +865 -630
  18. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2320 -117
  19. package/sdk/application/Catalog/CatalogApplicationModel.js +1566 -172
  20. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
  21. package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
  22. package/sdk/application/Common/CommonApplicationClient.d.ts +16 -21
  23. package/sdk/application/Common/CommonApplicationClient.js +52 -33
  24. package/sdk/application/Common/CommonApplicationModel.d.ts +368 -19
  25. package/sdk/application/Common/CommonApplicationModel.js +192 -40
  26. package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
  27. package/sdk/application/Common/CommonApplicationValidator.js +21 -3
  28. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +31 -18
  29. package/sdk/application/Communication/CommunicationApplicationClient.js +86 -47
  30. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +157 -14
  31. package/sdk/application/Communication/CommunicationApplicationModel.js +104 -23
  32. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
  33. package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
  34. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +149 -118
  35. package/sdk/application/Configuration/ConfigurationApplicationClient.js +457 -260
  36. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2235 -110
  37. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1113 -193
  38. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
  39. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
  40. package/sdk/application/Content/ContentApplicationClient.d.ts +149 -139
  41. package/sdk/application/Content/ContentApplicationClient.js +489 -278
  42. package/sdk/application/Content/ContentApplicationModel.d.ts +1010 -105
  43. package/sdk/application/Content/ContentApplicationModel.js +737 -396
  44. package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
  45. package/sdk/application/Content/ContentApplicationValidator.js +113 -3
  46. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +23 -29
  47. package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -47
  48. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +148 -20
  49. package/sdk/application/FileStorage/FileStorageApplicationModel.js +100 -87
  50. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
  51. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
  52. package/sdk/application/Lead/LeadApplicationClient.d.ts +57 -53
  53. package/sdk/application/Lead/LeadApplicationClient.js +188 -103
  54. package/sdk/application/Lead/LeadApplicationModel.d.ts +686 -54
  55. package/sdk/application/Lead/LeadApplicationModel.js +330 -244
  56. package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
  57. package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
  58. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +40 -33
  59. package/sdk/application/Logistic/LogisticApplicationClient.js +131 -73
  60. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
  61. package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
  62. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
  63. package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
  64. package/sdk/application/Order/OrderApplicationClient.d.ts +93 -133
  65. package/sdk/application/Order/OrderApplicationClient.js +329 -217
  66. package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
  67. package/sdk/application/Order/OrderApplicationModel.js +776 -57
  68. package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
  69. package/sdk/application/Order/OrderApplicationValidator.js +114 -5
  70. package/sdk/application/Payment/PaymentApplicationClient.d.ts +400 -366
  71. package/sdk/application/Payment/PaymentApplicationClient.js +1176 -703
  72. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
  73. package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
  74. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
  75. package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
  76. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +205 -350
  77. package/sdk/application/PosCart/PosCartApplicationClient.js +720 -491
  78. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
  79. package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
  80. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
  81. package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
  82. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +58 -47
  83. package/sdk/application/Rewards/RewardsApplicationClient.js +187 -102
  84. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
  85. package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
  86. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
  87. package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
  88. package/sdk/application/Share/ShareApplicationClient.d.ts +52 -50
  89. package/sdk/application/Share/ShareApplicationClient.js +185 -97
  90. package/sdk/application/Share/ShareApplicationModel.d.ts +198 -15
  91. package/sdk/application/Share/ShareApplicationModel.js +131 -31
  92. package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
  93. package/sdk/application/Share/ShareApplicationValidator.js +48 -4
  94. package/sdk/application/Theme/ThemeApplicationClient.d.ts +30 -27
  95. package/sdk/application/Theme/ThemeApplicationClient.js +102 -56
  96. package/sdk/application/Theme/ThemeApplicationModel.d.ts +1291 -48
  97. package/sdk/application/Theme/ThemeApplicationModel.js +895 -134
  98. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
  99. package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
  100. package/sdk/application/User/UserApplicationClient.d.ts +260 -305
  101. package/sdk/application/User/UserApplicationClient.js +910 -522
  102. package/sdk/application/User/UserApplicationModel.d.ts +992 -101
  103. package/sdk/application/User/UserApplicationModel.js +699 -248
  104. package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
  105. package/sdk/application/User/UserApplicationValidator.js +265 -31
  106. package/sdk/common/AxiosHelper.js +7 -2
  107. package/sdk/common/FDKError.d.ts +3 -0
  108. package/sdk/common/FDKError.js +8 -0
  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/common/utils.d.ts +3 -0
  113. package/sdk/common/utils.js +29 -0
  114. package/sdk/partner/PartnerAPIClient.d.ts +16 -1
  115. package/sdk/partner/PartnerAPIClient.js +12 -2
  116. package/sdk/partner/PartnerClient.d.ts +22 -3
  117. package/sdk/partner/PartnerClient.js +20 -0
  118. package/sdk/partner/PartnerConfig.d.ts +40 -14
  119. package/sdk/partner/PartnerConfig.js +31 -6
  120. package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
  121. package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
  122. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
  123. package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
  124. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
  125. package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
  126. package/sdk/partner/index.d.ts +3 -1
  127. package/sdk/partner/index.js +3 -1
  128. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +30 -25
  129. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +104 -53
  130. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +190 -17
  131. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +132 -15
  132. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +52 -5
  133. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +30 -4
  134. package/sdk/platform/Billing/BillingPlatformClient.d.ts +133 -97
  135. package/sdk/platform/Billing/BillingPlatformClient.js +561 -191
  136. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1071 -68
  137. package/sdk/platform/Billing/BillingPlatformModel.js +762 -151
  138. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +175 -12
  139. package/sdk/platform/Billing/BillingPlatformValidator.js +118 -8
  140. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +454 -635
  141. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1646 -957
  142. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
  143. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
  144. package/sdk/platform/Cart/CartPlatformModel.d.ts +3839 -175
  145. package/sdk/platform/Cart/CartPlatformModel.js +2423 -217
  146. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +528 -638
  147. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1600 -984
  148. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
  149. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
  150. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +652 -826
  151. package/sdk/platform/Catalog/CatalogPlatformClient.js +1979 -1264
  152. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6869 -326
  153. package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -351
  154. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1361 -71
  155. package/sdk/platform/Catalog/CatalogPlatformValidator.js +624 -30
  156. package/sdk/platform/Common/CommonPlatformClient.d.ts +16 -21
  157. package/sdk/platform/Common/CommonPlatformClient.js +50 -33
  158. package/sdk/platform/Common/CommonPlatformModel.d.ts +423 -19
  159. package/sdk/platform/Common/CommonPlatformModel.js +214 -40
  160. package/sdk/platform/Common/CommonPlatformValidator.d.ts +37 -4
  161. package/sdk/platform/Common/CommonPlatformValidator.js +20 -3
  162. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +731 -303
  163. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3095 -785
  164. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +699 -41
  165. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +463 -27
  166. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +19 -5
  167. package/sdk/platform/Communication/CommunicationPlatformClient.js +59 -19
  168. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1708 -102
  169. package/sdk/platform/Communication/CommunicationPlatformModel.js +1360 -235
  170. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
  171. package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
  172. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +127 -111
  173. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +435 -225
  174. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +882 -43
  175. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +666 -78
  176. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +184 -13
  177. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +105 -10
  178. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +327 -240
  179. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +922 -438
  180. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +297 -22
  181. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +191 -17
  182. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +184 -178
  183. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +555 -311
  184. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4337 -188
  185. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2178 -248
  186. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
  187. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
  188. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +605 -578
  189. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1996 -987
  190. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
  191. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
  192. package/sdk/platform/Content/ContentPlatformModel.d.ts +1472 -108
  193. package/sdk/platform/Content/ContentPlatformModel.js +1085 -204
  194. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +85 -82
  195. package/sdk/platform/Discount/DiscountPlatformClient.js +333 -175
  196. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +281 -15
  197. package/sdk/platform/Discount/DiscountPlatformModel.js +189 -10
  198. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
  199. package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
  200. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +109 -52
  201. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +570 -105
  202. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +141 -6
  203. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +118 -7
  204. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +43 -63
  205. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +153 -135
  206. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +426 -20
  207. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +379 -40
  208. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +106 -8
  209. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +60 -8
  210. package/sdk/platform/Finance/FinancePlatformClient.d.ts +260 -129
  211. package/sdk/platform/Finance/FinancePlatformClient.js +1182 -194
  212. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1267 -50
  213. package/sdk/platform/Finance/FinancePlatformModel.js +1252 -38
  214. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +233 -15
  215. package/sdk/platform/Finance/FinancePlatformValidator.js +229 -16
  216. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +111 -97
  217. package/sdk/platform/Inventory/InventoryPlatformClient.js +330 -199
  218. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
  219. package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
  220. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
  221. package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
  222. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +100 -106
  223. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +372 -186
  224. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
  225. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
  226. package/sdk/platform/Lead/LeadPlatformClient.d.ts +89 -104
  227. package/sdk/platform/Lead/LeadPlatformClient.js +305 -180
  228. package/sdk/platform/Lead/LeadPlatformModel.d.ts +1045 -54
  229. package/sdk/platform/Lead/LeadPlatformModel.js +504 -142
  230. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
  231. package/sdk/platform/Lead/LeadPlatformValidator.js +92 -15
  232. package/sdk/platform/OAuthClient.js +6 -2
  233. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +20 -14
  234. package/sdk/platform/Order/OrderPlatformApplicationClient.js +58 -29
  235. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
  236. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  237. package/sdk/platform/Order/OrderPlatformClient.d.ts +437 -556
  238. package/sdk/platform/Order/OrderPlatformClient.js +1500 -760
  239. package/sdk/platform/Order/OrderPlatformModel.d.ts +5225 -247
  240. package/sdk/platform/Order/OrderPlatformModel.js +3473 -260
  241. package/sdk/platform/Order/OrderPlatformValidator.d.ts +859 -37
  242. package/sdk/platform/Order/OrderPlatformValidator.js +435 -23
  243. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +16 -42
  244. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -155
  245. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +37 -6
  246. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +19 -17
  247. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +78 -45
  248. package/sdk/platform/Partner/PartnerPlatformModel.js +43 -369
  249. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +418 -288
  250. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1509 -505
  251. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +438 -30
  252. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +312 -19
  253. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +83 -73
  254. package/sdk/platform/Payment/PaymentPlatformClient.js +259 -154
  255. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3200 -93
  256. package/sdk/platform/Payment/PaymentPlatformModel.js +1334 -36
  257. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
  258. package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
  259. package/sdk/platform/PlatformAPIClient.d.ts +16 -1
  260. package/sdk/platform/PlatformAPIClient.js +9 -1
  261. package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
  262. package/sdk/platform/PlatformApplicationClient.js +17 -1899
  263. package/sdk/platform/PlatformClient.d.ts +31 -12581
  264. package/sdk/platform/PlatformClient.js +30 -15089
  265. package/sdk/platform/PlatformConfig.d.ts +37 -11
  266. package/sdk/platform/PlatformConfig.js +32 -6
  267. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +96 -92
  268. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +344 -177
  269. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
  270. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
  271. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +360 -23
  272. package/sdk/platform/Rewards/RewardsPlatformModel.js +238 -22
  273. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +159 -92
  274. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +473 -208
  275. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +138 -13
  276. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +100 -14
  277. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +166 -178
  278. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +518 -329
  279. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1408 -96
  280. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1034 -71
  281. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
  282. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
  283. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +41 -66
  284. package/sdk/platform/Share/SharePlatformApplicationClient.js +149 -116
  285. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
  286. package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
  287. package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
  288. package/sdk/platform/Share/SharePlatformModel.js +167 -19
  289. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +229 -193
  290. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +976 -352
  291. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +345 -24
  292. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +206 -14
  293. package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
  294. package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
  295. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1527 -48
  296. package/sdk/platform/Theme/ThemePlatformModel.js +1099 -118
  297. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
  298. package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
  299. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +138 -152
  300. package/sdk/platform/User/UserPlatformApplicationClient.js +470 -244
  301. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +242 -18
  302. package/sdk/platform/User/UserPlatformApplicationValidator.js +129 -12
  303. package/sdk/platform/User/UserPlatformModel.d.ts +653 -101
  304. package/sdk/platform/User/UserPlatformModel.js +467 -424
  305. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +153 -49
  306. package/sdk/platform/Webhook/WebhookPlatformClient.js +896 -88
  307. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +632 -16
  308. package/sdk/platform/Webhook/WebhookPlatformModel.js +502 -54
  309. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +170 -7
  310. package/sdk/platform/Webhook/WebhookPlatformValidator.js +157 -7
  311. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +16 -21
  312. package/sdk/public/Configuration/ConfigurationPublicClient.js +48 -33
  313. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +370 -19
  314. package/sdk/public/Configuration/ConfigurationPublicModel.js +191 -40
  315. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
  316. package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
  317. package/sdk/public/Inventory/InventoryPublicClient.d.ts +54 -48
  318. package/sdk/public/Inventory/InventoryPublicClient.js +161 -98
  319. package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
  320. package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
  321. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
  322. package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
  323. package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
  324. package/sdk/public/Partner/PartnerPublicClient.js +110 -0
  325. package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
  326. package/sdk/public/Partner/PartnerPublicModel.js +280 -0
  327. package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
  328. package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
  329. package/sdk/public/PublicAPIClient.d.ts +14 -1
  330. package/sdk/public/PublicAPIClient.js +7 -1
  331. package/sdk/public/PublicClient.d.ts +21 -3
  332. package/sdk/public/PublicClient.js +20 -0
  333. package/sdk/public/PublicConfig.d.ts +27 -6
  334. package/sdk/public/PublicConfig.js +17 -1
  335. package/sdk/public/Webhook/WebhookPublicClient.d.ts +16 -11
  336. package/sdk/public/Webhook/WebhookPublicClient.js +48 -27
  337. package/sdk/public/Webhook/WebhookPublicModel.d.ts +52 -16
  338. package/sdk/public/Webhook/WebhookPublicModel.js +33 -113
  339. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
  340. package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
  341. package/sdk/public/index.d.ts +1 -0
  342. package/sdk/public/index.js +2 -0
  343. package/sdk/application/ApplicationModels.d.ts +0 -3
  344. package/sdk/application/ApplicationModels.js +0 -20
  345. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -145
  346. package/sdk/platform/Partner/PartnerPlatformClient.js +0 -799
  347. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -14
  348. package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -87
@@ -1,30 +1,533 @@
1
1
  const Joi = require("joi");
2
2
 
3
- class ThemeModel {
4
- static AddThemeRequestSchema() {
3
+ /**
4
+ * @typedef AdvanceSetting
5
+ * @property {DividerStrokeHighlightSetting} [divider_stroke_highlight]
6
+ * @property {OverlayPopupSetting} [overlay_popup]
7
+ * @property {UserAlertsSetting} [user_alerts]
8
+ */
9
+
10
+ /**
11
+ * @typedef AllAvailablePageSchema
12
+ * @property {AvailablePageSchema[]} [pages]
13
+ */
14
+
15
+ /**
16
+ * @typedef Assets
17
+ * @property {CommonJS} [common_js]
18
+ * @property {CSS} [css]
19
+ * @property {UMDJs} [umd_js]
20
+ */
21
+
22
+ /**
23
+ * @typedef AuthConfig
24
+ * @property {boolean} [show_footer_auth] - Whether to show footer authentication or not
25
+ * @property {boolean} [show_header_auth] - Whether to show header authentication or not
26
+ */
27
+
28
+ /**
29
+ * @typedef AvailablePagePredicate
30
+ * @property {AvailablePageRoutePredicate} [route]
31
+ * @property {AvailablePageScreenPredicate} [screen]
32
+ * @property {AvailablePageUserPredicate} [user]
33
+ */
34
+
35
+ /**
36
+ * @typedef AvailablePageRoutePredicate
37
+ * @property {string} [exact_url]
38
+ * @property {Object} [query]
39
+ * @property {string} [selected]
40
+ */
41
+
42
+ /**
43
+ * @typedef AvailablePageSchema
44
+ * @property {string} [_id]
45
+ * @property {string} [path]
46
+ * @property {Object[]} [props]
47
+ * @property {AvailablePageSchemaSections[]} [sections]
48
+ * @property {AvailablePageSectionMetaAttributes[]} [sections_meta]
49
+ * @property {AvailablePageSeo} [seo]
50
+ * @property {string} [text]
51
+ * @property {string} [theme]
52
+ * @property {string} [type]
53
+ * @property {string} [value]
54
+ */
55
+
56
+ /**
57
+ * @typedef AvailablePageSchemaSections
58
+ * @property {Object[]} [blocks]
59
+ * @property {string} [label]
60
+ * @property {string} [name]
61
+ * @property {AvailablePagePredicate} [predicate]
62
+ * @property {Object} [preset]
63
+ * @property {Object} [props]
64
+ */
65
+
66
+ /**
67
+ * @typedef AvailablePageScreenPredicate
68
+ * @property {boolean} [desktop]
69
+ * @property {boolean} [mobile]
70
+ * @property {boolean} [tablet]
71
+ */
72
+
73
+ /**
74
+ * @typedef AvailablePageSectionMetaAttributes
75
+ * @property {Object} [attributes]
76
+ */
77
+
78
+ /**
79
+ * @typedef AvailablePageSeo
80
+ * @property {string} [_id]
81
+ * @property {string} [description]
82
+ * @property {string} [title]
83
+ */
84
+
85
+ /**
86
+ * @typedef AvailablePageUserPredicate
87
+ * @property {boolean} [anonymous]
88
+ * @property {boolean} [authenticated]
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 Block
103
+ * @property {string} [name] - The name of the block.
104
+ * @property {BlockProps} [props]
105
+ * @property {string} [type] - The type of the block.
106
+ */
107
+
108
+ /**
109
+ * @typedef BlockProps
110
+ * @property {ImagePickerProp} [image]
111
+ * @property {UrlProp} [slide_link]
112
+ */
113
+
114
+ /**
115
+ * @typedef ButtonSetting
116
+ * @property {string} [button_link] - The button link color
117
+ * @property {string} [button_primary] - The primary button color
118
+ * @property {string} [button_secondary] - The secondary button color
119
+ */
120
+
121
+ /**
122
+ * @typedef CheckboxProp
123
+ * @property {string} [type] - The type of the property.
124
+ * @property {boolean} [value] - The value of the checkbox property.
125
+ */
126
+
127
+ /**
128
+ * @typedef Colors
129
+ * @property {string} [accent_color] - The accent color
130
+ * @property {string} [bg_color] - The background color
131
+ * @property {string} [button_secondary_color] - The secondary button color
132
+ * @property {string} [link_color] - The link color
133
+ * @property {string} [primary_color] - The primary color
134
+ * @property {string} [secondary_color] - The secondary color
135
+ */
136
+
137
+ /**
138
+ * @typedef CommonJS
139
+ * @property {string} [link]
140
+ */
141
+
142
+ /**
143
+ * @typedef Config
144
+ * @property {string} current - The current configuration
145
+ * @property {GlobalSchema} [global_schema]
146
+ * @property {ThemeConfiguration[]} list - A list of configurations
147
+ * @property {Preset} [preset]
148
+ */
149
+
150
+ /**
151
+ * @typedef CSS
152
+ * @property {string[]} [links]
153
+ */
154
+
155
+ /**
156
+ * @typedef CustomConfig
157
+ * @property {CustomProps} [props]
158
+ */
159
+
160
+ /**
161
+ * @typedef CustomProps
162
+ * @property {string} [button_add_to_cart_color] - The add to cart button color
163
+ * @property {string} [button_add_to_cart_label_color] - The add to cart button
164
+ * label color
165
+ * @property {string} [button_primary_color] - The primary button color
166
+ * @property {string} [button_primary_label_color] - The primary button label color
167
+ * @property {string} [button_secondary_color] - The secondary button color
168
+ * @property {string} [button_secondary_label_color] - The secondary button label color
169
+ * @property {string} [button_tertiary_color] - The tertiary button color
170
+ * @property {string} [button_tertiary_hover_color] - The tertiary button hover color
171
+ * @property {string} [button_tertiary_hover_text_color] - The tertiary button
172
+ * hover text color
173
+ * @property {string} [button_tertiary_label_color] - The tertiary button label color
174
+ * @property {boolean} [disable_cart] - Whether to disable the cart or not
175
+ * @property {string} [footer_bg_color] - The footer background color
176
+ * @property {string} [footer_border_color] - The footer border color
177
+ * @property {string} [footer_nav_hover_color] - The footer navigation hover color
178
+ * @property {string} [footer_text_color] - The footer text color
179
+ * @property {string} [header_bg_color] - The header background color
180
+ * @property {string} [header_border_color] - The header border color
181
+ * @property {string} [header_cart_notification_bg_color] - The header cart
182
+ * notification background color
183
+ * @property {string} [header_cart_notification_text_color] - The header cart
184
+ * notification text color
185
+ * @property {string} [header_icon_color] - The header icon color
186
+ * @property {string} [header_nav_hover_color] - The header navigation hover color
187
+ * @property {string} [header_text_color] - The header text color
188
+ * @property {boolean} [is_menu_below_logo] - Whether the menu is below the logo or not
189
+ * @property {string} [menu_position] - The position of the menu
190
+ * @property {string} [text_body_color] - The text body color
191
+ * @property {string} [text_discount_color] - The text discount color
192
+ * @property {string} [text_heading_link_color] - The text heading link color
193
+ * @property {string} [text_price_color] - The text price color
194
+ * @property {string} [text_sale_price_color] - The text sale price color
195
+ * @property {string} [text_strikethrough_price_color] - The text strikethrough
196
+ * price color
197
+ */
198
+
199
+ /**
200
+ * @typedef DividerStrokeHighlightSetting
201
+ * @property {string} [divider_strokes] - The divider strokes color
202
+ * @property {string} [highlight] - The highlight color
203
+ */
204
+
205
+ /**
206
+ * @typedef Font
207
+ * @property {string} family - The font family
208
+ * @property {FontVariants} variants
209
+ */
210
+
211
+ /**
212
+ * @typedef FontVariant
213
+ * @property {string} file - The URL of the font file
214
+ * @property {string} name - The name of the font variant
215
+ */
216
+
217
+ /**
218
+ * @typedef FontVariants
219
+ * @property {FontVariant} [bold]
220
+ * @property {FontVariant} [light]
221
+ * @property {FontVariant} [medium]
222
+ * @property {FontVariant} [regular]
223
+ * @property {FontVariant} [semi_bold]
224
+ */
225
+
226
+ /**
227
+ * @typedef FooterSetting
228
+ * @property {string} [footer_background] - The footer background color
229
+ * @property {string} [footer_body_text] - The footer body text color
230
+ * @property {string} [footer_bottom_background] - The footer bottom background color
231
+ * @property {string} [footer_heading_text] - The footer heading text color
232
+ * @property {string} [footer_icon] - The footer icon color
233
+ */
234
+
235
+ /**
236
+ * @typedef GeneralSetting
237
+ * @property {ButtonSetting} [button]
238
+ * @property {FooterSetting} [footer]
239
+ * @property {HeaderSetting} [header]
240
+ * @property {SaleDiscountSetting} [sale_discount]
241
+ * @property {TextSetting} [text]
242
+ * @property {ThemeSetting} [theme]
243
+ */
244
+
245
+ /**
246
+ * @typedef GlobalConfig
247
+ * @property {AuthConfig} [auth]
248
+ * @property {PaletteConfig} [palette]
249
+ * @property {StaticConfig} [statics]
250
+ */
251
+
252
+ /**
253
+ * @typedef GlobalSchema
254
+ * @property {Prop[]} [props]
255
+ */
256
+
257
+ /**
258
+ * @typedef HeaderSetting
259
+ * @property {string} [header_background] - The header background color
260
+ * @property {string} [header_icon] - The header icon color
261
+ * @property {string} [header_nav] - The header navigation color
262
+ */
263
+
264
+ /**
265
+ * @typedef ImagePickerProp
266
+ * @property {string} [type] - The type of the property.
267
+ * @property {string} [value] - The value of the image picker property.
268
+ */
269
+
270
+ /**
271
+ * @typedef Images
272
+ * @property {string} [desktop] - The URL of the desktop image
273
+ * @property {string} [mobile] - The URL of the mobile image
274
+ */
275
+
276
+ /**
277
+ * @typedef Meta
278
+ * @property {string} [description] - The description of the theme
279
+ * @property {Images} [images]
280
+ * @property {string[]} [industry] - An array of industries associated with the theme
281
+ * @property {string} [name] - The name of the theme
282
+ * @property {ThemePayment} [payment]
283
+ * @property {Release} [release]
284
+ * @property {string} [slug] - The slug of the theme
285
+ */
286
+
287
+ /**
288
+ * @typedef OverlayPopupSetting
289
+ * @property {string} [dialog_backgroung] - The dialog background color
290
+ * @property {string} [overlay] - The overlay color
291
+ */
292
+
293
+ /**
294
+ * @typedef Page
295
+ * @property {number} [current]
296
+ * @property {boolean} [has_next]
297
+ * @property {boolean} [has_previous]
298
+ * @property {number} [item_total]
299
+ * @property {string} [next_id]
300
+ * @property {number} [size]
301
+ * @property {string} type
302
+ */
303
+
304
+ /**
305
+ * @typedef PaletteConfig
306
+ * @property {AdvanceSetting} [advance_setting]
307
+ * @property {GeneralSetting} [general_setting]
308
+ */
309
+
310
+ /**
311
+ * @typedef Predicate
312
+ * @property {Route} [route]
313
+ * @property {Screen} [screen]
314
+ * @property {ThemeUserSchema} [user]
315
+ */
316
+
317
+ /**
318
+ * @typedef Preset
319
+ * @property {Page[]} [pages]
320
+ */
321
+
322
+ /**
323
+ * @typedef Prop
324
+ * @property {string} [category] - The category of the property
325
+ * @property {string} [id] - The ID of the property
326
+ * @property {string} [info] - Additional information about the property
327
+ * @property {string} [label] - The label of the property
328
+ * @property {string} [type] - The type of the property
329
+ */
330
+
331
+ /**
332
+ * @typedef RangeProp
333
+ * @property {string} [type] - The type of the property.
334
+ * @property {number} [value] - The value of the range property.
335
+ */
336
+
337
+ /**
338
+ * @typedef Release
339
+ * @property {string} [notes] - The release notes of the theme
340
+ * @property {string} [version] - The version of the theme
341
+ */
342
+
343
+ /**
344
+ * @typedef Route
345
+ * @property {string} [exact_url] - The exact URL of the route.
346
+ * @property {string} [selected] - The selected route.
347
+ */
348
+
349
+ /**
350
+ * @typedef SaleDiscountSetting
351
+ * @property {string} [sale_badge_background] - The sale badge background color
352
+ * @property {string} [sale_badge_text] - The sale badge text color
353
+ * @property {string} [sale_discount_text] - The sale discount text color
354
+ * @property {string} [sale_timer] - The sale timer color
355
+ */
356
+
357
+ /**
358
+ * @typedef Screen
359
+ * @property {boolean} [desktop] - True if the screen is a desktop device.
360
+ * @property {boolean} [mobile] - True if the screen is a mobile device.
361
+ * @property {boolean} [tablet] - True if the screen is a tablet device.
362
+ */
363
+
364
+ /**
365
+ * @typedef Section
366
+ * @property {Block[]} [blocks]
367
+ * @property {string} [name] - The name of the section.
368
+ * @property {Predicate} [predicate]
369
+ * @property {SectionPreset} [preset]
370
+ * @property {SectionProps} [props]
371
+ */
372
+
373
+ /**
374
+ * @typedef SectionItem
375
+ * @property {Object[]} [blocks] - Blocks
376
+ * @property {string} [label] - Label for the section
377
+ * @property {string} [name] - Name of the section
378
+ * @property {Object[]} [props]
379
+ */
380
+
381
+ /**
382
+ * @typedef SectionPreset
383
+ * @property {Block[]} [blocks]
384
+ */
385
+
386
+ /**
387
+ * @typedef SectionProps
388
+ * @property {CheckboxProp} [autoplay]
389
+ * @property {TextProp} [item_margin]
390
+ * @property {RangeProp} [slide_interval]
391
+ * @property {TextProp} [title]
392
+ */
393
+
394
+ /**
395
+ * @typedef StaticConfig
396
+ * @property {StaticProps} [props]
397
+ */
398
+
399
+ /**
400
+ * @typedef StaticProps
401
+ * @property {AuthConfig} [auth]
402
+ * @property {Colors} [colors]
403
+ */
404
+
405
+ /**
406
+ * @typedef TextProp
407
+ * @property {string} [type] - The type of the property.
408
+ * @property {string} [value] - The value of the text property.
409
+ */
410
+
411
+ /**
412
+ * @typedef TextSetting
413
+ * @property {string} [text_body] - The text body color
414
+ * @property {string} [text_heading] - The text heading color
415
+ * @property {string} [text_label] - The text label color
416
+ * @property {string} [text_secondary] - The secondary text color
417
+ */
418
+
419
+ /**
420
+ * @typedef ThemeConfiguration
421
+ * @property {CustomConfig} [custom]
422
+ * @property {GlobalConfig} [global_config]
423
+ * @property {string} [name] - The name of the configuration
424
+ * @property {string[]} [page] - An array of pages
425
+ */
426
+
427
+ /**
428
+ * @typedef ThemePayment
429
+ * @property {number} [amount] - The amount of the theme
430
+ * @property {boolean} [is_paid] - Whether the theme is paid or not
431
+ */
432
+
433
+ /**
434
+ * @typedef ThemeSetting
435
+ * @property {string} [page_background] - The page background color
436
+ * @property {string} [theme_accent] - The theme accent color
437
+ */
438
+
439
+ /**
440
+ * @typedef ThemesSchema
441
+ * @property {string} [_id] - The unique identifier of the theme
442
+ * @property {string} [application_id] - The ID of the application
443
+ * @property {boolean} [applied] - Whether the theme has been applied or not
444
+ * @property {Assets} [assets]
445
+ * @property {SectionItem[]} [available_sections] - Available sections information
446
+ * @property {Config} [config]
447
+ * @property {string} [created_at] - The creation timestamp of the theme
448
+ * @property {Font} [font]
449
+ * @property {boolean} [is_private] - Whether the theme is private or not
450
+ * @property {string} [marketplace_theme_id] - The ID of the theme in the marketplace
451
+ * @property {Meta} [meta]
452
+ * @property {string} [name] - The name of the theme
453
+ * @property {Object} [styles] - The styles associated with the theme
454
+ * @property {string[]} [tags] - An array of tags associated with the theme
455
+ * @property {string} [template_theme_id] - The ID of the template theme
456
+ * @property {string} [updated_at] - The last update timestamp of the theme
457
+ * @property {string} [version] - The version of the theme
458
+ */
459
+
460
+ /**
461
+ * @typedef ThemeUserSchema
462
+ * @property {boolean} [anonymous] - True if the user is anonymous.
463
+ * @property {boolean} [authenticated] - True if the user is authenticated.
464
+ */
465
+
466
+ /**
467
+ * @typedef UMDJs
468
+ * @property {string[]} [links]
469
+ */
470
+
471
+ /**
472
+ * @typedef UrlProp
473
+ * @property {string} [type] - The type of the property.
474
+ * @property {string} [value] - The value of the URL property.
475
+ */
476
+
477
+ /**
478
+ * @typedef UserAlertsSetting
479
+ * @property {string} [error_background] - The error background color
480
+ * @property {string} [error_text] - The error text color
481
+ * @property {string} [info_background] - The info background color
482
+ * @property {string} [info_text] - The info text color
483
+ * @property {string} [success_background] - The success background color
484
+ * @property {string} [success_text] - The success text color
485
+ */
486
+
487
+ class ThemeApplicationModel {
488
+ /** @returns {AdvanceSetting} */
489
+ static AdvanceSetting() {
5
490
  return Joi.object({
6
- theme_id: Joi.string().allow(""),
491
+ divider_stroke_highlight: ThemeApplicationModel.DividerStrokeHighlightSetting(),
492
+ overlay_popup: ThemeApplicationModel.OverlayPopupSetting(),
493
+ user_alerts: ThemeApplicationModel.UserAlertsSetting(),
7
494
  });
8
495
  }
496
+
497
+ /** @returns {AllAvailablePageSchema} */
9
498
  static AllAvailablePageSchema() {
10
499
  return Joi.object({
11
- pages: Joi.array().items(ThemeModel.AvailablePageSchema()),
500
+ pages: Joi.array().items(ThemeApplicationModel.AvailablePageSchema()),
501
+ });
502
+ }
503
+
504
+ /** @returns {Assets} */
505
+ static Assets() {
506
+ return Joi.object({
507
+ common_js: ThemeApplicationModel.CommonJS(),
508
+ css: ThemeApplicationModel.CSS(),
509
+ umd_js: ThemeApplicationModel.UMDJs(),
12
510
  });
13
511
  }
14
- static AssetsSchema() {
512
+
513
+ /** @returns {AuthConfig} */
514
+ static AuthConfig() {
15
515
  return Joi.object({
16
- common_js: ThemeModel.CommonJs(),
17
- css: ThemeModel.Css(),
18
- umd_js: ThemeModel.UmdJs(),
516
+ show_footer_auth: Joi.boolean(),
517
+ show_header_auth: Joi.boolean(),
19
518
  });
20
519
  }
520
+
521
+ /** @returns {AvailablePagePredicate} */
21
522
  static AvailablePagePredicate() {
22
523
  return Joi.object({
23
- route: ThemeModel.AvailablePageRoutePredicate(),
24
- screen: ThemeModel.AvailablePageScreenPredicate(),
25
- user: ThemeModel.AvailablePageUserPredicate(),
524
+ route: ThemeApplicationModel.AvailablePageRoutePredicate(),
525
+ screen: ThemeApplicationModel.AvailablePageScreenPredicate(),
526
+ user: ThemeApplicationModel.AvailablePageUserPredicate(),
26
527
  });
27
528
  }
529
+
530
+ /** @returns {AvailablePageRoutePredicate} */
28
531
  static AvailablePageRoutePredicate() {
29
532
  return Joi.object({
30
533
  exact_url: Joi.string().allow(""),
@@ -32,32 +535,40 @@ class ThemeModel {
32
535
  selected: Joi.string().allow(""),
33
536
  });
34
537
  }
538
+
539
+ /** @returns {AvailablePageSchema} */
35
540
  static AvailablePageSchema() {
36
541
  return Joi.object({
37
542
  _id: Joi.string().allow(""),
38
543
  path: Joi.string().allow(""),
39
544
  props: Joi.array().items(Joi.any()),
40
- sections: Joi.array().items(ThemeModel.AvailablePageSchemaSections()),
545
+ sections: Joi.array().items(
546
+ ThemeApplicationModel.AvailablePageSchemaSections()
547
+ ),
41
548
  sections_meta: Joi.array().items(
42
- ThemeModel.AvailablePageSectionMetaAttributes()
549
+ ThemeApplicationModel.AvailablePageSectionMetaAttributes()
43
550
  ),
44
- seo: ThemeModel.AvailablePageSeo(),
551
+ seo: ThemeApplicationModel.AvailablePageSeo(),
45
552
  text: Joi.string().allow(""),
46
553
  theme: Joi.string().allow(""),
47
554
  type: Joi.string().allow(""),
48
555
  value: Joi.string().allow(""),
49
556
  });
50
557
  }
558
+
559
+ /** @returns {AvailablePageSchemaSections} */
51
560
  static AvailablePageSchemaSections() {
52
561
  return Joi.object({
53
562
  blocks: Joi.array().items(Joi.any()),
54
563
  label: Joi.string().allow(""),
55
564
  name: Joi.string().allow(""),
56
- predicate: ThemeModel.AvailablePagePredicate(),
565
+ predicate: ThemeApplicationModel.AvailablePagePredicate(),
57
566
  preset: Joi.any(),
58
567
  props: Joi.any(),
59
568
  });
60
569
  }
570
+
571
+ /** @returns {AvailablePageScreenPredicate} */
61
572
  static AvailablePageScreenPredicate() {
62
573
  return Joi.object({
63
574
  desktop: Joi.boolean(),
@@ -65,11 +576,15 @@ class ThemeModel {
65
576
  tablet: Joi.boolean(),
66
577
  });
67
578
  }
579
+
580
+ /** @returns {AvailablePageSectionMetaAttributes} */
68
581
  static AvailablePageSectionMetaAttributes() {
69
582
  return Joi.object({
70
583
  attributes: Joi.any(),
71
584
  });
72
585
  }
586
+
587
+ /** @returns {AvailablePageSeo} */
73
588
  static AvailablePageSeo() {
74
589
  return Joi.object({
75
590
  _id: Joi.string().allow(""),
@@ -77,55 +592,64 @@ class ThemeModel {
77
592
  title: Joi.string().allow(""),
78
593
  });
79
594
  }
595
+
596
+ /** @returns {AvailablePageUserPredicate} */
80
597
  static AvailablePageUserPredicate() {
81
598
  return Joi.object({
82
599
  anonymous: Joi.boolean(),
83
600
  authenticated: Joi.boolean(),
84
601
  });
85
602
  }
86
- static availableSectionSchema() {
87
- return Joi.object({
88
- blocks: Joi.array().items(ThemeModel.Blocks()),
89
- label: Joi.string().allow(""),
90
- name: Joi.string().allow(""),
91
- props: Joi.array().items(ThemeModel.BlocksProps()),
92
- });
93
- }
603
+
604
+ /** @returns {BlitzkriegApiErrorSchema} */
94
605
  static BlitzkriegApiErrorSchema() {
95
606
  return Joi.object({
96
607
  message: Joi.string().allow(""),
97
608
  });
98
609
  }
610
+
611
+ /** @returns {BlitzkriegInternalServerErrorSchema} */
99
612
  static BlitzkriegInternalServerErrorSchema() {
100
613
  return Joi.object({
101
614
  message: Joi.string().allow(""),
102
615
  });
103
616
  }
104
- static BlitzkriegNotFoundSchema() {
617
+
618
+ /** @returns {Block} */
619
+ static Block() {
105
620
  return Joi.object({
106
- message: Joi.string().allow(""),
621
+ name: Joi.string().allow(""),
622
+ props: ThemeApplicationModel.BlockProps(),
623
+ type: Joi.string().allow(""),
107
624
  });
108
625
  }
109
- static Blocks() {
626
+
627
+ /** @returns {BlockProps} */
628
+ static BlockProps() {
110
629
  return Joi.object({
111
- name: Joi.string().allow(""),
112
- props: Joi.array().items(ThemeModel.BlocksProps()),
113
- type: Joi.string().allow(""),
630
+ image: ThemeApplicationModel.ImagePickerProp(),
631
+ slide_link: ThemeApplicationModel.UrlProp(),
114
632
  });
115
633
  }
116
- static BlocksProps() {
634
+
635
+ /** @returns {ButtonSetting} */
636
+ static ButtonSetting() {
117
637
  return Joi.object({
118
- id: Joi.string().allow(""),
119
- label: Joi.string().allow(""),
120
- type: Joi.string().allow(""),
638
+ button_link: Joi.string().allow(""),
639
+ button_primary: Joi.string().allow(""),
640
+ button_secondary: Joi.string().allow(""),
121
641
  });
122
642
  }
123
- static Bold() {
643
+
644
+ /** @returns {CheckboxProp} */
645
+ static CheckboxProp() {
124
646
  return Joi.object({
125
- file: Joi.string().allow(""),
126
- name: Joi.string().allow(""),
647
+ type: Joi.string().allow(""),
648
+ value: Joi.boolean(),
127
649
  });
128
650
  }
651
+
652
+ /** @returns {Colors} */
129
653
  static Colors() {
130
654
  return Joi.object({
131
655
  accent_color: Joi.string().allow(""),
@@ -136,205 +660,442 @@ class ThemeModel {
136
660
  secondary_color: Joi.string().allow(""),
137
661
  });
138
662
  }
139
- static CommonJs() {
663
+
664
+ /** @returns {CommonJS} */
665
+ static CommonJS() {
140
666
  return Joi.object({
141
667
  link: Joi.string().allow(""),
142
668
  });
143
669
  }
670
+
671
+ /** @returns {Config} */
144
672
  static Config() {
145
673
  return Joi.object({
146
- current: Joi.string().allow(""),
147
- global_schema: ThemeModel.GlobalSchema(),
148
- list: Joi.array().items(ThemeModel.ListSchemaItem()),
149
- preset: ThemeModel.Preset(),
674
+ current: Joi.string().allow("").required(),
675
+ global_schema: ThemeApplicationModel.GlobalSchema(),
676
+ list: Joi.array()
677
+ .items(ThemeApplicationModel.ThemeConfiguration())
678
+ .required(),
679
+ preset: ThemeApplicationModel.Preset(),
150
680
  });
151
681
  }
152
- static ConfigPage() {
682
+
683
+ /** @returns {CSS} */
684
+ static CSS() {
153
685
  return Joi.object({
154
- page: Joi.string().allow(""),
155
- settings: Joi.any(),
686
+ links: Joi.array().items(Joi.string().allow("")),
156
687
  });
157
688
  }
158
- static Css() {
689
+
690
+ /** @returns {CustomConfig} */
691
+ static CustomConfig() {
159
692
  return Joi.object({
160
- link: Joi.string().allow(""),
161
- links: Joi.array().items(Joi.string().allow("")),
693
+ props: ThemeApplicationModel.CustomProps(),
162
694
  });
163
695
  }
164
- static Custom() {
696
+
697
+ /** @returns {CustomProps} */
698
+ static CustomProps() {
165
699
  return Joi.object({
166
- props: Joi.any(),
700
+ button_add_to_cart_color: Joi.string().allow(""),
701
+ button_add_to_cart_label_color: Joi.string().allow(""),
702
+ button_primary_color: Joi.string().allow(""),
703
+ button_primary_label_color: Joi.string().allow(""),
704
+ button_secondary_color: Joi.string().allow(""),
705
+ button_secondary_label_color: Joi.string().allow(""),
706
+ button_tertiary_color: Joi.string().allow(""),
707
+ button_tertiary_hover_color: Joi.string().allow(""),
708
+ button_tertiary_hover_text_color: Joi.string().allow(""),
709
+ button_tertiary_label_color: Joi.string().allow(""),
710
+ disable_cart: Joi.boolean(),
711
+ footer_bg_color: Joi.string().allow(""),
712
+ footer_border_color: Joi.string().allow(""),
713
+ footer_nav_hover_color: Joi.string().allow(""),
714
+ footer_text_color: Joi.string().allow(""),
715
+ header_bg_color: Joi.string().allow(""),
716
+ header_border_color: Joi.string().allow(""),
717
+ header_cart_notification_bg_color: Joi.string().allow(""),
718
+ header_cart_notification_text_color: Joi.string().allow(""),
719
+ header_icon_color: Joi.string().allow(""),
720
+ header_nav_hover_color: Joi.string().allow(""),
721
+ header_text_color: Joi.string().allow(""),
722
+ is_menu_below_logo: Joi.boolean(),
723
+ menu_position: Joi.string().allow(""),
724
+ text_body_color: Joi.string().allow(""),
725
+ text_discount_color: Joi.string().allow(""),
726
+ text_heading_link_color: Joi.string().allow(""),
727
+ text_price_color: Joi.string().allow(""),
728
+ text_sale_price_color: Joi.string().allow(""),
729
+ text_strikethrough_price_color: Joi.string().allow(""),
730
+ });
731
+ }
732
+
733
+ /** @returns {DividerStrokeHighlightSetting} */
734
+ static DividerStrokeHighlightSetting() {
735
+ return Joi.object({
736
+ divider_strokes: Joi.string().allow(""),
737
+ highlight: Joi.string().allow(""),
167
738
  });
168
739
  }
740
+
741
+ /** @returns {Font} */
169
742
  static Font() {
170
743
  return Joi.object({
171
- family: Joi.string().allow(""),
172
- variants: ThemeModel.Variants(),
744
+ family: Joi.string().allow("").required(),
745
+ variants: ThemeApplicationModel.FontVariants().required(),
173
746
  });
174
747
  }
175
- static FontsSchema() {
748
+
749
+ /** @returns {FontVariant} */
750
+ static FontVariant() {
176
751
  return Joi.object({
177
- items: ThemeModel.FontsSchemaItems(),
178
- kind: Joi.string().allow(""),
752
+ file: Joi.string().allow("").required(),
753
+ name: Joi.string().allow("").required(),
179
754
  });
180
755
  }
181
- static FontsSchemaItems() {
756
+
757
+ /** @returns {FontVariants} */
758
+ static FontVariants() {
182
759
  return Joi.object({
183
- category: Joi.string().allow(""),
184
- family: Joi.string().allow(""),
185
- files: ThemeModel.FontsSchemaItemsFiles(),
186
- kind: Joi.string().allow(""),
187
- last_modified: Joi.string().allow(""),
188
- subsets: Joi.array().items(Joi.string().allow("")),
189
- variants: Joi.array().items(Joi.string().allow("")),
190
- version: Joi.string().allow(""),
760
+ bold: ThemeApplicationModel.FontVariant(),
761
+ light: ThemeApplicationModel.FontVariant(),
762
+ medium: ThemeApplicationModel.FontVariant(),
763
+ regular: ThemeApplicationModel.FontVariant(),
764
+ semi_bold: ThemeApplicationModel.FontVariant(),
191
765
  });
192
766
  }
193
- static FontsSchemaItemsFiles() {
767
+
768
+ /** @returns {FooterSetting} */
769
+ static FooterSetting() {
194
770
  return Joi.object({
195
- bold: Joi.string().allow(""),
196
- italic: Joi.string().allow(""),
197
- regular: Joi.string().allow(""),
771
+ footer_background: Joi.string().allow(""),
772
+ footer_body_text: Joi.string().allow(""),
773
+ footer_bottom_background: Joi.string().allow(""),
774
+ footer_heading_text: Joi.string().allow(""),
775
+ footer_icon: Joi.string().allow(""),
198
776
  });
199
777
  }
200
- static GlobalSchema() {
778
+
779
+ /** @returns {GeneralSetting} */
780
+ static GeneralSetting() {
201
781
  return Joi.object({
202
- props: Joi.array().items(ThemeModel.GlobalSchemaProps()),
782
+ button: ThemeApplicationModel.ButtonSetting(),
783
+ footer: ThemeApplicationModel.FooterSetting(),
784
+ header: ThemeApplicationModel.HeaderSetting(),
785
+ sale_discount: ThemeApplicationModel.SaleDiscountSetting(),
786
+ text: ThemeApplicationModel.TextSetting(),
787
+ theme: ThemeApplicationModel.ThemeSetting(),
203
788
  });
204
789
  }
205
- static GlobalSchemaProps() {
790
+
791
+ /** @returns {GlobalConfig} */
792
+ static GlobalConfig() {
206
793
  return Joi.object({
207
- category: Joi.string().allow(""),
208
- id: Joi.string().allow(""),
209
- label: Joi.string().allow(""),
210
- type: Joi.string().allow(""),
794
+ auth: ThemeApplicationModel.AuthConfig(),
795
+ palette: ThemeApplicationModel.PaletteConfig(),
796
+ statics: ThemeApplicationModel.StaticConfig(),
211
797
  });
212
798
  }
213
- static Images() {
799
+
800
+ /** @returns {GlobalSchema} */
801
+ static GlobalSchema() {
214
802
  return Joi.object({
215
- android: Joi.array().items(Joi.string().allow("")),
216
- desktop: Joi.array().items(Joi.string().allow("")),
217
- ios: Joi.array().items(Joi.string().allow("")),
218
- thumbnail: Joi.array().items(Joi.string().allow("")),
803
+ props: Joi.array().items(ThemeApplicationModel.Prop()),
219
804
  });
220
805
  }
221
- static Information() {
806
+
807
+ /** @returns {HeaderSetting} */
808
+ static HeaderSetting() {
222
809
  return Joi.object({
223
- description: Joi.string().allow(""),
224
- features: Joi.array().items(Joi.string().allow("")),
225
- images: ThemeModel.Images(),
226
- name: Joi.string().allow(""),
810
+ header_background: Joi.string().allow(""),
811
+ header_icon: Joi.string().allow(""),
812
+ header_nav: Joi.string().allow(""),
227
813
  });
228
814
  }
229
- static Light() {
815
+
816
+ /** @returns {ImagePickerProp} */
817
+ static ImagePickerProp() {
230
818
  return Joi.object({
231
- file: Joi.string().allow(""),
232
- name: Joi.string().allow(""),
819
+ type: Joi.string().allow(""),
820
+ value: Joi.string().allow(""),
233
821
  });
234
822
  }
235
- static ListSchemaItem() {
823
+
824
+ /** @returns {Images} */
825
+ static Images() {
236
826
  return Joi.object({
237
- global_config: Joi.any(),
238
- name: Joi.string().allow(""),
239
- page: Joi.array().items(ThemeModel.ConfigPage()),
827
+ desktop: Joi.string().allow(""),
828
+ mobile: Joi.string().allow(""),
240
829
  });
241
830
  }
242
- static Medium() {
831
+
832
+ /** @returns {Meta} */
833
+ static Meta() {
243
834
  return Joi.object({
244
- file: Joi.string().allow(""),
835
+ description: Joi.string().allow(""),
836
+ images: ThemeApplicationModel.Images(),
837
+ industry: Joi.array().items(Joi.string().allow("")),
245
838
  name: Joi.string().allow(""),
839
+ payment: ThemeApplicationModel.ThemePayment(),
840
+ release: ThemeApplicationModel.Release(),
841
+ slug: Joi.string().allow(""),
246
842
  });
247
843
  }
248
- static PaginationSchema() {
844
+
845
+ /** @returns {OverlayPopupSetting} */
846
+ static OverlayPopupSetting() {
847
+ return Joi.object({
848
+ dialog_backgroung: Joi.string().allow(""),
849
+ overlay: Joi.string().allow(""),
850
+ });
851
+ }
852
+
853
+ /** @returns {Page} */
854
+ static Page() {
249
855
  return Joi.object({
250
856
  current: Joi.number(),
251
857
  has_next: Joi.boolean(),
858
+ has_previous: Joi.boolean(),
252
859
  item_total: Joi.number(),
860
+ next_id: Joi.string().allow(""),
253
861
  size: Joi.number(),
254
- type: Joi.string().allow(""),
862
+ type: Joi.string().allow("").required(),
863
+ });
864
+ }
865
+
866
+ /** @returns {PaletteConfig} */
867
+ static PaletteConfig() {
868
+ return Joi.object({
869
+ advance_setting: ThemeApplicationModel.AdvanceSetting(),
870
+ general_setting: ThemeApplicationModel.GeneralSetting(),
255
871
  });
256
872
  }
873
+
874
+ /** @returns {Predicate} */
875
+ static Predicate() {
876
+ return Joi.object({
877
+ route: ThemeApplicationModel.Route(),
878
+ screen: ThemeApplicationModel.Screen(),
879
+ user: ThemeApplicationModel.ThemeUserSchema(),
880
+ });
881
+ }
882
+
883
+ /** @returns {Preset} */
257
884
  static Preset() {
258
885
  return Joi.object({
259
- pages: Joi.array().items(ThemeModel.AvailablePageSchema()),
886
+ pages: Joi.array().items(ThemeApplicationModel.Page()),
887
+ });
888
+ }
889
+
890
+ /** @returns {Prop} */
891
+ static Prop() {
892
+ return Joi.object({
893
+ category: Joi.string().allow(""),
894
+ id: Joi.string().allow(""),
895
+ info: Joi.string().allow(""),
896
+ label: Joi.string().allow(""),
897
+ type: Joi.string().allow(""),
898
+ });
899
+ }
900
+
901
+ /** @returns {RangeProp} */
902
+ static RangeProp() {
903
+ return Joi.object({
904
+ type: Joi.string().allow(""),
905
+ value: Joi.number(),
906
+ });
907
+ }
908
+
909
+ /** @returns {Release} */
910
+ static Release() {
911
+ return Joi.object({
912
+ notes: Joi.string().allow(""),
913
+ version: Joi.string().allow(""),
260
914
  });
261
915
  }
262
- static Regular() {
916
+
917
+ /** @returns {Route} */
918
+ static Route() {
919
+ return Joi.object({
920
+ exact_url: Joi.string().allow(""),
921
+ selected: Joi.string().allow(""),
922
+ });
923
+ }
924
+
925
+ /** @returns {SaleDiscountSetting} */
926
+ static SaleDiscountSetting() {
263
927
  return Joi.object({
264
- file: Joi.string().allow(""),
928
+ sale_badge_background: Joi.string().allow(""),
929
+ sale_badge_text: Joi.string().allow(""),
930
+ sale_discount_text: Joi.string().allow(""),
931
+ sale_timer: Joi.string().allow(""),
932
+ });
933
+ }
934
+
935
+ /** @returns {Screen} */
936
+ static Screen() {
937
+ return Joi.object({
938
+ desktop: Joi.boolean(),
939
+ mobile: Joi.boolean(),
940
+ tablet: Joi.boolean(),
941
+ });
942
+ }
943
+
944
+ /** @returns {Section} */
945
+ static Section() {
946
+ return Joi.object({
947
+ blocks: Joi.array().items(ThemeApplicationModel.Block()),
948
+ name: Joi.string().allow(""),
949
+ predicate: ThemeApplicationModel.Predicate(),
950
+ preset: ThemeApplicationModel.SectionPreset(),
951
+ props: ThemeApplicationModel.SectionProps(),
952
+ });
953
+ }
954
+
955
+ /** @returns {SectionItem} */
956
+ static SectionItem() {
957
+ return Joi.object({
958
+ blocks: Joi.array().items(Joi.any()),
959
+ label: Joi.string().allow(""),
265
960
  name: Joi.string().allow(""),
961
+ props: Joi.array().items(Joi.any()),
962
+ });
963
+ }
964
+
965
+ /** @returns {SectionPreset} */
966
+ static SectionPreset() {
967
+ return Joi.object({
968
+ blocks: Joi.array().items(ThemeApplicationModel.Block()),
969
+ });
970
+ }
971
+
972
+ /** @returns {SectionProps} */
973
+ static SectionProps() {
974
+ return Joi.object({
975
+ autoplay: ThemeApplicationModel.CheckboxProp(),
976
+ item_margin: ThemeApplicationModel.TextProp(),
977
+ slide_interval: ThemeApplicationModel.RangeProp(),
978
+ title: ThemeApplicationModel.TextProp(),
979
+ });
980
+ }
981
+
982
+ /** @returns {StaticConfig} */
983
+ static StaticConfig() {
984
+ return Joi.object({
985
+ props: ThemeApplicationModel.StaticProps(),
266
986
  });
267
987
  }
268
- static Sections() {
988
+
989
+ /** @returns {StaticProps} */
990
+ static StaticProps() {
269
991
  return Joi.object({
270
- attributes: Joi.string().allow(""),
992
+ auth: ThemeApplicationModel.AuthConfig(),
993
+ colors: ThemeApplicationModel.Colors(),
271
994
  });
272
995
  }
273
- static SemiBold() {
996
+
997
+ /** @returns {TextProp} */
998
+ static TextProp() {
274
999
  return Joi.object({
275
- file: Joi.string().allow(""),
1000
+ type: Joi.string().allow(""),
1001
+ value: Joi.string().allow(""),
1002
+ });
1003
+ }
1004
+
1005
+ /** @returns {TextSetting} */
1006
+ static TextSetting() {
1007
+ return Joi.object({
1008
+ text_body: Joi.string().allow(""),
1009
+ text_heading: Joi.string().allow(""),
1010
+ text_label: Joi.string().allow(""),
1011
+ text_secondary: Joi.string().allow(""),
1012
+ });
1013
+ }
1014
+
1015
+ /** @returns {ThemeConfiguration} */
1016
+ static ThemeConfiguration() {
1017
+ return Joi.object({
1018
+ custom: ThemeApplicationModel.CustomConfig(),
1019
+ global_config: ThemeApplicationModel.GlobalConfig(),
276
1020
  name: Joi.string().allow(""),
1021
+ page: Joi.array().items(Joi.string().allow("")),
277
1022
  });
278
1023
  }
279
- static Src() {
1024
+
1025
+ /** @returns {ThemePayment} */
1026
+ static ThemePayment() {
280
1027
  return Joi.object({
281
- link: Joi.string().allow(""),
1028
+ amount: Joi.number(),
1029
+ is_paid: Joi.boolean(),
282
1030
  });
283
1031
  }
284
- static ThemesListingResponseSchema() {
1032
+
1033
+ /** @returns {ThemeSetting} */
1034
+ static ThemeSetting() {
285
1035
  return Joi.object({
286
- items: Joi.array().items(ThemeModel.ThemesSchema()),
287
- page: ThemeModel.PaginationSchema(),
1036
+ page_background: Joi.string().allow(""),
1037
+ theme_accent: Joi.string().allow(""),
288
1038
  });
289
1039
  }
1040
+
1041
+ /** @returns {ThemesSchema} */
290
1042
  static ThemesSchema() {
291
1043
  return Joi.object({
292
- __v: Joi.number(),
293
1044
  _id: Joi.string().allow(""),
294
- application: Joi.string().allow(""),
1045
+ application_id: Joi.string().allow(""),
295
1046
  applied: Joi.boolean(),
296
- archived: Joi.boolean(),
297
- assets: ThemeModel.AssetsSchema(),
1047
+ assets: ThemeApplicationModel.Assets(),
298
1048
  available_sections: Joi.array().items(
299
- ThemeModel.availableSectionSchema()
1049
+ ThemeApplicationModel.SectionItem()
300
1050
  ),
301
- colors: ThemeModel.Colors(),
302
- config: ThemeModel.Config(),
1051
+ config: ThemeApplicationModel.Config(),
303
1052
  created_at: Joi.string().allow(""),
304
- customized: Joi.boolean(),
305
- font: ThemeModel.Font(),
306
- information: ThemeModel.Information(),
307
- parent_theme: Joi.string().allow(""),
308
- parent_theme_version: Joi.string().allow(""),
309
- published: Joi.boolean(),
310
- src: ThemeModel.Src(),
1053
+ font: ThemeApplicationModel.Font(),
1054
+ is_private: Joi.boolean(),
1055
+ marketplace_theme_id: Joi.string().allow(""),
1056
+ meta: ThemeApplicationModel.Meta(),
1057
+ name: Joi.string().allow(""),
311
1058
  styles: Joi.any(),
312
1059
  tags: Joi.array().items(Joi.string().allow("")),
1060
+ template_theme_id: Joi.string().allow(""),
313
1061
  updated_at: Joi.string().allow(""),
314
1062
  version: Joi.string().allow(""),
315
1063
  });
316
1064
  }
317
- static UmdJs() {
1065
+
1066
+ /** @returns {ThemeUserSchema} */
1067
+ static ThemeUserSchema() {
1068
+ return Joi.object({
1069
+ anonymous: Joi.boolean(),
1070
+ authenticated: Joi.boolean(),
1071
+ });
1072
+ }
1073
+
1074
+ /** @returns {UMDJs} */
1075
+ static UMDJs() {
318
1076
  return Joi.object({
319
- link: Joi.string().allow(""),
320
1077
  links: Joi.array().items(Joi.string().allow("")),
321
1078
  });
322
1079
  }
323
- static UpgradableThemeSchema() {
1080
+
1081
+ /** @returns {UrlProp} */
1082
+ static UrlProp() {
324
1083
  return Joi.object({
325
- applied_theme: Joi.string().allow(""),
326
- parent_theme: Joi.string().allow(""),
327
- upgrade: Joi.boolean(),
1084
+ type: Joi.string().allow(""),
1085
+ value: Joi.string().allow(""),
328
1086
  });
329
1087
  }
330
- static Variants() {
1088
+
1089
+ /** @returns {UserAlertsSetting} */
1090
+ static UserAlertsSetting() {
331
1091
  return Joi.object({
332
- bold: ThemeModel.Bold(),
333
- light: ThemeModel.Light(),
334
- medium: ThemeModel.Medium(),
335
- regular: ThemeModel.Regular(),
336
- semi_bold: ThemeModel.SemiBold(),
1092
+ error_background: Joi.string().allow(""),
1093
+ error_text: Joi.string().allow(""),
1094
+ info_background: Joi.string().allow(""),
1095
+ info_text: Joi.string().allow(""),
1096
+ success_background: Joi.string().allow(""),
1097
+ success_text: Joi.string().allow(""),
337
1098
  });
338
1099
  }
339
1100
  }
340
- module.exports = ThemeModel;
1101
+ module.exports = ThemeApplicationModel;