@gofynd/fdk-client-javascript 1.1.6 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/README.md +12 -0
  2. package/index.js +0 -3
  3. package/package.json +1 -1
  4. package/sdk/application/ApplicationAPIClient.d.ts +15 -1
  5. package/sdk/application/ApplicationAPIClient.js +8 -1
  6. package/sdk/application/ApplicationClient.d.ts +37 -6
  7. package/sdk/application/ApplicationClient.js +31 -0
  8. package/sdk/application/ApplicationConfig.d.ts +52 -12
  9. package/sdk/application/ApplicationConfig.js +37 -2
  10. package/sdk/application/ApplicationModels.d.ts +46 -1
  11. package/sdk/application/ApplicationModels.js +18 -0
  12. package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
  13. package/sdk/application/Cart/CartApplicationClient.js +620 -483
  14. package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
  15. package/sdk/application/Cart/CartApplicationModel.js +1224 -93
  16. package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
  17. package/sdk/application/Cart/CartApplicationValidator.js +270 -15
  18. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
  19. package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
  20. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
  21. package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
  22. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
  23. package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
  24. package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
  25. package/sdk/application/Common/CommonApplicationClient.js +50 -33
  26. package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
  27. package/sdk/application/Common/CommonApplicationModel.js +224 -16
  28. package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
  29. package/sdk/application/Common/CommonApplicationValidator.js +21 -3
  30. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
  31. package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
  32. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
  33. package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
  34. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
  35. package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
  36. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
  37. package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
  38. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
  39. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
  40. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
  41. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
  42. package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
  43. package/sdk/application/Content/ContentApplicationClient.js +409 -277
  44. package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
  45. package/sdk/application/Content/ContentApplicationModel.js +1202 -109
  46. package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
  47. package/sdk/application/Content/ContentApplicationValidator.js +113 -3
  48. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
  49. package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
  50. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
  51. package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
  52. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
  53. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
  54. package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
  55. package/sdk/application/Lead/LeadApplicationClient.js +169 -103
  56. package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
  57. package/sdk/application/Lead/LeadApplicationModel.js +619 -73
  58. package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
  59. package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
  60. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
  61. package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
  62. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
  63. package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
  64. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
  65. package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
  66. package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
  67. package/sdk/application/Order/OrderApplicationClient.js +297 -217
  68. package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
  69. package/sdk/application/Order/OrderApplicationModel.js +776 -57
  70. package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
  71. package/sdk/application/Order/OrderApplicationValidator.js +114 -5
  72. package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
  73. package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
  74. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
  75. package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
  76. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
  77. package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
  78. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
  79. package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
  80. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
  81. package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
  82. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
  83. package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
  84. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
  85. package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
  86. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
  87. package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
  88. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
  89. package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
  90. package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
  91. package/sdk/application/Share/ShareApplicationClient.js +165 -97
  92. package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
  93. package/sdk/application/Share/ShareApplicationModel.js +154 -16
  94. package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
  95. package/sdk/application/Share/ShareApplicationValidator.js +48 -4
  96. package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
  97. package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
  98. package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
  99. package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
  100. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
  101. package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
  102. package/sdk/application/User/UserApplicationClient.d.ts +219 -303
  103. package/sdk/application/User/UserApplicationClient.js +819 -522
  104. package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
  105. package/sdk/application/User/UserApplicationModel.js +983 -44
  106. package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
  107. package/sdk/application/User/UserApplicationValidator.js +265 -31
  108. package/sdk/common/AxiosHelper.js +8 -2
  109. package/sdk/common/Paginator.d.ts +27 -12
  110. package/sdk/common/Paginator.js +15 -0
  111. package/sdk/common/RequestSigner.js +0 -1
  112. package/sdk/partner/PartnerAPIClient.d.ts +15 -1
  113. package/sdk/partner/PartnerAPIClient.js +8 -1
  114. package/sdk/partner/PartnerClient.d.ts +20 -3
  115. package/sdk/partner/PartnerClient.js +17 -0
  116. package/sdk/partner/PartnerConfig.d.ts +40 -14
  117. package/sdk/partner/PartnerConfig.js +31 -6
  118. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
  119. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
  124. package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
  125. package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
  126. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
  127. package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
  128. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
  129. package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
  130. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
  131. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
  132. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
  133. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
  134. package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
  135. package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
  136. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
  137. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
  139. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
  140. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
  141. package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
  142. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
  143. package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
  144. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
  145. package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
  146. package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
  147. package/sdk/platform/Common/CommonPlatformClient.js +48 -33
  148. package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
  149. package/sdk/platform/Common/CommonPlatformModel.js +224 -16
  150. package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
  151. package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
  152. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
  153. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
  154. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
  156. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
  157. package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
  158. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
  159. package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
  160. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
  161. package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
  173. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
  175. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
  177. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
  179. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
  181. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
  182. package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
  183. package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
  184. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
  185. package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
  186. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
  187. package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
  188. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
  189. package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
  191. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
  192. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
  194. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
  195. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
  196. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
  197. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
  198. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
  199. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
  200. package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
  201. package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
  202. package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
  203. package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
  204. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
  205. package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
  206. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
  207. package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
  208. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
  209. package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
  210. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
  211. package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
  212. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
  213. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
  214. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
  215. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
  216. package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
  217. package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
  218. package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
  219. package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
  220. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
  221. package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
  222. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
  223. package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
  224. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
  225. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  226. package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
  227. package/sdk/platform/Order/OrderPlatformClient.js +969 -762
  228. package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
  229. package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
  230. package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
  231. package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
  232. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
  233. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
  234. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
  235. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
  236. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
  237. package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
  238. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
  239. package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
  240. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
  241. package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
  242. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
  243. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
  244. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
  245. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
  246. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
  247. package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
  248. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
  249. package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
  250. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
  251. package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
  252. package/sdk/platform/PlatformAPIClient.d.ts +16 -1
  253. package/sdk/platform/PlatformAPIClient.js +9 -1
  254. package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
  255. package/sdk/platform/PlatformApplicationClient.js +17 -1899
  256. package/sdk/platform/PlatformClient.d.ts +29 -12579
  257. package/sdk/platform/PlatformClient.js +26 -15085
  258. package/sdk/platform/PlatformConfig.d.ts +37 -11
  259. package/sdk/platform/PlatformConfig.js +32 -6
  260. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
  261. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
  262. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
  263. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
  264. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
  265. package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
  266. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
  267. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
  268. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
  269. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
  270. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
  271. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
  272. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
  273. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
  274. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
  275. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
  276. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
  277. package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
  278. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
  279. package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
  280. package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
  281. package/sdk/platform/Share/SharePlatformModel.js +165 -17
  282. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
  283. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
  284. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
  285. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
  286. package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
  287. package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
  288. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
  289. package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
  290. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
  291. package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
  292. package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
  293. package/sdk/platform/User/UserPlatformModel.js +983 -44
  294. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
  295. package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
  296. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
  297. package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
  298. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
  299. package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
  300. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
  301. package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
  302. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
  303. package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
  304. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
  305. package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
  306. package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
  307. package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
  308. package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
  309. package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
  310. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
  311. package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
  312. package/sdk/public/PublicClient.d.ts +19 -3
  313. package/sdk/public/PublicClient.js +16 -0
  314. package/sdk/public/PublicConfig.d.ts +27 -6
  315. package/sdk/public/PublicConfig.js +17 -1
  316. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
  317. package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
  318. package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
  319. package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
  320. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
  321. package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
@@ -1,13 +1,895 @@
1
1
  const Joi = require("joi");
2
2
 
