@gofynd/fdk-client-javascript 1.1.6 → 1.3.0

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