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

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 (326) hide show
  1. package/README.md +2 -2
  2. package/application.d.ts +1 -2
  3. package/application.js +2 -3
  4. package/index.d.ts +1 -2
  5. package/index.js +7 -1
  6. package/package.json +2 -3
  7. package/sdk/application/ApplicationClient.d.ts +0 -2
  8. package/sdk/application/ApplicationClient.js +0 -20
  9. package/sdk/application/Cart/CartApplicationClient.d.ts +55 -97
  10. package/sdk/application/Cart/CartApplicationClient.js +60 -1262
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -162
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1313
  13. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -9
  14. package/sdk/application/Common/CommonApplicationClient.js +5 -90
  15. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
  16. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -80
  18. package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -725
  19. package/sdk/application/Content/ContentApplicationClient.d.ts +63 -85
  20. package/sdk/application/Content/ContentApplicationClient.js +126 -942
  21. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -15
  22. package/sdk/application/FileStorage/FileStorageApplicationClient.js +26 -130
  23. package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -17
  24. package/sdk/application/Lead/LeadApplicationClient.js +32 -201
  25. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -62
  26. package/sdk/application/Logistic/LogisticApplicationClient.js +51 -647
  27. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -56
  28. package/sdk/application/Order/OrderApplicationClient.js +86 -555
  29. package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -209
  30. package/sdk/application/Payment/PaymentApplicationClient.js +57 -2099
  31. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -26
  32. package/sdk/application/Rewards/RewardsApplicationClient.js +17 -303
  33. package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
  34. package/sdk/application/Share/ShareApplicationClient.js +34 -294
  35. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
  36. package/sdk/application/Theme/ThemeApplicationClient.js +30 -166
  37. package/sdk/application/User/UserApplicationClient.d.ts +87 -138
  38. package/sdk/application/User/UserApplicationClient.js +47 -1817
  39. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
  40. package/sdk/application/Webhook/WebhookApplicationClient.js +6 -49
  41. package/sdk/application/index.d.ts +0 -19
  42. package/sdk/application/index.js +0 -35
  43. package/sdk/common/Utility.d.ts +1 -1
  44. package/sdk/common/Utility.js +10 -7
  45. package/sdk/common/Validator.d.ts +1 -0
  46. package/sdk/common/Validator.js +20 -0
  47. package/sdk/common/utils.d.ts +0 -1
  48. package/sdk/common/utils.js +0 -14
  49. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
  50. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
  51. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
  52. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
  53. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
  54. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
  55. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  56. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  57. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  58. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  59. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
  60. package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
  61. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
  62. package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
  63. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
  64. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
  65. package/sdk/partner/OAuthClient.js +1 -0
  66. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
  67. package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
  68. package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
  69. package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
  70. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  71. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
  72. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
  73. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
  74. package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
  75. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
  76. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
  77. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
  78. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
  79. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
  80. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  82. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  87. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  88. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  89. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  90. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  91. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  92. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
  94. package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
  96. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
  97. package/sdk/platform/Cart/CartPlatformModel.d.ts +1328 -4975
  98. package/sdk/platform/Cart/CartPlatformModel.js +1229 -1922
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
  102. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
  103. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
  104. package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
  105. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1744 -1501
  106. package/sdk/platform/Catalog/CatalogPlatformModel.js +1211 -1383
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  108. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  109. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
  110. package/sdk/platform/Common/CommonPlatformClient.js +2 -3
  111. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  112. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  117. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
  118. package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
  121. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  122. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  125. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
  126. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
  127. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  128. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  129. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
  130. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
  131. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +138 -283
  132. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +100 -219
  133. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
  134. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
  135. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
  136. package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
  137. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
  138. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
  139. package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
  140. package/sdk/platform/Content/ContentPlatformClient.js +336 -523
  141. package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
  142. package/sdk/platform/Content/ContentPlatformModel.js +390 -521
  143. package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
  144. package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
  145. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
  146. package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
  147. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  148. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  149. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  150. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  151. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
  152. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
  153. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
  154. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
  155. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
  156. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
  157. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
  158. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
  159. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  160. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  161. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  162. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  163. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
  164. package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
  165. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  166. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  167. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  168. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  169. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  170. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  171. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -25
  172. package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -175
  173. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -52
  174. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -34
  175. package/sdk/platform/Order/OrderPlatformClient.d.ts +103 -174
  176. package/sdk/platform/Order/OrderPlatformClient.js +275 -528
  177. package/sdk/platform/Order/OrderPlatformModel.d.ts +3078 -5449
  178. package/sdk/platform/Order/OrderPlatformModel.js +1659 -3501
  179. package/sdk/platform/Order/OrderPlatformValidator.d.ts +219 -234
  180. package/sdk/platform/Order/OrderPlatformValidator.js +118 -146
  181. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  182. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  183. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  184. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  185. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
  186. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
  187. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
  188. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
  189. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  190. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  191. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
  192. package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
  193. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
  194. package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
  195. package/sdk/platform/PlatformClient.d.ts +2 -0
  196. package/sdk/platform/PlatformClient.js +4 -0
  197. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  198. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  199. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  200. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  201. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  202. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  203. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
  204. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
  205. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
  206. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
  209. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
  210. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
  211. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +11 -11
  212. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +10 -10
  213. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  214. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  215. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
  216. package/sdk/platform/Share/SharePlatformModel.js +4 -27
  217. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  218. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
  219. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
  220. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
  221. package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
  222. package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
  223. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  224. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  225. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  226. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  227. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  228. package/sdk/platform/User/UserPlatformModel.js +23 -23
  229. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  230. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  231. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
  232. package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
  233. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  234. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  235. package/sdk/platform/index.d.ts +1 -0
  236. package/sdk/platform/index.js +2 -0
  237. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
  238. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -8
  239. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  240. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  241. package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
  242. package/sdk/public/Content/ContentPublicClient.js +19 -793
  243. package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
  244. package/sdk/public/Content/ContentPublicModel.js +3 -649
  245. package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
  246. package/sdk/public/Content/ContentPublicValidator.js +2 -88
  247. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  248. package/sdk/public/Partner/PartnerPublicClient.js +14 -2
  249. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  250. package/sdk/public/Webhook/WebhookPublicClient.js +13 -10
  251. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  252. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  253. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  254. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  255. package/sdk/application/Cart/CartApplicationModel.d.ts +0 -4340
  256. package/sdk/application/Cart/CartApplicationModel.js +0 -2718
  257. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -788
  258. package/sdk/application/Cart/CartApplicationValidator.js +0 -546
  259. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3909
  260. package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2667
  261. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
  262. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
  263. package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
  264. package/sdk/application/Common/CommonApplicationModel.js +0 -308
  265. package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
  266. package/sdk/application/Common/CommonApplicationValidator.js +0 -38
  267. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
  268. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
  269. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
  270. package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
  271. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2544
  272. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1875
  273. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
  274. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
  275. package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2189
  276. package/sdk/application/Content/ContentApplicationModel.js +0 -1640
  277. package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -290
  278. package/sdk/application/Content/ContentApplicationValidator.js +0 -269
  279. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -270
  280. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -188
  281. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
  282. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
  283. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
  284. package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
  285. package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
  286. package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
  287. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
  288. package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
  289. package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
  290. package/sdk/application/Lead/LeadApplicationModel.js +0 -480
  291. package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
  292. package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
  293. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -2034
  294. package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1391
  295. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -299
  296. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -224
  297. package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2612
  298. package/sdk/application/Order/OrderApplicationModel.js +0 -1669
  299. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -279
  300. package/sdk/application/Order/OrderApplicationValidator.js +0 -210
  301. package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4062
  302. package/sdk/application/Payment/PaymentApplicationModel.js +0 -2632
  303. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
  304. package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
  305. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
  306. package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
  307. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
  308. package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
  309. package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
  310. package/sdk/application/Share/ShareApplicationModel.js +0 -234
  311. package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
  312. package/sdk/application/Share/ShareApplicationValidator.js +0 -91
  313. package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1744
  314. package/sdk/application/Theme/ThemeApplicationModel.js +0 -1446
  315. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -79
  316. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -65
  317. package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
  318. package/sdk/application/User/UserApplicationModel.js +0 -1382
  319. package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
  320. package/sdk/application/User/UserApplicationValidator.js +0 -573
  321. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -54
  322. package/sdk/application/Webhook/WebhookApplicationModel.js +0 -48
  323. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
  324. package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
  325. package/sdk/common/Clickstream.d.ts +0 -1
  326. package/sdk/common/Clickstream.js +0 -464