3
- class ContentModel {
3
+ /**
4
+ * @typedef Action
5
+ * @property {ActionPage} [page]
6
+ * @property {ActionPage} [popup]
7
+ * @property {string} [type]
8
+ */
9
+
10
+ /**
11
+ * @typedef ActionPage
12
+ * @property {Object} [params]
13
+ * @property {Object} [query]
14
+ * @property {PageType} type
15
+ * @property {string} [url]
16
+ */
17
+
18
+ /**
19
+ * @typedef AdminAnnouncementSchema
20
+ * @property {string} [_id]
21
+ * @property {ScheduleSchema} [_schedule]
22
+ * @property {string} [announcement]
23
+ * @property {string} [app]
24
+ * @property {AnnouncementAuthorSchema} [author]
25
+ * @property {string} [created_at]
26
+ * @property {EditorMeta} [editor_meta]
27
+ * @property {string} [modified_at]
28
+ * @property {AnnouncementPageSchema[]} [pages]
29
+ * @property {string[]} [platforms]
30
+ * @property {string} [title]
31
+ */
32
+
33
+ /**
34
+ * @typedef AnnouncementAuthorSchema
35
+ * @property {string} [created_by]
36
+ * @property {string} [modified_by]
37
+ */
38
+
39
+ /**
40
+ * @typedef AnnouncementPageSchema
41
+ * @property {string} [page_slug]
42
+ * @property {string} [type]
43
+ */
44
+
45
+ /**
46
+ * @typedef AnnouncementSchema
47
+ * @property {string} [announcement]
48
+ * @property {ScheduleStartSchema} [schedule]
49
+ */
50
+
51
+ /**
52
+ * @typedef AnnouncementsResponseSchema
53
+ * @property {Object} [announcements]
54
+ * @property {string[]} [refresh_pages] - List of page slugs on which
55
+ * announcement should be fetched as soon as they are loaded
56
+ * @property {number} [refresh_rate] - Number of seconds after which api should
57
+ * hit again to fetch new announcements
58
+ */
59
+
60
+ /**
61
+ * @typedef ApplicationLegal
62
+ * @property {string} [_id]
63
+ * @property {string} [application]
64
+ * @property {string} [created_at]
65
+ * @property {ApplicationLegalFAQ[]} [faq]
66
+ * @property {string} [policy]
67
+ * @property {string} [returns]
68
+ * @property {string} [shipping]
69
+ * @property {string} [tnc]
70
+ * @property {string} [updated_at]
71
+ */
72
+
73
+ /**
74
+ * @typedef ApplicationLegalFAQ
75
+ * @property {string} [answer]
76
+ * @property {string} [question]
77
+ */
78
+
79
+ /**
80
+ * @typedef Asset
81
+ * @property {string} [aspect_ratio]
82
+ * @property {string} [id]
83
+ * @property {string} [secure_url]
84
+ */
85
+
86
+ /**
87
+ * @typedef Author
88
+ * @property {string} [designation]
89
+ * @property {string} [id]
90
+ * @property {string} [name]
91
+ */
92
+
93
+ /**
94
+ * @typedef BlogGetResponse
95
+ * @property {BlogSchema[]} [items]
96
+ * @property {Page} [page]
97
+ */
98
+
99
+ /**
100
+ * @typedef BlogRequest
101
+ * @property {Object} [_custom_json]
102
+ * @property {CronSchedule} [_schedule]
103
+ * @property {string} [application]
104
+ * @property {Author} [author]
105
+ * @property {ResourceContent[]} [content]
106
+ * @property {Asset} [feature_image]
107
+ * @property {boolean} [published]
108
+ * @property {string} [reading_time]
109
+ * @property {SEO} [seo]
110
+ * @property {string} [slug]
111
+ * @property {string[]} [tags]
112
+ * @property {string} [title]
113
+ */
114
+
115
+ /**
116
+ * @typedef BlogSchema
117
+ * @property {Object} [_custom_json]
118
+ * @property {string} [_id]
119
+ * @property {CronSchedule} [_schedule]
120
+ * @property {string} [application]
121
+ * @property {boolean} [archived]
122
+ * @property {Author} [author]
123
+ * @property {ResourceContent[]} [content]
124
+ * @property {DateMeta} [date_meta]
125
+ * @property {Asset} [feature_image]
126
+ * @property {boolean} [published]
127
+ * @property {string} [reading_time]
128
+ * @property {SEO} [seo]
129
+ * @property {string} [slug]
130
+ * @property {string[]} [tags]
131
+ * @property {string} [title]
132
+ */
133
+
134
+ /**
135
+ * @typedef CategoryRequestSchema
136
+ * @property {string} [slug]
137
+ * @property {string} [title]
138
+ */
139
+
140
+ /**
141
+ * @typedef CategorySchema
142
+ * @property {Object} [_custom_json]
143
+ * @property {string} [_id]
144
+ * @property {string} [application]
145
+ * @property {string[]} [children]
146
+ * @property {string} [description]
147
+ * @property {string} [icon_url]
148
+ * @property {number} [index]
149
+ * @property {string} [slug]
150
+ * @property {string} [title]
151
+ */
152
+
153
+ /**
154
+ * @typedef ChildrenSchema
155
+ * @property {string} [_id]
156
+ * @property {string} [answer]
157
+ * @property {string} [application]
158
+ * @property {string} [question]
159
+ * @property {string} [slug]
160
+ */
161
+
162
+ /**
163
+ * @typedef CommonError
164
+ * @property {string} [message]
165
+ */
166
+
167
+ /**
168
+ * @typedef ConfigurationSchema
169
+ * @property {number} [duration]
170
+ * @property {number} [sleep_time]
171
+ * @property {string} [slide_direction]
172
+ * @property {boolean} [start_on_launch]
173
+ */
174
+
175
+ /**
176
+ * @typedef ContactSchema
177
+ * @property {EmailSchema} [email]
178
+ * @property {PhoneSchema} [phone]
179
+ */
180
+
181
+ /**
182
+ * @typedef ContentAPIError
183
+ * @property {string} [code]
184
+ * @property {string} [exception]
185
+ * @property {string} [info]
186
+ * @property {string} [message]
187
+ * @property {Object} [meta]
188
+ * @property {string} [request_id]
189
+ * @property {string} [stack_trace]
190
+ * @property {number} [status]
191
+ */
192
+
193
+ /**
194
+ * @typedef ContentSchema
195
+ * @property {string} [type]
196
+ * @property {Object} [value]
197
+ */
198
+
199
+ /**
200
+ * @typedef CreateAnnouncementSchema
201
+ * @property {AdminAnnouncementSchema} [data]
202
+ * @property {string} [message]
203
+ */
204
+
205
+ /**
206
+ * @typedef CreatedBySchema
207
+ * @property {string} [id]
208
+ */
209
+
210
+ /**
211
+ * @typedef CreateFaqCategoryRequestSchema
212
+ * @property {CategoryRequestSchema} [category]
213
+ */
214
+
215
+ /**
216
+ * @typedef CreateFaqCategorySchema
217
+ * @property {CategorySchema} [category]
218
+ */
219
+
220
+ /**
221
+ * @typedef CreateFaqResponseSchema
222
+ * @property {FaqSchema} [faq]
223
+ */
224
+
225
+ /**
226
+ * @typedef CreateFaqSchema
227
+ * @property {FAQ} [faq]
228
+ */
229
+
230
+ /**
231
+ * @typedef CreateTagRequestSchema
232
+ * @property {CreateTagSchema[]} [tags]
233
+ */
234
+
235
+ /**
236
+ * @typedef CreateTagSchema
237
+ * @property {string} [_id]
238
+ * @property {Object} [attributes]
239
+ * @property {string} [content]
240
+ * @property {string} [name]
241
+ * @property {Object[]} [pages]
242
+ * @property {string} [position]
243
+ * @property {string} [sub_type]
244
+ * @property {string} [type]
245
+ * @property {string} [url]
246
+ */
247
+
248
+ /**
249
+ * @typedef CronSchedule
250
+ * @property {string} [cron]
251
+ * @property {number} [duration]
252
+ * @property {string} [end]
253
+ * @property {string} [start]
254
+ */
255
+
256
+ /**
257
+ * @typedef CustomMetaTag
258
+ * @property {string} [_id]
259
+ * @property {string} [content]
260
+ * @property {string} [name]
261
+ */
262
+
263
+ /**
264
+ * @typedef CustomPage
265
+ * @property {CustomPageSchema} [data]
266
+ */
267
+
268
+ /**
269
+ * @typedef CustomPageSchema
270
+ * @property {string} [_id]
271
+ * @property {ScheduleSchema} [_schedule]
272
+ * @property {string} [application]
273
+ * @property {Object[]} [content]
274
+ * @property {CreatedBySchema} [created_by]
275
+ * @property {DateMeta} [date_meta]
276
+ * @property {string} [description]
277
+ * @property {string} [orientation]
278
+ * @property {string} [platform]
279
+ * @property {boolean} [published]
280
+ * @property {string} [slug]
281
+ * @property {string[]} [tags]
282
+ * @property {string} [title]
283
+ * @property {string} [type]
284
+ */
285
+
286
+ /**
287
+ * @typedef DataLoaderResetResponseSchema
288
+ * @property {string} [reset]
289
+ */
290
+
291
+ /**
292
+ * @typedef DataLoaderResponseSchema
293
+ * @property {DataLoaderSourceSchema} [__source]
294
+ * @property {string} [_id]
295
+ * @property {string} [application]
296
+ * @property {string} [company]
297
+ * @property {string} [content]
298
+ * @property {string} [name]
299
+ * @property {string} [operation_id]
300
+ * @property {string} [service]
301
+ * @property {string} [type]
302
+ * @property {string} [url]
303
+ */
304
+
305
+ /**
306
+ * @typedef DataLoaderSchema
307
+ * @property {DataLoaderSourceSchema} [__source]
308
+ * @property {string} [_id]
309
+ * @property {string} [content]
310
+ * @property {string} [name]
311
+ * @property {string} [operation_id]
312
+ * @property {string} [service]
313
+ * @property {string} [type]
314
+ * @property {string} [url]
315
+ */
316
+
317
+ /**
318
+ * @typedef DataLoaderSourceSchema
319
+ * @property {string} [id]
320
+ * @property {string} [type]
321
+ */
322
+
323
+ /**
324
+ * @typedef DataLoadersSchema
325
+ * @property {DataLoaderSchema[]} [items]
326
+ */
327
+
328
+ /**
329
+ * @typedef DateMeta
330
+ * @property {string} [created_on]
331
+ * @property {string} [modified_on]
332
+ */
333
+
334
+ /**
335
+ * @typedef DefaultNavigationResponse
336
+ * @property {NavigationSchema[]} [items]
337
+ */
338
+
339
+ /**
340
+ * @typedef Detail
341
+ * @property {string} [description]
342
+ * @property {string} [image_url]
343
+ * @property {string} [title]
344
+ */
345
+
346
+ /**
347
+ * @typedef EditorMeta
348
+ * @property {string} [background_color]
349
+ * @property {string} [content]
350
+ * @property {string} [content_type]
351
+ * @property {string} [foreground_color]
352
+ */
353
+
354
+ /**
355
+ * @typedef EmailProperties
356
+ * @property {string} [key]
357
+ * @property {string} [value]
358
+ */
359
+
360
+ /**
361
+ * @typedef EmailSchema
362
+ * @property {boolean} [active]
363
+ * @property {EmailProperties[]} [email]
364
+ */
365
+
366
+ /**
367
+ * @typedef FAQ
368
+ * @property {string} [answer]
369
+ * @property {string} [question]
370
+ * @property {string} [slug]
371
+ */
372
+
373
+ /**
374
+ * @typedef FAQCategorySchema
375
+ * @property {Object} [_custom_json]
376
+ * @property {string} [_id]
377
+ * @property {string} [application]
378
+ * @property {ChildrenSchema[]} [children]
379
+ * @property {string} [description]
380
+ * @property {string} [icon_url]
381
+ * @property {number} [index]
382
+ * @property {string} [slug]
383
+ * @property {string} [title]
384
+ */
385
+
386
+ /**
387
+ * @typedef FaqResponseSchema
388
+ * @property {FaqSchema[]} [faqs]
389
+ */
390
+
391
+ /**
392
+ * @typedef FaqSchema
393
+ * @property {string} [_id]
394
+ * @property {string} [answer]
395
+ * @property {string} [application]
396
+ * @property {string} [question]
397
+ * @property {string} [slug]
398
+ * @property {string[]} [tags]
399
+ */
400
+
401
+ /**
402
+ * @typedef FeatureImage
403
+ * @property {string} [secure_url]
404
+ */
405
+
406
+ /**
407
+ * @typedef GetAnnouncementListSchema
408
+ * @property {AdminAnnouncementSchema[]} [items]
409
+ * @property {Page} [page]
410
+ */
411
+
412
+ /**
413
+ * @typedef GetFaqCategoriesSchema
414
+ * @property {CategorySchema[]} [categories]
415
+ */
416
+
417
+ /**
418
+ * @typedef GetFaqCategoryBySlugSchema
419
+ * @property {FAQCategorySchema} [category]
420
+ */
421
+
422
+ /**
423
+ * @typedef GetFaqSchema
424
+ * @property {FaqSchema[]} [faqs]
425
+ */
426
+
427
+ /**
428
+ * @typedef HandpickedTagSchema
429
+ * @property {Object} [attributes]
430
+ * @property {string} [content]
431
+ * @property {string} [name]
432
+ * @property {string} [position]
433
+ * @property {string} [sub_type]
434
+ * @property {string} [type]
435
+ * @property {string} [url]
436
+ */
437
+
438
+ /**
439
+ * @typedef LandingPage
440
+ * @property {LandingPageSchema} [data]
441
+ * @property {boolean} [success]
442
+ */
443
+
444
+ /**
445
+ * @typedef LandingPageGetResponse
446
+ * @property {LandingPageSchema[]} [items]
447
+ * @property {Page} [page]
448
+ */
449
+
450
+ /**
451
+ * @typedef LandingPageSchema
452
+ * @property {Object} [_custom_json]
453
+ * @property {string} [_id]
454
+ * @property {Action} [action]
455
+ * @property {string} [application]
456
+ * @property {boolean} [archived]
457
+ * @property {CreatedBySchema} [created_by]
458
+ * @property {DateMeta} [date_meta]
459
+ * @property {string[]} [platform]
460
+ * @property {string} [slug]
461
+ */
462
+
463
+ /**
464
+ * @typedef Language
465
+ * @property {string} [display]
466
+ */
467
+
468
+ /**
469
+ * @typedef LocaleLanguage
470
+ * @property {Language} [ar]
471
+ * @property {Language} [en_us]
472
+ * @property {Language} [hi]
473
+ */
474
+
475
+ /**
476
+ * @typedef Navigation
477
+ * @property {string} [_id]
478
+ * @property {string} [application]
479
+ * @property {CreatedBySchema} [created_by]
480
+ * @property {DateMeta} [date_meta]
481
+ * @property {string} [name]
482
+ * @property {NavigationReference} [navigation]
483
+ * @property {string} [orientation]
484
+ * @property {string} [platform]
485
+ * @property {string} [position]
486
+ * @property {string} [slug]
487
+ */
488
+
489
+ /**
490
+ * @typedef NavigationGetResponse
491
+ * @property {NavigationSchema[]} [items]
492
+ * @property {Page} [page]
493
+ */
494
+
495
+ /**
496
+ * @typedef NavigationReference
497
+ * @property {LocaleLanguage} [_locale_language]
498
+ * @property {string[]} [acl]
499
+ * @property {Action} [action]
500
+ * @property {boolean} [active]
501
+ * @property {string} [display]
502
+ * @property {string} [image]
503
+ * @property {number} [sort_order]
504
+ * @property {NavigationReference[]} [sub_navigation]
505
+ * @property {string[]} [tags]
506
+ * @property {string} [type]
507
+ */
508
+
509
+ /**
510
+ * @typedef NavigationRequest
511
+ * @property {string} [name]
512
+ * @property {NavigationReference[]} [navigation]
513
+ * @property {Orientation} [orientation]
514
+ * @property {string[]} [platform]
515
+ * @property {string} [slug]
516
+ */
517
+
518
+ /**
519
+ * @typedef NavigationSchema
520
+ * @property {string} [_id]
521
+ * @property {string} [application]
522
+ * @property {boolean} [archived]
523
+ * @property {CreatedBySchema} [created_by]
524
+ * @property {DateMeta} [date_meta]
525
+ * @property {string} [name]
526
+ * @property {NavigationReference[]} [navigation]
527
+ * @property {Orientation} [orientation]
528
+ * @property {string[]} [platform]
529
+ * @property {string} [slug]
530
+ * @property {number} [version]
531
+ */
532
+
533
+ /**
534
+ * @typedef NextSchedule
535
+ * @property {string} [end]
536
+ * @property {string} [start]
537
+ */
538
+
539
+ /**
540
+ * @typedef Orientation
541
+ * @property {string[]} [landscape]
542
+ * @property {string[]} [portrait]
543
+ */
544
+
545
+ /**
546
+ * @typedef Page
547
+ * @property {number} [current]
548
+ * @property {boolean} [has_next]
549
+ * @property {boolean} [has_previous]
550
+ * @property {number} [item_total]
551
+ * @property {string} [next_id]
552
+ * @property {number} [size]
553
+ * @property {string} type
554
+ */
555
+
556
+ /**
557
+ * @typedef PageContent
558
+ * @property {string} [type]
559
+ * @property {Object} [value]
560
+ */
561
+
562
+ /**
563
+ * @typedef PageGetResponse
564
+ * @property {PageSchema[]} [items]
565
+ * @property {Page} [page]
566
+ */
567
+
568
+ /**
569
+ * @typedef PageMeta
570
+ * @property {string} [key]
571
+ * @property {Object} [value]
572
+ */
573
+
574
+ /**
575
+ * @typedef PageMetaSchema
576
+ * @property {string} [application_id]
577
+ * @property {PageSchema[]} [custom_pages]
578
+ * @property {NavigationSchema[]} [system_pages]
579
+ */
580
+
581
+ /**
582
+ * @typedef PagePublishRequest
583
+ * @property {boolean} [publish]
584
+ */
585
+
586
+ /**
587
+ * @typedef PageRequest
588
+ * @property {Object} [_custom_json]
589
+ * @property {CronSchedule} [_schedule]
590
+ * @property {string} [application]
591
+ * @property {Author} [author]
592
+ * @property {Object[]} [content]
593
+ * @property {Asset} [feature_image]
594
+ * @property {string} [orientation]
595
+ * @property {boolean} [published]
596
+ * @property {string} [reading_time]
597
+ * @property {SEO} [seo]
598
+ * @property {string} [slug]
599
+ * @property {string[]} [tags]
600
+ * @property {string} [title]
601
+ */
602
+
603
+ /**
604
+ * @typedef PageSchema
605
+ * @property {Object} [_custom_json]
606
+ * @property {string} [_id]
607
+ * @property {ScheduleSchema} [_schedule]
608
+ * @property {string} [application]
609
+ * @property {boolean} [archived]
610
+ * @property {string[]} [component_ids] - Components can be used to store
611
+ * multiple components
612
+ * @property {Object[]} [content]
613
+ * @property {string} [content_path]
614
+ * @property {CreatedBySchema} [created_by]
615
+ * @property {DateMeta} [date_meta]
616
+ * @property {string} [description]
617
+ * @property {Asset} [feature_image]
618
+ * @property {string} [orientation]
619
+ * @property {Object[]} [page_meta]
620
+ * @property {string} [platform]
621
+ * @property {boolean} [published]
622
+ * @property {SEO} [seo]
623
+ * @property {string} [slug]
624
+ * @property {string[]} [tags]
625
+ * @property {string} [title]
626
+ * @property {string} [type]
627
+ * @property {Object} [visibility]
628
+ */
629
+
630
+ /**
631
+ * @typedef PageSpec
632
+ * @property {Object[]} [specifications]
633
+ */
634
+
635
+ /**
636
+ * @typedef PageSpecItem
637
+ * @property {string} [display_name]
638
+ * @property {string} [page_type]
639
+ * @property {PageSpecParam[]} [params]
640
+ * @property {PageSpecParam[]} [query]
641
+ */
642
+
643
+ /**
644
+ * @typedef PageSpecParam
645
+ * @property {string} [key]
646
+ * @property {boolean} [required]
647
+ */
648
+
649
+ /**
650
+ * @typedef PathMappingSchema
651
+ * @property {PathSourceSchema} [__source]
652
+ * @property {string} [_id]
653
+ * @property {string} [application]
654
+ * @property {string} [created_at]
655
+ * @property {string} [redirect_from]
656
+ * @property {string} [redirect_to]
657
+ * @property {string} [updated_at]
658
+ */
659
+
660
+ /**
661
+ * @typedef PathSourceSchema
662
+ * @property {string} [id]
663
+ * @property {string} [type]
664
+ */
665
+
666
+ /**
667
+ * @typedef PhoneProperties
668
+ * @property {string} [code]
669
+ * @property {string} [key]
670
+ * @property {string} [number]
671
+ */
672
+
673
+ /**
674
+ * @typedef PhoneSchema
675
+ * @property {boolean} [active]
676
+ * @property {PhoneProperties[]} [phone]
677
+ */
678
+
679
+ /**
680
+ * @typedef RemoveHandpickedSchema
681
+ * @property {string[]} [tags]
682
+ */
683
+
684
+ /**
685
+ * @typedef ResourceContent
686
+ * @property {string} [type]
687
+ * @property {string} [value]
688
+ */
689
+
690
+ /**
691
+ * @typedef ScheduleSchema
692
+ * @property {string} [cron]
693
+ * @property {number} [duration]
694
+ * @property {string} [end]
695
+ * @property {Object[]} [next_schedule]
696
+ * @property {string} [start]
697
+ */
698
+
699
+ /**
700
+ * @typedef ScheduleStartSchema
701
+ * @property {string} [end]
702
+ * @property {string} [start]
703
+ */
704
+
705
+ /**
706
+ * @typedef SEO
707
+ * @property {string} [description]
708
+ * @property {SEOImage} [image]
709
+ * @property {string} [title]
710
+ */
711
+
712
+ /**
713
+ * @typedef SeoComponent
714
+ * @property {SeoSchema} [seo]
715
+ */
716
+
717
+ /**
718
+ * @typedef SEOImage
719
+ * @property {string} [url]
720
+ */
721
+
722
+ /**
723
+ * @typedef SeoSchema
724
+ * @property {string} [_id]
725
+ * @property {string} [app]
726
+ * @property {boolean} [cannonical_enabled]
727
+ * @property {string} [created_at]
728
+ * @property {Object[]} [custom_meta_tags]
729
+ * @property {Detail} [details]
730
+ * @property {string} [robots_txt]
731
+ * @property {boolean} [sitemap_enabled]
732
+ * @property {string} [updated_at]
733
+ */
734
+
735
+ /**
736
+ * @typedef Slideshow
737
+ * @property {SlideshowSchema} [data]
738
+ * @property {boolean} [success]
739
+ */
740
+
741
+ /**
742
+ * @typedef SlideshowGetResponse
743
+ * @property {SlideshowSchema[]} [items]
744
+ * @property {Page} [page]
745
+ */
746
+
747
+ /**
748
+ * @typedef SlideshowMedia
749
+ * @property {Action} [action]
750
+ * @property {boolean} [auto_decide_duration]
751
+ * @property {string} [bg_color]
752
+ * @property {number} [duration]
753
+ * @property {string} [type]
754
+ * @property {string} [url]
755
+ */
756
+
757
+ /**
758
+ * @typedef SlideshowRequest
759
+ * @property {boolean} [active]
760
+ * @property {ConfigurationSchema} [configuration]
761
+ * @property {SlideshowMedia} [media]
762
+ * @property {string} [platform]
763
+ * @property {string} [slug]
764
+ */
765
+
766
+ /**
767
+ * @typedef SlideshowSchema
768
+ * @property {Object} [_custom_json]
769
+ * @property {string} [_id]
770
+ * @property {boolean} [active]
771
+ * @property {string} [application]
772
+ * @property {boolean} [archived]
773
+ * @property {ConfigurationSchema} [configuration]
774
+ * @property {DateMeta} [date_meta]
775
+ * @property {SlideshowMedia[]} [media]
776
+ * @property {string} [platform]
777
+ * @property {string} [slug]
778
+ */
779
+
780
+ /**
781
+ * @typedef Support
782
+ * @property {string} [_id]
783
+ * @property {string} [application]
784
+ * @property {string} [config_type]
785
+ * @property {ContactSchema} [contact]
786
+ * @property {boolean} [created]
787
+ * @property {string} [created_at]
788
+ * @property {string} [updated_at]
789
+ */
790
+
791
+ /**
792
+ * @typedef TagDeleteSuccessResponse
793
+ * @property {boolean} [success]
794
+ */
795
+
796
+ /**
797
+ * @typedef TagSchema
798
+ * @property {TagSourceSchema} [__source]
799
+ * @property {string} [_id]
800
+ * @property {Object} [attributes]
801
+ * @property {string} [content]
802
+ * @property {string} [name]
803
+ * @property {Object[]} [pages]
804
+ * @property {string} [position]
805
+ * @property {string} [sub_type]
806
+ * @property {string} [type]
807
+ * @property {string} [url]
808
+ */
809
+
810
+ /**
811
+ * @typedef TagSourceSchema
812
+ * @property {string} [id]
813
+ * @property {string} [type]
814
+ */
815
+
816
+ /**
817
+ * @typedef TagsSchema
818
+ * @property {string} [_id]
819
+ * @property {string} [application]
820
+ * @property {TagSchema[]} [tags]
821
+ */
822
+
823
+ /**
824
+ * @typedef UpdateFaqCategoryRequestSchema
825
+ * @property {CategorySchema} [category]
826
+ */
827
+
828
+ /**
829
+ * @typedef UpdateHandpickedSchema
830
+ * @property {HandpickedTagSchema} [tag]
831
+ */
832
+
833
+ /**
834
+ * @typedef {| "about-us"
835
+ * | "addresses"
836
+ * | "blog"
837
+ * | "brands"
838
+ * | "cards"
839
+ * | "cart"
840
+ * | "categories"
841
+ * | "brand"
842
+ * | "category"
843
+ * | "collection"
844
+ * | "collections"
845
+ * | "contact-us"
846
+ * | "external"
847
+ * | "faq"
848
+ * | "freshchat"
849
+ * | "home"
850
+ * | "notification-settings"
851
+ * | "orders"
852
+ * | "page"
853
+ * | "policy"
854
+ * | "product"
855
+ * | "product-request"
856
+ * | "products"
857
+ * | "profile"
858
+ * | "profile-order-shipment"
859
+ * | "profile-basic"
860
+ * | "profile-company"
861
+ * | "profile-emails"
862
+ * | "profile-phones"
863
+ * | "rate-us"
864
+ * | "refer-earn"
865
+ * | "settings"
866
+ * | "shared-cart"
867
+ * | "tnc"
868
+ * | "track-order"
869
+ * | "wishlist"
870
+ * | "sections"
871
+ * | "form"
872
+ * | "cart-delivery"
873
+ * | "cart-payment"
874
+ * | "cart-review"
875
+ * | "login"
876
+ * | "register"
877
+ * | "shipping-policy"
878
+ * | "return-policy"
879
+ * | "order-status"} PageType
880
+ */
881
+
882
+ class ContentApplicationModel {
883
+ /** @returns {Action} */
4
884
  static Action() {
5
885
  return Joi.object({
6
- page: ContentModel.ActionPage(),
7
- popup: ContentModel.ActionPage(),
886
+ page: ContentApplicationModel.ActionPage(),
887
+ popup: ContentApplicationModel.ActionPage(),
8
888
  type: Joi.string().allow(""),
9
889
  });
10
890
  }
891
+
892
+ /** @returns {ActionPage} */
11
893
  static ActionPage() {
12
894
  return Joi.object({
13
895
  params: Joi.object().pattern(
@@ -18,59 +900,73 @@ class ContentModel {
18
900
  /\S/,
19
901
  Joi.array().items(Joi.string().allow(""))
20
902
  ),
21
- type: ContentModel.PageType().required(),
903
+ type: ContentApplicationModel.PageType().required(),
22
904
  url: Joi.string().allow(""),
23
905
  });
24
906
  }
907
+
908
+ /** @returns {AdminAnnouncementSchema} */
25
909
  static AdminAnnouncementSchema() {
26
910
  return Joi.object({
27
911
  _id: Joi.string().allow(""),
28
- _schedule: ContentModel.ScheduleSchema(),
912
+ _schedule: ContentApplicationModel.ScheduleSchema(),
29
913
  announcement: Joi.string().allow(""),
30
914
  app: Joi.string().allow(""),
31
- author: ContentModel.AnnouncementAuthorSchema(),
915
+ author: ContentApplicationModel.AnnouncementAuthorSchema(),
32
916
  created_at: Joi.string().allow(""),
33
- editor_meta: ContentModel.EditorMeta(),
917
+ editor_meta: ContentApplicationModel.EditorMeta(),
34
918
  modified_at: Joi.string().allow(""),
35
- pages: Joi.array().items(ContentModel.AnnouncementPageSchema()),
919
+ pages: Joi.array().items(
920
+ ContentApplicationModel.AnnouncementPageSchema()
921
+ ),
36
922
  platforms: Joi.array().items(Joi.string().allow("")),
37
923
  title: Joi.string().allow(""),
38
924
  });
39
925
  }
926
+
927
+ /** @returns {AnnouncementAuthorSchema} */
40
928
  static AnnouncementAuthorSchema() {
41
929
  return Joi.object({
42
930
  created_by: Joi.string().allow(""),
43
931
  modified_by: Joi.string().allow(""),
44
932
  });
45
933
  }
934
+
935
+ /** @returns {AnnouncementPageSchema} */
46
936
  static AnnouncementPageSchema() {
47
937
  return Joi.object({
48
938
  page_slug: Joi.string().allow(""),
49
939
  type: Joi.string().allow(""),
50
940
  });
51
941
  }
942
+
943
+ /** @returns {AnnouncementSchema} */
52
944
  static AnnouncementSchema() {
53
945
  return Joi.object({
54
946
  announcement: Joi.string().allow(""),
55
- schedule: ContentModel.ScheduleStartSchema(),
947
+ schedule: ContentApplicationModel.ScheduleStartSchema(),
56
948
  });
57
949
  }
950
+
951
+ /** @returns {AnnouncementsResponseSchema} */
58
952
  static AnnouncementsResponseSchema() {
59
953
  return Joi.object({
60
954
  announcements: Joi.object().pattern(
61
955
  /\S/,
62
- Joi.array().items(ContentModel.AnnouncementSchema())
956
+ Joi.array().items(ContentApplicationModel.AnnouncementSchema())
63
957
  ),
64
958
  refresh_pages: Joi.array().items(Joi.string().allow("")),
65
959
  refresh_rate: Joi.number(),
66
960
  });
67
961
  }
962
+
963
+ /** @returns {ApplicationLegal} */
68
964
  static ApplicationLegal() {
69
965
  return Joi.object({
70
966
  _id: Joi.string().allow(""),
71
967
  application: Joi.string().allow(""),
72
968
  created_at: Joi.string().allow(""),
73
- faq: Joi.array().items(ContentModel.ApplicationLegalFAQ()),
969
+ faq: Joi.array().items(ContentApplicationModel.ApplicationLegalFAQ()),
74
970
  policy: Joi.string().allow(""),
75
971
  returns: Joi.string().allow(""),
76
972
  shipping: Joi.string().allow(""),
@@ -78,12 +974,16 @@ class ContentModel {
78
974
  updated_at: Joi.string().allow(""),
79
975
  });
80
976
  }
977
+
978
+ /** @returns {ApplicationLegalFAQ} */
81
979
  static ApplicationLegalFAQ() {
82
980
  return Joi.object({
83
981
  answer: Joi.string().allow(""),
84
982
  question: Joi.string().allow(""),
85
983
  });
86
984
  }
985
+
986
+ /** @returns {Asset} */
87
987
  static Asset() {
88
988
  return Joi.object({
89
989
  aspect_ratio: Joi.string().allow(""),
@@ -91,6 +991,8 @@ class ContentModel {
91
991
  secure_url: Joi.string().allow(""),
92
992
  });
93
993
  }
994
+
995
+ /** @returns {Author} */
94
996
  static Author() {
95
997
  return Joi.object({
96
998
  designation: Joi.string().allow(""),
@@ -98,53 +1000,63 @@ class ContentModel {
98
1000
  name: Joi.string().allow(""),
99
1001
  });
100
1002
  }
1003
+
1004
+ /** @returns {BlogGetResponse} */
101
1005
  static BlogGetResponse() {
102
1006
  return Joi.object({
103
- items: Joi.array().items(ContentModel.BlogSchema()),
104
- page: ContentModel.Page(),
1007
+ items: Joi.array().items(ContentApplicationModel.BlogSchema()),
1008
+ page: ContentApplicationModel.Page(),
105
1009
  });
106
1010
  }
1011
+
1012
+ /** @returns {BlogRequest} */
107
1013
  static BlogRequest() {
108
1014
  return Joi.object({
109
1015
  _custom_json: Joi.any(),
110
- _schedule: ContentModel.CronSchedule(),
1016
+ _schedule: ContentApplicationModel.CronSchedule(),
111
1017
  application: Joi.string().allow(""),
112
- author: ContentModel.Author(),
113
- content: Joi.array().items(ContentModel.ResourceContent()),
114
- feature_image: ContentModel.Asset(),
1018
+ author: ContentApplicationModel.Author(),
1019
+ content: Joi.array().items(ContentApplicationModel.ResourceContent()),
1020
+ feature_image: ContentApplicationModel.Asset(),
115
1021
  published: Joi.boolean(),
116
1022
  reading_time: Joi.string().allow(""),
117
- seo: ContentModel.SEO(),
1023
+ seo: ContentApplicationModel.SEO(),
118
1024
  slug: Joi.string().allow(""),
119
1025
  tags: Joi.array().items(Joi.string().allow("")),
120
1026
  title: Joi.string().allow(""),
121
1027
  });
122
1028
  }
1029
+
1030
+ /** @returns {BlogSchema} */
123
1031
  static BlogSchema() {
124
1032
  return Joi.object({
125
1033
  _custom_json: Joi.any(),
126
1034
  _id: Joi.string().allow(""),
127
- _schedule: ContentModel.CronSchedule(),
1035
+ _schedule: ContentApplicationModel.CronSchedule(),
128
1036
  application: Joi.string().allow(""),
129
1037
  archived: Joi.boolean(),
130
- author: ContentModel.Author(),
131
- content: Joi.array().items(ContentModel.ResourceContent()),
132
- date_meta: ContentModel.DateMeta(),
133
- feature_image: ContentModel.Asset(),
1038
+ author: ContentApplicationModel.Author(),
1039
+ content: Joi.array().items(ContentApplicationModel.ResourceContent()),
1040
+ date_meta: ContentApplicationModel.DateMeta(),
1041
+ feature_image: ContentApplicationModel.Asset(),
134
1042
  published: Joi.boolean(),
135
1043
  reading_time: Joi.string().allow(""),
136
- seo: ContentModel.SEO(),
1044
+ seo: ContentApplicationModel.SEO(),
137
1045
  slug: Joi.string().allow(""),
138
1046
  tags: Joi.array().items(Joi.string().allow("")),
139
1047
  title: Joi.string().allow(""),
140
1048
  });
141
1049
  }
1050
+
1051
+ /** @returns {CategoryRequestSchema} */
142
1052
  static CategoryRequestSchema() {
143
1053
  return Joi.object({
144
1054
  slug: Joi.string().allow(""),
145
1055
  title: Joi.string().allow(""),
146
1056
  });
147
1057
  }
1058
+
1059
+ /** @returns {CategorySchema} */
148
1060
  static CategorySchema() {
149
1061
  return Joi.object({
150
1062
  _custom_json: Joi.any(),
@@ -158,6 +1070,8 @@ class ContentModel {
158
1070
  title: Joi.string().allow(""),
159
1071
  });
160
1072
  }
1073
+
1074
+ /** @returns {ChildrenSchema} */
161
1075
  static ChildrenSchema() {
162
1076
  return Joi.object({
163
1077
  _id: Joi.string().allow(""),
@@ -167,11 +1081,15 @@ class ContentModel {
167
1081
  slug: Joi.string().allow(""),
168
1082
  });
169
1083
  }
1084
+
1085
+ /** @returns {CommonError} */
170
1086
  static CommonError() {
171
1087
  return Joi.object({
172
1088
  message: Joi.string().allow(""),
173
1089
  });
174
1090
  }
1091
+
1092
+ /** @returns {ConfigurationSchema} */
175
1093
  static ConfigurationSchema() {
176
1094
  return Joi.object({
177
1095
  duration: Joi.number(),
@@ -180,12 +1098,16 @@ class ContentModel {
180
1098
  start_on_launch: Joi.boolean(),
181
1099
  });
182
1100
  }
1101
+
1102
+ /** @returns {ContactSchema} */
183
1103
  static ContactSchema() {
184
1104
  return Joi.object({
185
- email: ContentModel.EmailSchema(),
186
- phone: ContentModel.PhoneSchema(),
1105
+ email: ContentApplicationModel.EmailSchema(),
1106
+ phone: ContentApplicationModel.PhoneSchema(),
187
1107
  });
188
1108
  }
1109
+
1110
+ /** @returns {ContentAPIError} */
189
1111
  static ContentAPIError() {
190
1112
  return Joi.object({
191
1113
  code: Joi.string().allow(""),
@@ -198,48 +1120,66 @@ class ContentModel {
198
1120
  status: Joi.number(),
199
1121
  });
200
1122
  }
1123
+
1124
+ /** @returns {ContentSchema} */
201
1125
  static ContentSchema() {
202
1126
  return Joi.object({
203
1127
  type: Joi.string().allow(""),
204
1128
  value: Joi.any(),
205
1129
  });
206
1130
  }
1131
+
1132
+ /** @returns {CreateAnnouncementSchema} */
207
1133
  static CreateAnnouncementSchema() {
208
1134
  return Joi.object({
209
- data: ContentModel.AdminAnnouncementSchema(),
1135
+ data: ContentApplicationModel.AdminAnnouncementSchema(),
210
1136
  message: Joi.string().allow(""),
211
1137
  });
212
1138
  }
1139
+
1140
+ /** @returns {CreatedBySchema} */
213
1141
  static CreatedBySchema() {
214
1142
  return Joi.object({
215
1143
  id: Joi.string().allow(""),
216
1144
  });
217
1145
  }
1146
+
1147
+ /** @returns {CreateFaqCategoryRequestSchema} */
218
1148
  static CreateFaqCategoryRequestSchema() {
219
1149
  return Joi.object({
220
- category: ContentModel.CategoryRequestSchema(),
1150
+ category: ContentApplicationModel.CategoryRequestSchema(),
221
1151
  });
222
1152
  }
1153
+
1154
+ /** @returns {CreateFaqCategorySchema} */
223
1155
  static CreateFaqCategorySchema() {
224
1156
  return Joi.object({
225
- category: ContentModel.CategorySchema(),
1157
+ category: ContentApplicationModel.CategorySchema(),
226
1158
  });
227
1159
  }
1160
+
1161
+ /** @returns {CreateFaqResponseSchema} */
228
1162
  static CreateFaqResponseSchema() {
229
1163
  return Joi.object({
230
- faq: ContentModel.FaqSchema(),
1164
+ faq: ContentApplicationModel.FaqSchema(),
231
1165
  });
232
1166
  }
1167
+
1168
+ /** @returns {CreateFaqSchema} */
233
1169
  static CreateFaqSchema() {
234
1170
  return Joi.object({
235
- faq: ContentModel.FAQ(),
1171
+ faq: ContentApplicationModel.FAQ(),
236
1172
  });
237
1173
  }
1174
+
1175
+ /** @returns {CreateTagRequestSchema} */
238
1176
  static CreateTagRequestSchema() {
239
1177
  return Joi.object({
240
- tags: Joi.array().items(ContentModel.CreateTagSchema()),
1178
+ tags: Joi.array().items(ContentApplicationModel.CreateTagSchema()),
241
1179
  });
242
1180
  }
1181
+
1182
+ /** @returns {CreateTagSchema} */
243
1183
  static CreateTagSchema() {
244
1184
  return Joi.object({
245
1185
  _id: Joi.string().allow(""),
@@ -253,6 +1193,8 @@ class ContentModel {
253
1193
  url: Joi.string().allow(""),
254
1194
  });
255
1195
  }
1196
+
1197
+ /** @returns {CronSchedule} */
256
1198
  static CronSchedule() {
257
1199
  return Joi.object({
258
1200
  cron: Joi.string().allow(""),
@@ -261,6 +1203,8 @@ class ContentModel {
261
1203
  start: Joi.string().allow(""),
262
1204
  });
263
1205
  }
1206
+
1207
+ /** @returns {CustomMetaTag} */
264
1208
  static CustomMetaTag() {
265
1209
  return Joi.object({
266
1210
  _id: Joi.string().allow(""),
@@ -268,19 +1212,23 @@ class ContentModel {
268
1212
  name: Joi.string().allow(""),
269
1213
  });
270
1214
  }
1215
+
1216
+ /** @returns {CustomPage} */
271
1217
  static CustomPage() {
272
1218
  return Joi.object({
273
- data: ContentModel.CustomPageSchema(),
1219
+ data: ContentApplicationModel.CustomPageSchema(),
274
1220
  });
275
1221
  }
1222
+
1223
+ /** @returns {CustomPageSchema} */
276
1224
  static CustomPageSchema() {
277
1225
  return Joi.object({
278
1226
  _id: Joi.string().allow(""),
279
- _schedule: ContentModel.ScheduleSchema(),
1227
+ _schedule: ContentApplicationModel.ScheduleSchema(),
280
1228
  application: Joi.string().allow(""),
281
1229
  content: Joi.array().items(Joi.any()),
282
- created_by: ContentModel.CreatedBySchema(),
283
- date_meta: ContentModel.DateMeta(),
1230
+ created_by: ContentApplicationModel.CreatedBySchema(),
1231
+ date_meta: ContentApplicationModel.DateMeta(),
284
1232
  description: Joi.string().allow(""),
285
1233
  orientation: Joi.string().allow(""),
286
1234
  platform: Joi.string().allow(""),
@@ -291,14 +1239,18 @@ class ContentModel {
291
1239
  type: Joi.string().allow(""),
292
1240
  });
293
1241
  }
1242
+
1243
+ /** @returns {DataLoaderResetResponseSchema} */
294
1244
  static DataLoaderResetResponseSchema() {
295
1245
  return Joi.object({
296
1246
  reset: Joi.string().allow(""),
297
1247
  });
298
1248
  }
1249
+
1250
+ /** @returns {DataLoaderResponseSchema} */
299
1251
  static DataLoaderResponseSchema() {
300
1252
  return Joi.object({
301
- __source: ContentModel.DataLoaderSourceSchema(),
1253
+ __source: ContentApplicationModel.DataLoaderSourceSchema(),
302
1254
  _id: Joi.string().allow(""),
303
1255
  application: Joi.string().allow(""),
304
1256
  company: Joi.string().allow(""),
@@ -310,9 +1262,11 @@ class ContentModel {
310
1262
  url: Joi.string().allow(""),
311
1263
  });
312
1264
  }
1265
+
1266
+ /** @returns {DataLoaderSchema} */
313
1267
  static DataLoaderSchema() {
314
1268
  return Joi.object({
315
- __source: ContentModel.DataLoaderSourceSchema(),
1269
+ __source: ContentApplicationModel.DataLoaderSourceSchema(),
316
1270
  _id: Joi.string().allow(""),
317
1271
  content: Joi.string().allow(""),
318
1272
  name: Joi.string().allow(""),
@@ -322,28 +1276,38 @@ class ContentModel {
322
1276
  url: Joi.string().allow(""),
323
1277
  });
324
1278
  }
1279
+
1280
+ /** @returns {DataLoaderSourceSchema} */
325
1281
  static DataLoaderSourceSchema() {
326
1282
  return Joi.object({
327
1283
  id: Joi.string().allow(""),
328
1284
  type: Joi.string().allow(""),
329
1285
  });
330
1286
  }
1287
+
1288
+ /** @returns {DataLoadersSchema} */
331
1289
  static DataLoadersSchema() {
332
1290
  return Joi.object({
333
- items: Joi.array().items(ContentModel.DataLoaderSchema()),
1291
+ items: Joi.array().items(ContentApplicationModel.DataLoaderSchema()),
334
1292
  });
335
1293
  }
1294
+
1295
+ /** @returns {DateMeta} */
336
1296
  static DateMeta() {
337
1297
  return Joi.object({
338
1298
  created_on: Joi.string().allow(""),
339
1299
  modified_on: Joi.string().allow(""),
340
1300
  });
341
1301
  }
1302
+
1303
+ /** @returns {DefaultNavigationResponse} */
342
1304
  static DefaultNavigationResponse() {
343
1305
  return Joi.object({
344
- items: Joi.array().items(ContentModel.NavigationSchema()),
1306
+ items: Joi.array().items(ContentApplicationModel.NavigationSchema()),
345
1307
  });
346
1308
  }
1309
+
1310
+ /** @returns {Detail} */
347
1311
  static Detail() {
348
1312
  return Joi.object({
349
1313
  description: Joi.string().allow(""),
@@ -351,6 +1315,8 @@ class ContentModel {
351
1315
  title: Joi.string().allow(""),
352
1316
  });
353
1317
  }
1318
+
1319
+ /** @returns {EditorMeta} */
354
1320
  static EditorMeta() {
355
1321
  return Joi.object({
356
1322
  background_color: Joi.string().allow(""),
@@ -359,18 +1325,24 @@ class ContentModel {
359
1325
  foreground_color: Joi.string().allow(""),
360
1326
  });
361
1327
  }
1328
+
1329
+ /** @returns {EmailProperties} */
362
1330
  static EmailProperties() {
363
1331
  return Joi.object({
364
1332
  key: Joi.string().allow(""),
365
1333
  value: Joi.string().allow(""),
366
1334
  });
367
1335
  }
1336
+
1337
+ /** @returns {EmailSchema} */
368
1338
  static EmailSchema() {
369
1339
  return Joi.object({
370
1340
  active: Joi.boolean(),
371
- email: Joi.array().items(ContentModel.EmailProperties()),
1341
+ email: Joi.array().items(ContentApplicationModel.EmailProperties()),
372
1342
  });
373
1343
  }
1344
+
1345
+ /** @returns {FAQ} */
374
1346
  static FAQ() {
375
1347
  return Joi.object({
376
1348
  answer: Joi.string().allow(""),
@@ -378,12 +1350,14 @@ class ContentModel {
378
1350
  slug: Joi.string().allow(""),
379
1351
  });
380
1352
  }
1353
+
1354
+ /** @returns {FAQCategorySchema} */
381
1355
  static FAQCategorySchema() {
382
1356
  return Joi.object({
383
1357
  _custom_json: Joi.any(),
384
1358
  _id: Joi.string().allow(""),
385
1359
  application: Joi.string().allow(""),
386
- children: Joi.array().items(ContentModel.ChildrenSchema()),
1360
+ children: Joi.array().items(ContentApplicationModel.ChildrenSchema()),
387
1361
  description: Joi.string().allow(""),
388
1362
  icon_url: Joi.string().allow(""),
389
1363
  index: Joi.number(),
@@ -391,11 +1365,15 @@ class ContentModel {
391
1365
  title: Joi.string().allow(""),
392
1366
  });
393
1367
  }
1368
+
1369
+ /** @returns {FaqResponseSchema} */
394
1370
  static FaqResponseSchema() {
395
1371
  return Joi.object({
396
- faqs: Joi.array().items(ContentModel.FaqSchema()),
1372
+ faqs: Joi.array().items(ContentApplicationModel.FaqSchema()),
397
1373
  });
398
1374
  }
1375
+
1376
+ /** @returns {FaqSchema} */
399
1377
  static FaqSchema() {
400
1378
  return Joi.object({
401
1379
  _id: Joi.string().allow(""),
@@ -406,32 +1384,46 @@ class ContentModel {
406
1384
  tags: Joi.array().items(Joi.string().allow("")),
407
1385
  });
408
1386
  }
1387
+
1388
+ /** @returns {FeatureImage} */
409
1389
  static FeatureImage() {
410
1390
  return Joi.object({
411
1391
  secure_url: Joi.string().allow(""),
412
1392
  });
413
1393
  }
1394
+
1395
+ /** @returns {GetAnnouncementListSchema} */
414
1396
  static GetAnnouncementListSchema() {
415
1397
  return Joi.object({
416
- items: Joi.array().items(ContentModel.AdminAnnouncementSchema()),
417
- page: ContentModel.Page(),
1398
+ items: Joi.array().items(
1399
+ ContentApplicationModel.AdminAnnouncementSchema()
1400
+ ),
1401
+ page: ContentApplicationModel.Page(),
418
1402
  });
419
1403
  }
1404
+
1405
+ /** @returns {GetFaqCategoriesSchema} */
420
1406
  static GetFaqCategoriesSchema() {
421
1407
  return Joi.object({
422
- categories: Joi.array().items(ContentModel.CategorySchema()),
1408
+ categories: Joi.array().items(ContentApplicationModel.CategorySchema()),
423
1409
  });
424
1410
  }
1411
+
1412
+ /** @returns {GetFaqCategoryBySlugSchema} */
425
1413
  static GetFaqCategoryBySlugSchema() {
426
1414
  return Joi.object({
427
- category: ContentModel.FAQCategorySchema(),
1415
+ category: ContentApplicationModel.FAQCategorySchema(),
428
1416
  });
429
1417
  }
1418
+
1419
+ /** @returns {GetFaqSchema} */
430
1420
  static GetFaqSchema() {
431
1421
  return Joi.object({
432
- faqs: Joi.array().items(ContentModel.FaqSchema()),
1422
+ faqs: Joi.array().items(ContentApplicationModel.FaqSchema()),
433
1423
  });
434
1424
  }
1425
+
1426
+ /** @returns {HandpickedTagSchema} */
435
1427
  static HandpickedTagSchema() {
436
1428
  return Joi.object({
437
1429
  attributes: Joi.any(),
@@ -443,68 +1435,84 @@ class ContentModel {
443
1435
  url: Joi.string().allow(""),
444
1436
  });
445
1437
  }
1438
+
1439
+ /** @returns {LandingPage} */
446
1440
  static LandingPage() {
447
1441
  return Joi.object({
448
- data: ContentModel.LandingPageSchema(),
1442
+ data: ContentApplicationModel.LandingPageSchema(),
449
1443
  success: Joi.boolean(),
450
1444
  });
451
1445
  }
1446
+
1447
+ /** @returns {LandingPageGetResponse} */
452
1448
  static LandingPageGetResponse() {
453
1449
  return Joi.object({
454
- items: Joi.array().items(ContentModel.LandingPageSchema()),
455
- page: ContentModel.Page(),
1450
+ items: Joi.array().items(ContentApplicationModel.LandingPageSchema()),
1451
+ page: ContentApplicationModel.Page(),
456
1452
  });
457
1453
  }
1454
+
1455
+ /** @returns {LandingPageSchema} */
458
1456
  static LandingPageSchema() {
459
1457
  return Joi.object({
460
1458
  _custom_json: Joi.any(),
461
1459
  _id: Joi.string().allow(""),
462
- action: ContentModel.Action(),
1460
+ action: ContentApplicationModel.Action(),
463
1461
  application: Joi.string().allow(""),
464
1462
  archived: Joi.boolean(),
465
- created_by: ContentModel.CreatedBySchema(),
466
- date_meta: ContentModel.DateMeta(),
1463
+ created_by: ContentApplicationModel.CreatedBySchema(),
1464
+ date_meta: ContentApplicationModel.DateMeta(),
467
1465
  platform: Joi.array().items(Joi.string().allow("")),
468
1466
  slug: Joi.string().allow(""),
469
1467
  });
470
1468
  }
1469
+
1470
+ /** @returns {Language} */
471
1471
  static Language() {
472
1472
  return Joi.object({
473
1473
  display: Joi.string().allow(""),
474
1474
  });
475
1475
  }
1476
+
1477
+ /** @returns {LocaleLanguage} */
476
1478
  static LocaleLanguage() {
477
1479
  return Joi.object({
478
- ar: ContentModel.Language(),
479
- en_us: ContentModel.Language(),
480
- hi: ContentModel.Language(),
1480
+ ar: ContentApplicationModel.Language(),
1481
+ en_us: ContentApplicationModel.Language(),
1482
+ hi: ContentApplicationModel.Language(),
481
1483
  });
482
1484
  }
1485
+
1486
+ /** @returns {Navigation} */
483
1487
  static Navigation() {
484
1488
  return Joi.object({
485
1489
  _id: Joi.string().allow(""),
486
1490
  application: Joi.string().allow(""),
487
- created_by: ContentModel.CreatedBySchema(),
488
- date_meta: ContentModel.DateMeta(),
1491
+ created_by: ContentApplicationModel.CreatedBySchema(),
1492
+ date_meta: ContentApplicationModel.DateMeta(),
489
1493
  name: Joi.string().allow(""),
490
- navigation: ContentModel.NavigationReference(),
1494
+ navigation: ContentApplicationModel.NavigationReference(),
491
1495
  orientation: Joi.string().allow(""),
492
1496
  platform: Joi.string().allow(""),
493
1497
  position: Joi.string().allow(""),
494
1498
  slug: Joi.string().allow(""),
495
1499
  });
496
1500
  }
1501
+
1502
+ /** @returns {NavigationGetResponse} */
497
1503
  static NavigationGetResponse() {
498
1504
  return Joi.object({
499
- items: Joi.array().items(ContentModel.NavigationSchema()),
500
- page: ContentModel.Page(),
1505
+ items: Joi.array().items(ContentApplicationModel.NavigationSchema()),
1506
+ page: ContentApplicationModel.Page(),
501
1507
  });
502
1508
  }
1509
+
1510
+ /** @returns {NavigationReference} */
503
1511
  static NavigationReference() {
504
1512
  return Joi.object({
505
- _locale_language: ContentModel.LocaleLanguage(),
1513
+ _locale_language: ContentApplicationModel.LocaleLanguage(),
506
1514
  acl: Joi.array().items(Joi.string().allow("")),
507
- action: ContentModel.Action(),
1515
+ action: ContentApplicationModel.Action(),
508
1516
  active: Joi.boolean(),
509
1517
  display: Joi.string().allow(""),
510
1518
  image: Joi.string().allow(""),
@@ -514,42 +1522,56 @@ class ContentModel {
514
1522
  type: Joi.string().allow(""),
515
1523
  }).id("NavigationReference");
516
1524
  }
1525
+
1526
+ /** @returns {NavigationRequest} */
517
1527
  static NavigationRequest() {
518
1528
  return Joi.object({
519
1529
  name: Joi.string().allow(""),
520
- navigation: Joi.array().items(ContentModel.NavigationReference()),
521
- orientation: ContentModel.Orientation(),
1530
+ navigation: Joi.array().items(
1531
+ ContentApplicationModel.NavigationReference()
1532
+ ),
1533
+ orientation: ContentApplicationModel.Orientation(),
522
1534
  platform: Joi.array().items(Joi.string().allow("")),
523
1535
  slug: Joi.string().allow(""),
524
1536
  });
525
1537
  }
1538
+
1539
+ /** @returns {NavigationSchema} */
526
1540
  static NavigationSchema() {
527
1541
  return Joi.object({
528
1542
  _id: Joi.string().allow(""),
529
1543
  application: Joi.string().allow(""),
530
1544
  archived: Joi.boolean(),
531
- created_by: ContentModel.CreatedBySchema(),
532
- date_meta: ContentModel.DateMeta(),
1545
+ created_by: ContentApplicationModel.CreatedBySchema(),
1546
+ date_meta: ContentApplicationModel.DateMeta(),
533
1547
  name: Joi.string().allow(""),
534
- navigation: Joi.array().items(ContentModel.NavigationReference()),
535
- orientation: ContentModel.Orientation(),
1548
+ navigation: Joi.array().items(
1549
+ ContentApplicationModel.NavigationReference()
1550
+ ),
1551
+ orientation: ContentApplicationModel.Orientation(),
536
1552
  platform: Joi.array().items(Joi.string().allow("")),
537
1553
  slug: Joi.string().allow(""),
538
1554
  version: Joi.number(),
539
1555
  });
540
1556
  }
1557
+
1558
+ /** @returns {NextSchedule} */
541
1559
  static NextSchedule() {
542
1560
  return Joi.object({
543
1561
  end: Joi.string().allow(""),
544
1562
  start: Joi.string().allow(""),
545
1563
  });
546
1564
  }
1565
+
1566
+ /** @returns {Orientation} */
547
1567
  static Orientation() {
548
1568
  return Joi.object({
549
1569
  landscape: Joi.array().items(Joi.string().allow("")),
550
1570
  portrait: Joi.array().items(Joi.string().allow("")),
551
1571
  });
552
1572
  }
1573
+
1574
+ /** @returns {Page} */
553
1575
  static Page() {
554
1576
  return Joi.object({
555
1577
  current: Joi.number(),
@@ -561,72 +1583,88 @@ class ContentModel {
561
1583
  type: Joi.string().allow("").required(),
562
1584
  });
563
1585
  }
1586
+
1587
+ /** @returns {PageContent} */
564
1588
  static PageContent() {
565
1589
  return Joi.object({
566
1590
  type: Joi.string().allow(""),
567
1591
  value: Joi.any(),
568
1592
  });
569
1593
  }
1594
+
1595
+ /** @returns {PageGetResponse} */
570
1596
  static PageGetResponse() {
571
1597
  return Joi.object({
572
- items: Joi.array().items(ContentModel.PageSchema()),
573
- page: ContentModel.Page(),
1598
+ items: Joi.array().items(ContentApplicationModel.PageSchema()),
1599
+ page: ContentApplicationModel.Page(),
574
1600
  });
575
1601
  }
1602
+
1603
+ /** @returns {PageMeta} */
576
1604
  static PageMeta() {
577
1605
  return Joi.object({
578
1606
  key: Joi.string().allow(""),
579
1607
  value: Joi.any(),
580
1608
  });
581
1609
  }
1610
+
1611
+ /** @returns {PageMetaSchema} */
582
1612
  static PageMetaSchema() {
583
1613
  return Joi.object({
584
1614
  application_id: Joi.string().allow(""),
585
- custom_pages: Joi.array().items(ContentModel.PageSchema()),
586
- system_pages: Joi.array().items(ContentModel.NavigationSchema()),
1615
+ custom_pages: Joi.array().items(ContentApplicationModel.PageSchema()),
1616
+ system_pages: Joi.array().items(
1617
+ ContentApplicationModel.NavigationSchema()
1618
+ ),
587
1619
  });
588
1620
  }
1621
+
1622
+ /** @returns {PagePublishRequest} */
589
1623
  static PagePublishRequest() {
590
1624
  return Joi.object({
591
1625
  publish: Joi.boolean(),
592
1626
  });
593
1627
  }
1628
+
1629
+ /** @returns {PageRequest} */
594
1630
  static PageRequest() {
595
1631
  return Joi.object({
596
1632
  _custom_json: Joi.any(),
597
- _schedule: ContentModel.CronSchedule(),
1633
+ _schedule: ContentApplicationModel.CronSchedule(),
598
1634
  application: Joi.string().allow(""),
599
- author: ContentModel.Author(),
1635
+ author: ContentApplicationModel.Author(),
600
1636
  content: Joi.array().items(Joi.any()),
601
- feature_image: ContentModel.Asset(),
1637
+ feature_image: ContentApplicationModel.Asset(),
602
1638
  orientation: Joi.string().allow(""),
603
1639
  published: Joi.boolean(),
604
1640
  reading_time: Joi.string().allow(""),
605
- seo: ContentModel.SEO(),
1641
+ seo: ContentApplicationModel.SEO(),
606
1642
  slug: Joi.string().allow(""),
607
1643
  tags: Joi.array().items(Joi.string().allow("")),
608
1644
  title: Joi.string().allow(""),
609
1645
  });
610
1646
  }
1647
+
1648
+ /** @returns {PageSchema} */
611
1649
  static PageSchema() {
612
1650
  return Joi.object({
613
1651
  _custom_json: Joi.any(),
614
1652
  _id: Joi.string().allow(""),
615
- _schedule: ContentModel.ScheduleSchema(),
1653
+ _schedule: ContentApplicationModel.ScheduleSchema(),
616
1654
  application: Joi.string().allow(""),
617
1655
  archived: Joi.boolean(),
618
1656
  component_ids: Joi.array().items(Joi.string().allow("")),
619
1657
  content: Joi.array().items(Joi.any()),
620
1658
  content_path: Joi.string().allow(""),
621
- created_by: ContentModel.CreatedBySchema(),
622
- date_meta: ContentModel.DateMeta(),
1659
+ created_by: ContentApplicationModel.CreatedBySchema(),
1660
+ date_meta: ContentApplicationModel.DateMeta(),
623
1661
  description: Joi.string().allow(""),
624
- feature_image: ContentModel.Asset(),
1662
+ feature_image: ContentApplicationModel.Asset(),
625
1663
  orientation: Joi.string().allow(""),
626
1664
  page_meta: Joi.array().items(Joi.any()),
627
1665
  platform: Joi.string().allow(""),
628
1666
  published: Joi.boolean(),
629
- seo: ContentModel.SEO(),
1667
+ seo: ContentApplicationModel.SEO(),
630
1668
  slug: Joi.string().allow(""),
631
1669
  tags: Joi.array().items(Joi.string().allow("")),
632
1670
  title: Joi.string().allow(""),
@@ -634,28 +1672,36 @@ class ContentModel {
634
1672
  visibility: Joi.any(),
635
1673
  });
636
1674
  }
1675
+
1676
+ /** @returns {PageSpec} */
637
1677
  static PageSpec() {
638
1678
  return Joi.object({
639
1679
  specifications: Joi.array().items(Joi.any()),
640
1680
  });
641
1681
  }
1682
+
1683
+ /** @returns {PageSpecItem} */
642
1684
  static PageSpecItem() {
643
1685
  return Joi.object({
644
1686
  display_name: Joi.string().allow(""),
645
1687
  page_type: Joi.string().allow(""),
646
- params: Joi.array().items(ContentModel.PageSpecParam()),
647
- query: Joi.array().items(ContentModel.PageSpecParam()),
1688
+ params: Joi.array().items(ContentApplicationModel.PageSpecParam()),
1689
+ query: Joi.array().items(ContentApplicationModel.PageSpecParam()),
648
1690
  });
649
1691
  }
1692
+
1693
+ /** @returns {PageSpecParam} */
650
1694
  static PageSpecParam() {
651
1695
  return Joi.object({
652
1696
  key: Joi.string().allow(""),
653
1697
  required: Joi.boolean(),
654
1698
  });
655
1699
  }
1700
+
1701
+ /** @returns {PathMappingSchema} */
656
1702
  static PathMappingSchema() {
657
1703
  return Joi.object({
658
- __source: ContentModel.PathSourceSchema(),
1704
+ __source: ContentApplicationModel.PathSourceSchema(),
659
1705
  _id: Joi.string().allow(""),
660
1706
  application: Joi.string().allow(""),
661
1707
  created_at: Joi.string().allow(""),
@@ -664,12 +1710,16 @@ class ContentModel {
664
1710
  updated_at: Joi.string().allow(""),
665
1711
  });
666
1712
  }
1713
+
1714
+ /** @returns {PathSourceSchema} */
667
1715
  static PathSourceSchema() {
668
1716
  return Joi.object({
669
1717
  id: Joi.string().allow(""),
670
1718
  type: Joi.string().allow(""),
671
1719
  });
672
1720
  }
1721
+
1722
+ /** @returns {PhoneProperties} */
673
1723
  static PhoneProperties() {
674
1724
  return Joi.object({
675
1725
  code: Joi.string().allow(""),
@@ -677,23 +1727,31 @@ class ContentModel {
677
1727
  number: Joi.string().allow(""),
678
1728
  });
679
1729
  }
1730
+
1731
+ /** @returns {PhoneSchema} */
680
1732
  static PhoneSchema() {
681
1733
  return Joi.object({
682
1734
  active: Joi.boolean(),
683
- phone: Joi.array().items(ContentModel.PhoneProperties()),
1735
+ phone: Joi.array().items(ContentApplicationModel.PhoneProperties()),
684
1736
  });
685
1737
  }
1738
+
1739
+ /** @returns {RemoveHandpickedSchema} */
686
1740
  static RemoveHandpickedSchema() {
687
1741
  return Joi.object({
688
1742
  tags: Joi.array().items(Joi.string().allow("")),
689
1743
  });
690
1744
  }
1745
+
1746
+ /** @returns {ResourceContent} */
691
1747
  static ResourceContent() {
692
1748
  return Joi.object({
693
1749
  type: Joi.string().allow(""),
694
1750
  value: Joi.string().allow(""),
695
1751
  });
696
1752
  }
1753
+
1754
+ /** @returns {ScheduleSchema} */
697
1755
  static ScheduleSchema() {
698
1756
  return Joi.object({
699
1757
  cron: Joi.string().allow(""),
@@ -703,29 +1761,39 @@ class ContentModel {
703
1761
  start: Joi.string().allow(""),
704
1762
  });
705
1763
  }
1764
+
1765
+ /** @returns {ScheduleStartSchema} */
706
1766
  static ScheduleStartSchema() {
707
1767
  return Joi.object({
708
1768
  end: Joi.string().allow(""),
709
1769
  start: Joi.string().allow(""),
710
1770
  });
711
1771
  }
1772
+
1773
+ /** @returns {SEO} */
712
1774
  static SEO() {
713
1775
  return Joi.object({
714
1776
  description: Joi.string().allow(""),
715
- image: ContentModel.SEOImage(),
1777
+ image: ContentApplicationModel.SEOImage(),
716
1778
  title: Joi.string().allow(""),
717
1779
  });
718
1780
  }
1781
+
1782
+ /** @returns {SeoComponent} */
719
1783
  static SeoComponent() {
720
1784
  return Joi.object({
721
- seo: ContentModel.SeoSchema(),
1785
+ seo: ContentApplicationModel.SeoSchema(),
722
1786
  });
723
1787
  }
1788
+
1789
+ /** @returns {SEOImage} */
724
1790
  static SEOImage() {
725
1791
  return Joi.object({
726
1792
  url: Joi.string().allow(""),
727
1793
  });
728
1794
  }
1795
+
1796
+ /** @returns {SeoSchema} */
729
1797
  static SeoSchema() {
730
1798
  return Joi.object({
731
1799
  _id: Joi.string().allow(""),
@@ -733,27 +1801,33 @@ class ContentModel {
733
1801
  cannonical_enabled: Joi.boolean(),
734
1802
  created_at: Joi.string().allow(""),
735
1803
  custom_meta_tags: Joi.array().items(Joi.any()),
736
- details: ContentModel.Detail(),
1804
+ details: ContentApplicationModel.Detail(),
737
1805
  robots_txt: Joi.string().allow(""),
738
1806
  sitemap_enabled: Joi.boolean(),
739
1807
  updated_at: Joi.string().allow(""),
740
1808
  });
741
1809
  }
1810
+
1811
+ /** @returns {Slideshow} */
742
1812
  static Slideshow() {
743
1813
  return Joi.object({
744
- data: ContentModel.SlideshowSchema(),
1814
+ data: ContentApplicationModel.SlideshowSchema(),
745
1815
  success: Joi.boolean(),
746
1816
  });
747
1817
  }
1818
+
1819
+ /** @returns {SlideshowGetResponse} */
748
1820
  static SlideshowGetResponse() {
749
1821
  return Joi.object({
750
- items: Joi.array().items(ContentModel.SlideshowSchema()),
751
- page: ContentModel.Page(),
1822
+ items: Joi.array().items(ContentApplicationModel.SlideshowSchema()),
1823
+ page: ContentApplicationModel.Page(),
752
1824
  });
753
1825
  }
1826
+
1827
+ /** @returns {SlideshowMedia} */
754
1828
  static SlideshowMedia() {
755
1829
  return Joi.object({
756
- action: ContentModel.Action(),
1830
+ action: ContentApplicationModel.Action(),
757
1831
  auto_decide_duration: Joi.boolean(),
758
1832
  bg_color: Joi.string().allow(""),
759
1833
  duration: Joi.number(),
@@ -761,15 +1835,19 @@ class ContentModel {
761
1835
  url: Joi.string().allow(""),
762
1836
  });
763
1837
  }
1838
+
1839
+ /** @returns {SlideshowRequest} */
764
1840
  static SlideshowRequest() {
765
1841
  return Joi.object({
766
1842
  active: Joi.boolean(),
767
- configuration: ContentModel.ConfigurationSchema(),
768
- media: ContentModel.SlideshowMedia(),
1843
+ configuration: ContentApplicationModel.ConfigurationSchema(),
1844
+ media: ContentApplicationModel.SlideshowMedia(),
769
1845
  platform: Joi.string().allow(""),
770
1846
  slug: Joi.string().allow(""),
771
1847
  });
772
1848
  }
1849
+
1850
+ /** @returns {SlideshowSchema} */
773
1851
  static SlideshowSchema() {
774
1852
  return Joi.object({
775
1853
  _custom_json: Joi.any(),
@@ -777,32 +1855,38 @@ class ContentModel {
777
1855
  active: Joi.boolean(),
778
1856
  application: Joi.string().allow(""),
779
1857
  archived: Joi.boolean(),
780
- configuration: ContentModel.ConfigurationSchema(),
781
- date_meta: ContentModel.DateMeta(),
782
- media: Joi.array().items(ContentModel.SlideshowMedia()),
1858
+ configuration: ContentApplicationModel.ConfigurationSchema(),
1859
+ date_meta: ContentApplicationModel.DateMeta(),
1860
+ media: Joi.array().items(ContentApplicationModel.SlideshowMedia()),
783
1861
  platform: Joi.string().allow(""),
784
1862
  slug: Joi.string().allow(""),
785
1863
  });
786
1864
  }
1865
+
1866
+ /** @returns {Support} */
787
1867
  static Support() {
788
1868
  return Joi.object({
789
1869
  _id: Joi.string().allow(""),
790
1870
  application: Joi.string().allow(""),
791
1871
  config_type: Joi.string().allow(""),
792
- contact: ContentModel.ContactSchema(),
1872
+ contact: ContentApplicationModel.ContactSchema(),
793
1873
  created: Joi.boolean(),
794
1874
  created_at: Joi.string().allow(""),
795
1875
  updated_at: Joi.string().allow(""),
796
1876
  });
797
1877
  }
1878
+
1879
+ /** @returns {TagDeleteSuccessResponse} */
798
1880
  static TagDeleteSuccessResponse() {
799
1881
  return Joi.object({
800
1882
  success: Joi.boolean(),
801
1883
  });
802
1884
  }
1885
+
1886
+ /** @returns {TagSchema} */
803
1887
  static TagSchema() {
804
1888
  return Joi.object({
805
- __source: ContentModel.TagSourceSchema(),
1889
+ __source: ContentApplicationModel.TagSourceSchema(),
806
1890
  _id: Joi.string().allow(""),
807
1891
  attributes: Joi.any(),
808
1892
  content: Joi.string().allow(""),
@@ -814,34 +1898,43 @@ class ContentModel {
814
1898
  url: Joi.string().allow(""),
815
1899
  });
816
1900
  }
1901
+
1902
+ /** @returns {TagSourceSchema} */
817
1903
  static TagSourceSchema() {
818
1904
  return Joi.object({
819
1905
  id: Joi.string().allow(""),
820
1906
  type: Joi.string().allow(""),
821
1907
  });
822
1908
  }
1909
+
1910
+ /** @returns {TagsSchema} */
823
1911
  static TagsSchema() {
824
1912
  return Joi.object({
825
1913
  _id: Joi.string().allow(""),
826
1914
  application: Joi.string().allow(""),
827
- tags: Joi.array().items(ContentModel.TagSchema()),
1915
+ tags: Joi.array().items(ContentApplicationModel.TagSchema()),
828
1916
  });
829
1917
  }
1918
+
1919
+ /** @returns {UpdateFaqCategoryRequestSchema} */
830
1920
  static UpdateFaqCategoryRequestSchema() {
831
1921
  return Joi.object({
832
- category: ContentModel.CategorySchema(),
1922
+ category: ContentApplicationModel.CategorySchema(),
833
1923
  });
834
1924
  }
1925
+
1926
+ /** @returns {UpdateHandpickedSchema} */
835
1927
  static UpdateHandpickedSchema() {
836
1928
  return Joi.object({
837
- tag: ContentModel.HandpickedTagSchema(),
1929
+ tag: ContentApplicationModel.HandpickedTagSchema(),
838
1930
  });
839
1931
  }
840
1932
 
841
- /*
842
- Enum: PageType
843
- Used By: Content
844
- */
1933
+ /**
1934
+ * Enum: PageType Used By: Content
1935
+ *
1936
+ * @returns {PageType}
1937
+ */
845
1938
  static PageType() {
846
1939
  return Joi.string().valid(
847
1940
  "about-us",
@@ -938,4 +2031,4 @@ class ContentModel {
938
2031
  );
939
2032
  }
940
2033
  }
941
- module.exports = ContentModel;
2034
+ module.exports = ContentApplicationModel;