@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,565 @@
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 AnnouncementSchema
20
+ * @property {string} [announcement]
21
+ * @property {ScheduleStartSchema} [schedule]
22
+ */
23
+
24
+ /**
25
+ * @typedef AnnouncementsResponseSchema
26
+ * @property {Object} [announcements]
27
+ * @property {string[]} [refresh_pages] - List of page slugs on which
28
+ * announcement should be fetched as soon as they are loaded
29
+ * @property {number} [refresh_rate] - Number of seconds after which api should
30
+ * hit again to fetch new announcements
31
+ */
32
+
33
+ /**
34
+ * @typedef ApplicationLegal
35
+ * @property {string} [_id]
36
+ * @property {string} [application]
37
+ * @property {string} [created_at]
38
+ * @property {ApplicationLegalFAQ[]} [faq]
39
+ * @property {string} [policy]
40
+ * @property {string} [returns]
41
+ * @property {string} [shipping]
42
+ * @property {string} [tnc]
43
+ * @property {string} [updated_at]
44
+ */
45
+
46
+ /**
47
+ * @typedef ApplicationLegalFAQ
48
+ * @property {string} [answer]
49
+ * @property {string} [question]
50
+ */
51
+
52
+ /**
53
+ * @typedef Asset
54
+ * @property {string} [aspect_ratio]
55
+ * @property {string} [id]
56
+ * @property {string} [secure_url]
57
+ */
58
+
59
+ /**
60
+ * @typedef Author
61
+ * @property {string} [designation]
62
+ * @property {string} [id]
63
+ * @property {string} [name]
64
+ */
65
+
66
+ /**
67
+ * @typedef BlogGetResponse
68
+ * @property {BlogSchema[]} [items]
69
+ * @property {Page} [page]
70
+ */
71
+
72
+ /**
73
+ * @typedef BlogSchema
74
+ * @property {Object} [_custom_json]
75
+ * @property {string} [_id]
76
+ * @property {CronSchedule} [_schedule]
77
+ * @property {string} [application]
78
+ * @property {boolean} [archived]
79
+ * @property {Author} [author]
80
+ * @property {ResourceContent[]} [content]
81
+ * @property {DateMeta} [date_meta]
82
+ * @property {Asset} [feature_image]
83
+ * @property {boolean} [published]
84
+ * @property {string} [reading_time]
85
+ * @property {SEO} [seo]
86
+ * @property {string} [slug]
87
+ * @property {string[]} [tags]
88
+ * @property {string} [title]
89
+ */
90
+
91
+ /**
92
+ * @typedef CategorySchema
93
+ * @property {Object} [_custom_json]
94
+ * @property {string} [_id]
95
+ * @property {string} [application]
96
+ * @property {string[]} [children]
97
+ * @property {string} [description]
98
+ * @property {string} [icon_url]
99
+ * @property {number} [index]
100
+ * @property {string} [slug]
101
+ * @property {string} [title]
102
+ */
103
+
104
+ /**
105
+ * @typedef ChildrenSchema
106
+ * @property {string} [_id]
107
+ * @property {string} [answer]
108
+ * @property {string} [application]
109
+ * @property {string} [question]
110
+ * @property {string} [slug]
111
+ */
112
+
113
+ /**
114
+ * @typedef CommonError
115
+ * @property {string} [message]
116
+ */
117
+
118
+ /**
119
+ * @typedef ConfigurationSchema
120
+ * @property {number} [duration]
121
+ * @property {number} [sleep_time]
122
+ * @property {string} [slide_direction]
123
+ * @property {boolean} [start_on_launch]
124
+ */
125
+
126
+ /**
127
+ * @typedef ContactSchema
128
+ * @property {EmailSchema} [email]
129
+ * @property {PhoneSchema} [phone]
130
+ */
131
+
132
+ /**
133
+ * @typedef ContentAPIError
134
+ * @property {string} [code]
135
+ * @property {string} [exception]
136
+ * @property {string} [info]
137
+ * @property {string} [message]
138
+ * @property {Object} [meta]
139
+ * @property {string} [request_id]
140
+ * @property {string} [stack_trace]
141
+ * @property {number} [status]
142
+ */
143
+
144
+ /**
145
+ * @typedef CreatedBySchema
146
+ * @property {string} [id]
147
+ */
148
+
149
+ /**
150
+ * @typedef CronSchedule
151
+ * @property {string} [cron]
152
+ * @property {number} [duration]
153
+ * @property {string} [end]
154
+ * @property {string} [start]
155
+ */
156
+
157
+ /**
158
+ * @typedef CustomMetaTag
159
+ * @property {string} [_id]
160
+ * @property {string} [content]
161
+ * @property {string} [name]
162
+ */
163
+
164
+ /**
165
+ * @typedef DataLoaderSchema
166
+ * @property {DataLoaderSourceSchema} [__source]
167
+ * @property {string} [_id]
168
+ * @property {string} [content]
169
+ * @property {string} [name]
170
+ * @property {string} [operation_id]
171
+ * @property {string} [service]
172
+ * @property {string} [type]
173
+ * @property {string} [url]
174
+ */
175
+
176
+ /**
177
+ * @typedef DataLoaderSourceSchema
178
+ * @property {string} [id]
179
+ * @property {string} [type]
180
+ */
181
+
182
+ /**
183
+ * @typedef DataLoadersSchema
184
+ * @property {DataLoaderSchema[]} [items]
185
+ */
186
+
187
+ /**
188
+ * @typedef DateMeta
189
+ * @property {string} [created_on]
190
+ * @property {string} [modified_on]
191
+ */
192
+
193
+ /**
194
+ * @typedef Detail
195
+ * @property {string} [description]
196
+ * @property {string} [image_url]
197
+ * @property {string} [title]
198
+ */
199
+
200
+ /**
201
+ * @typedef EmailProperties
202
+ * @property {string} [key]
203
+ * @property {string} [value]
204
+ */
205
+
206
+ /**
207
+ * @typedef EmailSchema
208
+ * @property {boolean} [active]
209
+ * @property {EmailProperties[]} [email]
210
+ */
211
+
212
+ /**
213
+ * @typedef FAQCategorySchema
214
+ * @property {Object} [_custom_json]
215
+ * @property {string} [_id]
216
+ * @property {string} [application]
217
+ * @property {ChildrenSchema[]} [children]
218
+ * @property {string} [description]
219
+ * @property {string} [icon_url]
220
+ * @property {number} [index]
221
+ * @property {string} [slug]
222
+ * @property {string} [title]
223
+ */
224
+
225
+ /**
226
+ * @typedef FaqResponseSchema
227
+ * @property {FaqSchema[]} [faqs]
228
+ */
229
+
230
+ /**
231
+ * @typedef FaqSchema
232
+ * @property {string} [_id]
233
+ * @property {string} [answer]
234
+ * @property {string} [application]
235
+ * @property {string} [question]
236
+ * @property {string} [slug]
237
+ * @property {string[]} [tags]
238
+ */
239
+
240
+ /**
241
+ * @typedef GetFaqCategoriesSchema
242
+ * @property {CategorySchema[]} [categories]
243
+ */
244
+
245
+ /**
246
+ * @typedef GetFaqCategoryBySlugSchema
247
+ * @property {FAQCategorySchema} [category]
248
+ */
249
+
250
+ /**
251
+ * @typedef GetFaqSchema
252
+ * @property {FaqSchema[]} [faqs]
253
+ */
254
+
255
+ /**
256
+ * @typedef LandingPageSchema
257
+ * @property {Object} [_custom_json]
258
+ * @property {string} [_id]
259
+ * @property {Action} [action]
260
+ * @property {string} [application]
261
+ * @property {boolean} [archived]
262
+ * @property {CreatedBySchema} [created_by]
263
+ * @property {DateMeta} [date_meta]
264
+ * @property {string[]} [platform]
265
+ * @property {string} [slug]
266
+ */
267
+
268
+ /**
269
+ * @typedef Language
270
+ * @property {string} [display]
271
+ */
272
+
273
+ /**
274
+ * @typedef LocaleLanguage
275
+ * @property {Language} [ar]
276
+ * @property {Language} [en_us]
277
+ * @property {Language} [hi]
278
+ */
279
+
280
+ /**
281
+ * @typedef NavigationGetResponse
282
+ * @property {NavigationSchema[]} [items]
283
+ * @property {Page} [page]
284
+ */
285
+
286
+ /**
287
+ * @typedef NavigationReference
288
+ * @property {LocaleLanguage} [_locale_language]
289
+ * @property {string[]} [acl]
290
+ * @property {Action} [action]
291
+ * @property {boolean} [active]
292
+ * @property {string} [display]
293
+ * @property {string} [image]
294
+ * @property {number} [sort_order]
295
+ * @property {NavigationReference[]} [sub_navigation]
296
+ * @property {string[]} [tags]
297
+ * @property {string} [type]
298
+ */
299
+
300
+ /**
301
+ * @typedef NavigationSchema
302
+ * @property {string} [_id]
303
+ * @property {string} [application]
304
+ * @property {boolean} [archived]
305
+ * @property {CreatedBySchema} [created_by]
306
+ * @property {DateMeta} [date_meta]
307
+ * @property {string} [name]
308
+ * @property {NavigationReference[]} [navigation]
309
+ * @property {Orientation} [orientation]
310
+ * @property {string[]} [platform]
311
+ * @property {string} [slug]
312
+ * @property {number} [version]
313
+ */
314
+
315
+ /**
316
+ * @typedef NextSchedule
317
+ * @property {string} [end]
318
+ * @property {string} [start]
319
+ */
320
+
321
+ /**
322
+ * @typedef Orientation
323
+ * @property {string[]} [landscape]
324
+ * @property {string[]} [portrait]
325
+ */
326
+
327
+ /**
328
+ * @typedef Page
329
+ * @property {number} [current]
330
+ * @property {boolean} [has_next]
331
+ * @property {boolean} [has_previous]
332
+ * @property {number} [item_total]
333
+ * @property {string} [next_id]
334
+ * @property {number} [size]
335
+ * @property {string} type
336
+ */
337
+
338
+ /**
339
+ * @typedef PageGetResponse
340
+ * @property {PageSchema[]} [items]
341
+ * @property {Page} [page]
342
+ */
343
+
344
+ /**
345
+ * @typedef PageSchema
346
+ * @property {Object} [_custom_json]
347
+ * @property {string} [_id]
348
+ * @property {ScheduleSchema} [_schedule]
349
+ * @property {string} [application]
350
+ * @property {boolean} [archived]
351
+ * @property {string[]} [component_ids] - Components can be used to store
352
+ * multiple components
353
+ * @property {Object[]} [content]
354
+ * @property {string} [content_path]
355
+ * @property {CreatedBySchema} [created_by]
356
+ * @property {DateMeta} [date_meta]
357
+ * @property {string} [description]
358
+ * @property {Asset} [feature_image]
359
+ * @property {string} [orientation]
360
+ * @property {Object[]} [page_meta]
361
+ * @property {string} [platform]
362
+ * @property {boolean} [published]
363
+ * @property {SEO} [seo]
364
+ * @property {string} [slug]
365
+ * @property {string[]} [tags]
366
+ * @property {string} [title]
367
+ * @property {string} [type]
368
+ * @property {Object} [visibility]
369
+ */
370
+
371
+ /**
372
+ * @typedef PhoneProperties
373
+ * @property {string} [code]
374
+ * @property {string} [key]
375
+ * @property {string} [number]
376
+ */
377
+
378
+ /**
379
+ * @typedef PhoneSchema
380
+ * @property {boolean} [active]
381
+ * @property {PhoneProperties[]} [phone]
382
+ */
383
+
384
+ /**
385
+ * @typedef ResourceContent
386
+ * @property {string} [type]
387
+ * @property {string} [value]
388
+ */
389
+
390
+ /**
391
+ * @typedef ScheduleSchema
392
+ * @property {string} [cron]
393
+ * @property {number} [duration]
394
+ * @property {string} [end]
395
+ * @property {NextSchedule[]} [next_schedule]
396
+ * @property {string} [start]
397
+ */
398
+
399
+ /**
400
+ * @typedef ScheduleStartSchema
401
+ * @property {string} [end]
402
+ * @property {string} [start]
403
+ */
404
+
405
+ /**
406
+ * @typedef SEO
407
+ * @property {string} [description]
408
+ * @property {SEOImage} [image]
409
+ * @property {string} [title]
410
+ */
411
+
412
+ /**
413
+ * @typedef SeoComponent
414
+ * @property {SeoSchema} [seo]
415
+ */
416
+
417
+ /**
418
+ * @typedef SEOImage
419
+ * @property {string} [url]
420
+ */
421
+
422
+ /**
423
+ * @typedef SeoSchema
424
+ * @property {string} [_id]
425
+ * @property {string} [app]
426
+ * @property {boolean} [cannonical_enabled]
427
+ * @property {string} [created_at]
428
+ * @property {CustomMetaTag[]} [custom_meta_tags]
429
+ * @property {Detail} [details]
430
+ * @property {string} [robots_txt]
431
+ * @property {boolean} [sitemap_enabled]
432
+ * @property {string} [updated_at]
433
+ */
434
+
435
+ /**
436
+ * @typedef SlideshowGetResponse
437
+ * @property {SlideshowSchema[]} [items]
438
+ * @property {Page} [page]
439
+ */
440
+
441
+ /**
442
+ * @typedef SlideshowMedia
443
+ * @property {Action} [action]
444
+ * @property {boolean} [auto_decide_duration]
445
+ * @property {string} [bg_color]
446
+ * @property {number} [duration]
447
+ * @property {string} [type]
448
+ * @property {string} [url]
449
+ */
450
+
451
+ /**
452
+ * @typedef SlideshowSchema
453
+ * @property {Object} [_custom_json]
454
+ * @property {string} [_id]
455
+ * @property {boolean} [active]
456
+ * @property {string} [application]
457
+ * @property {boolean} [archived]
458
+ * @property {ConfigurationSchema} [configuration]
459
+ * @property {DateMeta} [date_meta]
460
+ * @property {SlideshowMedia[]} [media]
461
+ * @property {string} [platform]
462
+ * @property {string} [slug]
463
+ */
464
+
465
+ /**
466
+ * @typedef Support
467
+ * @property {string} [_id]
468
+ * @property {string} [application]
469
+ * @property {string} [config_type]
470
+ * @property {ContactSchema} [contact]
471
+ * @property {boolean} [created]
472
+ * @property {string} [created_at]
473
+ * @property {string} [updated_at]
474
+ */
475
+
476
+ /**
477
+ * @typedef TagSchema
478
+ * @property {TagSourceSchema} [__source]
479
+ * @property {string} [_id]
480
+ * @property {Object} [attributes]
481
+ * @property {string} [content]
482
+ * @property {string} [name]
483
+ * @property {Object[]} [pages]
484
+ * @property {string} [position]
485
+ * @property {string} [sub_type]
486
+ * @property {string} [type]
487
+ * @property {string} [url]
488
+ */
489
+
490
+ /**
491
+ * @typedef TagSourceSchema
492
+ * @property {string} [id]
493
+ * @property {string} [type]
494
+ */
495
+
496
+ /**
497
+ * @typedef TagsSchema
498
+ * @property {string} [_id]
499
+ * @property {string} [application]
500
+ * @property {TagSchema[]} [tags]
501
+ */
502
+
503
+ /**
504
+ * @typedef {| "about-us"
505
+ * | "addresses"
506
+ * | "blog"
507
+ * | "brands"
508
+ * | "cards"
509
+ * | "cart"
510
+ * | "categories"
511
+ * | "brand"
512
+ * | "category"
513
+ * | "collection"
514
+ * | "collections"
515
+ * | "contact-us"
516
+ * | "external"
517
+ * | "faq"
518
+ * | "freshchat"
519
+ * | "home"
520
+ * | "notification-settings"
521
+ * | "orders"
522
+ * | "page"
523
+ * | "policy"
524
+ * | "product"
525
+ * | "product-request"
526
+ * | "products"
527
+ * | "profile"
528
+ * | "profile-order-shipment"
529
+ * | "profile-basic"
530
+ * | "profile-company"
531
+ * | "profile-emails"
532
+ * | "profile-phones"
533
+ * | "rate-us"
534
+ * | "refer-earn"
535
+ * | "settings"
536
+ * | "shared-cart"
537
+ * | "tnc"
538
+ * | "track-order"
539
+ * | "wishlist"
540
+ * | "sections"
541
+ * | "form"
542
+ * | "cart-delivery"
543
+ * | "cart-payment"
544
+ * | "cart-review"
545
+ * | "login"
546
+ * | "register"
547
+ * | "shipping-policy"
548
+ * | "return-policy"
549
+ * | "order-status"} PageType
550
+ */
551
+
552
+ class ContentApplicationModel {
553
+ /** @returns {Action} */
4
554
  static Action() {
5
555
  return Joi.object({
6
- page: ContentModel.ActionPage(),
7
- popup: ContentModel.ActionPage(),
556
+ page: ContentApplicationModel.ActionPage(),
557
+ popup: ContentApplicationModel.ActionPage(),
8
558
  type: Joi.string().allow(""),
9
559
  });
10
560
  }
561
+
562
+ /** @returns {ActionPage} */
11
563
  static ActionPage() {
12
564
  return Joi.object({
13
565
  params: Joi.object().pattern(
@@ -18,59 +570,38 @@ class ContentModel {
18
570
  /\S/,
19
571
  Joi.array().items(Joi.string().allow(""))
20
572
  ),
21
- type: ContentModel.PageType().required(),
573
+ type: ContentApplicationModel.PageType().required(),
22
574
  url: Joi.string().allow(""),
23
575
  });
24
576
  }
25
- static AdminAnnouncementSchema() {
26
- return Joi.object({
27
- _id: Joi.string().allow(""),
28
- _schedule: ContentModel.ScheduleSchema(),
29
- announcement: Joi.string().allow(""),
30
- app: Joi.string().allow(""),
31
- author: ContentModel.AnnouncementAuthorSchema(),
32
- created_at: Joi.string().allow(""),
33
- editor_meta: ContentModel.EditorMeta(),
34
- modified_at: Joi.string().allow(""),
35
- pages: Joi.array().items(ContentModel.AnnouncementPageSchema()),
36
- platforms: Joi.array().items(Joi.string().allow("")),
37
- title: Joi.string().allow(""),
38
- });
39
- }
40
- static AnnouncementAuthorSchema() {
41
- return Joi.object({
42
- created_by: Joi.string().allow(""),
43
- modified_by: Joi.string().allow(""),
44
- });
45
- }
46
- static AnnouncementPageSchema() {
47
- return Joi.object({
48
- page_slug: Joi.string().allow(""),
49
- type: Joi.string().allow(""),
50
- });
51
- }
577
+
578
+ /** @returns {AnnouncementSchema} */
52
579
  static AnnouncementSchema() {
53
580
  return Joi.object({
54
581
  announcement: Joi.string().allow(""),
55
- schedule: ContentModel.ScheduleStartSchema(),
582
+ schedule: ContentApplicationModel.ScheduleStartSchema(),
56
583
  });
57
584
  }
585
+
586
+ /** @returns {AnnouncementsResponseSchema} */
58
587
  static AnnouncementsResponseSchema() {
59
588
  return Joi.object({
60
589
  announcements: Joi.object().pattern(
61
590
  /\S/,
62
- Joi.array().items(ContentModel.AnnouncementSchema())
591
+ Joi.array().items(ContentApplicationModel.AnnouncementSchema())
63
592
  ),
64
593
  refresh_pages: Joi.array().items(Joi.string().allow("")),
65
594
  refresh_rate: Joi.number(),
66
595
  });
67
596
  }
597
+
598
+ /** @returns {ApplicationLegal} */
68
599
  static ApplicationLegal() {
69
600
  return Joi.object({
70
601
  _id: Joi.string().allow(""),
71
602
  application: Joi.string().allow(""),
72
603
  created_at: Joi.string().allow(""),
73
- faq: Joi.array().items(ContentModel.ApplicationLegalFAQ()),
604
+ faq: Joi.array().items(ContentApplicationModel.ApplicationLegalFAQ()),
74
605
  policy: Joi.string().allow(""),
75
606
  returns: Joi.string().allow(""),
76
607
  shipping: Joi.string().allow(""),
@@ -78,12 +609,16 @@ class ContentModel {
78
609
  updated_at: Joi.string().allow(""),
79
610
  });
80
611
  }
612
+
613
+ /** @returns {ApplicationLegalFAQ} */
81
614
  static ApplicationLegalFAQ() {
82
615
  return Joi.object({
83
616
  answer: Joi.string().allow(""),
84
617
  question: Joi.string().allow(""),
85
618
  });
86
619
  }
620
+
621
+ /** @returns {Asset} */
87
622
  static Asset() {
88
623
  return Joi.object({
89
624
  aspect_ratio: Joi.string().allow(""),
@@ -91,6 +626,8 @@ class ContentModel {
91
626
  secure_url: Joi.string().allow(""),
92
627
  });
93
628
  }
629
+
630
+ /** @returns {Author} */
94
631
  static Author() {
95
632
  return Joi.object({
96
633
  designation: Joi.string().allow(""),
@@ -98,53 +635,37 @@ class ContentModel {
98
635
  name: Joi.string().allow(""),
99
636
  });
100
637
  }
638
+
639
+ /** @returns {BlogGetResponse} */
101
640
  static BlogGetResponse() {
102
641
  return Joi.object({
103
- items: Joi.array().items(ContentModel.BlogSchema()),
104
- page: ContentModel.Page(),
105
- });
106
- }
107
- static BlogRequest() {
108
- return Joi.object({
109
- _custom_json: Joi.any(),
110
- _schedule: ContentModel.CronSchedule(),
111
- application: Joi.string().allow(""),
112
- author: ContentModel.Author(),
113
- content: Joi.array().items(ContentModel.ResourceContent()),
114
- feature_image: ContentModel.Asset(),
115
- published: Joi.boolean(),
116
- reading_time: Joi.string().allow(""),
117
- seo: ContentModel.SEO(),
118
- slug: Joi.string().allow(""),
119
- tags: Joi.array().items(Joi.string().allow("")),
120
- title: Joi.string().allow(""),
642
+ items: Joi.array().items(ContentApplicationModel.BlogSchema()),
643
+ page: ContentApplicationModel.Page(),
121
644
  });
122
645
  }
646
+
647
+ /** @returns {BlogSchema} */
123
648
  static BlogSchema() {
124
649
  return Joi.object({
125
650
  _custom_json: Joi.any(),
126
651
  _id: Joi.string().allow(""),
127
- _schedule: ContentModel.CronSchedule(),
652
+ _schedule: ContentApplicationModel.CronSchedule(),
128
653
  application: Joi.string().allow(""),
129
654
  archived: Joi.boolean(),
130
- author: ContentModel.Author(),
131
- content: Joi.array().items(ContentModel.ResourceContent()),
132
- date_meta: ContentModel.DateMeta(),
133
- feature_image: ContentModel.Asset(),
655
+ author: ContentApplicationModel.Author(),
656
+ content: Joi.array().items(ContentApplicationModel.ResourceContent()),
657
+ date_meta: ContentApplicationModel.DateMeta(),
658
+ feature_image: ContentApplicationModel.Asset(),
134
659
  published: Joi.boolean(),
135
660
  reading_time: Joi.string().allow(""),
136
- seo: ContentModel.SEO(),
661
+ seo: ContentApplicationModel.SEO(),
137
662
  slug: Joi.string().allow(""),
138
663
  tags: Joi.array().items(Joi.string().allow("")),
139
664
  title: Joi.string().allow(""),
140
665
  });
141
666
  }
142
- static CategoryRequestSchema() {
143
- return Joi.object({
144
- slug: Joi.string().allow(""),
145
- title: Joi.string().allow(""),
146
- });
147
- }
667
+
668
+ /** @returns {CategorySchema} */
148
669
  static CategorySchema() {
149
670
  return Joi.object({
150
671
  _custom_json: Joi.any(),
@@ -158,6 +679,8 @@ class ContentModel {
158
679
  title: Joi.string().allow(""),
159
680
  });
160
681
  }
682
+
683
+ /** @returns {ChildrenSchema} */
161
684
  static ChildrenSchema() {
162
685
  return Joi.object({
163
686
  _id: Joi.string().allow(""),
@@ -167,11 +690,15 @@ class ContentModel {
167
690
  slug: Joi.string().allow(""),
168
691
  });
169
692
  }
693
+
694
+ /** @returns {CommonError} */
170
695
  static CommonError() {
171
696
  return Joi.object({
172
697
  message: Joi.string().allow(""),
173
698
  });
174
699
  }
700
+
701
+ /** @returns {ConfigurationSchema} */
175
702
  static ConfigurationSchema() {
176
703
  return Joi.object({
177
704
  duration: Joi.number(),
@@ -180,12 +707,16 @@ class ContentModel {
180
707
  start_on_launch: Joi.boolean(),
181
708
  });
182
709
  }
710
+
711
+ /** @returns {ContactSchema} */
183
712
  static ContactSchema() {
184
713
  return Joi.object({
185
- email: ContentModel.EmailSchema(),
186
- phone: ContentModel.PhoneSchema(),
714
+ email: ContentApplicationModel.EmailSchema(),
715
+ phone: ContentApplicationModel.PhoneSchema(),
187
716
  });
188
717
  }
718
+
719
+ /** @returns {ContentAPIError} */
189
720
  static ContentAPIError() {
190
721
  return Joi.object({
191
722
  code: Joi.string().allow(""),
@@ -198,61 +729,15 @@ class ContentModel {
198
729
  status: Joi.number(),
199
730
  });
200
731
  }
201
- static ContentSchema() {
202
- return Joi.object({
203
- type: Joi.string().allow(""),
204
- value: Joi.any(),
205
- });
206
- }
207
- static CreateAnnouncementSchema() {
208
- return Joi.object({
209
- data: ContentModel.AdminAnnouncementSchema(),
210
- message: Joi.string().allow(""),
211
- });
212
- }
732
+
733
+ /** @returns {CreatedBySchema} */
213
734
  static CreatedBySchema() {
214
735
  return Joi.object({
215
736
  id: Joi.string().allow(""),
216
737
  });
217
738
  }
218
- static CreateFaqCategoryRequestSchema() {
219
- return Joi.object({
220
- category: ContentModel.CategoryRequestSchema(),
221
- });
222
- }
223
- static CreateFaqCategorySchema() {
224
- return Joi.object({
225
- category: ContentModel.CategorySchema(),
226
- });
227
- }
228
- static CreateFaqResponseSchema() {
229
- return Joi.object({
230
- faq: ContentModel.FaqSchema(),
231
- });
232
- }
233
- static CreateFaqSchema() {
234
- return Joi.object({
235
- faq: ContentModel.FAQ(),
236
- });
237
- }
238
- static CreateTagRequestSchema() {
239
- return Joi.object({
240
- tags: Joi.array().items(ContentModel.CreateTagSchema()),
241
- });
242
- }
243
- static CreateTagSchema() {
244
- return Joi.object({
245
- _id: Joi.string().allow(""),
246
- attributes: Joi.any(),
247
- content: Joi.string().allow(""),
248
- name: Joi.string().allow(""),
249
- pages: Joi.array().items(Joi.any()),
250
- position: Joi.string().allow(""),
251
- sub_type: Joi.string().allow(""),
252
- type: Joi.string().allow(""),
253
- url: Joi.string().allow(""),
254
- });
255
- }
739
+
740
+ /** @returns {CronSchedule} */
256
741
  static CronSchedule() {
257
742
  return Joi.object({
258
743
  cron: Joi.string().allow(""),
@@ -261,6 +746,8 @@ class ContentModel {
261
746
  start: Joi.string().allow(""),
262
747
  });
263
748
  }
749
+
750
+ /** @returns {CustomMetaTag} */
264
751
  static CustomMetaTag() {
265
752
  return Joi.object({
266
753
  _id: Joi.string().allow(""),
@@ -268,51 +755,11 @@ class ContentModel {
268
755
  name: Joi.string().allow(""),
269
756
  });
270
757
  }
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
- }
294
- static DataLoaderResetResponseSchema() {
295
- return Joi.object({
296
- reset: Joi.string().allow(""),
297
- });
298
- }
299
- static DataLoaderResponseSchema() {
300
- return Joi.object({
301
- __source: ContentModel.DataLoaderSourceSchema(),
302
- _id: Joi.string().allow(""),
303
- application: Joi.string().allow(""),
304
- company: Joi.string().allow(""),
305
- content: Joi.string().allow(""),
306
- name: Joi.string().allow(""),
307
- operation_id: Joi.string().allow(""),
308
- service: Joi.string().allow(""),
309
- type: Joi.string().allow(""),
310
- url: Joi.string().allow(""),
311
- });
312
- }
758
+
759
+ /** @returns {DataLoaderSchema} */
313
760
  static DataLoaderSchema() {
314
761
  return Joi.object({
315
- __source: ContentModel.DataLoaderSourceSchema(),
762
+ __source: ContentApplicationModel.DataLoaderSourceSchema(),
316
763
  _id: Joi.string().allow(""),
317
764
  content: Joi.string().allow(""),
318
765
  name: Joi.string().allow(""),
@@ -322,28 +769,31 @@ class ContentModel {
322
769
  url: Joi.string().allow(""),
323
770
  });
324
771
  }
772
+
773
+ /** @returns {DataLoaderSourceSchema} */
325
774
  static DataLoaderSourceSchema() {
326
775
  return Joi.object({
327
776
  id: Joi.string().allow(""),
328
777
  type: Joi.string().allow(""),
329
778
  });
330
779
  }
780
+
781
+ /** @returns {DataLoadersSchema} */
331
782
  static DataLoadersSchema() {
332
783
  return Joi.object({
333
- items: Joi.array().items(ContentModel.DataLoaderSchema()),
784
+ items: Joi.array().items(ContentApplicationModel.DataLoaderSchema()),
334
785
  });
335
786
  }
787
+
788
+ /** @returns {DateMeta} */
336
789
  static DateMeta() {
337
790
  return Joi.object({
338
791
  created_on: Joi.string().allow(""),
339
792
  modified_on: Joi.string().allow(""),
340
793
  });
341
794
  }
342
- static DefaultNavigationResponse() {
343
- return Joi.object({
344
- items: Joi.array().items(ContentModel.NavigationSchema()),
345
- });
346
- }
795
+
796
+ /** @returns {Detail} */
347
797
  static Detail() {
348
798
  return Joi.object({
349
799
  description: Joi.string().allow(""),
@@ -351,39 +801,30 @@ class ContentModel {
351
801
  title: Joi.string().allow(""),
352
802
  });
353
803
  }
354
- static EditorMeta() {
355
- return Joi.object({
356
- background_color: Joi.string().allow(""),
357
- content: Joi.string().allow(""),
358
- content_type: Joi.string().allow(""),
359
- foreground_color: Joi.string().allow(""),
360
- });
361
- }
804
+
805
+ /** @returns {EmailProperties} */
362
806
  static EmailProperties() {
363
807
  return Joi.object({
364
808
  key: Joi.string().allow(""),
365
809
  value: Joi.string().allow(""),
366
810
  });
367
811
  }
812
+
813
+ /** @returns {EmailSchema} */
368
814
  static EmailSchema() {
369
815
  return Joi.object({
370
816
  active: Joi.boolean(),
371
- email: Joi.array().items(ContentModel.EmailProperties()),
372
- });
373
- }
374
- static FAQ() {
375
- return Joi.object({
376
- answer: Joi.string().allow(""),
377
- question: Joi.string().allow(""),
378
- slug: Joi.string().allow(""),
817
+ email: Joi.array().items(ContentApplicationModel.EmailProperties()),
379
818
  });
380
819
  }
820
+
821
+ /** @returns {FAQCategorySchema} */
381
822
  static FAQCategorySchema() {
382
823
  return Joi.object({
383
824
  _custom_json: Joi.any(),
384
825
  _id: Joi.string().allow(""),
385
826
  application: Joi.string().allow(""),
386
- children: Joi.array().items(ContentModel.ChildrenSchema()),
827
+ children: Joi.array().items(ContentApplicationModel.ChildrenSchema()),
387
828
  description: Joi.string().allow(""),
388
829
  icon_url: Joi.string().allow(""),
389
830
  index: Joi.number(),
@@ -391,11 +832,15 @@ class ContentModel {
391
832
  title: Joi.string().allow(""),
392
833
  });
393
834
  }
835
+
836
+ /** @returns {FaqResponseSchema} */
394
837
  static FaqResponseSchema() {
395
838
  return Joi.object({
396
- faqs: Joi.array().items(ContentModel.FaqSchema()),
839
+ faqs: Joi.array().items(ContentApplicationModel.FaqSchema()),
397
840
  });
398
841
  }
842
+
843
+ /** @returns {FaqSchema} */
399
844
  static FaqSchema() {
400
845
  return Joi.object({
401
846
  _id: Joi.string().allow(""),
@@ -406,105 +851,73 @@ class ContentModel {
406
851
  tags: Joi.array().items(Joi.string().allow("")),
407
852
  });
408
853
  }
409
- static FeatureImage() {
410
- return Joi.object({
411
- secure_url: Joi.string().allow(""),
412
- });
413
- }
414
- static GetAnnouncementListSchema() {
415
- return Joi.object({
416
- items: Joi.array().items(ContentModel.AdminAnnouncementSchema()),
417
- page: ContentModel.Page(),
418
- });
419
- }
854
+
855
+ /** @returns {GetFaqCategoriesSchema} */
420
856
  static GetFaqCategoriesSchema() {
421
857
  return Joi.object({
422
- categories: Joi.array().items(ContentModel.CategorySchema()),
858
+ categories: Joi.array().items(ContentApplicationModel.CategorySchema()),
423
859
  });
424
860
  }
861
+
862
+ /** @returns {GetFaqCategoryBySlugSchema} */
425
863
  static GetFaqCategoryBySlugSchema() {
426
864
  return Joi.object({
427
- category: ContentModel.FAQCategorySchema(),
865
+ category: ContentApplicationModel.FAQCategorySchema(),
428
866
  });
429
867
  }
868
+
869
+ /** @returns {GetFaqSchema} */
430
870
  static GetFaqSchema() {
431
871
  return Joi.object({
432
- faqs: Joi.array().items(ContentModel.FaqSchema()),
433
- });
434
- }
435
- static HandpickedTagSchema() {
436
- return Joi.object({
437
- attributes: Joi.any(),
438
- content: Joi.string().allow(""),
439
- name: Joi.string().allow(""),
440
- position: Joi.string().allow(""),
441
- sub_type: Joi.string().allow(""),
442
- type: Joi.string().allow(""),
443
- url: Joi.string().allow(""),
444
- });
445
- }
446
- static LandingPage() {
447
- return Joi.object({
448
- data: ContentModel.LandingPageSchema(),
449
- success: Joi.boolean(),
450
- });
451
- }
452
- static LandingPageGetResponse() {
453
- return Joi.object({
454
- items: Joi.array().items(ContentModel.LandingPageSchema()),
455
- page: ContentModel.Page(),
872
+ faqs: Joi.array().items(ContentApplicationModel.FaqSchema()),
456
873
  });
457
874
  }
875
+
876
+ /** @returns {LandingPageSchema} */
458
877
  static LandingPageSchema() {
459
878
  return Joi.object({
460
879
  _custom_json: Joi.any(),
461
880
  _id: Joi.string().allow(""),
462
- action: ContentModel.Action(),
881
+ action: ContentApplicationModel.Action(),
463
882
  application: Joi.string().allow(""),
464
883
  archived: Joi.boolean(),
465
- created_by: ContentModel.CreatedBySchema(),
466
- date_meta: ContentModel.DateMeta(),
884
+ created_by: ContentApplicationModel.CreatedBySchema(),
885
+ date_meta: ContentApplicationModel.DateMeta(),
467
886
  platform: Joi.array().items(Joi.string().allow("")),
468
887
  slug: Joi.string().allow(""),
469
888
  });
470
889
  }
890
+
891
+ /** @returns {Language} */
471
892
  static Language() {
472
893
  return Joi.object({
473
894
  display: Joi.string().allow(""),
474
895
  });
475
896
  }
897
+
898
+ /** @returns {LocaleLanguage} */
476
899
  static LocaleLanguage() {
477
900
  return Joi.object({
478
- ar: ContentModel.Language(),
479
- en_us: ContentModel.Language(),
480
- hi: ContentModel.Language(),
481
- });
482
- }
483
- static Navigation() {
484
- return Joi.object({
485
- _id: Joi.string().allow(""),
486
- application: Joi.string().allow(""),
487
- created_by: ContentModel.CreatedBySchema(),
488
- date_meta: ContentModel.DateMeta(),
489
- name: Joi.string().allow(""),
490
- navigation: ContentModel.NavigationReference(),
491
- orientation: Joi.string().allow(""),
492
- platform: Joi.string().allow(""),
493
- position: Joi.string().allow(""),
494
- slug: Joi.string().allow(""),
901
+ ar: ContentApplicationModel.Language(),
902
+ en_us: ContentApplicationModel.Language(),
903
+ hi: ContentApplicationModel.Language(),
495
904
  });
496
905
  }
906
+
907
+ /** @returns {NavigationGetResponse} */
497
908
  static NavigationGetResponse() {
498
909
  return Joi.object({
499
- items: Joi.array().items(ContentModel.NavigationSchema()),
500
- page: ContentModel.Page(),
910
+ items: Joi.array().items(ContentApplicationModel.NavigationSchema()),
911
+ page: ContentApplicationModel.Page(),
501
912
  });
502
913
  }
914
+
915
+ /** @returns {NavigationReference} */
503
916
  static NavigationReference() {
504
917
  return Joi.object({
505
- _locale_language: ContentModel.LocaleLanguage(),
918
+ _locale_language: ContentApplicationModel.LocaleLanguage(),
506
919
  acl: Joi.array().items(Joi.string().allow("")),
507
- action: ContentModel.Action(),
920
+ action: ContentApplicationModel.Action(),
508
921
  active: Joi.boolean(),
509
922
  display: Joi.string().allow(""),
510
923
  image: Joi.string().allow(""),
@@ -514,42 +927,43 @@ class ContentModel {
514
927
  type: Joi.string().allow(""),
515
928
  }).id("NavigationReference");
516
929
  }
517
- static NavigationRequest() {
518
- return Joi.object({
519
- name: Joi.string().allow(""),
520
- navigation: Joi.array().items(ContentModel.NavigationReference()),
521
- orientation: ContentModel.Orientation(),
522
- platform: Joi.array().items(Joi.string().allow("")),
523
- slug: Joi.string().allow(""),
524
- });
525
- }
930
+
931
+ /** @returns {NavigationSchema} */
526
932
  static NavigationSchema() {
527
933
  return Joi.object({
528
934
  _id: Joi.string().allow(""),
529
935
  application: Joi.string().allow(""),
530
936
  archived: Joi.boolean(),
531
- created_by: ContentModel.CreatedBySchema(),
532
- date_meta: ContentModel.DateMeta(),
937
+ created_by: ContentApplicationModel.CreatedBySchema(),
938
+ date_meta: ContentApplicationModel.DateMeta(),
533
939
  name: Joi.string().allow(""),
534
- navigation: Joi.array().items(ContentModel.NavigationReference()),
535
- orientation: ContentModel.Orientation(),
940
+ navigation: Joi.array().items(
941
+ ContentApplicationModel.NavigationReference()
942
+ ),
943
+ orientation: ContentApplicationModel.Orientation(),
536
944
  platform: Joi.array().items(Joi.string().allow("")),
537
945
  slug: Joi.string().allow(""),
538
946
  version: Joi.number(),
539
947
  });
540
948
  }
949
+
950
+ /** @returns {NextSchedule} */
541
951
  static NextSchedule() {
542
952
  return Joi.object({
543
953
  end: Joi.string().allow(""),
544
954
  start: Joi.string().allow(""),
545
955
  });
546
956
  }
957
+
958
+ /** @returns {Orientation} */
547
959
  static Orientation() {
548
960
  return Joi.object({
549
961
  landscape: Joi.array().items(Joi.string().allow("")),
550
962
  portrait: Joi.array().items(Joi.string().allow("")),
551
963
  });
552
964
  }
965
+
966
+ /** @returns {Page} */
553
967
  static Page() {
554
968
  return Joi.object({
555
969
  current: Joi.number(),
@@ -561,72 +975,35 @@ class ContentModel {
561
975
  type: Joi.string().allow("").required(),
562
976
  });
563
977
  }
564
- static PageContent() {
565
- return Joi.object({
566
- type: Joi.string().allow(""),
567
- value: Joi.any(),
568
- });
569
- }
978
+
979
+ /** @returns {PageGetResponse} */
570
980
  static PageGetResponse() {
571
981
  return Joi.object({
572
- items: Joi.array().items(ContentModel.PageSchema()),
573
- page: ContentModel.Page(),
574
- });
575
- }
576
- static PageMeta() {
577
- return Joi.object({
578
- key: Joi.string().allow(""),
579
- value: Joi.any(),
580
- });
581
- }
582
- static PageMetaSchema() {
583
- return Joi.object({
584
- application_id: Joi.string().allow(""),
585
- custom_pages: Joi.array().items(ContentModel.PageSchema()),
586
- system_pages: Joi.array().items(ContentModel.NavigationSchema()),
587
- });
588
- }
589
- static PagePublishRequest() {
590
- return Joi.object({
591
- publish: Joi.boolean(),
592
- });
593
- }
594
- static PageRequest() {
595
- return Joi.object({
596
- _custom_json: Joi.any(),
597
- _schedule: ContentModel.CronSchedule(),
598
- application: Joi.string().allow(""),
599
- author: ContentModel.Author(),
600
- content: Joi.array().items(Joi.any()),
601
- feature_image: ContentModel.Asset(),
602
- orientation: Joi.string().allow(""),
603
- published: Joi.boolean(),
604
- reading_time: Joi.string().allow(""),
605
- seo: ContentModel.SEO(),
606
- slug: Joi.string().allow(""),
607
- tags: Joi.array().items(Joi.string().allow("")),
608
- title: Joi.string().allow(""),
982
+ items: Joi.array().items(ContentApplicationModel.PageSchema()),
983
+ page: ContentApplicationModel.Page(),
609
984
  });
610
985
  }
986
+
987
+ /** @returns {PageSchema} */
611
988
  static PageSchema() {
612
989
  return Joi.object({
613
990
  _custom_json: Joi.any(),
614
991
  _id: Joi.string().allow(""),
615
- _schedule: ContentModel.ScheduleSchema(),
992
+ _schedule: ContentApplicationModel.ScheduleSchema(),
616
993
  application: Joi.string().allow(""),
617
994
  archived: Joi.boolean(),
618
995
  component_ids: Joi.array().items(Joi.string().allow("")),
619
996
  content: Joi.array().items(Joi.any()),
620
997
  content_path: Joi.string().allow(""),
621
- created_by: ContentModel.CreatedBySchema(),
622
- date_meta: ContentModel.DateMeta(),
998
+ created_by: ContentApplicationModel.CreatedBySchema(),
999
+ date_meta: ContentApplicationModel.DateMeta(),
623
1000
  description: Joi.string().allow(""),
624
- feature_image: ContentModel.Asset(),
1001
+ feature_image: ContentApplicationModel.Asset(),
625
1002
  orientation: Joi.string().allow(""),
626
1003
  page_meta: Joi.array().items(Joi.any()),
627
1004
  platform: Joi.string().allow(""),
628
1005
  published: Joi.boolean(),
629
- seo: ContentModel.SEO(),
1006
+ seo: ContentApplicationModel.SEO(),
630
1007
  slug: Joi.string().allow(""),
631
1008
  tags: Joi.array().items(Joi.string().allow("")),
632
1009
  title: Joi.string().allow(""),
@@ -634,42 +1011,8 @@ class ContentModel {
634
1011
  visibility: Joi.any(),
635
1012
  });
636
1013
  }
637
- static PageSpec() {
638
- return Joi.object({
639
- specifications: Joi.array().items(Joi.any()),
640
- });
641
- }
642
- static PageSpecItem() {
643
- return Joi.object({
644
- display_name: Joi.string().allow(""),
645
- page_type: Joi.string().allow(""),
646
- params: Joi.array().items(ContentModel.PageSpecParam()),
647
- query: Joi.array().items(ContentModel.PageSpecParam()),
648
- });
649
- }
650
- static PageSpecParam() {
651
- return Joi.object({
652
- key: Joi.string().allow(""),
653
- required: Joi.boolean(),
654
- });
655
- }
656
- static PathMappingSchema() {
657
- return Joi.object({
658
- __source: ContentModel.PathSourceSchema(),
659
- _id: Joi.string().allow(""),
660
- application: Joi.string().allow(""),
661
- created_at: Joi.string().allow(""),
662
- redirect_from: Joi.string().allow(""),
663
- redirect_to: Joi.string().allow(""),
664
- updated_at: Joi.string().allow(""),
665
- });
666
- }
667
- static PathSourceSchema() {
668
- return Joi.object({
669
- id: Joi.string().allow(""),
670
- type: Joi.string().allow(""),
671
- });
672
- }
1014
+
1015
+ /** @returns {PhoneProperties} */
673
1016
  static PhoneProperties() {
674
1017
  return Joi.object({
675
1018
  code: Joi.string().allow(""),
@@ -677,83 +1020,94 @@ class ContentModel {
677
1020
  number: Joi.string().allow(""),
678
1021
  });
679
1022
  }
1023
+
1024
+ /** @returns {PhoneSchema} */
680
1025
  static PhoneSchema() {
681
1026
  return Joi.object({
682
1027
  active: Joi.boolean(),
683
- phone: Joi.array().items(ContentModel.PhoneProperties()),
684
- });
685
- }
686
- static RemoveHandpickedSchema() {
687
- return Joi.object({
688
- tags: Joi.array().items(Joi.string().allow("")),
1028
+ phone: Joi.array().items(ContentApplicationModel.PhoneProperties()),
689
1029
  });
690
1030
  }
1031
+
1032
+ /** @returns {ResourceContent} */
691
1033
  static ResourceContent() {
692
1034
  return Joi.object({
693
1035
  type: Joi.string().allow(""),
694
1036
  value: Joi.string().allow(""),
695
1037
  });
696
1038
  }
1039
+
1040
+ /** @returns {ScheduleSchema} */
697
1041
  static ScheduleSchema() {
698
1042
  return Joi.object({
699
1043
  cron: Joi.string().allow(""),
700
1044
  duration: Joi.number(),
701
1045
  end: Joi.string().allow(""),
702
- next_schedule: Joi.array().items(Joi.any()),
1046
+ next_schedule: Joi.array().items(ContentApplicationModel.NextSchedule()),
703
1047
  start: Joi.string().allow(""),
704
1048
  });
705
1049
  }
1050
+
1051
+ /** @returns {ScheduleStartSchema} */
706
1052
  static ScheduleStartSchema() {
707
1053
  return Joi.object({
708
1054
  end: Joi.string().allow(""),
709
1055
  start: Joi.string().allow(""),
710
1056
  });
711
1057
  }
1058
+
1059
+ /** @returns {SEO} */
712
1060
  static SEO() {
713
1061
  return Joi.object({
714
1062
  description: Joi.string().allow(""),
715
- image: ContentModel.SEOImage(),
1063
+ image: ContentApplicationModel.SEOImage(),
716
1064
  title: Joi.string().allow(""),
717
1065
  });
718
1066
  }
1067
+
1068
+ /** @returns {SeoComponent} */
719
1069
  static SeoComponent() {
720
1070
  return Joi.object({
721
- seo: ContentModel.SeoSchema(),
1071
+ seo: ContentApplicationModel.SeoSchema(),
722
1072
  });
723
1073
  }
1074
+
1075
+ /** @returns {SEOImage} */
724
1076
  static SEOImage() {
725
1077
  return Joi.object({
726
1078
  url: Joi.string().allow(""),
727
1079
  });
728
1080
  }
1081
+
1082
+ /** @returns {SeoSchema} */
729
1083
  static SeoSchema() {
730
1084
  return Joi.object({
731
1085
  _id: Joi.string().allow(""),
732
1086
  app: Joi.string().allow(""),
733
1087
  cannonical_enabled: Joi.boolean(),
734
1088
  created_at: Joi.string().allow(""),
735
- custom_meta_tags: Joi.array().items(Joi.any()),
736
- details: ContentModel.Detail(),
1089
+ custom_meta_tags: Joi.array().items(
1090
+ ContentApplicationModel.CustomMetaTag()
1091
+ ),
1092
+ details: ContentApplicationModel.Detail(),
737
1093
  robots_txt: Joi.string().allow(""),
738
1094
  sitemap_enabled: Joi.boolean(),
739
1095
  updated_at: Joi.string().allow(""),
740
1096
  });
741
1097
  }
742
- static Slideshow() {
743
- return Joi.object({
744
- data: ContentModel.SlideshowSchema(),
745
- success: Joi.boolean(),
746
- });
747
- }
1098
+
1099
+ /** @returns {SlideshowGetResponse} */
748
1100
  static SlideshowGetResponse() {
749
1101
  return Joi.object({
750
- items: Joi.array().items(ContentModel.SlideshowSchema()),
751
- page: ContentModel.Page(),
1102
+ items: Joi.array().items(ContentApplicationModel.SlideshowSchema()),
1103
+ page: ContentApplicationModel.Page(),
752
1104
  });
753
1105
  }
1106
+
1107
+ /** @returns {SlideshowMedia} */
754
1108
  static SlideshowMedia() {
755
1109
  return Joi.object({
756
- action: ContentModel.Action(),
1110
+ action: ContentApplicationModel.Action(),
757
1111
  auto_decide_duration: Joi.boolean(),
758
1112
  bg_color: Joi.string().allow(""),
759
1113
  duration: Joi.number(),
@@ -761,15 +1115,8 @@ class ContentModel {
761
1115
  url: Joi.string().allow(""),
762
1116
  });
763
1117
  }
764
- static SlideshowRequest() {
765
- return Joi.object({
766
- active: Joi.boolean(),
767
- configuration: ContentModel.ConfigurationSchema(),
768
- media: ContentModel.SlideshowMedia(),
769
- platform: Joi.string().allow(""),
770
- slug: Joi.string().allow(""),
771
- });
772
- }
1118
+
1119
+ /** @returns {SlideshowSchema} */
773
1120
  static SlideshowSchema() {
774
1121
  return Joi.object({
775
1122
  _custom_json: Joi.any(),
@@ -777,32 +1124,31 @@ class ContentModel {
777
1124
  active: Joi.boolean(),
778
1125
  application: Joi.string().allow(""),
779
1126
  archived: Joi.boolean(),
780
- configuration: ContentModel.ConfigurationSchema(),
781
- date_meta: ContentModel.DateMeta(),
782
- media: Joi.array().items(ContentModel.SlideshowMedia()),
1127
+ configuration: ContentApplicationModel.ConfigurationSchema(),
1128
+ date_meta: ContentApplicationModel.DateMeta(),
1129
+ media: Joi.array().items(ContentApplicationModel.SlideshowMedia()),
783
1130
  platform: Joi.string().allow(""),
784
1131
  slug: Joi.string().allow(""),
785
1132
  });
786
1133
  }
1134
+
1135
+ /** @returns {Support} */
787
1136
  static Support() {
788
1137
  return Joi.object({
789
1138
  _id: Joi.string().allow(""),
790
1139
  application: Joi.string().allow(""),
791
1140
  config_type: Joi.string().allow(""),
792
- contact: ContentModel.ContactSchema(),
1141
+ contact: ContentApplicationModel.ContactSchema(),
793
1142
  created: Joi.boolean(),
794
1143
  created_at: Joi.string().allow(""),
795
1144
  updated_at: Joi.string().allow(""),
796
1145
  });
797
1146
  }
798
- static TagDeleteSuccessResponse() {
799
- return Joi.object({
800
- success: Joi.boolean(),
801
- });
802
- }
1147
+
1148
+ /** @returns {TagSchema} */
803
1149
  static TagSchema() {
804
1150
  return Joi.object({
805
- __source: ContentModel.TagSourceSchema(),
1151
+ __source: ContentApplicationModel.TagSourceSchema(),
806
1152
  _id: Joi.string().allow(""),
807
1153
  attributes: Joi.any(),
808
1154
  content: Joi.string().allow(""),
@@ -814,34 +1160,29 @@ class ContentModel {
814
1160
  url: Joi.string().allow(""),
815
1161
  });
816
1162
  }
1163
+
1164
+ /** @returns {TagSourceSchema} */
817
1165
  static TagSourceSchema() {
818
1166
  return Joi.object({
819
1167
  id: Joi.string().allow(""),
820
1168
  type: Joi.string().allow(""),
821
1169
  });
822
1170
  }
1171
+
1172
+ /** @returns {TagsSchema} */
823
1173
  static TagsSchema() {
824
1174
  return Joi.object({
825
1175
  _id: Joi.string().allow(""),
826
1176
  application: Joi.string().allow(""),
827
- tags: Joi.array().items(ContentModel.TagSchema()),
828
- });
829
- }
830
- static UpdateFaqCategoryRequestSchema() {
831
- return Joi.object({
832
- category: ContentModel.CategorySchema(),
833
- });
834
- }
835
- static UpdateHandpickedSchema() {
836
- return Joi.object({
837
- tag: ContentModel.HandpickedTagSchema(),
1177
+ tags: Joi.array().items(ContentApplicationModel.TagSchema()),
838
1178
  });
839
1179
  }
840
1180
 
841
- /*
842
- Enum: PageType
843
- Used By: Content
844
- */
1181
+ /**
1182
+ * Enum: PageType Used By: Content
1183
+ *
1184
+ * @returns {PageType}
1185
+ */
845
1186
  static PageType() {
846
1187
  return Joi.string().valid(
847
1188
  "about-us",
@@ -938,4 +1279,4 @@ class ContentModel {
938
1279
  );
939
1280
  }
940
1281
  }
941
- module.exports = ContentModel;
1282
+ module.exports = ContentApplicationModel;