@@ -1,1446 +0,0 @@
1
- const Joi = require("joi");
2
-
3
- /**
4
- * @typedef AllAvailablePageSchema
5
- * @property {AvailablePageSchema[]} [pages] - List all the pages.
6
- */
7
-
8
- /**
9
- * @typedef AvailablePageSchema
10
- * @property {string} [value] - The name of the page. For example, 'about-us'.
11
- * @property {string} [text] - The textual content associated with the page. For
12
- * example, 'about us'.
13
- * @property {string} [path] - The url path for the page. For example, 'about-us'.
14
- * @property {string} [type] - The type of the page, which can be 'system',
15
- * 'custom', or 'sections'.
16
- * @property {AvailablePageSchemaSections[]} [sections] - An array of sections
17
- * that make up the page.
18
- * @property {AvailablePageSectionMetaAttributes[]} [sections_meta] - An array
19
- * of metadata attributes for the sections of the page, each represented by an object.
20
- * @property {string} [theme] - The unique identifier for the theme associated
21
- * with the section.
22
- * @property {AvailablePageSeo} [seo]
23
- * @property {Object[]} [props] - An array of properties associated with the
24
- * object, where each property is represented as an object.
25
- * @property {string} [_id] - The unique identifier for the object.
26
- */
27
-
28
- /**
29
- * @typedef AvailablePageSectionMetaAttributes
30
- * @property {Object} [attributes] - A key-value pair object containing metadata
31
- * attributes for the section.
32
- */
33
-
34
- /**
35
- * @typedef SEOMetaItem
36
- * @property {string} [title] - The title of the meta tag item.
37
- * @property {SEOMetaItems[]} [items] - An array of items within the meta tag,
38
- * each represented by an object.
39
- */
40
-
41
- /**
42
- * @typedef SEOMetaItems
43
- * @property {string} [key] - The key of the meta tag item.
44
- * @property {string} [value] - The value of the meta tag item.
45
- */
46
-
47
- /**
48
- * @typedef SEOSitemap
49
- * @property {number} [priority] - The priority of the page in the sitemap,
50
- * typically a value between 0.0 And 1.0.
51
- * @property {string} [frequency] - The frequency with which the content of the
52
- * page is likely to change, such as 'always', 'hourly', 'daily', 'weekly',
53
- * 'monthly', 'yearly', or 'never'.
54
- */
55
-
56
- /**
57
- * @typedef SEObreadcrumb
58
- * @property {string} [url] - The url associated with the breadcrumb.
59
- * @property {Action} [action]
60
- */
61
-
62
- /**
63
- * @typedef Action
64
- * @property {string} [type] - Type of action to be taken e.g, page.
65
- * @property {ActionPage} [page]
66
- * @property {ActionPage} [popup]
67
- */
68
-
69
- /**
70
- * @typedef AvailablePageSeo
71
- * @property {string} [title] - The seo title of the page.
72
- * @property {string} [description] - The seo description of the page.
73
- * @property {string} [canonical_url] - The canonical url of the page.
74
- * @property {SEOMetaItem[]} [meta_tags] - An array of meta tags for the page,
75
- * each represented by an object.
76
- * @property {SEOSitemap} [sitemap]
77
- * @property {SEObreadcrumb[]} [breadcrumb] - An array representing breadcrumb
78
- * navigation, where each item provides information about a step in the
79
- * navigation path.
80
- * @property {string} [_id] - The unique identifier for the object.
81
- */
82
-
83
- /**
84
- * @typedef AvailablePageSchemaSections
85
- * @property {string} [name] - The name of the section.
86
- * @property {string} [label] - A label for the section, which can be used for
87
- * display purposes.
88
- * @property {Object} [props] - An object containing various properties
89
- * associated with the section.
90
- * @property {Object[]} [blocks] - An array of blocks within the section, where
91
- * each block is represented as an object.
92
- * @property {Object} [preset] - An object containing preset configurations for
93
- * the section.
94
- * @property {AvailablePagePredicate} [predicate]
95
- * @property {SectionSource} [__source]
96
- * @property {SectionAssets} [assets]
97
- */
98
-
99
- /**
100
- * @typedef SectionAssets
101
- * @property {string} [js] - The CDN URL of JS bundle.
102
- * @property {string} [css] - The CDN URL of CSS file.
103
- */
104
-
105
- /**
106
- * @typedef SectionSource
107
- * @property {string} [id] - The source id specifying the source of the section.
108
- * @property {string} [bundle_name] - This is the extension binding name
109
- * containing this section.
110
- * @property {string} [type] - This is source type. It will either be
111
- * themeBundle or extension.
112
- */
113
-
114
- /**
115
- * @typedef AvailablePagePredicate
116
- * @property {AvailablePageScreenPredicate} [screen]
117
- * @property {AvailablePageUserPredicate} [user]
118
- * @property {AvailablePageRoutePredicate} [route]
119
- * @property {AvailablePageSchedulePredicate} [schedule]
120
- * @property {AvailablePagePlatformPredicate} [platform]
121
- * @property {string[]} [zones] - An array of zone ids associated with the section.
122
- */
123
-
124
- /**
125
- * @typedef AvailablePageScreenPredicate
126
- * @property {boolean} [mobile] - Indicates if the predicate applies to mobile screens.
127
- * @property {boolean} [desktop] - Indicates if the predicate applies to desktop screens.
128
- * @property {boolean} [tablet] - Indicates if the predicate applies to tablet screens.
129
- */
130
-
131
- /**
132
- * @typedef AvailablePageUserPredicate
133
- * @property {boolean} [authenticated] - Indicates if the predicate applies to
134
- * authenticated users.
135
- * @property {boolean} [anonymous] - Indicates if the predicate applies to
136
- * anonymous users.
137
- */
138
-
139
- /**
140
- * @typedef AvailablePageRoutePredicate
141
- * @property {string} [selected] - Specifies the type of route selection, which
142
- * can be 'none', 'exact', or 'query'.
143
- * @property {string} [exact_url] - The exact url for the route when 'selected'
144
- * is set to 'exact'.
145
- * @property {Object} [query] - An object representing query parameters for the
146
- * route when 'selected' is set to 'query'.
147
- */
148
-
149
- /**
150
- * @typedef AvailablePageSchedulePredicate
151
- * @property {string} [cron] - A cron expression specifying the schedule for the
152
- * predicate.
153
- * @property {string} [start] - The start date and time for the schedule, in iso
154
- * 8601 format.
155
- * @property {string} [end] - The end date and time for the schedule, in iso 8601 format.
156
- */
157
-
158
- /**
159
- * @typedef ThemesSchema
160
- * @property {Font} [font]
161
- * @property {Config} [config]
162
- * @property {boolean} [applied] - Whether the theme has been applied or not.
163
- * @property {boolean} [is_private] - Whether the theme is private or not.
164
- * @property {string[]} [tags] - An array of tags associated with the theme.
165
- * @property {string} [_id] - The unique identifier of the theme.
166
- * @property {string} [application_id] - The id of the application.
167
- * @property {string} [marketplace_theme_id] - The id of the theme in the marketplace.
168
- * @property {ThemeMeta} [meta]
169
- * @property {string} [name] - The name of the theme.
170
- * @property {string} [template_theme_id] - The id of the template theme.
171
- * @property {string} [version] - The version of the theme.
172
- * @property {Object} [styles] - The styles associated with the theme.
173
- * @property {string} [created_at] - The creation timestamp of the theme.
174
- * @property {string} [updated_at] - The last update timestamp of the theme.
175
- * @property {Assets} [assets]
176
- * @property {SectionItem[]} [available_sections] - Available sections information.
177
- * @property {string} [theme_type] - The theme or category type associated with the page.
178
- * @property {number} [company_id] - The company id in which sales channel exists.
179
- */
180
-
181
- /**
182
- * @typedef Font
183
- * @property {FontVariants} variants
184
- * @property {string} family - The font family.
185
- */
186
-
187
- /**
188
- * @typedef FontVariants
189
- * @property {FontVariant} [light]
190
- * @property {FontVariant} [regular]
191
- * @property {FontVariant} [medium]
192
- * @property {FontVariant} [semi_bold]
193
- * @property {FontVariant} [bold]
194
- */
195
-
196
- /**
197
- * @typedef FontVariant
198
- * @property {string} name - The name of the font variant.
199
- * @property {string} file - The url of the font file.
200
- */
201
-
202
- /**
203
- * @typedef Config
204
- * @property {string} current - The current configuration.
205
- * @property {ThemeConfiguration[]} list - A list of configurations.
206
- * @property {GlobalSchema} [global_schema]
207
- * @property {Preset} [preset]
208
- */
209
-
210
- /**
211
- * @typedef ThemeConfiguration
212
- * @property {string} [name] - The name of the configuration.
213
- * @property {Object} [global_config] - A global configuration object containing
214
- * various settings for the theme.
215
- * @property {string[]} [page] - An array of pages associated with the theme
216
- * configuration.
217
- */
218
-
219
- /**
220
- * @typedef CustomConfig
221
- * @property {CustomProps} [props]
222
- */
223
-
224
- /**
225
- * @typedef CustomProps
226
- * @property {string} [header_bg_color] - The header background color.
227
- * @property {string} [header_text_color] - The header text color.
228
- * @property {string} [header_border_color] - The header border color.
229
- * @property {string} [header_icon_color] - The header icon color.
230
- * @property {string} [header_cart_notification_bg_color] - The header cart
231
- * notification background color.
232
- * @property {string} [header_cart_notification_text_color] - The header cart
233
- * notification text color.
234
- * @property {string} [header_nav_hover_color] - The header navigation hover color.
235
- * @property {string} [button_primary_color] - The primary button color.
236
- * @property {string} [button_primary_label_color] - The primary button label color.
237
- * @property {string} [button_add_to_cart_color] - The add to cart button color.
238
- * @property {string} [button_add_to_cart_label_color] - The add to cart button
239
- * label color.
240
- * @property {string} [button_secondary_color] - The secondary button color.
241
- * @property {string} [button_secondary_label_color] - The secondary button label color.
242
- * @property {string} [button_tertiary_color] - The tertiary button color.
243
- * @property {string} [button_tertiary_label_color] - The tertiary button label color.
244
- * @property {string} [button_tertiary_hover_color] - The tertiary button hover color.
245
- * @property {string} [button_tertiary_hover_text_color] - The tertiary button
246
- * hover text color.
247
- * @property {string} [text_heading_link_color] - The text heading link color.
248
- * @property {string} [text_body_color] - The text body color.
249
- * @property {string} [text_price_color] - The text price color.
250
- * @property {string} [text_sale_price_color] - The text sale price color.
251
- * @property {string} [text_strikethrough_price_color] - The text strikethrough
252
- * price color.
253
- * @property {string} [text_discount_color] - The text discount color.
254
- * @property {string} [footer_bg_color] - The footer background color.
255
- * @property {string} [footer_text_color] - The footer text color.
256
- * @property {string} [footer_border_color] - The footer border color.
257
- * @property {string} [footer_nav_hover_color] - The footer navigation hover color.
258
- * @property {boolean} [disable_cart] - Whether to disable the cart or not.
259
- * @property {boolean} [is_menu_below_logo] - Whether the menu is below the logo or not.
260
- * @property {string} [menu_position] - The position of the menu.
261
- */
262
-
263
- /**
264
- * @typedef GeneralSetting
265
- * @property {ThemeSetting} [theme]
266
- * @property {TextSetting} [text]
267
- * @property {ButtonSetting} [button]
268
- * @property {SaleDiscountSetting} [sale_discount]
269
- * @property {HeaderSetting} [header]
270
- * @property {FooterSetting} [footer]
271
- */
272
-
273
- /**
274
- * @typedef AdvanceSetting
275
- * @property {OverlayPopupSetting} [overlay_popup]
276
- * @property {DividerStrokeHighlightSetting} [divider_stroke_highlight]
277
- * @property {UserAlertsSetting} [user_alerts]
278
- */
279
-
280
- /**
281
- * @typedef UserAlertsSetting
282
- * @property {string} [success_background] - The success background color.
283
- * @property {string} [success_text] - The success text color.
284
- * @property {string} [error_background] - The error background color.
285
- * @property {string} [error_text] - The error text color.
286
- * @property {string} [info_background] - The info background color.
287
- * @property {string} [info_text] - The info text color.
288
- */
289
-
290
- /**
291
- * @typedef ThemeSetting
292
- * @property {string} [page_background] - The page background color.
293
- * @property {string} [theme_accent] - The theme accent color.
294
- */
295
-
296
- /**
297
- * @typedef TextSetting
298
- * @property {string} [text_heading] - The text heading color.
299
- * @property {string} [text_body] - The text body color.
300
- * @property {string} [text_label] - The text label color.
301
- * @property {string} [text_secondary] - The secondary text color.
302
- */
303
-
304
- /**
305
- * @typedef ButtonSetting
306
- * @property {string} [button_primary] - The primary button color.
307
- * @property {string} [button_secondary] - The secondary button color.
308
- * @property {string} [button_link] - The button link color.
309
- */
310
-
311
- /**
312
- * @typedef SaleDiscountSetting
313
- * @property {string} [sale_badge_background] - The sale badge background color.
314
- * @property {string} [sale_badge_text] - The sale badge text color.
315
- * @property {string} [sale_discount_text] - The sale discount text color.
316
- * @property {string} [sale_timer] - The sale timer color.
317
- */
318
-
319
- /**
320
- * @typedef HeaderSetting
321
- * @property {string} [header_background] - The header background color.
322
- * @property {string} [header_nav] - The header navigation color.
323
- * @property {string} [header_icon] - The header icon color.
324
- */
325
-
326
- /**
327
- * @typedef FooterSetting
328
- * @property {string} [footer_background] - The footer background color.
329
- * @property {string} [footer_bottom_background] - The footer bottom background color.
330
- * @property {string} [footer_heading_text] - The footer heading text color.
331
- * @property {string} [footer_body_text] - The footer body text color.
332
- * @property {string} [footer_icon] - The footer icon color.
333
- */
334
-
335
- /**
336
- * @typedef OverlayPopupSetting
337
- * @property {string} [dialog_backgroung] - The dialog background color.
338
- * @property {string} [overlay] - The overlay color.
339
- */
340
-
341
- /**
342
- * @typedef DividerStrokeHighlightSetting
343
- * @property {string} [divider_strokes] - The divider strokes color.
344
- * @property {string} [highlight] - The highlight color.
345
- */
346
-
347
- /**
348
- * @typedef StaticConfig
349
- * @property {StaticProps} [props]
350
- */
351
-
352
- /**
353
- * @typedef StaticProps
354
- * @property {Colors} [colors]
355
- * @property {AuthConfig} [auth]
356
- * @property {PaletteConfig} [palette]
357
- */
358
-
359
- /**
360
- * @typedef Colors
361
- * @property {string} [primary_color] - The primary color.
362
- * @property {string} [secondary_color] - The secondary color.
363
- * @property {string} [accent_color] - The accent color.
364
- * @property {string} [link_color] - The link color.
365
- * @property {string} [button_secondary_color] - The secondary button color.
366
- * @property {string} [bg_color] - The background color.
367
- */
368
-
369
- /**
370
- * @typedef AuthConfig
371
- * @property {boolean} [show_header_auth] - Whether to show header authentication or not.
372
- * @property {boolean} [show_footer_auth] - Whether to show footer authentication or not.
373
- */
374
-
375
- /**
376
- * @typedef PaletteConfig
377
- * @property {GeneralSetting} [general_setting]
378
- * @property {AdvanceSetting} [advance_setting]
379
- */
380
-
381
- /**
382
- * @typedef ThemeMeta
383
- * @property {ThemePayment} [payment]
384
- * @property {string} [description] - The description of the theme.
385
- * @property {string[]} [industry] - An array of industries associated with the theme.
386
- * @property {Release} [release]
387
- * @property {Images} [images]
388
- * @property {string} [slug] - The slug of the theme.
389
- * @property {string} [name] - The name of the theme.
390
- */
391
-
392
- /**
393
- * @typedef ThemePayment
394
- * @property {boolean} [is_paid] - Whether the theme is paid or not.
395
- * @property {number} [amount] - The amount of the theme.
396
- */
397
-
398
- /**
399
- * @typedef Release
400
- * @property {string} [notes] - The release notes of the theme.
401
- * @property {string} [version] - The version of the theme.
402
- */
403
-
404
- /**
405
- * @typedef Images
406
- * @property {string} [desktop] - The url of the desktop image.
407
- * @property {string} [mobile] - The url of the mobile image.
408
- */
409
-
410
- /**
411
- * @typedef Assets
412
- * @property {UMDJs} [umd_js]
413
- * @property {CommonJS} [common_js]
414
- * @property {CSS} [css]
415
- */
416
-
417
- /**
418
- * @typedef UMDJs
419
- * @property {string[]} [links] - An array of strings representing urls or links.
420
- */
421
-
422
- /**
423
- * @typedef CommonJS
424
- * @property {string} [link] - A string representing the url or link to the
425
- * commonjs module.
426
- */
427
-
428
- /**
429
- * @typedef CSS
430
- * @property {string[]} [links] - An array of strings representing urls for css assets.
431
- */
432
-
433
- /**
434
- * @typedef SectionItem
435
- * @property {Object[]} [props] - An array of objects representing properties or
436
- * attributes of the section item.
437
- * @property {Object[]} [blocks] - An array having blocks of the section.
438
- * @property {string} [name] - Name of the section.
439
- * @property {string} [label] - Label for the section.
440
- */
441
-
442
- /**
443
- * @typedef GlobalSchema
444
- * @property {Prop[]} [props] - An array of properties associated with the
445
- * global schema, where each property is represented by an object.
446
- */
447
-
448
- /**
449
- * @typedef Prop
450
- * @property {string} [type] - The type of the property.
451
- * @property {string} [category] - The category of the property.
452
- * @property {string} [id] - The id of the property.
453
- * @property {string} [label] - The label of the property.
454
- * @property {string} [info] - Additional information about the property.
455
- */
456
-
457
- /**
458
- * @typedef Preset
459
- * @property {Page[]} [pages] - An array of pages included in the preset, each
460
- * represented by an object.
461
- */
462
-
463
- /**
464
- * @typedef Page
465
- * @property {Section[]} [sections] - An array of sections included in the page.
466
- * @property {string} [value] - The value of the page.
467
- */
468
-
469
- /**
470
- * @typedef SectionProps
471
- * @property {TextProp} [title]
472
- * @property {TextProp} [item_margin]
473
- * @property {CheckboxProp} [autoplay]
474
- * @property {RangeProp} [slide_interval]
475
- */
476
-
477
- /**
478
- * @typedef SectionPreset
479
- * @property {Block[]} [blocks] - An array of blocks included in the section preset.
480
- */
481
-
482
- /**
483
- * @typedef ImagePickerProp
484
- * @property {string} [type] - The type of the property.
485
- * @property {string} [value] - The value of the image picker property.
486
- */
487
-
488
- /**
489
- * @typedef UrlProp
490
- * @property {string} [type] - The type of the property.
491
- * @property {string} [value] - The value of the url property.
492
- */
493
-
494
- /**
495
- * @typedef BlockProps
496
- * @property {ImagePickerProp} [image]
497
- * @property {UrlProp} [slide_link]
498
- */
499
-
500
- /**
501
- * @typedef TextProp
502
- * @property {string} [value] - The value of the text property.
503
- * @property {string} [type] - The type of the property.
504
- */
505
-
506
- /**
507
- * @typedef CheckboxProp
508
- * @property {boolean} [value] - The value of the checkbox property.
509
- * @property {string} [type] - The type of the property.
510
- */
511
-
512
- /**
513
- * @typedef RangeProp
514
- * @property {number} [value] - The value of the range property.
515
- * @property {string} [type] - The type of the property.
516
- */
517
-
518
- /**
519
- * @typedef Section
520
- * @property {Block[]} [blocks] - An array of blocks included in the section,
521
- * each represented by an object conforming to the block schema.
522
- * @property {Predicate} [predicate]
523
- * @property {string} [name] - The name of the section.
524
- * @property {SectionProps} [props]
525
- * @property {SectionPreset} [preset]
526
- */
527
-
528
- /**
529
- * @typedef Block
530
- * @property {string} [type] - The type of the block.
531
- * @property {string} [name] - The name of the block.
532
- * @property {BlockProps} [props]
533
- */
534
-
535
- /**
536
- * @typedef Predicate
537
- * @property {Screen} [screen]
538
- * @property {ThemeUserSchema} [user]
539
- * @property {Route} [route]
540
- */
541
-
542
- /**
543
- * @typedef Screen
544
- * @property {boolean} [mobile] - True if the screen is a mobile device.
545
- * @property {boolean} [desktop] - True if the screen is a desktop device.
546
- * @property {boolean} [tablet] - True if the screen is a tablet device.
547
- */
548
-
549
- /**
550
- * @typedef ThemeUserSchema
551
- * @property {boolean} [authenticated] - True if the user is authenticated.
552
- * @property {boolean} [anonymous] - True if the user is anonymous.
553
- */
554
-
555
- /**
556
- * @typedef Route
557
- * @property {string} [selected] - The selected route.
558
- * @property {string} [exact_url] - The exact url of the route.
559
- */
560
-
561
- /**
562
- * @typedef AvailablePagePlatformPredicate
563
- * @property {boolean} [ios] - Section visibility on ios platform.
564
- * @property {boolean} [android] - Section visibility on android platform.
565
- * @property {boolean} [web] - Section visibility on web platform.
566
- */
567
-
568
- /**
569
- * @typedef BlitzkriegInternalServerErrorSchema
570
- * @property {string} [message] - A descriptive message detailing the internal
571
- * server error.
572
- */
573
-
574
- /**
575
- * @typedef BlitzkriegApiErrorSchema
576
- * @property {string} [message] - A descriptive message detailing the api error.
577
- */
578
-
579
- /**
580
- * @typedef ActionPage
581
- * @property {Object} [params] - Parameters that should be considered in path.
582
- * @property {Object} [query] - Query parameter if any to be added to the action.
583
- * @property {string} [url] - The URL for the action.
584
- * @property {PageType} type
585
- */
586
-
587
- /**
588
- * @typedef {| "about-us"
589
- * | "addresses"
590
- * | "blog"
591
- * | "brands"
592
- * | "cards"
593
- * | "cart"
594
- * | "categories"
595
- * | "brand"
596
- * | "category"
597
- * | "collection"
598
- * | "collections"
599
- * | "custom"
600
- * | "contact-us"
601
- * | "external"
602
- * | "faq"
603
- * | "freshchat"
604
- * | "home"
605
- * | "notification-settings"
606
- * | "orders"
607
- * | "page"
608
- * | "policy"
609
- * | "product"
610
- * | "product-request"
611
- * | "products"
612
- * | "profile"
613
- * | "profile-order-shipment"
614
- * | "profile-basic"
615
- * | "profile-company"
616
- * | "profile-emails"
617
- * | "profile-phones"
618
- * | "rate-us"
619
- * | "refer-earn"
620
- * | "settings"
621
- * | "shared-cart"
622
- * | "tnc"
623
- * | "track-order"
624
- * | "wishlist"
625
- * | "sections"
626
- * | "form"
627
- * | "cart-delivery"
628
- * | "cart-payment"
629
- * | "cart-review"
630
- * | "login"
631
- * | "register"
632
- * | "shipping-policy"
633
- * | "return-policy"
634
- * | "order-status"
635
- * | "locate-us"} PageType
636
- */
637
-
638
- class ThemeApplicationModel {
639
- /** @returns {AllAvailablePageSchema} */
640
- static AllAvailablePageSchema() {
641
- return Joi.object({
642
- pages: Joi.array().items(ThemeApplicationModel.AvailablePageSchema()),
643
- });
644
- }
645
-
646
- /** @returns {AvailablePageSchema} */
647
- static AvailablePageSchema() {
648
- return Joi.object({
649
- value: Joi.string().allow(""),
650
- text: Joi.string().allow(""),
651
- path: Joi.string().allow(""),
652
- type: Joi.string().allow(""),
653
- sections: Joi.array().items(
654
- ThemeApplicationModel.AvailablePageSchemaSections()
655
- ),
656
- sections_meta: Joi.array().items(
657
- ThemeApplicationModel.AvailablePageSectionMetaAttributes()
658
- ),
659
- theme: Joi.string().allow(""),
660
- seo: ThemeApplicationModel.AvailablePageSeo(),
661
- props: Joi.array().items(Joi.any()),
662
- _id: Joi.string().allow(""),
663
- });
664
- }
665
-
666
- /** @returns {AvailablePageSectionMetaAttributes} */
667
- static AvailablePageSectionMetaAttributes() {
668
- return Joi.object({
669
- attributes: Joi.object().pattern(/\S/, Joi.any()),
670
- });
671
- }
672
-
673
- /** @returns {SEOMetaItem} */
674
- static SEOMetaItem() {
675
- return Joi.object({
676
- title: Joi.string().allow(""),
677
- items: Joi.array().items(ThemeApplicationModel.SEOMetaItems()),
678
- });
679
- }
680
-
681
- /** @returns {SEOMetaItems} */
682
- static SEOMetaItems() {
683
- return Joi.object({
684
- key: Joi.string().allow(""),
685
- value: Joi.string().allow(""),
686
- });
687
- }
688
-
689
- /** @returns {SEOSitemap} */
690
- static SEOSitemap() {
691
- return Joi.object({
692
- priority: Joi.number(),
693
- frequency: Joi.string().allow(""),
694
- });
695
- }
696
-
697
- /** @returns {SEObreadcrumb} */
698
- static SEObreadcrumb() {
699
- return Joi.object({
700
- url: Joi.string().allow(""),
701
- action: ThemeApplicationModel.Action(),
702
- });
703
- }
704
-
705
- /** @returns {Action} */
706
- static Action() {
707
- return Joi.object({
708
- type: Joi.string().allow(""),
709
- page: ThemeApplicationModel.ActionPage(),
710
- popup: ThemeApplicationModel.ActionPage(),
711
- });
712
- }
713
-
714
- /** @returns {AvailablePageSeo} */
715
- static AvailablePageSeo() {
716
- return Joi.object({
717
- title: Joi.string().allow(""),
718
- description: Joi.string().allow(""),
719
- canonical_url: Joi.string().allow(""),
720
- meta_tags: Joi.array().items(ThemeApplicationModel.SEOMetaItem()),
721
- sitemap: ThemeApplicationModel.SEOSitemap(),
722
- breadcrumb: Joi.array().items(ThemeApplicationModel.SEObreadcrumb()),
723
- _id: Joi.string().allow(""),
724
- });
725
- }
726
-
727
- /** @returns {AvailablePageSchemaSections} */
728
- static AvailablePageSchemaSections() {
729
- return Joi.object({
730
- name: Joi.string().allow(""),
731
- label: Joi.string().allow(""),
732
- props: Joi.object().pattern(/\S/, Joi.any()),
733
- blocks: Joi.array().items(Joi.any()),
734
- preset: Joi.object().pattern(/\S/, Joi.any()),
735
- predicate: ThemeApplicationModel.AvailablePagePredicate(),
736
- __source: ThemeApplicationModel.SectionSource(),
737
- assets: ThemeApplicationModel.SectionAssets(),
738
- });
739
- }
740
-
741
- /** @returns {SectionAssets} */
742
- static SectionAssets() {
743
- return Joi.object({
744
- js: Joi.string().allow(""),
745
- css: Joi.string().allow(""),
746
- });
747
- }
748
-
749
- /** @returns {SectionSource} */
750
- static SectionSource() {
751
- return Joi.object({
752
- id: Joi.string().allow(""),
753
- bundle_name: Joi.string().allow(""),
754
- type: Joi.string().allow(""),
755
- });
756
- }
757
-
758
- /** @returns {AvailablePagePredicate} */
759
- static AvailablePagePredicate() {
760
- return Joi.object({
761
- screen: ThemeApplicationModel.AvailablePageScreenPredicate(),
762
- user: ThemeApplicationModel.AvailablePageUserPredicate(),
763
- route: ThemeApplicationModel.AvailablePageRoutePredicate(),
764
- schedule: ThemeApplicationModel.AvailablePageSchedulePredicate(),
765
- platform: ThemeApplicationModel.AvailablePagePlatformPredicate(),
766
- zones: Joi.array().items(Joi.string().allow("")),
767
- });
768
- }
769
-
770
- /** @returns {AvailablePageScreenPredicate} */
771
- static AvailablePageScreenPredicate() {
772
- return Joi.object({
773
- mobile: Joi.boolean(),
774
- desktop: Joi.boolean(),
775
- tablet: Joi.boolean(),
776
- });
777
- }
778
-
779
- /** @returns {AvailablePageUserPredicate} */
780
- static AvailablePageUserPredicate() {
781
- return Joi.object({
782
- authenticated: Joi.boolean(),
783
- anonymous: Joi.boolean(),
784
- });
785
- }
786
-
787
- /** @returns {AvailablePageRoutePredicate} */
788
- static AvailablePageRoutePredicate() {
789
- return Joi.object({
790
- selected: Joi.string().allow(""),
791
- exact_url: Joi.string().allow(""),
792
- query: Joi.object().pattern(/\S/, Joi.any()),
793
- });
794
- }
795
-
796
- /** @returns {AvailablePageSchedulePredicate} */
797
- static AvailablePageSchedulePredicate() {
798
- return Joi.object({
799
- cron: Joi.string().allow(""),
800
- start: Joi.string().allow(""),
801
- end: Joi.string().allow(""),
802
- });
803
- }
804
-
805
- /** @returns {ThemesSchema} */
806
- static ThemesSchema() {
807
- return Joi.object({
808
- font: ThemeApplicationModel.Font(),
809
- config: ThemeApplicationModel.Config(),
810
- applied: Joi.boolean(),
811
- is_private: Joi.boolean(),
812
- tags: Joi.array().items(Joi.string().allow("")),
813
- _id: Joi.string().allow(""),
814
- application_id: Joi.string().allow(""),
815
- marketplace_theme_id: Joi.string().allow(""),
816
- meta: ThemeApplicationModel.ThemeMeta(),
817
- name: Joi.string().allow(""),
818
- template_theme_id: Joi.string().allow(""),
819
- version: Joi.string().allow(""),
820
- styles: Joi.object().pattern(/\S/, Joi.any()),
821
- created_at: Joi.string().allow(""),
822
- updated_at: Joi.string().allow(""),
823
- assets: ThemeApplicationModel.Assets(),
824
- available_sections: Joi.array().items(
825
- ThemeApplicationModel.SectionItem()
826
- ),
827
- theme_type: Joi.string().allow(""),
828
- company_id: Joi.number(),
829
- });
830
- }
831
-
832
- /** @returns {Font} */
833
- static Font() {
834
- return Joi.object({
835
- variants: ThemeApplicationModel.FontVariants().required(),
836
- family: Joi.string().allow("").required(),
837
- });
838
- }
839
-
840
- /** @returns {FontVariants} */
841
- static FontVariants() {
842
- return Joi.object({
843
- light: ThemeApplicationModel.FontVariant(),
844
- regular: ThemeApplicationModel.FontVariant(),
845
- medium: ThemeApplicationModel.FontVariant(),
846
- semi_bold: ThemeApplicationModel.FontVariant(),
847
- bold: ThemeApplicationModel.FontVariant(),
848
- });
849
- }
850
-
851
- /** @returns {FontVariant} */
852
- static FontVariant() {
853
- return Joi.object({
854
- name: Joi.string().allow("").required(),
855
- file: Joi.string().allow("").required(),
856
- });
857
- }
858
-
859
- /** @returns {Config} */
860
- static Config() {
861
- return Joi.object({
862
- current: Joi.string().allow("").required(),
863
- list: Joi.array()
864
- .items(ThemeApplicationModel.ThemeConfiguration())
865
- .required(),
866
- global_schema: ThemeApplicationModel.GlobalSchema(),
867
- preset: ThemeApplicationModel.Preset(),
868
- });
869
- }
870
-
871
- /** @returns {ThemeConfiguration} */
872
- static ThemeConfiguration() {
873
- return Joi.object({
874
- name: Joi.string().allow(""),
875
- global_config: Joi.object().pattern(/\S/, Joi.any()),
876
- page: Joi.array().items(Joi.string().allow("")),
877
- });
878
- }
879
-
880
- /** @returns {CustomConfig} */
881
- static CustomConfig() {
882
- return Joi.object({
883
- props: ThemeApplicationModel.CustomProps(),
884
- });
885
- }
886
-
887
- /** @returns {CustomProps} */
888
- static CustomProps() {
889
- return Joi.object({
890
- header_bg_color: Joi.string().allow(""),
891
- header_text_color: Joi.string().allow(""),
892
- header_border_color: Joi.string().allow(""),
893
- header_icon_color: Joi.string().allow(""),
894
- header_cart_notification_bg_color: Joi.string().allow(""),
895
- header_cart_notification_text_color: Joi.string().allow(""),
896
- header_nav_hover_color: Joi.string().allow(""),
897
- button_primary_color: Joi.string().allow(""),
898
- button_primary_label_color: Joi.string().allow(""),
899
- button_add_to_cart_color: Joi.string().allow(""),
900
- button_add_to_cart_label_color: Joi.string().allow(""),
901
- button_secondary_color: Joi.string().allow(""),
902
- button_secondary_label_color: Joi.string().allow(""),
903
- button_tertiary_color: Joi.string().allow(""),
904
- button_tertiary_label_color: Joi.string().allow(""),
905
- button_tertiary_hover_color: Joi.string().allow(""),
906
- button_tertiary_hover_text_color: Joi.string().allow(""),
907
- text_heading_link_color: Joi.string().allow(""),
908
- text_body_color: Joi.string().allow(""),
909
- text_price_color: Joi.string().allow(""),
910
- text_sale_price_color: Joi.string().allow(""),
911
- text_strikethrough_price_color: Joi.string().allow(""),
912
- text_discount_color: Joi.string().allow(""),
913
- footer_bg_color: Joi.string().allow(""),
914
- footer_text_color: Joi.string().allow(""),
915
- footer_border_color: Joi.string().allow(""),
916
- footer_nav_hover_color: Joi.string().allow(""),
917
- disable_cart: Joi.boolean(),
918
- is_menu_below_logo: Joi.boolean(),
919
- menu_position: Joi.string().allow(""),
920
- });
921
- }
922
-
923
- /** @returns {GeneralSetting} */
924
- static GeneralSetting() {
925
- return Joi.object({
926
- theme: ThemeApplicationModel.ThemeSetting(),
927
- text: ThemeApplicationModel.TextSetting(),
928
- button: ThemeApplicationModel.ButtonSetting(),
929
- sale_discount: ThemeApplicationModel.SaleDiscountSetting(),
930
- header: ThemeApplicationModel.HeaderSetting(),
931
- footer: ThemeApplicationModel.FooterSetting(),
932
- });
933
- }
934
-
935
- /** @returns {AdvanceSetting} */
936
- static AdvanceSetting() {
937
- return Joi.object({
938
- overlay_popup: ThemeApplicationModel.OverlayPopupSetting(),
939
- divider_stroke_highlight: ThemeApplicationModel.DividerStrokeHighlightSetting(),
940
- user_alerts: ThemeApplicationModel.UserAlertsSetting(),
941
- });
942
- }
943
-
944
- /** @returns {UserAlertsSetting} */
945
- static UserAlertsSetting() {
946
- return Joi.object({
947
- success_background: Joi.string().allow(""),
948
- success_text: Joi.string().allow(""),
949
- error_background: Joi.string().allow(""),
950
- error_text: Joi.string().allow(""),
951
- info_background: Joi.string().allow(""),
952
- info_text: Joi.string().allow(""),
953
- });
954
- }
955
-
956
- /** @returns {ThemeSetting} */
957
- static ThemeSetting() {
958
- return Joi.object({
959
- page_background: Joi.string().allow(""),
960
- theme_accent: Joi.string().allow(""),
961
- });
962
- }
963
-
964
- /** @returns {TextSetting} */
965
- static TextSetting() {
966
- return Joi.object({
967
- text_heading: Joi.string().allow(""),
968
- text_body: Joi.string().allow(""),
969
- text_label: Joi.string().allow(""),
970
- text_secondary: Joi.string().allow(""),
971
- });
972
- }
973
-
974
- /** @returns {ButtonSetting} */
975
- static ButtonSetting() {
976
- return Joi.object({
977
- button_primary: Joi.string().allow(""),
978
- button_secondary: Joi.string().allow(""),
979
- button_link: Joi.string().allow(""),
980
- });
981
- }
982
-
983
- /** @returns {SaleDiscountSetting} */
984
- static SaleDiscountSetting() {
985
- return Joi.object({
986
- sale_badge_background: Joi.string().allow(""),
987
- sale_badge_text: Joi.string().allow(""),
988
- sale_discount_text: Joi.string().allow(""),
989
- sale_timer: Joi.string().allow(""),
990
- });
991
- }
992
-
993
- /** @returns {HeaderSetting} */
994
- static HeaderSetting() {
995
- return Joi.object({
996
- header_background: Joi.string().allow(""),
997
- header_nav: Joi.string().allow(""),
998
- header_icon: Joi.string().allow(""),
999
- });
1000
- }
1001
-
1002
- /** @returns {FooterSetting} */
1003
- static FooterSetting() {
1004
- return Joi.object({
1005
- footer_background: Joi.string().allow(""),
1006
- footer_bottom_background: Joi.string().allow(""),
1007
- footer_heading_text: Joi.string().allow(""),
1008
- footer_body_text: Joi.string().allow(""),
1009
- footer_icon: Joi.string().allow(""),
1010
- });
1011
- }
1012
-
1013
- /** @returns {OverlayPopupSetting} */
1014
- static OverlayPopupSetting() {
1015
- return Joi.object({
1016
- dialog_backgroung: Joi.string().allow(""),
1017
- overlay: Joi.string().allow(""),
1018
- });
1019
- }
1020
-
1021
- /** @returns {DividerStrokeHighlightSetting} */
1022
- static DividerStrokeHighlightSetting() {
1023
- return Joi.object({
1024
- divider_strokes: Joi.string().allow(""),
1025
- highlight: Joi.string().allow(""),
1026
- });
1027
- }
1028
-
1029
- /** @returns {StaticConfig} */
1030
- static StaticConfig() {
1031
- return Joi.object({
1032
- props: ThemeApplicationModel.StaticProps(),
1033
- });
1034
- }
1035
-
1036
- /** @returns {StaticProps} */
1037
- static StaticProps() {
1038
- return Joi.object({
1039
- colors: ThemeApplicationModel.Colors(),
1040
- auth: ThemeApplicationModel.AuthConfig(),
1041
- palette: ThemeApplicationModel.PaletteConfig(),
1042
- });
1043
- }
1044
-
1045
- /** @returns {Colors} */
1046
- static Colors() {
1047
- return Joi.object({
1048
- primary_color: Joi.string().allow(""),
1049
- secondary_color: Joi.string().allow(""),
1050
- accent_color: Joi.string().allow(""),
1051
- link_color: Joi.string().allow(""),
1052
- button_secondary_color: Joi.string().allow(""),
1053
- bg_color: Joi.string().allow(""),
1054
- });
1055
- }
1056
-
1057
- /** @returns {AuthConfig} */
1058
- static AuthConfig() {
1059
- return Joi.object({
1060
- show_header_auth: Joi.boolean(),
1061
- show_footer_auth: Joi.boolean(),
1062
- });
1063
- }
1064
-
1065
- /** @returns {PaletteConfig} */
1066
- static PaletteConfig() {
1067
- return Joi.object({
1068
- general_setting: ThemeApplicationModel.GeneralSetting(),
1069
- advance_setting: ThemeApplicationModel.AdvanceSetting(),
1070
- });
1071
- }
1072
-
1073
- /** @returns {ThemeMeta} */
1074
- static ThemeMeta() {
1075
- return Joi.object({
1076
- payment: ThemeApplicationModel.ThemePayment(),
1077
- description: Joi.string().allow(""),
1078
- industry: Joi.array().items(Joi.string().allow("")),
1079
- release: ThemeApplicationModel.Release(),
1080
- images: ThemeApplicationModel.Images(),
1081
- slug: Joi.string().allow(""),
1082
- name: Joi.string().allow(""),
1083
- });
1084
- }
1085
-
1086
- /** @returns {ThemePayment} */
1087
- static ThemePayment() {
1088
- return Joi.object({
1089
- is_paid: Joi.boolean(),
1090
- amount: Joi.number(),
1091
- });
1092
- }
1093
-
1094
- /** @returns {Release} */
1095
- static Release() {
1096
- return Joi.object({
1097
- notes: Joi.string().allow(""),
1098
- version: Joi.string().allow(""),
1099
- });
1100
- }
1101
-
1102
- /** @returns {Images} */
1103
- static Images() {
1104
- return Joi.object({
1105
- desktop: Joi.string().allow(""),
1106
- mobile: Joi.string().allow(""),
1107
- });
1108
- }
1109
-
1110
- /** @returns {Assets} */
1111
- static Assets() {
1112
- return Joi.object({
1113
- umd_js: ThemeApplicationModel.UMDJs(),
1114
- common_js: ThemeApplicationModel.CommonJS(),
1115
- css: ThemeApplicationModel.CSS(),
1116
- });
1117
- }
1118
-
1119
- /** @returns {UMDJs} */
1120
- static UMDJs() {
1121
- return Joi.object({
1122
- links: Joi.array().items(Joi.string().allow("")),
1123
- });
1124
- }
1125
-
1126
- /** @returns {CommonJS} */
1127
- static CommonJS() {
1128
- return Joi.object({
1129
- link: Joi.string().allow(""),
1130
- });
1131
- }
1132
-
1133
- /** @returns {CSS} */
1134
- static CSS() {
1135
- return Joi.object({
1136
- links: Joi.array().items(Joi.string().allow("")),
1137
- });
1138
- }
1139
-
1140
- /** @returns {SectionItem} */
1141
- static SectionItem() {
1142
- return Joi.object({
1143
- props: Joi.array().items(Joi.any()),
1144
- blocks: Joi.array().items(Joi.any()),
1145
- name: Joi.string().allow(""),
1146
- label: Joi.string().allow(""),
1147
- });
1148
- }
1149
-
1150
- /** @returns {GlobalSchema} */
1151
- static GlobalSchema() {
1152
- return Joi.object({
1153
- props: Joi.array().items(ThemeApplicationModel.Prop()),
1154
- });
1155
- }
1156
-
1157
- /** @returns {Prop} */
1158
- static Prop() {
1159
- return Joi.object({
1160
- type: Joi.string().allow(""),
1161
- category: Joi.string().allow(""),
1162
- id: Joi.string().allow(""),
1163
- label: Joi.string().allow(""),
1164
- info: Joi.string().allow(""),
1165
- });
1166
- }
1167
-
1168
- /** @returns {Preset} */
1169
- static Preset() {
1170
- return Joi.object({
1171
- pages: Joi.array().items(ThemeApplicationModel.Page()),
1172
- });
1173
- }
1174
-
1175
- /** @returns {Page} */
1176
- static Page() {
1177
- return Joi.object({
1178
- sections: Joi.array().items(ThemeApplicationModel.Section()),
1179
- value: Joi.string().allow(""),
1180
- });
1181
- }
1182
-
1183
- /** @returns {SectionProps} */
1184
- static SectionProps() {
1185
- return Joi.object({
1186
- title: ThemeApplicationModel.TextProp(),
1187
- item_margin: ThemeApplicationModel.TextProp(),
1188
- autoplay: ThemeApplicationModel.CheckboxProp(),
1189
- slide_interval: ThemeApplicationModel.RangeProp(),
1190
- });
1191
- }
1192
-
1193
- /** @returns {SectionPreset} */
1194
- static SectionPreset() {
1195
- return Joi.object({
1196
- blocks: Joi.array().items(ThemeApplicationModel.Block()),
1197
- });
1198
- }
1199
-
1200
- /** @returns {ImagePickerProp} */
1201
- static ImagePickerProp() {
1202
- return Joi.object({
1203
- type: Joi.string().allow(""),
1204
- value: Joi.string().allow(""),
1205
- });
1206
- }
1207
-
1208
- /** @returns {UrlProp} */
1209
- static UrlProp() {
1210
- return Joi.object({
1211
- type: Joi.string().allow(""),
1212
- value: Joi.string().allow(""),
1213
- });
1214
- }
1215
-
1216
- /** @returns {BlockProps} */
1217
- static BlockProps() {
1218
- return Joi.object({
1219
- image: ThemeApplicationModel.ImagePickerProp(),
1220
- slide_link: ThemeApplicationModel.UrlProp(),
1221
- });
1222
- }
1223
-
1224
- /** @returns {TextProp} */
1225
- static TextProp() {
1226
- return Joi.object({
1227
- value: Joi.string().allow(""),
1228
- type: Joi.string().allow(""),
1229
- });
1230
- }
1231
-
1232
- /** @returns {CheckboxProp} */
1233
- static CheckboxProp() {
1234
- return Joi.object({
1235
- value: Joi.boolean(),
1236
- type: Joi.string().allow(""),
1237
- });
1238
- }
1239
-
1240
- /** @returns {RangeProp} */
1241
- static RangeProp() {
1242
- return Joi.object({
1243
- value: Joi.number(),
1244
- type: Joi.string().allow(""),
1245
- });
1246
- }
1247
-
1248
- /** @returns {Section} */
1249
- static Section() {
1250
- return Joi.object({
1251
- blocks: Joi.array().items(ThemeApplicationModel.Block()),
1252
- predicate: ThemeApplicationModel.Predicate(),
1253
- name: Joi.string().allow(""),
1254
- props: ThemeApplicationModel.SectionProps(),
1255
- preset: ThemeApplicationModel.SectionPreset(),
1256
- });
1257
- }
1258
-
1259
- /** @returns {Block} */
1260
- static Block() {
1261
- return Joi.object({
1262
- type: Joi.string().allow(""),
1263
- name: Joi.string().allow(""),
1264
- props: ThemeApplicationModel.BlockProps(),
1265
- });
1266
- }
1267
-
1268
- /** @returns {Predicate} */
1269
- static Predicate() {
1270
- return Joi.object({
1271
- screen: ThemeApplicationModel.Screen(),
1272
- user: ThemeApplicationModel.ThemeUserSchema(),
1273
- route: ThemeApplicationModel.Route(),
1274
- });
1275
- }
1276
-
1277
- /** @returns {Screen} */
1278
- static Screen() {
1279
- return Joi.object({
1280
- mobile: Joi.boolean(),
1281
- desktop: Joi.boolean(),
1282
- tablet: Joi.boolean(),
1283
- });
1284
- }
1285
-
1286
- /** @returns {ThemeUserSchema} */
1287
- static ThemeUserSchema() {
1288
- return Joi.object({
1289
- authenticated: Joi.boolean(),
1290
- anonymous: Joi.boolean(),
1291
- });
1292
- }
1293
-
1294
- /** @returns {Route} */
1295
- static Route() {
1296
- return Joi.object({
1297
- selected: Joi.string().allow(""),
1298
- exact_url: Joi.string().allow(""),
1299
- });
1300
- }
1301
-
1302
- /** @returns {AvailablePagePlatformPredicate} */
1303
- static AvailablePagePlatformPredicate() {
1304
- return Joi.object({
1305
- ios: Joi.boolean(),
1306
- android: Joi.boolean(),
1307
- web: Joi.boolean(),
1308
- });
1309
- }
1310
-
1311
- /** @returns {BlitzkriegInternalServerErrorSchema} */
1312
- static BlitzkriegInternalServerErrorSchema() {
1313
- return Joi.object({
1314
- message: Joi.string().allow(""),
1315
- });
1316
- }
1317
-
1318
- /** @returns {BlitzkriegApiErrorSchema} */
1319
- static BlitzkriegApiErrorSchema() {
1320
- return Joi.object({
1321
- message: Joi.string().allow(""),
1322
- });
1323
- }
1324
-
1325
- /** @returns {ActionPage} */
1326
- static ActionPage() {
1327
- return Joi.object({
1328
- params: Joi.object().pattern(
1329
- /\S/,
1330
- Joi.array().items(Joi.string().allow(""))
1331
- ),
1332
- query: Joi.object().pattern(
1333
- /\S/,
1334
- Joi.array().items(Joi.string().allow(""))
1335
- ),
1336
- url: Joi.string().allow(""),
1337
- type: ThemeApplicationModel.PageType().required(),
1338
- });
1339
- }
1340
-
1341
- /**
1342
- * Enum: PageType Used By: Theme
1343
- *
1344
- * @returns {PageType}
1345
- */
1346
- static PageType() {
1347
- return Joi.string().valid(
1348
- "about-us",
1349
-
1350
- "addresses",
1351
-
1352
- "blog",
1353
-
1354
- "brands",
1355
-
1356
- "cards",
1357
-
1358
- "cart",
1359
-
1360
- "categories",
1361
-
1362
- "brand",
1363
-
1364
- "category",
1365
-
1366
- "collection",
1367
-
1368
- "collections",
1369
-
1370
- "custom",
1371
-
1372
- "contact-us",
1373
-
1374
- "external",
1375
-
1376
- "faq",
1377
-
1378
- "freshchat",
1379
-
1380
- "home",
1381
-
1382
- "notification-settings",
1383
-
1384
- "orders",
1385
-
1386
- "page",
1387
-
1388
- "policy",
1389
-
1390
- "product",
1391
-
1392
- "product-request",
1393
-
1394
- "products",
1395
-
1396
- "profile",
1397
-
1398
- "profile-order-shipment",
1399
-
1400
- "profile-basic",
1401
-
1402
- "profile-company",
1403
-
1404
- "profile-emails",
1405
-
1406
- "profile-phones",
1407
-
1408
- "rate-us",
1409
-
1410
- "refer-earn",
1411
-
1412
- "settings",
1413
-
1414
- "shared-cart",
1415
-
1416
- "tnc",
1417
-
1418
- "track-order",
1419
-
1420
- "wishlist",
1421
-
1422
- "sections",
1423
-
1424
- "form",
1425
-
1426
- "cart-delivery",
1427
-
1428
- "cart-payment",
1429
-
1430
- "cart-review",
1431
-
1432
- "login",
1433
-
1434
- "register",
1435
-
1436
- "shipping-policy",
1437
-
1438
- "return-policy",
1439
-
1440
- "order-status",
1441
-
1442
- "locate-us"
1443
- );
1444
- }
1445
- }
1446
- module.exports = ThemeApplicationModel;