@gofynd/fdk-client-javascript 1.4.2-beta.1 → 1.4.2-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -2
  3. package/sdk/application/ApplicationClient.js +20 -0
  4. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  5. package/sdk/application/Cart/CartApplicationClient.js +3 -5
  6. package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
  7. package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
  8. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
  9. package/sdk/application/Cart/CartApplicationValidator.js +0 -4
  10. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
  11. package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
  12. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  13. package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
  14. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
  15. package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
  16. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  17. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  18. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  19. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  20. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
  22. package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
  23. package/sdk/application/Content/ContentApplicationClient.js +0 -246
  24. package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
  25. package/sdk/application/Content/ContentApplicationModel.js +565 -817
  26. package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
  27. package/sdk/application/Content/ContentApplicationValidator.js +0 -41
  28. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  29. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  30. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  31. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  32. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
  33. package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
  34. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
  35. package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
  36. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
  37. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
  38. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  39. package/sdk/application/Order/OrderApplicationClient.js +8 -32
  40. package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
  41. package/sdk/application/Order/OrderApplicationModel.js +816 -824
  42. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
  43. package/sdk/application/Order/OrderApplicationValidator.js +0 -8
  44. package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
  45. package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
  46. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
  47. package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
  48. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
  49. package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
  50. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
  51. package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
  52. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  53. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  54. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  55. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  56. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  57. package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
  58. package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
  59. package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
  60. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
  61. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
  62. package/sdk/application/User/UserApplicationClient.d.ts +0 -33
  63. package/sdk/application/User/UserApplicationClient.js +0 -239
  64. package/sdk/application/User/UserApplicationModel.d.ts +753 -768
  65. package/sdk/application/User/UserApplicationModel.js +731 -755
  66. package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
  67. package/sdk/application/User/UserApplicationValidator.js +0 -36
  68. package/sdk/common/Clickstream.d.ts +1 -0
  69. package/sdk/common/Clickstream.js +254 -0
  70. package/sdk/common/Utility.js +1 -4
  71. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
  72. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
  73. package/sdk/partner/PartnerClient.d.ts +0 -6
  74. package/sdk/partner/PartnerClient.js +0 -9
  75. package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
  76. package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
  77. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
  78. package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
  79. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
  80. package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
  81. package/sdk/partner/index.d.ts +0 -3
  82. package/sdk/partner/index.js +0 -6
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  86. package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
  87. package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
  88. package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
  89. package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
  90. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
  91. package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
  92. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
  94. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
  96. package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
  97. package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
  108. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  109. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
  112. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
  114. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
  115. package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
  121. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  124. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
  125. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
  126. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  127. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  128. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
  129. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
  130. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
  131. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
  132. package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
  133. package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
  134. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
  137. package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
  145. package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
  147. package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
  148. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
  149. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
  150. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  151. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  152. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
  153. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
  154. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
  155. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
  156. package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
  157. package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
  159. package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  161. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  162. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
  163. package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
  164. package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
  165. package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
  166. package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
  167. package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
  168. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  169. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  170. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
  171. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
  172. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
  173. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
  174. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  175. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  176. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
  177. package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
  178. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  179. package/sdk/platform/PlatformApplicationClient.js +4 -4
  180. package/sdk/platform/PlatformClient.d.ts +2 -4
  181. package/sdk/platform/PlatformClient.js +4 -8
  182. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  183. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +989 -1588
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +977 -1695
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
  194. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  195. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  196. package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
  197. package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
  198. package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
  199. package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
  200. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
  201. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
  202. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
  203. package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
  204. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
  205. package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
  206. package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
  207. package/sdk/platform/User/UserPlatformModel.js +428 -679
  208. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
  209. package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
  210. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
  211. package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
  212. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
  213. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  214. package/sdk/platform/index.d.ts +1 -1
  215. package/sdk/platform/index.js +2 -2
  216. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  217. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  218. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  219. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  220. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  221. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  222. package/sdk/public/PublicClient.d.ts +0 -4
  223. package/sdk/public/PublicClient.js +0 -8
  224. package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
  225. package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
  226. package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
  227. package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
  228. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
  229. package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
  230. package/sdk/public/index.d.ts +0 -2
  231. package/sdk/public/index.js +0 -4
  232. package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
  233. package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
  234. package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
  235. package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
  236. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
  237. package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
  238. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
  239. package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
  240. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
  241. package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
  242. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
  243. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
  244. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
  245. package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
  246. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
  247. package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
  248. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
  249. package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
  250. package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
  251. package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
  252. package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
  253. package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
  254. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
  255. package/sdk/public/Billing/BillingPublicClient.js +0 -116
  256. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
  257. package/sdk/public/Billing/BillingPublicModel.js +0 -96
  258. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
  259. package/sdk/public/Billing/BillingPublicValidator.js +0 -19
  260. package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
  261. package/sdk/public/Content/ContentPublicClient.js +0 -114
  262. package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
  263. package/sdk/public/Content/ContentPublicModel.js +0 -60
  264. package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
  265. package/sdk/public/Content/ContentPublicValidator.js +0 -19
@@ -1,39 +1,85 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef Action
5
- * @property {ActionPage} [page]
6
- * @property {ActionPage} [popup]
4
+ * @typedef GenerateSEOContent
5
+ * @property {string} [text]
6
+ * @property {string} [existing_text]
7
+ * @property {string[]} [keywords]
7
8
  * @property {string} [type]
8
9
  */
9
10
 
10
11
  /**
11
- * @typedef ActionPage
12
- * @property {Object} [params]
13
- * @property {Object} [query]
14
- * @property {PageType} type
15
- * @property {string} [url]
12
+ * @typedef GeneratedSEOContent
13
+ * @property {string} [title]
14
+ * @property {string} [description]
16
15
  */
17
16
 
18
17
  /**
19
- * @typedef AdminAnnouncementSchema
18
+ * @typedef ApplicationLegal
19
+ * @property {string} [application]
20
+ * @property {string} [tnc]
21
+ * @property {string} [policy]
22
+ * @property {string} [shipping]
23
+ * @property {string} [returns]
24
+ * @property {ApplicationLegalFAQ[]} [faq]
20
25
  * @property {string} [_id]
21
- * @property {ScheduleSchema} [_schedule]
22
- * @property {string} [announcement]
26
+ * @property {string} [updated_at]
27
+ * @property {string} [created_at]
28
+ */
29
+
30
+ /**
31
+ * @typedef ApplicationLegalFAQ
32
+ * @property {string} [question]
33
+ * @property {string} [answer]
34
+ */
35
+
36
+ /**
37
+ * @typedef PathMappingSchema
38
+ * @property {string} [application]
39
+ * @property {string} [_id]
40
+ * @property {string} [redirect_from]
41
+ * @property {string} [redirect_to]
42
+ * @property {string} [updated_at]
43
+ * @property {string} [created_at]
44
+ * @property {PathSourceSchema} [__source]
45
+ */
46
+
47
+ /**
48
+ * @typedef PathSourceSchema
49
+ * @property {string} [type]
50
+ * @property {string} [id]
51
+ */
52
+
53
+ /**
54
+ * @typedef SeoComponent
55
+ * @property {SeoSchema} [seo]
56
+ */
57
+
58
+ /**
59
+ * @typedef SeoSchema
23
60
  * @property {string} [app]
24
- * @property {AnnouncementAuthorSchema} [author]
61
+ * @property {string} [_id]
62
+ * @property {string} [robots_txt]
63
+ * @property {boolean} [sitemap_enabled]
64
+ * @property {boolean} [cannonical_enabled]
65
+ * @property {CustomMetaTag[]} [custom_meta_tags]
66
+ * @property {Detail} [details]
25
67
  * @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]
68
+ * @property {string} [updated_at]
31
69
  */
32
70
 
33
71
  /**
34
- * @typedef AnnouncementAuthorSchema
35
- * @property {string} [created_by]
36
- * @property {string} [modified_by]
72
+ * @typedef CustomMetaTag
73
+ * @property {string} [name]
74
+ * @property {string} [content]
75
+ * @property {string} [_id]
76
+ */
77
+
78
+ /**
79
+ * @typedef Detail
80
+ * @property {string} [title]
81
+ * @property {string} [description]
82
+ * @property {string} [image_url]
37
83
  */
38
84
 
39
85
  /**
@@ -43,22 +89,59 @@ const Joi = require("joi");
43
89
  */
44
90
 
45
91
  /**
46
- * @typedef ApplicationLegal
92
+ * @typedef EditorMeta
93
+ * @property {string} [foreground_color]
94
+ * @property {string} [background_color]
95
+ * @property {string} [content_type]
96
+ * @property {string} [content]
97
+ */
98
+
99
+ /**
100
+ * @typedef AnnouncementAuthorSchema
101
+ * @property {string} [created_by]
102
+ * @property {string} [modified_by]
103
+ */
104
+
105
+ /**
106
+ * @typedef AdminAnnouncementSchema
47
107
  * @property {string} [_id]
48
- * @property {string} [application]
108
+ * @property {string[]} [platforms]
109
+ * @property {string} [title]
110
+ * @property {string} [announcement]
111
+ * @property {AnnouncementPageSchema[]} [pages]
112
+ * @property {EditorMeta} [editor_meta]
113
+ * @property {AnnouncementAuthorSchema} [author]
49
114
  * @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]
115
+ * @property {string} [app]
116
+ * @property {string} [modified_at]
117
+ * @property {ScheduleSchema} [_schedule]
56
118
  */
57
119
 
58
120
  /**
59
- * @typedef ApplicationLegalFAQ
60
- * @property {string} [answer]
61
- * @property {string} [question]
121
+ * @typedef ScheduleSchema
122
+ * @property {string} [cron]
123
+ * @property {string} [start]
124
+ * @property {string} [end]
125
+ * @property {number} [duration]
126
+ * @property {NextSchedule[]} [next_schedule]
127
+ */
128
+
129
+ /**
130
+ * @typedef NextSchedule
131
+ * @property {string} [start]
132
+ * @property {string} [end]
133
+ */
134
+
135
+ /**
136
+ * @typedef BlogGetResponse
137
+ * @property {BlogSchema[]} [items]
138
+ * @property {Page} [page]
139
+ */
140
+
141
+ /**
142
+ * @typedef ResourceContent
143
+ * @property {string} [type]
144
+ * @property {string} [value]
62
145
  */
63
146
 
64
147
  /**
@@ -76,608 +159,546 @@ const Joi = require("joi");
76
159
  */
77
160
 
78
161
  /**
79
- * @typedef BlogGetResponse
80
- * @property {BlogSchema[]} [items]
81
- * @property {Page} [page]
82
- */
83
-
84
- /**
85
- * @typedef BlogRequest
162
+ * @typedef BlogSchema
163
+ * @property {string} [_id]
86
164
  * @property {Object} [_custom_json]
87
- * @property {CronSchedule} [_schedule]
88
165
  * @property {string} [application]
166
+ * @property {boolean} [archived]
89
167
  * @property {Author} [author]
90
168
  * @property {ResourceContent[]} [content]
91
169
  * @property {Asset} [feature_image]
92
170
  * @property {boolean} [published]
93
171
  * @property {string} [reading_time]
94
- * @property {SEO} [seo]
95
172
  * @property {string} [slug]
96
173
  * @property {string[]} [tags]
174
+ * @property {SEO} [seo]
175
+ * @property {CronSchedule} [_schedule]
97
176
  * @property {string} [title]
177
+ * @property {DateMeta} [date_meta]
98
178
  */
99
179
 
100
180
  /**
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]
181
+ * @typedef SEO
182
+ * @property {string} [description]
183
+ * @property {SEOImage} [image]
116
184
  * @property {string} [title]
117
185
  */
118
186
 
119
187
  /**
120
- * @typedef BooleanType
121
- * @property {string} [category]
122
- * @property {boolean} [list_enabled]
123
- * @property {string} [name]
124
- * @property {SupportedValidationsSchema[]} [supported_validations]
125
- * @property {string} [type]
188
+ * @typedef SEOImage
189
+ * @property {string} [url]
126
190
  */
127
191
 
128
192
  /**
129
- * @typedef CategoryRequestSchema
130
- * @property {string} [slug]
131
- * @property {string} [title]
193
+ * @typedef DateMeta
194
+ * @property {string} [created_on]
195
+ * @property {string} [modified_on]
132
196
  */
133
197
 
134
198
  /**
135
- * @typedef CategorySchema
136
- * @property {Object} [_custom_json]
137
- * @property {string} [_id]
199
+ * @typedef BlogRequest
138
200
  * @property {string} [application]
139
- * @property {string[]} [children]
140
- * @property {string} [description]
141
- * @property {string} [icon_url]
142
- * @property {number} [index]
201
+ * @property {Object} [_custom_json]
202
+ * @property {Author} [author]
203
+ * @property {ResourceContent[]} [content]
204
+ * @property {Asset} [feature_image]
205
+ * @property {boolean} [published]
206
+ * @property {string} [reading_time]
143
207
  * @property {string} [slug]
208
+ * @property {string[]} [tags]
144
209
  * @property {string} [title]
210
+ * @property {SEO} [seo]
211
+ * @property {CronSchedule} [_schedule]
145
212
  */
146
213
 
147
214
  /**
148
- * @typedef ChildrenSchema
149
- * @property {string} [_id]
150
- * @property {string} [answer]
151
- * @property {string} [application]
152
- * @property {string} [question]
153
- * @property {string} [slug]
215
+ * @typedef GetAnnouncementListSchema
216
+ * @property {AdminAnnouncementSchema[]} [items]
217
+ * @property {Page} [page]
154
218
  */
155
219
 
156
220
  /**
157
- * @typedef CommonError
221
+ * @typedef CreateAnnouncementSchema
158
222
  * @property {string} [message]
223
+ * @property {AdminAnnouncementSchema} [data]
159
224
  */
160
225
 
161
226
  /**
162
- * @typedef ConfigurationSchema
163
- * @property {number} [duration]
164
- * @property {number} [sleep_time]
165
- * @property {string} [slide_direction]
166
- * @property {boolean} [start_on_launch]
227
+ * @typedef DataLoaderResponseSchema
228
+ * @property {string} [application]
229
+ * @property {string} [company]
230
+ * @property {string} [_id]
231
+ * @property {string} [name]
232
+ * @property {string} [service]
233
+ * @property {string} [operation_id]
234
+ * @property {string} [type]
235
+ * @property {string} [url]
236
+ * @property {string} [content]
237
+ * @property {DataLoaderSourceSchema} [__source]
167
238
  */
168
239
 
169
240
  /**
170
- * @typedef ContactSchema
171
- * @property {EmailSchema} [email]
172
- * @property {PhoneSchema} [phone]
241
+ * @typedef DataLoaderResetResponseSchema
242
+ * @property {boolean} [reset]
173
243
  */
174
244
 
175
245
  /**
176
- * @typedef ContentAPIError
177
- * @property {string} [code]
178
- * @property {string} [exception]
179
- * @property {string} [info]
180
- * @property {string} [message]
181
- * @property {Object} [meta]
182
- * @property {string} [request_id]
183
- * @property {string} [stack_trace]
184
- * @property {number} [status]
246
+ * @typedef LocaleLanguage
247
+ * @property {Language} [hi]
248
+ * @property {Language} [ar]
249
+ * @property {Language} [en_us]
185
250
  */
186
251
 
187
252
  /**
188
- * @typedef CreateAnnouncementSchema
189
- * @property {AdminAnnouncementSchema} [data]
190
- * @property {string} [message]
253
+ * @typedef Language
254
+ * @property {string} [display]
191
255
  */
192
256
 
193
257
  /**
194
- * @typedef CreatedBySchema
195
- * @property {string} [id]
258
+ * @typedef Action
259
+ * @property {ActionPage} [page]
260
+ * @property {ActionPage} [popup]
261
+ * @property {string} [type]
196
262
  */
197
263
 
198
264
  /**
199
- * @typedef CreateFaqCategoryRequestSchema
200
- * @property {CategoryRequestSchema} [category]
265
+ * @typedef ActionPage
266
+ * @property {Object} [params]
267
+ * @property {Object} [query]
268
+ * @property {string} [url]
269
+ * @property {PageType} type
201
270
  */
202
271
 
203
272
  /**
204
- * @typedef CreateFaqCategorySchema
205
- * @property {CategorySchema} [category]
273
+ * @typedef NavigationReference
274
+ * @property {string[]} [acl]
275
+ * @property {string[]} [tags]
276
+ * @property {LocaleLanguage} [_locale_language]
277
+ * @property {string} [image]
278
+ * @property {string} [type]
279
+ * @property {Action} [action]
280
+ * @property {boolean} [active]
281
+ * @property {string} [display]
282
+ * @property {number} [sort_order]
283
+ * @property {NavigationReference[]} [sub_navigation]
206
284
  */
207
285
 
208
286
  /**
209
- * @typedef CreateFaqResponseSchema
210
- * @property {FaqSchema} [faq]
287
+ * @typedef ConfigurationSchema
288
+ * @property {number} [sleep_time]
289
+ * @property {boolean} [start_on_launch]
290
+ * @property {number} [duration]
291
+ * @property {string} [slide_direction]
211
292
  */
212
293
 
213
294
  /**
214
- * @typedef CreateFaqSchema
215
- * @property {FAQ} [faq]
295
+ * @typedef SlideshowMedia
296
+ * @property {string} [type]
297
+ * @property {string} [url]
298
+ * @property {string} [bg_color]
299
+ * @property {number} [duration]
300
+ * @property {boolean} [auto_decide_duration]
301
+ * @property {Action} [action]
216
302
  */
217
303
 
218
304
  /**
219
- * @typedef CreateTagRequestSchema
220
- * @property {CreateTagSchema[]} [tags]
305
+ * @typedef UpdateHandpickedSchema
306
+ * @property {HandpickedTagSchema} [tag]
221
307
  */
222
308
 
223
309
  /**
224
- * @typedef CreateTagSchema
225
- * @property {string} [_id]
310
+ * @typedef HandpickedTagSchema
311
+ * @property {string} [position]
226
312
  * @property {Object} [attributes]
227
- * @property {string} [content]
228
313
  * @property {string} [name]
229
- * @property {Object[]} [pages]
230
- * @property {string} [position]
231
- * @property {string} [sub_type]
232
- * @property {string} [type]
233
314
  * @property {string} [url]
315
+ * @property {string} [type]
316
+ * @property {string} [sub_type]
317
+ * @property {string} [content]
234
318
  */
235
319
 
236
320
  /**
237
- * @typedef CronSchedule
238
- * @property {string} [cron]
239
- * @property {number} [duration]
240
- * @property {string} [end]
241
- * @property {string} [start]
321
+ * @typedef RemoveHandpickedSchema
322
+ * @property {string[]} [tags]
242
323
  */
243
324
 
244
325
  /**
245
- * @typedef CustomDataDeleteSchema
246
- * @property {string} [message]
247
- * @property {boolean} [success]
326
+ * @typedef CreateTagSchema
327
+ * @property {string} [name]
328
+ * @property {string} [sub_type]
329
+ * @property {string} [_id]
330
+ * @property {string} [type]
331
+ * @property {string} [url]
332
+ * @property {string} [position]
333
+ * @property {Object} [attributes]
334
+ * @property {Object[]} [pages]
335
+ * @property {string} [content]
248
336
  */
249
337
 
250
338
  /**
251
- * @typedef CustomField
252
- * @property {string} [definition_id]
253
- * @property {Object[]} [value]
339
+ * @typedef CreateTagRequestSchema
340
+ * @property {CreateTagSchema[]} [tags]
254
341
  */
255
342
 
256
343
  /**
257
- * @typedef CustomFieldDefinitionDetailResSchema
258
- * @property {string} [_id]
259
- * @property {string} [application_id]
260
- * @property {string} [company_id]
261
- * @property {string} [created_at]
262
- * @property {string} [created_by]
263
- * @property {string} [creator]
264
- * @property {string} [description]
265
- * @property {boolean} [is_deleted]
266
- * @property {string} [key]
267
- * @property {boolean} [multi_value]
344
+ * @typedef DataLoaderSchema
268
345
  * @property {string} [name]
269
- * @property {string} [namespace]
270
- * @property {boolean} [required]
271
- * @property {string} [resource]
346
+ * @property {string} [service]
347
+ * @property {string} [operation_id]
272
348
  * @property {string} [type]
273
- * @property {string} [updated_at]
274
- * @property {string} [updated_by]
275
- * @property {Object[]} [validations]
349
+ * @property {string} [url]
350
+ * @property {string} [content]
351
+ * @property {DataLoaderSourceSchema} [__source]
352
+ * @property {string} [_id]
276
353
  */
277
354
 
278
355
  /**
279
- * @typedef CustomFieldDefinitionRequestSchema
280
- * @property {string} [description]
281
- * @property {string} [key]
282
- * @property {boolean} [multi_value]
283
- * @property {string} [name]
284
- * @property {string} [namespace]
285
- * @property {string} [resource]
356
+ * @typedef DataLoaderSourceSchema
286
357
  * @property {string} [type]
287
- * @property {FieldValidations[]} [validations]
358
+ * @property {string} [id]
288
359
  */
289
360
 
290
361
  /**
291
- * @typedef CustomFieldDefinitionsSchema
292
- * @property {FieldDefinitionSchema[]} [items]
293
- * @property {Page} [page]
362
+ * @typedef DataLoadersSchema
363
+ * @property {DataLoaderSchema[]} [items]
294
364
  */
295
365
 
296
366
  /**
297
- * @typedef CustomFieldRequestSchema
298
- * @property {CustomField[]} [fields]
367
+ * @typedef TagDeleteSuccessResponse
368
+ * @property {boolean} [success]
299
369
  */
300
370
 
301
371
  /**
302
- * @typedef CustomFieldSchema
303
- * @property {string} [_id]
304
- * @property {string} [company_id]
305
- * @property {string} [created_at]
306
- * @property {string} [created_by]
307
- * @property {string} [creator]
308
- * @property {string} [definition_id]
309
- * @property {boolean} [has_invalid_values]
310
- * @property {Object[]} [invalid_value_errors]
311
- * @property {boolean} [is_deleted]
312
- * @property {string} [key]
313
- * @property {boolean} [multi_value]
314
- * @property {string} [namespace]
315
- * @property {string} [resource]
316
- * @property {string} [resource_id]
317
- * @property {string} [type]
318
- * @property {string} [updated_at]
319
- * @property {CustomFieldValue[]} [value]
372
+ * @typedef ContentAPIError
373
+ * @property {string} [message]
374
+ * @property {number} [status]
375
+ * @property {string} [code]
376
+ * @property {string} [exception]
377
+ * @property {string} [info]
378
+ * @property {string} [request_id]
379
+ * @property {string} [stack_trace]
380
+ * @property {Object} [meta]
320
381
  */
321
382
 
322
383
  /**
323
- * @typedef CustomFieldsResponseByResourceIdSchema
324
- * @property {CustomFieldSchema[]} [items]
384
+ * @typedef CommonError
385
+ * @property {string} [message]
325
386
  */
326
387
 
327
388
  /**
328
- * @typedef CustomFieldsResponseSchema
329
- * @property {CustomFieldSchema[]} [items]
330
- * @property {Page} [page]
389
+ * @typedef CategorySchema
390
+ * @property {number} [index]
391
+ * @property {string} [title]
392
+ * @property {string} [description]
393
+ * @property {string[]} [children]
394
+ * @property {string} [_id]
395
+ * @property {string} [slug]
396
+ * @property {string} [application]
397
+ * @property {string} [icon_url]
398
+ * @property {Object} [_custom_json]
331
399
  */
332
400
 
333
401
  /**
334
- * @typedef CustomFieldTypeSchema
335
- * @property {BooleanType} [boolean_type]
336
- * @property {Date} [date]
337
- * @property {Datetime} [datetime]
338
- * @property {Dropdown} [dropdown]
339
- * @property {File} [file]
340
- * @property {FloatType} [float_type]
341
- * @property {Integer} [integer]
342
- * @property {Json} [json]
343
- * @property {Metaobject} [metaobject]
344
- * @property {Product} [product]
345
- * @property {StringMultiLine} [string_multi_line]
346
- * @property {StringSingleLine} [string_single_line]
347
- * @property {Url} [url]
402
+ * @typedef ChildrenSchema
403
+ * @property {string} [question]
404
+ * @property {string} [answer]
405
+ * @property {string} [slug]
406
+ * @property {string} [application]
407
+ * @property {string} [_id]
348
408
  */
349
409
 
350
410
  /**
351
- * @typedef CustomFieldValue
352
- * @property {Object} [value]
411
+ * @typedef CategoryRequestSchema
412
+ * @property {string} [slug]
413
+ * @property {string} [title]
353
414
  */
354
415
 
355
416
  /**
356
- * @typedef CustomMetaTag
417
+ * @typedef FAQCategorySchema
418
+ * @property {number} [index]
419
+ * @property {string} [title]
420
+ * @property {string} [description]
421
+ * @property {ChildrenSchema[]} [children]
357
422
  * @property {string} [_id]
358
- * @property {string} [content]
359
- * @property {string} [name]
423
+ * @property {string} [slug]
424
+ * @property {string} [application]
425
+ * @property {string} [icon_url]
426
+ * @property {Object} [_custom_json]
360
427
  */
361
428
 
362
429
  /**
363
- * @typedef CustomObjectBulkEntry
364
- * @property {CustomObjectJobSchema[]} [items]
365
- * @property {Page} [page]
430
+ * @typedef FaqSchema
431
+ * @property {string} [slug]
432
+ * @property {string} [application]
433
+ * @property {string} [_id]
434
+ * @property {string} [question]
435
+ * @property {string} [answer]
436
+ * @property {string[]} [tags]
366
437
  */
367
438
 
368
439
  /**
369
- * @typedef CustomObjectBulkEntryInitiateDownload
370
- * @property {string} [message]
371
- * @property {string} [task_id]
440
+ * @typedef FAQ
441
+ * @property {string} [slug]
442
+ * @property {string} [question]
443
+ * @property {string} [answer]
372
444
  */
373
445
 
374
446
  /**
375
- * @typedef CustomObjectBulkSchema
376
- * @property {number} [total_records]
377
- * @property {string} [url]
447
+ * @typedef CreateFaqResponseSchema
448
+ * @property {FaqSchema} [faq]
378
449
  */
379
450
 
380
451
  /**
381
- * @typedef CustomObjectByIdSchema
382
- * @property {string} [_id]
383
- * @property {CustomObjectListItemDefinationSchema} [definition]
384
- * @property {string} [display_name]
385
- * @property {CustomObjectFieldSchema[]} [fields]
386
- * @property {Object[]} [references]
387
- * @property {string} [status]
452
+ * @typedef CreateFaqSchema
453
+ * @property {FAQ} [faq]
388
454
  */
389
455
 
390
456
  /**
391
- * @typedef CustomObjectCustomFieldDefinitionResSchema
392
- * @property {string} [_id]
393
- * @property {string} [company_id]
394
- * @property {string} [created_at]
395
- * @property {string} [created_by]
396
- * @property {string} [creator]
397
- * @property {string} [description]
398
- * @property {boolean} [is_deleted]
399
- * @property {string} [key]
400
- * @property {string} [metaobject_definition_id]
401
- * @property {boolean} [multi_value]
402
- * @property {string} [name]
403
- * @property {string} [namespace]
404
- * @property {boolean} [required]
405
- * @property {string} [resource]
406
- * @property {string} [type]
407
- * @property {string} [updated_at]
408
- * @property {FieldValidations[]} [validations]
457
+ * @typedef GetFaqSchema
458
+ * @property {FaqSchema[]} [faqs]
409
459
  */
410
460
 
411
461
  /**
412
- * @typedef CustomObjectCustomFieldDefinitions
413
- * @property {string} [action]
414
- * @property {string} [description]
415
- * @property {string} [id]
416
- * @property {string} [key]
417
- * @property {boolean} [multi_value]
418
- * @property {string} [name]
419
- * @property {boolean} [required]
420
- * @property {string} [type]
421
- * @property {FieldValidations[]} [validations]
462
+ * @typedef UpdateFaqCategoryRequestSchema
463
+ * @property {CategorySchema} [category]
422
464
  */
423
465
 
424
466
  /**
425
- * @typedef CustomObjectDefinitionDeleteResponseSchema
426
- * @property {string} [message]
427
- * @property {boolean} [success]
467
+ * @typedef CreateFaqCategoryRequestSchema
468
+ * @property {CategoryRequestSchema} [category]
428
469
  */
429
470
 
430
471
  /**
431
- * @typedef CustomObjectDefinitionRequestSchema
432
- * @property {string} [description]
433
- * @property {string} [display_name_key]
434
- * @property {CustomObjectCustomFieldDefinitions[]} [field_definitions]
435
- * @property {string} [name]
436
- * @property {string} [type]
472
+ * @typedef CreateFaqCategorySchema
473
+ * @property {CategorySchema} [category]
437
474
  */
438
475
 
439
476
  /**
440
- * @typedef CustomObjectDefinitionSchema
441
- * @property {string} [_id]
442
- * @property {string} [created_by]
443
- * @property {string} [creator]
444
- * @property {string} [description]
445
- * @property {string} [display_name_key]
446
- * @property {CustomObjectCustomFieldDefinitionResSchema[]} [field_definitions]
447
- * @property {string} [name]
448
- * @property {string} [type]
449
- * @property {string} [updated_by]
477
+ * @typedef GetFaqCategoriesSchema
478
+ * @property {CategorySchema[]} [categories]
450
479
  */
451
480
 
452
481
  /**
453
- * @typedef CustomObjectDefinitionsSchema
454
- * @property {CustomObjectEntry[]} [items]
455
- * @property {Page} [page]
482
+ * @typedef GetFaqCategoryBySlugSchema
483
+ * @property {FAQCategorySchema} [category]
456
484
  */
457
485
 
458
486
  /**
459
- * @typedef CustomObjectDefinitionUpdateRequestSchema
460
- * @property {string} [description]
461
- * @property {string} [display_name_key]
462
- * @property {CustomObjectCustomFieldDefinitions[]} [field_definitions]
463
- * @property {string} [name]
464
- * @property {string} [type]
487
+ * @typedef Page
488
+ * @property {number} [item_total]
489
+ * @property {string} [next_id]
490
+ * @property {boolean} [has_previous]
491
+ * @property {boolean} [has_next]
492
+ * @property {number} [current]
493
+ * @property {string} type
494
+ * @property {number} [size]
465
495
  */
466
496
 
467
497
  /**
468
- * @typedef CustomObjectEntry
469
- * @property {string} [_id]
470
- * @property {number} [entries_count]
471
- * @property {number} [fields_count]
472
- * @property {string} [name]
473
- * @property {string} [type]
474
- * @property {string} [updated_at]
498
+ * @typedef LandingPageGetResponse
499
+ * @property {LandingPageSchema[]} [items]
500
+ * @property {Page} [page]
475
501
  */
476
502
 
477
503
  /**
478
- * @typedef CustomObjectEntryBulkUploadResponse
479
- * @property {number} [total_records]
480
- * @property {string} [url]
504
+ * @typedef LandingPageSchema
505
+ * @property {string} [slug]
506
+ * @property {Action} [action]
507
+ * @property {string[]} [platform]
508
+ * @property {CreatedBySchema} [created_by]
509
+ * @property {DateMeta} [date_meta]
510
+ * @property {string} [_id]
511
+ * @property {string} [application]
512
+ * @property {boolean} [archived]
513
+ * @property {Object} [_custom_json]
481
514
  */
482
515
 
483
516
  /**
484
- * @typedef CustomObjectEntryFieldSchema
485
- * @property {string} [definition_id]
486
- * @property {Object[]} [value]
517
+ * @typedef DefaultNavigationResponse
518
+ * @property {NavigationSchema[]} [items]
487
519
  */
488
520
 
489
521
  /**
490
- * @typedef CustomObjectFieldSchema
491
- * @property {string} [_id]
492
- * @property {string} [definition_id]
493
- * @property {string} [key]
494
- * @property {string} [type]
495
- * @property {Object[]} [value]
522
+ * @typedef NavigationGetResponse
523
+ * @property {NavigationSchema[]} [items]
524
+ * @property {Page} [page]
496
525
  */
497
526
 
498
527
  /**
499
- * @typedef CustomObjectJobSchema
500
- * @property {string} [_id]
501
- * @property {string} [action_type]
502
- * @property {string} [company_id]
503
- * @property {string} [created_at]
504
- * @property {string} [created_by]
505
- * @property {string} [creator]
506
- * @property {string} [entity]
507
- * @property {number} [error_count]
508
- * @property {string[]} [error_jobs]
509
- * @property {string} [error_url]
510
- * @property {string[]} [errors_occured]
511
- * @property {number} [finished_count]
512
- * @property {string[]} [finished_jobs]
513
- * @property {string[]} [jobs]
514
- * @property {CustomObjectMetaSchema} [meta]
515
- * @property {string} [status]
516
- * @property {number} [success_count]
517
- * @property {number} [total_jobs]
518
- * @property {string} [updated_at]
519
- * @property {string} [url]
528
+ * @typedef Orientation
529
+ * @property {string[]} [portrait]
530
+ * @property {string[]} [landscape]
520
531
  */
521
532
 
522
533
  /**
523
- * @typedef CustomObjectListItemDefinationSchema
534
+ * @typedef NavigationSchema
524
535
  * @property {string} [_id]
536
+ * @property {string} [application]
537
+ * @property {boolean} [archived]
525
538
  * @property {string} [name]
526
- * @property {string} [type]
527
- */
528
-
529
- /**
530
- * @typedef CustomObjectListItemSchema
531
- * @property {string} [_id]
532
- * @property {CustomObjectListItemDefinationSchema} [definition]
533
- * @property {string} [definition_id]
534
- * @property {string} [display_name]
535
- * @property {number} [references]
536
- * @property {string} [status]
537
- * @property {string} [updated_at]
539
+ * @property {string} [slug]
540
+ * @property {string[]} [platform]
541
+ * @property {CreatedBySchema} [created_by]
542
+ * @property {DateMeta} [date_meta]
543
+ * @property {Orientation} [orientation]
544
+ * @property {number} [version]
545
+ * @property {NavigationReference[]} [navigation]
538
546
  */
539
547
 
540
548
  /**
541
- * @typedef CustomObjectMetaSchema
542
- * @property {string} [mo_defintion_type]
543
- * @property {number} [mo_error_count]
544
- * @property {number} [mo_success_count]
545
- * @property {number} [mo_total_count]
549
+ * @typedef NavigationRequest
550
+ * @property {string} [name]
551
+ * @property {string} [slug]
552
+ * @property {string[]} [platform]
553
+ * @property {Orientation} [orientation]
554
+ * @property {NavigationReference[]} [navigation]
546
555
  */
547
556
 
548
557
  /**
549
- * @typedef CustomObjectRequestSchema
550
- * @property {string} [definition_id]
551
- * @property {CustomObjectEntryFieldSchema[]} [fields]
552
- * @property {string} [status]
558
+ * @typedef PageGetResponse
559
+ * @property {PageSchema[]} [items]
560
+ * @property {Page} [page]
553
561
  */
554
562
 
555
563
  /**
556
- * @typedef CustomObjectSchema
557
- * @property {string} [_id]
558
- * @property {string} [application_id]
559
- * @property {string} [company_id]
560
- * @property {string} [created_by]
561
- * @property {string} [creator]
562
- * @property {string} [definition_id]
563
- * @property {string} [display_name]
564
- * @property {CustomFieldSchema[]} [fields]
565
- * @property {string} [status]
566
- * @property {string} [type]
567
- * @property {string} [updated_by]
564
+ * @typedef PageSpec
565
+ * @property {PageSpecItem[]} [specifications]
568
566
  */
569
567
 
570
568
  /**
571
- * @typedef CustomObjectsSchema
572
- * @property {CustomObjectListItemSchema[]} [items]
573
- * @property {Page} [page]
569
+ * @typedef PageSpecParam
570
+ * @property {string} [key]
571
+ * @property {boolean} [required]
574
572
  */
575
573
 
576
574
  /**
577
- * @typedef DataLoaderResetResponseSchema
578
- * @property {boolean} [reset]
575
+ * @typedef PageSpecItem
576
+ * @property {string} [page_type]
577
+ * @property {string} [display_name]
578
+ * @property {PageSpecParam[]} [params]
579
+ * @property {PageSpecParam[]} [query]
579
580
  */
580
581
 
581
582
  /**
582
- * @typedef DataLoaderResponseSchema
583
- * @property {DataLoaderSourceSchema} [__source]
583
+ * @typedef PageSchema
584
584
  * @property {string} [_id]
585
585
  * @property {string} [application]
586
- * @property {string} [company]
587
- * @property {string} [content]
588
- * @property {string} [name]
589
- * @property {string} [operation_id]
590
- * @property {string} [service]
591
- * @property {string} [type]
592
- * @property {string} [url]
593
- */
594
-
595
- /**
596
- * @typedef DataLoaderSchema
597
- * @property {DataLoaderSourceSchema} [__source]
598
- * @property {string} [_id]
599
- * @property {string} [content]
600
- * @property {string} [name]
601
- * @property {string} [operation_id]
602
- * @property {string} [service]
586
+ * @property {string[]} [component_ids] - Components can be used to store
587
+ * multiple components
588
+ * @property {Object[]} [content]
589
+ * @property {string} [content_path]
590
+ * @property {CreatedBySchema} [created_by]
591
+ * @property {DateMeta} [date_meta]
592
+ * @property {string} [description]
593
+ * @property {Asset} [feature_image]
594
+ * @property {Object[]} [page_meta]
595
+ * @property {ScheduleSchema} [_schedule]
596
+ * @property {Object} [_custom_json]
597
+ * @property {string} [orientation]
598
+ * @property {string} [platform]
599
+ * @property {boolean} [published]
600
+ * @property {string} [slug]
601
+ * @property {string[]} [tags]
602
+ * @property {string} [title]
603
603
  * @property {string} [type]
604
- * @property {string} [url]
604
+ * @property {SEO} [seo]
605
+ * @property {Object} [visibility]
606
+ * @property {boolean} [archived]
605
607
  */
606
608
 
607
609
  /**
608
- * @typedef DataLoaderSourceSchema
610
+ * @typedef CreatedBySchema
609
611
  * @property {string} [id]
610
- * @property {string} [type]
611
612
  */
612
613
 
613
614
  /**
614
- * @typedef DataLoadersSchema
615
- * @property {DataLoaderSchema[]} [items]
615
+ * @typedef PageRequest
616
+ * @property {CronSchedule} [_schedule]
617
+ * @property {string} [application]
618
+ * @property {Author} [author]
619
+ * @property {Object} [_custom_json]
620
+ * @property {string} [orientation]
621
+ * @property {Object[]} [content]
622
+ * @property {Asset} [feature_image]
623
+ * @property {boolean} [published]
624
+ * @property {string} [reading_time]
625
+ * @property {string} [slug]
626
+ * @property {string[]} [tags]
627
+ * @property {SEO} [seo]
628
+ * @property {string} [title]
616
629
  */
617
630
 
618
631
  /**
619
- * @typedef Date
620
- * @property {string} [category]
621
- * @property {boolean} [list_enabled]
622
- * @property {string} [name]
623
- * @property {SupportedValidationsSchema[]} [supported_validations]
624
- * @property {string} [type]
632
+ * @typedef CronSchedule
633
+ * @property {string} [cron]
634
+ * @property {string} [start]
635
+ * @property {string} [end]
636
+ * @property {number} [duration]
625
637
  */
626
638
 
627
639
  /**
628
- * @typedef DateMeta
629
- * @property {string} [created_on]
630
- * @property {string} [modified_on]
640
+ * @typedef PagePublishRequest
641
+ * @property {boolean} [publish]
631
642
  */
632
643
 
633
644
  /**
634
- * @typedef Datetime
635
- * @property {string} [category]
636
- * @property {boolean} [list_enabled]
637
- * @property {string} [name]
638
- * @property {SupportedValidationsSchema[]} [supported_validations]
639
- * @property {string} [type]
645
+ * @typedef PageMetaSchema
646
+ * @property {NavigationSchema[]} [system_pages]
647
+ * @property {PageSchema[]} [custom_pages]
648
+ * @property {string} [application_id]
640
649
  */
641
650
 
642
651
  /**
643
- * @typedef DefaultNavigationResponse
644
- * @property {NavigationSchema[]} [items]
652
+ * @typedef SlideshowGetResponse
653
+ * @property {SlideshowSchema[]} [items]
654
+ * @property {Page} [page]
645
655
  */
646
656
 
647
657
  /**
648
- * @typedef DefaultSchemaComponent
649
- * @property {DefaultSEOSchemaMarkupTemplate[]} [items]
658
+ * @typedef SlideshowSchema
659
+ * @property {string} [_id]
660
+ * @property {string} [slug]
661
+ * @property {DateMeta} [date_meta]
662
+ * @property {string} [application]
663
+ * @property {string} [platform]
664
+ * @property {ConfigurationSchema} [configuration]
665
+ * @property {SlideshowMedia[]} [media]
666
+ * @property {boolean} [active]
667
+ * @property {boolean} [archived]
668
+ * @property {Object} [_custom_json]
650
669
  */
651
670
 
652
671
  /**
653
- * @typedef DefaultSEOSchemaMarkupTemplate
654
- * @property {string} [page_type]
655
- * @property {string} [schema]
656
- * @property {Object} [target_json]
672
+ * @typedef SlideshowRequest
673
+ * @property {string} [slug]
674
+ * @property {string} [platform]
675
+ * @property {ConfigurationSchema} [configuration]
676
+ * @property {SlideshowMedia} [media]
677
+ * @property {boolean} [active]
657
678
  */
658
679
 
659
680
  /**
660
- * @typedef Detail
661
- * @property {string} [description]
662
- * @property {string} [image_url]
663
- * @property {string} [title]
681
+ * @typedef Support
682
+ * @property {boolean} [created]
683
+ * @property {string} [_id]
684
+ * @property {string} [config_type]
685
+ * @property {string} [application]
686
+ * @property {string} [created_at]
687
+ * @property {string} [updated_at]
688
+ * @property {ContactSchema} [contact]
664
689
  */
665
690
 
666
691
  /**
667
- * @typedef Dropdown
668
- * @property {string} [category]
669
- * @property {boolean} [list_enabled]
670
- * @property {string} [name]
671
- * @property {SupportedValidationsSchema[]} [supported_validations]
672
- * @property {string} [type]
692
+ * @typedef PhoneProperties
693
+ * @property {string} [key]
694
+ * @property {string} [code]
695
+ * @property {string} [number]
673
696
  */
674
697
 
675
698
  /**
676
- * @typedef EditorMeta
677
- * @property {string} [background_color]
678
- * @property {string} [content]
679
- * @property {string} [content_type]
680
- * @property {string} [foreground_color]
699
+ * @typedef PhoneSchema
700
+ * @property {boolean} [active]
701
+ * @property {PhoneProperties[]} [phone]
681
702
  */
682
703
 
683
704
  /**
@@ -693,1533 +714,196 @@ const Joi = require("joi");
693
714
  */
694
715
 
695
716
  /**
696
- * @typedef FAQ
697
- * @property {string} [answer]
698
- * @property {string} [question]
699
- * @property {string} [slug]
700
- */
701
-
702
- /**
703
- * @typedef FAQCategorySchema
704
- * @property {Object} [_custom_json]
705
- * @property {string} [_id]
706
- * @property {string} [application]
707
- * @property {ChildrenSchema[]} [children]
708
- * @property {string} [description]
709
- * @property {string} [icon_url]
710
- * @property {number} [index]
711
- * @property {string} [slug]
712
- * @property {string} [title]
717
+ * @typedef ContactSchema
718
+ * @property {PhoneSchema} [phone]
719
+ * @property {EmailSchema} [email]
713
720
  */
714
721
 
715
722
  /**
716
- * @typedef FaqSchema
717
- * @property {string} [_id]
718
- * @property {string} [answer]
723
+ * @typedef TagsSchema
719
724
  * @property {string} [application]
720
- * @property {string} [question]
721
- * @property {string} [slug]
722
- * @property {string[]} [tags]
723
- */
724
-
725
- /**
726
- * @typedef FieldDefinitionSchema
727
725
  * @property {string} [_id]
728
- * @property {string} [company_id]
729
- * @property {string} [created_at]
730
- * @property {string} [created_by]
731
- * @property {string} [creator]
732
- * @property {string} [description]
733
- * @property {number} [invalid_fields_count]
734
- * @property {boolean} [is_deleted]
735
- * @property {string} [key]
736
- * @property {boolean} [multi_value]
737
- * @property {string} [name]
738
- * @property {string} [namespace]
739
- * @property {boolean} [required]
740
- * @property {string} [resource]
741
- * @property {string} [type]
742
- * @property {string} [type_name]
743
- * @property {string} [updated_at]
744
- * @property {string} [updated_by]
745
- * @property {FieldValidations[]} [validations]
746
- */
747
-
748
- /**
749
- * @typedef FieldValidations
750
- * @property {string} [name]
751
- * @property {string} [type]
752
- * @property {Object} [value]
753
- */
754
-
755
- /**
756
- * @typedef File
757
- * @property {string} [category]
758
- * @property {boolean} [list_enabled]
759
- * @property {string} [name]
760
- * @property {SupportedValidationsSchema[]} [supported_validations]
761
- * @property {string} [type]
726
+ * @property {TagSchema[]} [tags]
762
727
  */
763
728
 
764
729
  /**
765
- * @typedef FloatType
766
- * @property {string} [category]
767
- * @property {boolean} [list_enabled]
730
+ * @typedef TagSchema
768
731
  * @property {string} [name]
769
- * @property {SupportedValidationsSchema[]} [supported_validations]
732
+ * @property {string} [url]
770
733
  * @property {string} [type]
734
+ * @property {string} [sub_type]
735
+ * @property {string} [_id]
736
+ * @property {string} [position]
737
+ * @property {Object} [attributes]
738
+ * @property {string} [content]
739
+ * @property {Object[]} [pages]
740
+ * @property {TagSourceSchema} [__source]
771
741
  */
772
742
 
773
743
  /**
774
- * @typedef GeneratedSEOContent
775
- * @property {string} [description]
776
- * @property {string} [title]
777
- */
778
-
779
- /**
780
- * @typedef GenerateSEOContent
781
- * @property {string} [existing_text]
782
- * @property {string[]} [keywords]
783
- * @property {string} [text]
744
+ * @typedef TagSourceSchema
784
745
  * @property {string} [type]
746
+ * @property {string} [id]
785
747
  */
786
748
 
787
- /**
788
- * @typedef GetAnnouncementListSchema
789
- * @property {AdminAnnouncementSchema[]} [items]
790
- * @property {Page} [page]
791
- */
792
-
793
- /**
794
- * @typedef GetFaqCategoriesSchema
795
- * @property {CategorySchema[]} [categories]
796
- */
749
+ /** @typedef {"title" | "description"} GenerationEntityType */
797
750
 
798
751
  /**
799
- * @typedef GetFaqCategoryBySlugSchema
800
- * @property {FAQCategorySchema} [category]
801
- */
802
-
803
- /**
804
- * @typedef GetFaqSchema
805
- * @property {FaqSchema[]} [faqs]
806
- */
807
-
808
- /**
809
- * @typedef HandpickedTagSchema
810
- * @property {Object} [attributes]
811
- * @property {string} [content]
812
- * @property {string} [name]
813
- * @property {string} [position]
814
- * @property {string} [sub_type]
815
- * @property {string} [type]
816
- * @property {string} [url]
817
- */
818
-
819
- /**
820
- * @typedef Integer
821
- * @property {string} [category]
822
- * @property {boolean} [list_enabled]
823
- * @property {string} [name]
824
- * @property {SupportedValidationsSchema[]} [supported_validations]
825
- * @property {string} [type]
826
- */
827
-
828
- /**
829
- * @typedef Json
830
- * @property {string} [category]
831
- * @property {boolean} [list_enabled]
832
- * @property {string} [name]
833
- * @property {SupportedValidationsSchema[]} [supported_validations]
834
- * @property {string} [type]
835
- */
836
-
837
- /**
838
- * @typedef LandingPageGetResponse
839
- * @property {LandingPageSchema[]} [items]
840
- * @property {Page} [page]
841
- */
842
-
843
- /**
844
- * @typedef LandingPageSchema
845
- * @property {Object} [_custom_json]
846
- * @property {string} [_id]
847
- * @property {Action} [action]
848
- * @property {string} [application]
849
- * @property {boolean} [archived]
850
- * @property {CreatedBySchema} [created_by]
851
- * @property {DateMeta} [date_meta]
852
- * @property {string[]} [platform]
853
- * @property {string} [slug]
854
- */
855
-
856
- /**
857
- * @typedef Language
858
- * @property {string} [display]
859
- */
860
-
861
- /**
862
- * @typedef LocaleLanguage
863
- * @property {Language} [ar]
864
- * @property {Language} [en_us]
865
- * @property {Language} [hi]
866
- */
867
-
868
- /**
869
- * @typedef Metaobject
870
- * @property {string} [category]
871
- * @property {boolean} [list_enabled]
872
- * @property {string} [name]
873
- * @property {SupportedValidationsSchema[]} [supported_validations]
874
- * @property {string} [type]
875
- */
876
-
877
- /**
878
- * @typedef NavigationGetResponse
879
- * @property {NavigationSchema[]} [items]
880
- * @property {Page} [page]
881
- */
882
-
883
- /**
884
- * @typedef NavigationReference
885
- * @property {LocaleLanguage} [_locale_language]
886
- * @property {string[]} [acl]
887
- * @property {Action} [action]
888
- * @property {boolean} [active]
889
- * @property {string} [display]
890
- * @property {string} [image]
891
- * @property {number} [sort_order]
892
- * @property {NavigationReference[]} [sub_navigation]
893
- * @property {string[]} [tags]
894
- * @property {string} [type]
895
- */
896
-
897
- /**
898
- * @typedef NavigationRequest
899
- * @property {string} [name]
900
- * @property {NavigationReference[]} [navigation]
901
- * @property {Orientation} [orientation]
902
- * @property {string[]} [platform]
903
- * @property {string} [slug]
904
- */
905
-
906
- /**
907
- * @typedef NavigationSchema
908
- * @property {string} [_id]
909
- * @property {string} [application]
910
- * @property {boolean} [archived]
911
- * @property {CreatedBySchema} [created_by]
912
- * @property {DateMeta} [date_meta]
913
- * @property {string} [name]
914
- * @property {NavigationReference[]} [navigation]
915
- * @property {Orientation} [orientation]
916
- * @property {string[]} [platform]
917
- * @property {string} [slug]
918
- * @property {number} [version]
919
- */
920
-
921
- /**
922
- * @typedef NextSchedule
923
- * @property {string} [end]
924
- * @property {string} [start]
925
- */
926
-
927
- /**
928
- * @typedef Orientation
929
- * @property {string[]} [landscape]
930
- * @property {string[]} [portrait]
931
- */
932
-
933
- /**
934
- * @typedef Page
935
- * @property {number} [current]
936
- * @property {boolean} [has_next]
937
- * @property {boolean} [has_previous]
938
- * @property {number} [item_total]
939
- * @property {string} [next_id]
940
- * @property {number} [size]
941
- * @property {string} type
942
- */
943
-
944
- /**
945
- * @typedef PageGetResponse
946
- * @property {PageSchema[]} [items]
947
- * @property {Page} [page]
948
- */
949
-
950
- /**
951
- * @typedef PageMetaSchema
952
- * @property {string} [application_id]
953
- * @property {PageSchema[]} [custom_pages]
954
- * @property {NavigationSchema[]} [system_pages]
955
- */
956
-
957
- /**
958
- * @typedef PagePublishRequest
959
- * @property {boolean} [publish]
960
- */
961
-
962
- /**
963
- * @typedef PageRequest
964
- * @property {Object} [_custom_json]
965
- * @property {CronSchedule} [_schedule]
966
- * @property {string} [application]
967
- * @property {Author} [author]
968
- * @property {Object[]} [content]
969
- * @property {Asset} [feature_image]
970
- * @property {string} [orientation]
971
- * @property {boolean} [published]
972
- * @property {string} [reading_time]
973
- * @property {SEO} [seo]
974
- * @property {string} [slug]
975
- * @property {string[]} [tags]
976
- * @property {string} [title]
977
- */
978
-
979
- /**
980
- * @typedef PageSchema
981
- * @property {Object} [_custom_json]
982
- * @property {string} [_id]
983
- * @property {ScheduleSchema} [_schedule]
984
- * @property {string} [application]
985
- * @property {boolean} [archived]
986
- * @property {string[]} [component_ids] - Components can be used to store
987
- * multiple components
988
- * @property {Object[]} [content]
989
- * @property {string} [content_path]
990
- * @property {CreatedBySchema} [created_by]
991
- * @property {DateMeta} [date_meta]
992
- * @property {string} [description]
993
- * @property {Asset} [feature_image]
994
- * @property {string} [orientation]
995
- * @property {Object[]} [page_meta]
996
- * @property {string} [platform]
997
- * @property {boolean} [published]
998
- * @property {SEO} [seo]
999
- * @property {string} [slug]
1000
- * @property {string[]} [tags]
1001
- * @property {string} [title]
1002
- * @property {string} [type]
1003
- * @property {Object} [visibility]
1004
- */
1005
-
1006
- /**
1007
- * @typedef PageSpec
1008
- * @property {PageSpecItem[]} [specifications]
1009
- */
1010
-
1011
- /**
1012
- * @typedef PageSpecItem
1013
- * @property {string} [display_name]
1014
- * @property {string} [page_type]
1015
- * @property {PageSpecParam[]} [params]
1016
- * @property {PageSpecParam[]} [query]
1017
- */
1018
-
1019
- /**
1020
- * @typedef PageSpecParam
1021
- * @property {string} [key]
1022
- * @property {boolean} [required]
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
1023
798
  */
1024
799
 
1025
- /**
1026
- * @typedef PathMappingSchema
1027
- * @property {PathSourceSchema} [__source]
1028
- * @property {string} [_id]
1029
- * @property {string} [application]
1030
- * @property {string} [created_at]
1031
- * @property {string} [redirect_from]
1032
- * @property {string} [redirect_to]
1033
- * @property {string} [updated_at]
1034
- */
1035
-
1036
- /**
1037
- * @typedef PathSourceSchema
1038
- * @property {string} [id]
1039
- * @property {string} [type]
1040
- */
1041
-
1042
- /**
1043
- * @typedef PhoneProperties
1044
- * @property {string} [code]
1045
- * @property {string} [key]
1046
- * @property {string} [number]
1047
- */
1048
-
1049
- /**
1050
- * @typedef PhoneSchema
1051
- * @property {boolean} [active]
1052
- * @property {PhoneProperties[]} [phone]
1053
- */
1054
-
1055
- /**
1056
- * @typedef Product
1057
- * @property {string} [category]
1058
- * @property {boolean} [list_enabled]
1059
- * @property {string} [name]
1060
- * @property {SupportedValidationsSchema[]} [supported_validations]
1061
- * @property {string} [type]
1062
- */
1063
-
1064
- /**
1065
- * @typedef RemoveHandpickedSchema
1066
- * @property {string[]} [tags]
1067
- */
1068
-
1069
- /**
1070
- * @typedef ResourceContent
1071
- * @property {string} [type]
1072
- * @property {string} [value]
1073
- */
1074
-
1075
- /**
1076
- * @typedef ResourceSchema
1077
- * @property {number} [definitions_count] - Number of definitions
1078
- * @property {string} [key] - Resource key
1079
- * @property {string} [name] - Resource name
1080
- */
1081
-
1082
- /**
1083
- * @typedef ResourcesSchema
1084
- * @property {ResourceSchema[]} [resources]
1085
- */
1086
-
1087
- /**
1088
- * @typedef ScheduleSchema
1089
- * @property {string} [cron]
1090
- * @property {number} [duration]
1091
- * @property {string} [end]
1092
- * @property {NextSchedule[]} [next_schedule]
1093
- * @property {string} [start]
1094
- */
1095
-
1096
- /**
1097
- * @typedef SEO
1098
- * @property {SEObreadcrumb[]} [breadcrumb]
1099
- * @property {string} [canonical_url]
1100
- * @property {string} [description]
1101
- * @property {SEOImage} [image]
1102
- * @property {SEOMetaItem[]} [meta_tags]
1103
- * @property {SEOSitemap} [sitemap]
1104
- * @property {string} [title]
1105
- */
1106
-
1107
- /**
1108
- * @typedef SEObreadcrumb
1109
- * @property {Action} [action]
1110
- * @property {string} [url]
1111
- */
1112
-
1113
- /**
1114
- * @typedef SeoComponent
1115
- * @property {SeoSchema} [seo]
1116
- */
1117
-
1118
- /**
1119
- * @typedef SEOImage
1120
- * @property {string} [url]
1121
- */
1122
-
1123
- /**
1124
- * @typedef SEOMetaItem
1125
- * @property {SEOMetaItems[]} [items]
1126
- * @property {string} [title]
1127
- */
1128
-
1129
- /**
1130
- * @typedef SEOMetaItems
1131
- * @property {string} [key]
1132
- * @property {string} [value]
1133
- */
1134
-
1135
- /**
1136
- * @typedef SeoSchema
1137
- * @property {string} [_id]
1138
- * @property {string} [additional_sitemap]
1139
- * @property {string} [app]
1140
- * @property {boolean} [cannonical_enabled]
1141
- * @property {string} [created_at]
1142
- * @property {CustomMetaTag[]} [custom_meta_tags]
1143
- * @property {Detail} [details]
1144
- * @property {string} [robots_txt]
1145
- * @property {boolean} [sitemap_enabled]
1146
- * @property {string} [updated_at]
1147
- */
1148
-
1149
- /**
1150
- * @typedef SeoSchemaComponent
1151
- * @property {SEOSchemaMarkupTemplate[]} [items]
1152
- * @property {Page} [page]
1153
- */
1154
-
1155
- /**
1156
- * @typedef SEOSchemaMarkupTemplate
1157
- * @property {boolean} [active]
1158
- * @property {string} [application]
1159
- * @property {string} [created_at]
1160
- * @property {string} [description]
1161
- * @property {string} [id]
1162
- * @property {string} [page_type]
1163
- * @property {string} [schema]
1164
- * @property {Object} [target_json]
1165
- * @property {string} [title]
1166
- * @property {string} [updated_at]
1167
- */
1168
-
1169
- /**
1170
- * @typedef SEOSchemaMarkupTemplateRequestBody
1171
- * @property {boolean} [active]
1172
- * @property {string} [created_at]
1173
- * @property {string} [description]
1174
- * @property {string} [page_type]
1175
- * @property {string} [schema]
1176
- * @property {Object} [target_json]
1177
- * @property {string} [title]
1178
- * @property {string} [updated_at]
1179
- */
1180
-
1181
- /**
1182
- * @typedef SEOSitemap
1183
- * @property {string} [frequency]
1184
- * @property {number} [priority]
1185
- */
1186
-
1187
- /**
1188
- * @typedef SlideshowGetResponse
1189
- * @property {SlideshowSchema[]} [items]
1190
- * @property {Page} [page]
1191
- */
1192
-
1193
- /**
1194
- * @typedef SlideshowMedia
1195
- * @property {Action} [action]
1196
- * @property {boolean} [auto_decide_duration]
1197
- * @property {string} [bg_color]
1198
- * @property {number} [duration]
1199
- * @property {string} [type]
1200
- * @property {string} [url]
1201
- */
1202
-
1203
- /**
1204
- * @typedef SlideshowRequest
1205
- * @property {boolean} [active]
1206
- * @property {ConfigurationSchema} [configuration]
1207
- * @property {SlideshowMedia} [media]
1208
- * @property {string} [platform]
1209
- * @property {string} [slug]
1210
- */
1211
-
1212
- /**
1213
- * @typedef SlideshowSchema
1214
- * @property {Object} [_custom_json]
1215
- * @property {string} [_id]
1216
- * @property {boolean} [active]
1217
- * @property {string} [application]
1218
- * @property {boolean} [archived]
1219
- * @property {ConfigurationSchema} [configuration]
1220
- * @property {DateMeta} [date_meta]
1221
- * @property {SlideshowMedia[]} [media]
1222
- * @property {string} [platform]
1223
- * @property {string} [slug]
1224
- */
1225
-
1226
- /**
1227
- * @typedef StringMultiLine
1228
- * @property {string} [category]
1229
- * @property {boolean} [list_enabled]
1230
- * @property {string} [name]
1231
- * @property {SupportedValidationsSchema[]} [supported_validations]
1232
- * @property {string} [type]
1233
- */
1234
-
1235
- /**
1236
- * @typedef StringSingleLine
1237
- * @property {string} [category]
1238
- * @property {boolean} [list_enabled]
1239
- * @property {string} [name]
1240
- * @property {SupportedValidationsSchema[]} [supported_validations]
1241
- * @property {string} [type]
1242
- */
1243
-
1244
- /**
1245
- * @typedef Support
1246
- * @property {string} [_id]
1247
- * @property {string} [application]
1248
- * @property {string} [config_type]
1249
- * @property {ContactSchema} [contact]
1250
- * @property {boolean} [created]
1251
- * @property {string} [created_at]
1252
- * @property {string} [updated_at]
1253
- */
1254
-
1255
- /**
1256
- * @typedef SupportedValidationsMetaExampleSchema
1257
- * @property {string} [name]
1258
- * @property {string} [value]
1259
- */
1260
-
1261
- /**
1262
- * @typedef SupportedValidationsMetaSchema
1263
- * @property {SupportedValidationsMetaExampleSchema[]} [examples]
1264
- */
1265
-
1266
- /**
1267
- * @typedef SupportedValidationsSchema
1268
- * @property {string} [display]
1269
- * @property {SupportedValidationsMetaSchema} [meta]
1270
- * @property {string} [name]
1271
- * @property {boolean} [required]
1272
- * @property {string} [type]
1273
- */
1274
-
1275
- /**
1276
- * @typedef TagDeleteSuccessResponse
1277
- * @property {boolean} [success]
1278
- */
1279
-
1280
- /**
1281
- * @typedef TagSchema
1282
- * @property {TagSourceSchema} [__source]
1283
- * @property {string} [_id]
1284
- * @property {Object} [attributes]
1285
- * @property {string} [content]
1286
- * @property {string} [name]
1287
- * @property {Object[]} [pages]
1288
- * @property {string} [position]
1289
- * @property {string} [sub_type]
1290
- * @property {string} [type]
1291
- * @property {string} [url]
1292
- */
1293
-
1294
- /**
1295
- * @typedef TagSourceSchema
1296
- * @property {string} [id]
1297
- * @property {string} [type]
1298
- */
1299
-
1300
- /**
1301
- * @typedef TagsSchema
1302
- * @property {string} [_id]
1303
- * @property {string} [application]
1304
- * @property {TagSchema[]} [tags]
1305
- */
1306
-
1307
- /**
1308
- * @typedef UpdateFaqCategoryRequestSchema
1309
- * @property {CategorySchema} [category]
1310
- */
1311
-
1312
- /**
1313
- * @typedef UpdateHandpickedSchema
1314
- * @property {HandpickedTagSchema} [tag]
1315
- */
1316
-
1317
- /**
1318
- * @typedef Url
1319
- * @property {boolean} [list_enabled]
1320
- * @property {string} [name]
1321
- * @property {SupportedValidationsSchema[]} [supported_validations]
1322
- * @property {string} [type]
1323
- */
1324
-
1325
- /** @typedef {"title" | "description"} GenerationEntityType */
1326
-
1327
- /**
1328
- * @typedef {| "about-us"
1329
- * | "addresses"
1330
- * | "blog"
1331
- * | "brands"
1332
- * | "cards"
1333
- * | "cart"
1334
- * | "categories"
1335
- * | "brand"
1336
- * | "category"
1337
- * | "collection"
1338
- * | "collections"
1339
- * | "contact-us"
1340
- * | "external"
1341
- * | "faq"
1342
- * | "freshchat"
1343
- * | "home"
1344
- * | "notification-settings"
1345
- * | "orders"
1346
- * | "page"
1347
- * | "policy"
1348
- * | "product"
1349
- * | "product-request"
1350
- * | "products"
1351
- * | "profile"
1352
- * | "profile-order-shipment"
1353
- * | "profile-basic"
1354
- * | "profile-company"
1355
- * | "profile-emails"
1356
- * | "profile-phones"
1357
- * | "rate-us"
1358
- * | "refer-earn"
1359
- * | "settings"
1360
- * | "shared-cart"
1361
- * | "tnc"
1362
- * | "track-order"
1363
- * | "wishlist"
1364
- * | "sections"
1365
- * | "form"
1366
- * | "cart-delivery"
1367
- * | "cart-payment"
1368
- * | "cart-review"
1369
- * | "login"
1370
- * | "register"
1371
- * | "shipping-policy"
1372
- * | "return-policy"
1373
- * | "order-status"} PageType
1374
- */
1375
-
1376
- class ContentPlatformModel {
1377
- /** @returns {Action} */
1378
- static Action() {
1379
- return Joi.object({
1380
- page: ContentPlatformModel.ActionPage(),
1381
- popup: ContentPlatformModel.ActionPage(),
1382
- type: Joi.string().allow(""),
1383
- });
1384
- }
1385
-
1386
- /** @returns {ActionPage} */
1387
- static ActionPage() {
1388
- return Joi.object({
1389
- params: Joi.object().pattern(
1390
- /\S/,
1391
- Joi.array().items(Joi.string().allow(""))
1392
- ),
1393
- query: Joi.object().pattern(
1394
- /\S/,
1395
- Joi.array().items(Joi.string().allow(""))
1396
- ),
1397
- type: ContentPlatformModel.PageType().required(),
1398
- url: Joi.string().allow(""),
1399
- });
1400
- }
1401
-
1402
- /** @returns {AdminAnnouncementSchema} */
1403
- static AdminAnnouncementSchema() {
1404
- return Joi.object({
1405
- _id: Joi.string().allow(""),
1406
- _schedule: ContentPlatformModel.ScheduleSchema(),
1407
- announcement: Joi.string().allow(""),
1408
- app: Joi.string().allow(""),
1409
- author: ContentPlatformModel.AnnouncementAuthorSchema(),
1410
- created_at: Joi.string().allow(""),
1411
- editor_meta: ContentPlatformModel.EditorMeta(),
1412
- modified_at: Joi.string().allow(""),
1413
- pages: Joi.array().items(ContentPlatformModel.AnnouncementPageSchema()),
1414
- platforms: Joi.array().items(Joi.string().allow("")),
1415
- title: Joi.string().allow(""),
1416
- });
1417
- }
1418
-
1419
- /** @returns {AnnouncementAuthorSchema} */
1420
- static AnnouncementAuthorSchema() {
1421
- return Joi.object({
1422
- created_by: Joi.string().allow(""),
1423
- modified_by: Joi.string().allow(""),
1424
- });
1425
- }
1426
-
1427
- /** @returns {AnnouncementPageSchema} */
1428
- static AnnouncementPageSchema() {
1429
- return Joi.object({
1430
- page_slug: Joi.string().allow(""),
1431
- type: Joi.string().allow(""),
1432
- });
1433
- }
1434
-
1435
- /** @returns {ApplicationLegal} */
1436
- static ApplicationLegal() {
1437
- return Joi.object({
1438
- _id: Joi.string().allow(""),
1439
- application: Joi.string().allow(""),
1440
- created_at: Joi.string().allow(""),
1441
- faq: Joi.array().items(ContentPlatformModel.ApplicationLegalFAQ()),
1442
- policy: Joi.string().allow(""),
1443
- returns: Joi.string().allow(""),
1444
- shipping: Joi.string().allow(""),
1445
- tnc: Joi.string().allow(""),
1446
- updated_at: Joi.string().allow(""),
1447
- });
1448
- }
1449
-
1450
- /** @returns {ApplicationLegalFAQ} */
1451
- static ApplicationLegalFAQ() {
1452
- return Joi.object({
1453
- answer: Joi.string().allow(""),
1454
- question: Joi.string().allow(""),
1455
- });
1456
- }
1457
-
1458
- /** @returns {Asset} */
1459
- static Asset() {
1460
- return Joi.object({
1461
- aspect_ratio: Joi.string().allow(""),
1462
- id: Joi.string().allow(""),
1463
- secure_url: Joi.string().allow(""),
1464
- });
1465
- }
1466
-
1467
- /** @returns {Author} */
1468
- static Author() {
1469
- return Joi.object({
1470
- designation: Joi.string().allow(""),
1471
- id: Joi.string().allow(""),
1472
- name: Joi.string().allow(""),
1473
- });
1474
- }
1475
-
1476
- /** @returns {BlogGetResponse} */
1477
- static BlogGetResponse() {
1478
- return Joi.object({
1479
- items: Joi.array().items(ContentPlatformModel.BlogSchema()),
1480
- page: ContentPlatformModel.Page(),
1481
- });
1482
- }
1483
-
1484
- /** @returns {BlogRequest} */
1485
- static BlogRequest() {
1486
- return Joi.object({
1487
- _custom_json: Joi.any(),
1488
- _schedule: ContentPlatformModel.CronSchedule(),
1489
- application: Joi.string().allow(""),
1490
- author: ContentPlatformModel.Author(),
1491
- content: Joi.array().items(ContentPlatformModel.ResourceContent()),
1492
- feature_image: ContentPlatformModel.Asset(),
1493
- published: Joi.boolean(),
1494
- reading_time: Joi.string().allow(""),
1495
- seo: ContentPlatformModel.SEO(),
1496
- slug: Joi.string().allow(""),
1497
- tags: Joi.array().items(Joi.string().allow("")),
1498
- title: Joi.string().allow(""),
1499
- });
1500
- }
1501
-
1502
- /** @returns {BlogSchema} */
1503
- static BlogSchema() {
1504
- return Joi.object({
1505
- _custom_json: Joi.any(),
1506
- _id: Joi.string().allow(""),
1507
- _schedule: ContentPlatformModel.CronSchedule(),
1508
- application: Joi.string().allow(""),
1509
- archived: Joi.boolean(),
1510
- author: ContentPlatformModel.Author(),
1511
- content: Joi.array().items(ContentPlatformModel.ResourceContent()),
1512
- date_meta: ContentPlatformModel.DateMeta(),
1513
- feature_image: ContentPlatformModel.Asset(),
1514
- published: Joi.boolean(),
1515
- reading_time: Joi.string().allow(""),
1516
- seo: ContentPlatformModel.SEO(),
1517
- slug: Joi.string().allow(""),
1518
- tags: Joi.array().items(Joi.string().allow("")),
1519
- title: Joi.string().allow(""),
1520
- });
1521
- }
1522
-
1523
- /** @returns {BooleanType} */
1524
- static BooleanType() {
1525
- return Joi.object({
1526
- category: Joi.string().allow(""),
1527
- list_enabled: Joi.boolean(),
1528
- name: Joi.string().allow(""),
1529
- supported_validations: Joi.array().items(
1530
- ContentPlatformModel.SupportedValidationsSchema()
1531
- ),
1532
- type: Joi.string().allow(""),
1533
- });
1534
- }
1535
-
1536
- /** @returns {CategoryRequestSchema} */
1537
- static CategoryRequestSchema() {
1538
- return Joi.object({
1539
- slug: Joi.string().allow(""),
1540
- title: Joi.string().allow(""),
1541
- });
1542
- }
1543
-
1544
- /** @returns {CategorySchema} */
1545
- static CategorySchema() {
1546
- return Joi.object({
1547
- _custom_json: Joi.any(),
1548
- _id: Joi.string().allow(""),
1549
- application: Joi.string().allow(""),
1550
- children: Joi.array().items(Joi.string().allow("")),
1551
- description: Joi.string().allow(""),
1552
- icon_url: Joi.string().allow(""),
1553
- index: Joi.number(),
1554
- slug: Joi.string().allow(""),
1555
- title: Joi.string().allow(""),
1556
- });
1557
- }
1558
-
1559
- /** @returns {ChildrenSchema} */
1560
- static ChildrenSchema() {
1561
- return Joi.object({
1562
- _id: Joi.string().allow(""),
1563
- answer: Joi.string().allow(""),
1564
- application: Joi.string().allow(""),
1565
- question: Joi.string().allow(""),
1566
- slug: Joi.string().allow(""),
1567
- });
1568
- }
1569
-
1570
- /** @returns {CommonError} */
1571
- static CommonError() {
1572
- return Joi.object({
1573
- message: Joi.string().allow(""),
1574
- });
1575
- }
1576
-
1577
- /** @returns {ConfigurationSchema} */
1578
- static ConfigurationSchema() {
1579
- return Joi.object({
1580
- duration: Joi.number(),
1581
- sleep_time: Joi.number(),
1582
- slide_direction: Joi.string().allow(""),
1583
- start_on_launch: Joi.boolean(),
1584
- });
1585
- }
1586
-
1587
- /** @returns {ContactSchema} */
1588
- static ContactSchema() {
1589
- return Joi.object({
1590
- email: ContentPlatformModel.EmailSchema(),
1591
- phone: ContentPlatformModel.PhoneSchema(),
1592
- });
1593
- }
1594
-
1595
- /** @returns {ContentAPIError} */
1596
- static ContentAPIError() {
1597
- return Joi.object({
1598
- code: Joi.string().allow(""),
1599
- exception: Joi.string().allow(""),
1600
- info: Joi.string().allow(""),
1601
- message: Joi.string().allow(""),
1602
- meta: Joi.any(),
1603
- request_id: Joi.string().allow(""),
1604
- stack_trace: Joi.string().allow(""),
1605
- status: Joi.number(),
1606
- });
1607
- }
1608
-
1609
- /** @returns {CreateAnnouncementSchema} */
1610
- static CreateAnnouncementSchema() {
1611
- return Joi.object({
1612
- data: ContentPlatformModel.AdminAnnouncementSchema(),
1613
- message: Joi.string().allow(""),
1614
- });
1615
- }
1616
-
1617
- /** @returns {CreatedBySchema} */
1618
- static CreatedBySchema() {
1619
- return Joi.object({
1620
- id: Joi.string().allow(""),
1621
- });
1622
- }
1623
-
1624
- /** @returns {CreateFaqCategoryRequestSchema} */
1625
- static CreateFaqCategoryRequestSchema() {
1626
- return Joi.object({
1627
- category: ContentPlatformModel.CategoryRequestSchema(),
1628
- });
1629
- }
1630
-
1631
- /** @returns {CreateFaqCategorySchema} */
1632
- static CreateFaqCategorySchema() {
1633
- return Joi.object({
1634
- category: ContentPlatformModel.CategorySchema(),
1635
- });
1636
- }
1637
-
1638
- /** @returns {CreateFaqResponseSchema} */
1639
- static CreateFaqResponseSchema() {
1640
- return Joi.object({
1641
- faq: ContentPlatformModel.FaqSchema(),
1642
- });
1643
- }
1644
-
1645
- /** @returns {CreateFaqSchema} */
1646
- static CreateFaqSchema() {
1647
- return Joi.object({
1648
- faq: ContentPlatformModel.FAQ(),
1649
- });
1650
- }
1651
-
1652
- /** @returns {CreateTagRequestSchema} */
1653
- static CreateTagRequestSchema() {
1654
- return Joi.object({
1655
- tags: Joi.array().items(ContentPlatformModel.CreateTagSchema()),
1656
- });
1657
- }
1658
-
1659
- /** @returns {CreateTagSchema} */
1660
- static CreateTagSchema() {
1661
- return Joi.object({
1662
- _id: Joi.string().allow(""),
1663
- attributes: Joi.any(),
1664
- content: Joi.string().allow(""),
1665
- name: Joi.string().allow(""),
1666
- pages: Joi.array().items(Joi.any()),
1667
- position: Joi.string().allow(""),
1668
- sub_type: Joi.string().allow(""),
1669
- type: Joi.string().allow(""),
1670
- url: Joi.string().allow(""),
1671
- });
1672
- }
1673
-
1674
- /** @returns {CronSchedule} */
1675
- static CronSchedule() {
1676
- return Joi.object({
1677
- cron: Joi.string().allow(""),
1678
- duration: Joi.number(),
1679
- end: Joi.string().allow(""),
1680
- start: Joi.string().allow(""),
1681
- });
1682
- }
1683
-
1684
- /** @returns {CustomDataDeleteSchema} */
1685
- static CustomDataDeleteSchema() {
1686
- return Joi.object({
1687
- message: Joi.string().allow(""),
1688
- success: Joi.boolean(),
1689
- });
1690
- }
1691
-
1692
- /** @returns {CustomField} */
1693
- static CustomField() {
1694
- return Joi.object({
1695
- definition_id: Joi.string().allow(""),
1696
- value: Joi.array().items(Joi.any()),
1697
- });
1698
- }
1699
-
1700
- /** @returns {CustomFieldDefinitionDetailResSchema} */
1701
- static CustomFieldDefinitionDetailResSchema() {
1702
- return Joi.object({
1703
- _id: Joi.string().allow(""),
1704
- application_id: Joi.string().allow(""),
1705
- company_id: Joi.string().allow(""),
1706
- created_at: Joi.string().allow(""),
1707
- created_by: Joi.string().allow(""),
1708
- creator: Joi.string().allow(""),
1709
- description: Joi.string().allow(""),
1710
- is_deleted: Joi.boolean(),
1711
- key: Joi.string().allow(""),
1712
- multi_value: Joi.boolean(),
1713
- name: Joi.string().allow(""),
1714
- namespace: Joi.string().allow(""),
1715
- required: Joi.boolean(),
1716
- resource: Joi.string().allow(""),
1717
- type: Joi.string().allow(""),
1718
- updated_at: Joi.string().allow(""),
1719
- updated_by: Joi.string().allow(""),
1720
- validations: Joi.array().items(Joi.any()),
1721
- });
1722
- }
1723
-
1724
- /** @returns {CustomFieldDefinitionRequestSchema} */
1725
- static CustomFieldDefinitionRequestSchema() {
1726
- return Joi.object({
1727
- description: Joi.string().allow(""),
1728
- key: Joi.string().allow(""),
1729
- multi_value: Joi.boolean(),
1730
- name: Joi.string().allow(""),
1731
- namespace: Joi.string().allow(""),
1732
- resource: Joi.string().allow(""),
1733
- type: Joi.string().allow(""),
1734
- validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
1735
- });
1736
- }
1737
-
1738
- /** @returns {CustomFieldDefinitionsSchema} */
1739
- static CustomFieldDefinitionsSchema() {
1740
- return Joi.object({
1741
- items: Joi.array().items(ContentPlatformModel.FieldDefinitionSchema()),
1742
- page: ContentPlatformModel.Page(),
1743
- });
1744
- }
1745
-
1746
- /** @returns {CustomFieldRequestSchema} */
1747
- static CustomFieldRequestSchema() {
1748
- return Joi.object({
1749
- fields: Joi.array().items(ContentPlatformModel.CustomField()),
1750
- });
1751
- }
1752
-
1753
- /** @returns {CustomFieldSchema} */
1754
- static CustomFieldSchema() {
1755
- return Joi.object({
1756
- _id: Joi.string().allow(""),
1757
- company_id: Joi.string().allow(""),
1758
- created_at: Joi.string().allow(""),
1759
- created_by: Joi.string().allow(""),
1760
- creator: Joi.string().allow(""),
1761
- definition_id: Joi.string().allow(""),
1762
- has_invalid_values: Joi.boolean(),
1763
- invalid_value_errors: Joi.array().items(Joi.any()),
1764
- is_deleted: Joi.boolean(),
1765
- key: Joi.string().allow(""),
1766
- multi_value: Joi.boolean(),
1767
- namespace: Joi.string().allow(""),
1768
- resource: Joi.string().allow(""),
1769
- resource_id: Joi.string().allow(""),
1770
- type: Joi.string().allow(""),
1771
- updated_at: Joi.string().allow(""),
1772
- value: Joi.array().items(ContentPlatformModel.CustomFieldValue()),
1773
- });
1774
- }
1775
-
1776
- /** @returns {CustomFieldsResponseByResourceIdSchema} */
1777
- static CustomFieldsResponseByResourceIdSchema() {
1778
- return Joi.object({
1779
- items: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
1780
- });
1781
- }
1782
-
1783
- /** @returns {CustomFieldsResponseSchema} */
1784
- static CustomFieldsResponseSchema() {
1785
- return Joi.object({
1786
- items: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
1787
- page: ContentPlatformModel.Page(),
1788
- });
1789
- }
1790
-
1791
- /** @returns {CustomFieldTypeSchema} */
1792
- static CustomFieldTypeSchema() {
1793
- return Joi.object({
1794
- boolean_type: ContentPlatformModel.BooleanType(),
1795
- date: ContentPlatformModel.Date(),
1796
- datetime: ContentPlatformModel.Datetime(),
1797
- dropdown: ContentPlatformModel.Dropdown(),
1798
- file: ContentPlatformModel.File(),
1799
- float_type: ContentPlatformModel.FloatType(),
1800
- integer: ContentPlatformModel.Integer(),
1801
- json: ContentPlatformModel.Json(),
1802
- metaobject: ContentPlatformModel.Metaobject(),
1803
- product: ContentPlatformModel.Product(),
1804
- string_multi_line: ContentPlatformModel.StringMultiLine(),
1805
- string_single_line: ContentPlatformModel.StringSingleLine(),
1806
- url: ContentPlatformModel.Url(),
1807
- });
1808
- }
1809
-
1810
- /** @returns {CustomFieldValue} */
1811
- static CustomFieldValue() {
1812
- return Joi.object({
1813
- value: Joi.any(),
1814
- });
1815
- }
1816
-
1817
- /** @returns {CustomMetaTag} */
1818
- static CustomMetaTag() {
1819
- return Joi.object({
1820
- _id: Joi.string().allow(""),
1821
- content: Joi.string().allow(""),
1822
- name: Joi.string().allow(""),
1823
- });
1824
- }
1825
-
1826
- /** @returns {CustomObjectBulkEntry} */
1827
- static CustomObjectBulkEntry() {
1828
- return Joi.object({
1829
- items: Joi.array().items(ContentPlatformModel.CustomObjectJobSchema()),
1830
- page: ContentPlatformModel.Page(),
1831
- });
1832
- }
1833
-
1834
- /** @returns {CustomObjectBulkEntryInitiateDownload} */
1835
- static CustomObjectBulkEntryInitiateDownload() {
1836
- return Joi.object({
1837
- message: Joi.string().allow(""),
1838
- task_id: Joi.string().allow(""),
1839
- });
1840
- }
1841
-
1842
- /** @returns {CustomObjectBulkSchema} */
1843
- static CustomObjectBulkSchema() {
1844
- return Joi.object({
1845
- total_records: Joi.number(),
1846
- url: Joi.string().allow(""),
1847
- });
1848
- }
1849
-
1850
- /** @returns {CustomObjectByIdSchema} */
1851
- static CustomObjectByIdSchema() {
1852
- return Joi.object({
1853
- _id: Joi.string().allow(""),
1854
- definition: ContentPlatformModel.CustomObjectListItemDefinationSchema(),
1855
- display_name: Joi.string().allow(""),
1856
- fields: Joi.array().items(ContentPlatformModel.CustomObjectFieldSchema()),
1857
- references: Joi.array().items(Joi.any()),
1858
- status: Joi.string().allow(""),
1859
- });
1860
- }
1861
-
1862
- /** @returns {CustomObjectCustomFieldDefinitionResSchema} */
1863
- static CustomObjectCustomFieldDefinitionResSchema() {
1864
- return Joi.object({
1865
- _id: Joi.string().allow(""),
1866
- company_id: Joi.string().allow(""),
1867
- created_at: Joi.string().allow(""),
1868
- created_by: Joi.string().allow(""),
1869
- creator: Joi.string().allow(""),
1870
- description: Joi.string().allow(""),
1871
- is_deleted: Joi.boolean(),
1872
- key: Joi.string().allow(""),
1873
- metaobject_definition_id: Joi.string().allow(""),
1874
- multi_value: Joi.boolean(),
1875
- name: Joi.string().allow(""),
1876
- namespace: Joi.string().allow(""),
1877
- required: Joi.boolean(),
1878
- resource: Joi.string().allow(""),
1879
- type: Joi.string().allow(""),
1880
- updated_at: Joi.string().allow(""),
1881
- validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
1882
- });
1883
- }
1884
-
1885
- /** @returns {CustomObjectCustomFieldDefinitions} */
1886
- static CustomObjectCustomFieldDefinitions() {
1887
- return Joi.object({
1888
- action: Joi.string().allow(""),
1889
- description: Joi.string().allow(""),
1890
- id: Joi.string().allow(""),
1891
- key: Joi.string().allow(""),
1892
- multi_value: Joi.boolean(),
1893
- name: Joi.string().allow(""),
1894
- required: Joi.boolean(),
1895
- type: Joi.string().allow(""),
1896
- validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
1897
- });
1898
- }
1899
-
1900
- /** @returns {CustomObjectDefinitionDeleteResponseSchema} */
1901
- static CustomObjectDefinitionDeleteResponseSchema() {
1902
- return Joi.object({
1903
- message: Joi.string().allow(""),
1904
- success: Joi.boolean(),
1905
- });
1906
- }
1907
-
1908
- /** @returns {CustomObjectDefinitionRequestSchema} */
1909
- static CustomObjectDefinitionRequestSchema() {
1910
- return Joi.object({
1911
- description: Joi.string().allow(""),
1912
- display_name_key: Joi.string().allow(""),
1913
- field_definitions: Joi.array().items(
1914
- ContentPlatformModel.CustomObjectCustomFieldDefinitions()
1915
- ),
1916
- name: Joi.string().allow(""),
1917
- type: Joi.string().allow(""),
1918
- });
1919
- }
1920
-
1921
- /** @returns {CustomObjectDefinitionSchema} */
1922
- static CustomObjectDefinitionSchema() {
1923
- return Joi.object({
1924
- _id: Joi.string().allow(""),
1925
- created_by: Joi.string().allow(""),
1926
- creator: Joi.string().allow(""),
1927
- description: Joi.string().allow(""),
1928
- display_name_key: Joi.string().allow(""),
1929
- field_definitions: Joi.array().items(
1930
- ContentPlatformModel.CustomObjectCustomFieldDefinitionResSchema()
1931
- ),
1932
- name: Joi.string().allow(""),
1933
- type: Joi.string().allow(""),
1934
- updated_by: Joi.string().allow(""),
1935
- });
1936
- }
1937
-
1938
- /** @returns {CustomObjectDefinitionsSchema} */
1939
- static CustomObjectDefinitionsSchema() {
1940
- return Joi.object({
1941
- items: Joi.array().items(ContentPlatformModel.CustomObjectEntry()),
1942
- page: ContentPlatformModel.Page(),
1943
- });
1944
- }
1945
-
1946
- /** @returns {CustomObjectDefinitionUpdateRequestSchema} */
1947
- static CustomObjectDefinitionUpdateRequestSchema() {
1948
- return Joi.object({
1949
- description: Joi.string().allow(""),
1950
- display_name_key: Joi.string().allow(""),
1951
- field_definitions: Joi.array().items(
1952
- ContentPlatformModel.CustomObjectCustomFieldDefinitions()
1953
- ),
1954
- name: Joi.string().allow(""),
1955
- type: Joi.string().allow(""),
1956
- });
1957
- }
1958
-
1959
- /** @returns {CustomObjectEntry} */
1960
- static CustomObjectEntry() {
1961
- return Joi.object({
1962
- _id: Joi.string().allow(""),
1963
- entries_count: Joi.number(),
1964
- fields_count: Joi.number(),
1965
- name: Joi.string().allow(""),
1966
- type: Joi.string().allow(""),
1967
- updated_at: Joi.string().allow(""),
1968
- });
1969
- }
1970
-
1971
- /** @returns {CustomObjectEntryBulkUploadResponse} */
1972
- static CustomObjectEntryBulkUploadResponse() {
1973
- return Joi.object({
1974
- total_records: Joi.number(),
1975
- url: Joi.string().allow(""),
1976
- });
1977
- }
1978
-
1979
- /** @returns {CustomObjectEntryFieldSchema} */
1980
- static CustomObjectEntryFieldSchema() {
1981
- return Joi.object({
1982
- definition_id: Joi.string().allow(""),
1983
- value: Joi.array().items(Joi.any()),
1984
- });
1985
- }
1986
-
1987
- /** @returns {CustomObjectFieldSchema} */
1988
- static CustomObjectFieldSchema() {
800
+ class ContentPlatformModel {
801
+ /** @returns {GenerateSEOContent} */
802
+ static GenerateSEOContent() {
1989
803
  return Joi.object({
1990
- _id: Joi.string().allow(""),
1991
- definition_id: Joi.string().allow(""),
1992
- key: Joi.string().allow(""),
804
+ text: Joi.string().allow(""),
805
+ existing_text: Joi.string().allow(""),
806
+ keywords: Joi.array().items(Joi.string().allow("")),
1993
807
  type: Joi.string().allow(""),
1994
- value: Joi.array().items(Joi.any()),
1995
- });
1996
- }
1997
-
1998
- /** @returns {CustomObjectJobSchema} */
1999
- static CustomObjectJobSchema() {
2000
- return Joi.object({
2001
- _id: Joi.string().allow(""),
2002
- action_type: Joi.string().allow(""),
2003
- company_id: Joi.string().allow(""),
2004
- created_at: Joi.string().allow(""),
2005
- created_by: Joi.string().allow(""),
2006
- creator: Joi.string().allow(""),
2007
- entity: Joi.string().allow(""),
2008
- error_count: Joi.number(),
2009
- error_jobs: Joi.array().items(Joi.string().allow("")),
2010
- error_url: Joi.string().allow(""),
2011
- errors_occured: Joi.array().items(Joi.string().allow("")),
2012
- finished_count: Joi.number(),
2013
- finished_jobs: Joi.array().items(Joi.string().allow("")),
2014
- jobs: Joi.array().items(Joi.string().allow("")),
2015
- meta: ContentPlatformModel.CustomObjectMetaSchema(),
2016
- status: Joi.string().allow(""),
2017
- success_count: Joi.number(),
2018
- total_jobs: Joi.number(),
2019
- updated_at: Joi.string().allow(""),
2020
- url: Joi.string().allow(""),
2021
808
  });
2022
809
  }
2023
810
 
2024
- /** @returns {CustomObjectListItemDefinationSchema} */
2025
- static CustomObjectListItemDefinationSchema() {
811
+ /** @returns {GeneratedSEOContent} */
812
+ static GeneratedSEOContent() {
2026
813
  return Joi.object({
2027
- _id: Joi.string().allow(""),
2028
- name: Joi.string().allow(""),
2029
- type: Joi.string().allow(""),
814
+ title: Joi.string().allow(""),
815
+ description: Joi.string().allow(""),
2030
816
  });
2031
817
  }
2032
818
 
2033
- /** @returns {CustomObjectListItemSchema} */
2034
- static CustomObjectListItemSchema() {
819
+ /** @returns {ApplicationLegal} */
820
+ static ApplicationLegal() {
2035
821
  return Joi.object({
822
+ application: Joi.string().allow(""),
823
+ tnc: Joi.string().allow(""),
824
+ policy: Joi.string().allow(""),
825
+ shipping: Joi.string().allow(""),
826
+ returns: Joi.string().allow(""),
827
+ faq: Joi.array().items(ContentPlatformModel.ApplicationLegalFAQ()),
2036
828
  _id: Joi.string().allow(""),
2037
- definition: ContentPlatformModel.CustomObjectListItemDefinationSchema(),
2038
- definition_id: Joi.string().allow(""),
2039
- display_name: Joi.string().allow(""),
2040
- references: Joi.number(),
2041
- status: Joi.string().allow(""),
2042
829
  updated_at: Joi.string().allow(""),
830
+ created_at: Joi.string().allow(""),
2043
831
  });
2044
832
  }
2045
833
 
2046
- /** @returns {CustomObjectMetaSchema} */
2047
- static CustomObjectMetaSchema() {
2048
- return Joi.object({
2049
- mo_defintion_type: Joi.string().allow(""),
2050
- mo_error_count: Joi.number(),
2051
- mo_success_count: Joi.number(),
2052
- mo_total_count: Joi.number(),
2053
- });
2054
- }
2055
-
2056
- /** @returns {CustomObjectRequestSchema} */
2057
- static CustomObjectRequestSchema() {
2058
- return Joi.object({
2059
- definition_id: Joi.string().allow(""),
2060
- fields: Joi.array().items(
2061
- ContentPlatformModel.CustomObjectEntryFieldSchema()
2062
- ),
2063
- status: Joi.string().allow(""),
2064
- });
2065
- }
2066
-
2067
- /** @returns {CustomObjectSchema} */
2068
- static CustomObjectSchema() {
2069
- return Joi.object({
2070
- _id: Joi.string().allow(""),
2071
- application_id: Joi.string().allow(""),
2072
- company_id: Joi.string().allow(""),
2073
- created_by: Joi.string().allow(""),
2074
- creator: Joi.string().allow(""),
2075
- definition_id: Joi.string().allow(""),
2076
- display_name: Joi.string().allow(""),
2077
- fields: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
2078
- status: Joi.string().allow(""),
2079
- type: Joi.string().allow(""),
2080
- updated_by: Joi.string().allow(""),
2081
- });
2082
- }
2083
-
2084
- /** @returns {CustomObjectsSchema} */
2085
- static CustomObjectsSchema() {
2086
- return Joi.object({
2087
- items: Joi.array().items(
2088
- ContentPlatformModel.CustomObjectListItemSchema()
2089
- ),
2090
- page: ContentPlatformModel.Page(),
2091
- });
2092
- }
2093
-
2094
- /** @returns {DataLoaderResetResponseSchema} */
2095
- static DataLoaderResetResponseSchema() {
834
+ /** @returns {ApplicationLegalFAQ} */
835
+ static ApplicationLegalFAQ() {
2096
836
  return Joi.object({
2097
- reset: Joi.boolean(),
837
+ question: Joi.string().allow(""),
838
+ answer: Joi.string().allow(""),
2098
839
  });
2099
840
  }
2100
841
 
2101
- /** @returns {DataLoaderResponseSchema} */
2102
- static DataLoaderResponseSchema() {
842
+ /** @returns {PathMappingSchema} */
843
+ static PathMappingSchema() {
2103
844
  return Joi.object({
2104
- __source: ContentPlatformModel.DataLoaderSourceSchema(),
2105
- _id: Joi.string().allow(""),
2106
845
  application: Joi.string().allow(""),
2107
- company: Joi.string().allow(""),
2108
- content: Joi.string().allow(""),
2109
- name: Joi.string().allow(""),
2110
- operation_id: Joi.string().allow(""),
2111
- service: Joi.string().allow(""),
2112
- type: Joi.string().allow(""),
2113
- url: Joi.string().allow(""),
2114
- });
2115
- }
2116
-
2117
- /** @returns {DataLoaderSchema} */
2118
- static DataLoaderSchema() {
2119
- return Joi.object({
2120
- __source: ContentPlatformModel.DataLoaderSourceSchema(),
2121
846
  _id: Joi.string().allow(""),
2122
- content: Joi.string().allow(""),
2123
- name: Joi.string().allow(""),
2124
- operation_id: Joi.string().allow(""),
2125
- service: Joi.string().allow(""),
2126
- type: Joi.string().allow(""),
2127
- url: Joi.string().allow(""),
847
+ redirect_from: Joi.string().allow(""),
848
+ redirect_to: Joi.string().allow(""),
849
+ updated_at: Joi.string().allow(""),
850
+ created_at: Joi.string().allow(""),
851
+ __source: ContentPlatformModel.PathSourceSchema(),
2128
852
  });
2129
853
  }
2130
854
 
2131
- /** @returns {DataLoaderSourceSchema} */
2132
- static DataLoaderSourceSchema() {
855
+ /** @returns {PathSourceSchema} */
856
+ static PathSourceSchema() {
2133
857
  return Joi.object({
2134
- id: Joi.string().allow(""),
2135
858
  type: Joi.string().allow(""),
859
+ id: Joi.string().allow(""),
2136
860
  });
2137
861
  }
2138
862
 
2139
- /** @returns {DataLoadersSchema} */
2140
- static DataLoadersSchema() {
2141
- return Joi.object({
2142
- items: Joi.array().items(ContentPlatformModel.DataLoaderSchema()),
2143
- });
2144
- }
2145
-
2146
- /** @returns {Date} */
2147
- static Date() {
863
+ /** @returns {SeoComponent} */
864
+ static SeoComponent() {
2148
865
  return Joi.object({
2149
- category: Joi.string().allow(""),
2150
- list_enabled: Joi.boolean(),
2151
- name: Joi.string().allow(""),
2152
- supported_validations: Joi.array().items(
2153
- ContentPlatformModel.SupportedValidationsSchema()
2154
- ),
2155
- type: Joi.string().allow(""),
866
+ seo: ContentPlatformModel.SeoSchema(),
2156
867
  });
2157
868
  }
2158
869
 
2159
- /** @returns {DateMeta} */
2160
- static DateMeta() {
870
+ /** @returns {SeoSchema} */
871
+ static SeoSchema() {
2161
872
  return Joi.object({
2162
- created_on: Joi.string().allow(""),
2163
- modified_on: Joi.string().allow(""),
873
+ app: Joi.string().allow(""),
874
+ _id: Joi.string().allow(""),
875
+ robots_txt: Joi.string().allow(""),
876
+ sitemap_enabled: Joi.boolean(),
877
+ cannonical_enabled: Joi.boolean(),
878
+ custom_meta_tags: Joi.array().items(ContentPlatformModel.CustomMetaTag()),
879
+ details: ContentPlatformModel.Detail(),
880
+ created_at: Joi.string().allow(""),
881
+ updated_at: Joi.string().allow(""),
2164
882
  });
2165
883
  }
2166
884
 
2167
- /** @returns {Datetime} */
2168
- static Datetime() {
885
+ /** @returns {CustomMetaTag} */
886
+ static CustomMetaTag() {
2169
887
  return Joi.object({
2170
- category: Joi.string().allow(""),
2171
- list_enabled: Joi.boolean(),
2172
888
  name: Joi.string().allow(""),
2173
- supported_validations: Joi.array().items(
2174
- ContentPlatformModel.SupportedValidationsSchema()
2175
- ),
2176
- type: Joi.string().allow(""),
2177
- });
2178
- }
2179
-
2180
- /** @returns {DefaultNavigationResponse} */
2181
- static DefaultNavigationResponse() {
2182
- return Joi.object({
2183
- items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
2184
- });
2185
- }
2186
-
2187
- /** @returns {DefaultSchemaComponent} */
2188
- static DefaultSchemaComponent() {
2189
- return Joi.object({
2190
- items: Joi.array().items(
2191
- ContentPlatformModel.DefaultSEOSchemaMarkupTemplate()
2192
- ),
2193
- });
2194
- }
2195
-
2196
- /** @returns {DefaultSEOSchemaMarkupTemplate} */
2197
- static DefaultSEOSchemaMarkupTemplate() {
2198
- return Joi.object({
2199
- page_type: Joi.string().allow(""),
2200
- schema: Joi.string().allow(""),
2201
- target_json: Joi.object().pattern(/\S/, Joi.any()),
889
+ content: Joi.string().allow(""),
890
+ _id: Joi.string().allow(""),
2202
891
  });
2203
892
  }
2204
893
 
2205
894
  /** @returns {Detail} */
2206
895
  static Detail() {
2207
896
  return Joi.object({
897
+ title: Joi.string().allow(""),
2208
898
  description: Joi.string().allow(""),
2209
899
  image_url: Joi.string().allow(""),
2210
- title: Joi.string().allow(""),
2211
900
  });
2212
901
  }
2213
902
 
2214
- /** @returns {Dropdown} */
2215
- static Dropdown() {
903
+ /** @returns {AnnouncementPageSchema} */
904
+ static AnnouncementPageSchema() {
2216
905
  return Joi.object({
2217
- category: Joi.string().allow(""),
2218
- list_enabled: Joi.boolean(),
2219
- name: Joi.string().allow(""),
2220
- supported_validations: Joi.array().items(
2221
- ContentPlatformModel.SupportedValidationsSchema()
2222
- ),
906
+ page_slug: Joi.string().allow(""),
2223
907
  type: Joi.string().allow(""),
2224
908
  });
2225
909
  }
@@ -2227,140 +911,151 @@ class ContentPlatformModel {
2227
911
  /** @returns {EditorMeta} */
2228
912
  static EditorMeta() {
2229
913
  return Joi.object({
914
+ foreground_color: Joi.string().allow(""),
2230
915
  background_color: Joi.string().allow(""),
2231
- content: Joi.string().allow(""),
2232
916
  content_type: Joi.string().allow(""),
2233
- foreground_color: Joi.string().allow(""),
917
+ content: Joi.string().allow(""),
2234
918
  });
2235
919
  }
2236
920
 
2237
- /** @returns {EmailProperties} */
2238
- static EmailProperties() {
921
+ /** @returns {AnnouncementAuthorSchema} */
922
+ static AnnouncementAuthorSchema() {
2239
923
  return Joi.object({
2240
- key: Joi.string().allow(""),
2241
- value: Joi.string().allow(""),
924
+ created_by: Joi.string().allow(""),
925
+ modified_by: Joi.string().allow(""),
2242
926
  });
2243
927
  }
2244
928
 
2245
- /** @returns {EmailSchema} */
2246
- static EmailSchema() {
929
+ /** @returns {AdminAnnouncementSchema} */
930
+ static AdminAnnouncementSchema() {
2247
931
  return Joi.object({
2248
- active: Joi.boolean(),
2249
- email: Joi.array().items(ContentPlatformModel.EmailProperties()),
932
+ _id: Joi.string().allow(""),
933
+ platforms: Joi.array().items(Joi.string().allow("")),
934
+ title: Joi.string().allow(""),
935
+ announcement: Joi.string().allow(""),
936
+ pages: Joi.array().items(ContentPlatformModel.AnnouncementPageSchema()),
937
+ editor_meta: ContentPlatformModel.EditorMeta(),
938
+ author: ContentPlatformModel.AnnouncementAuthorSchema(),
939
+ created_at: Joi.string().allow(""),
940
+ app: Joi.string().allow(""),
941
+ modified_at: Joi.string().allow(""),
942
+ _schedule: ContentPlatformModel.ScheduleSchema(),
2250
943
  });
2251
944
  }
2252
945
 
2253
- /** @returns {FAQ} */
2254
- static FAQ() {
946
+ /** @returns {ScheduleSchema} */
947
+ static ScheduleSchema() {
2255
948
  return Joi.object({
2256
- answer: Joi.string().allow(""),
2257
- question: Joi.string().allow(""),
2258
- slug: Joi.string().allow(""),
949
+ cron: Joi.string().allow(""),
950
+ start: Joi.string().allow(""),
951
+ end: Joi.string().allow(""),
952
+ duration: Joi.number(),
953
+ next_schedule: Joi.array().items(ContentPlatformModel.NextSchedule()),
2259
954
  });
2260
955
  }
2261
956
 
2262
- /** @returns {FAQCategorySchema} */
2263
- static FAQCategorySchema() {
957
+ /** @returns {NextSchedule} */
958
+ static NextSchedule() {
2264
959
  return Joi.object({
2265
- _custom_json: Joi.any(),
2266
- _id: Joi.string().allow(""),
2267
- application: Joi.string().allow(""),
2268
- children: Joi.array().items(ContentPlatformModel.ChildrenSchema()),
2269
- description: Joi.string().allow(""),
2270
- icon_url: Joi.string().allow(""),
2271
- index: Joi.number(),
2272
- slug: Joi.string().allow(""),
2273
- title: Joi.string().allow(""),
960
+ start: Joi.string().allow(""),
961
+ end: Joi.string().allow(""),
2274
962
  });
2275
963
  }
2276
964
 
2277
- /** @returns {FaqSchema} */
2278
- static FaqSchema() {
965
+ /** @returns {BlogGetResponse} */
966
+ static BlogGetResponse() {
2279
967
  return Joi.object({
2280
- _id: Joi.string().allow(""),
2281
- answer: Joi.string().allow(""),
2282
- application: Joi.string().allow(""),
2283
- question: Joi.string().allow(""),
2284
- slug: Joi.string().allow(""),
2285
- tags: Joi.array().items(Joi.string().allow("")),
968
+ items: Joi.array().items(ContentPlatformModel.BlogSchema()),
969
+ page: ContentPlatformModel.Page(),
2286
970
  });
2287
971
  }
2288
972
 
2289
- /** @returns {FieldDefinitionSchema} */
2290
- static FieldDefinitionSchema() {
973
+ /** @returns {ResourceContent} */
974
+ static ResourceContent() {
2291
975
  return Joi.object({
2292
- _id: Joi.string().allow(""),
2293
- company_id: Joi.string().allow(""),
2294
- created_at: Joi.string().allow(""),
2295
- created_by: Joi.string().allow(""),
2296
- creator: Joi.string().allow(""),
2297
- description: Joi.string().allow(""),
2298
- invalid_fields_count: Joi.number(),
2299
- is_deleted: Joi.boolean(),
2300
- key: Joi.string().allow(""),
2301
- multi_value: Joi.boolean(),
2302
- name: Joi.string().allow(""),
2303
- namespace: Joi.string().allow(""),
2304
- required: Joi.boolean(),
2305
- resource: Joi.string().allow(""),
2306
976
  type: Joi.string().allow(""),
2307
- type_name: Joi.string().allow(""),
2308
- updated_at: Joi.string().allow(""),
2309
- updated_by: Joi.string().allow(""),
2310
- validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
977
+ value: Joi.string().allow(""),
978
+ });
979
+ }
980
+
981
+ /** @returns {Asset} */
982
+ static Asset() {
983
+ return Joi.object({
984
+ aspect_ratio: Joi.string().allow(""),
985
+ id: Joi.string().allow(""),
986
+ secure_url: Joi.string().allow(""),
987
+ });
988
+ }
989
+
990
+ /** @returns {Author} */
991
+ static Author() {
992
+ return Joi.object({
993
+ designation: Joi.string().allow(""),
994
+ id: Joi.string().allow(""),
995
+ name: Joi.string().allow(""),
2311
996
  });
2312
997
  }
2313
998
 
2314
- /** @returns {FieldValidations} */
2315
- static FieldValidations() {
999
+ /** @returns {BlogSchema} */
1000
+ static BlogSchema() {
2316
1001
  return Joi.object({
2317
- name: Joi.string().allow(""),
2318
- type: Joi.string().allow(""),
2319
- value: Joi.any(),
1002
+ _id: Joi.string().allow(""),
1003
+ _custom_json: Joi.any(),
1004
+ application: Joi.string().allow(""),
1005
+ archived: Joi.boolean(),
1006
+ author: ContentPlatformModel.Author(),
1007
+ content: Joi.array().items(ContentPlatformModel.ResourceContent()),
1008
+ feature_image: ContentPlatformModel.Asset(),
1009
+ published: Joi.boolean(),
1010
+ reading_time: Joi.string().allow(""),
1011
+ slug: Joi.string().allow(""),
1012
+ tags: Joi.array().items(Joi.string().allow("")),
1013
+ seo: ContentPlatformModel.SEO(),
1014
+ _schedule: ContentPlatformModel.CronSchedule(),
1015
+ title: Joi.string().allow(""),
1016
+ date_meta: ContentPlatformModel.DateMeta(),
2320
1017
  });
2321
1018
  }
2322
1019
 
2323
- /** @returns {File} */
2324
- static File() {
1020
+ /** @returns {SEO} */
1021
+ static SEO() {
2325
1022
  return Joi.object({
2326
- category: Joi.string().allow(""),
2327
- list_enabled: Joi.boolean(),
2328
- name: Joi.string().allow(""),
2329
- supported_validations: Joi.array().items(
2330
- ContentPlatformModel.SupportedValidationsSchema()
2331
- ),
2332
- type: Joi.string().allow(""),
1023
+ description: Joi.string().allow(""),
1024
+ image: ContentPlatformModel.SEOImage(),
1025
+ title: Joi.string().allow(""),
2333
1026
  });
2334
1027
  }
2335
1028
 
2336
- /** @returns {FloatType} */
2337
- static FloatType() {
1029
+ /** @returns {SEOImage} */
1030
+ static SEOImage() {
2338
1031
  return Joi.object({
2339
- category: Joi.string().allow(""),
2340
- list_enabled: Joi.boolean(),
2341
- name: Joi.string().allow(""),
2342
- supported_validations: Joi.array().items(
2343
- ContentPlatformModel.SupportedValidationsSchema()
2344
- ),
2345
- type: Joi.string().allow(""),
1032
+ url: Joi.string().allow(""),
2346
1033
  });
2347
1034
  }
2348
1035
 
2349
- /** @returns {GeneratedSEOContent} */
2350
- static GeneratedSEOContent() {
1036
+ /** @returns {DateMeta} */
1037
+ static DateMeta() {
2351
1038
  return Joi.object({
2352
- description: Joi.string().allow(""),
2353
- title: Joi.string().allow(""),
1039
+ created_on: Joi.string().allow(""),
1040
+ modified_on: Joi.string().allow(""),
2354
1041
  });
2355
1042
  }
2356
1043
 
2357
- /** @returns {GenerateSEOContent} */
2358
- static GenerateSEOContent() {
1044
+ /** @returns {BlogRequest} */
1045
+ static BlogRequest() {
2359
1046
  return Joi.object({
2360
- existing_text: Joi.string().allow(""),
2361
- keywords: Joi.array().items(Joi.string().allow("")),
2362
- text: Joi.string().allow(""),
2363
- type: Joi.string().allow(""),
1047
+ application: Joi.string().allow(""),
1048
+ _custom_json: Joi.any(),
1049
+ author: ContentPlatformModel.Author(),
1050
+ content: Joi.array().items(ContentPlatformModel.ResourceContent()),
1051
+ feature_image: ContentPlatformModel.Asset(),
1052
+ published: Joi.boolean(),
1053
+ reading_time: Joi.string().allow(""),
1054
+ slug: Joi.string().allow(""),
1055
+ tags: Joi.array().items(Joi.string().allow("")),
1056
+ title: Joi.string().allow(""),
1057
+ seo: ContentPlatformModel.SEO(),
1058
+ _schedule: ContentPlatformModel.CronSchedule(),
2364
1059
  });
2365
1060
  }
2366
1061
 
@@ -2372,678 +1067,667 @@ class ContentPlatformModel {
2372
1067
  });
2373
1068
  }
2374
1069
 
2375
- /** @returns {GetFaqCategoriesSchema} */
2376
- static GetFaqCategoriesSchema() {
1070
+ /** @returns {CreateAnnouncementSchema} */
1071
+ static CreateAnnouncementSchema() {
2377
1072
  return Joi.object({
2378
- categories: Joi.array().items(ContentPlatformModel.CategorySchema()),
1073
+ message: Joi.string().allow(""),
1074
+ data: ContentPlatformModel.AdminAnnouncementSchema(),
2379
1075
  });
2380
1076
  }
2381
1077
 
2382
- /** @returns {GetFaqCategoryBySlugSchema} */
2383
- static GetFaqCategoryBySlugSchema() {
1078
+ /** @returns {DataLoaderResponseSchema} */
1079
+ static DataLoaderResponseSchema() {
2384
1080
  return Joi.object({
2385
- category: ContentPlatformModel.FAQCategorySchema(),
1081
+ application: Joi.string().allow(""),
1082
+ company: Joi.string().allow(""),
1083
+ _id: Joi.string().allow(""),
1084
+ name: Joi.string().allow(""),
1085
+ service: Joi.string().allow(""),
1086
+ operation_id: Joi.string().allow(""),
1087
+ type: Joi.string().allow(""),
1088
+ url: Joi.string().allow(""),
1089
+ content: Joi.string().allow(""),
1090
+ __source: ContentPlatformModel.DataLoaderSourceSchema(),
2386
1091
  });
2387
1092
  }
2388
1093
 
2389
- /** @returns {GetFaqSchema} */
2390
- static GetFaqSchema() {
1094
+ /** @returns {DataLoaderResetResponseSchema} */
1095
+ static DataLoaderResetResponseSchema() {
2391
1096
  return Joi.object({
2392
- faqs: Joi.array().items(ContentPlatformModel.FaqSchema()),
1097
+ reset: Joi.boolean(),
2393
1098
  });
2394
1099
  }
2395
1100
 
2396
- /** @returns {HandpickedTagSchema} */
2397
- static HandpickedTagSchema() {
1101
+ /** @returns {LocaleLanguage} */
1102
+ static LocaleLanguage() {
2398
1103
  return Joi.object({
2399
- attributes: Joi.any(),
2400
- content: Joi.string().allow(""),
2401
- name: Joi.string().allow(""),
2402
- position: Joi.string().allow(""),
2403
- sub_type: Joi.string().allow(""),
2404
- type: Joi.string().allow(""),
2405
- url: Joi.string().allow(""),
1104
+ hi: ContentPlatformModel.Language(),
1105
+ ar: ContentPlatformModel.Language(),
1106
+ en_us: ContentPlatformModel.Language(),
2406
1107
  });
2407
1108
  }
2408
1109
 
2409
- /** @returns {Integer} */
2410
- static Integer() {
1110
+ /** @returns {Language} */
1111
+ static Language() {
2411
1112
  return Joi.object({
2412
- category: Joi.string().allow(""),
2413
- list_enabled: Joi.boolean(),
2414
- name: Joi.string().allow(""),
2415
- supported_validations: Joi.array().items(
2416
- ContentPlatformModel.SupportedValidationsSchema()
2417
- ),
2418
- type: Joi.string().allow(""),
1113
+ display: Joi.string().allow(""),
2419
1114
  });
2420
1115
  }
2421
1116
 
2422
- /** @returns {Json} */
2423
- static Json() {
1117
+ /** @returns {Action} */
1118
+ static Action() {
2424
1119
  return Joi.object({
2425
- category: Joi.string().allow(""),
2426
- list_enabled: Joi.boolean(),
2427
- name: Joi.string().allow(""),
2428
- supported_validations: Joi.array().items(
2429
- ContentPlatformModel.SupportedValidationsSchema()
2430
- ),
1120
+ page: ContentPlatformModel.ActionPage(),
1121
+ popup: ContentPlatformModel.ActionPage(),
2431
1122
  type: Joi.string().allow(""),
2432
1123
  });
2433
1124
  }
2434
1125
 
2435
- /** @returns {LandingPageGetResponse} */
2436
- static LandingPageGetResponse() {
1126
+ /** @returns {ActionPage} */
1127
+ static ActionPage() {
2437
1128
  return Joi.object({
2438
- items: Joi.array().items(ContentPlatformModel.LandingPageSchema()),
2439
- page: ContentPlatformModel.Page(),
1129
+ params: Joi.object().pattern(
1130
+ /\S/,
1131
+ Joi.array().items(Joi.string().allow(""))
1132
+ ),
1133
+ query: Joi.object().pattern(
1134
+ /\S/,
1135
+ Joi.array().items(Joi.string().allow(""))
1136
+ ),
1137
+ url: Joi.string().allow(""),
1138
+ type: ContentPlatformModel.PageType().required(),
2440
1139
  });
2441
1140
  }
2442
1141
 
2443
- /** @returns {LandingPageSchema} */
2444
- static LandingPageSchema() {
1142
+ /** @returns {NavigationReference} */
1143
+ static NavigationReference() {
2445
1144
  return Joi.object({
2446
- _custom_json: Joi.any(),
2447
- _id: Joi.string().allow(""),
1145
+ acl: Joi.array().items(Joi.string().allow("")),
1146
+ tags: Joi.array().items(Joi.string().allow("")),
1147
+ _locale_language: ContentPlatformModel.LocaleLanguage(),
1148
+ image: Joi.string().allow(""),
1149
+ type: Joi.string().allow(""),
2448
1150
  action: ContentPlatformModel.Action(),
2449
- application: Joi.string().allow(""),
2450
- archived: Joi.boolean(),
2451
- created_by: ContentPlatformModel.CreatedBySchema(),
2452
- date_meta: ContentPlatformModel.DateMeta(),
2453
- platform: Joi.array().items(Joi.string().allow("")),
2454
- slug: Joi.string().allow(""),
1151
+ active: Joi.boolean(),
1152
+ display: Joi.string().allow(""),
1153
+ sort_order: Joi.number(),
1154
+ sub_navigation: Joi.array().items(Joi.link("#NavigationReference")),
1155
+ }).id("NavigationReference");
1156
+ }
1157
+
1158
+ /** @returns {ConfigurationSchema} */
1159
+ static ConfigurationSchema() {
1160
+ return Joi.object({
1161
+ sleep_time: Joi.number(),
1162
+ start_on_launch: Joi.boolean(),
1163
+ duration: Joi.number(),
1164
+ slide_direction: Joi.string().allow(""),
2455
1165
  });
2456
1166
  }
2457
1167
 
2458
- /** @returns {Language} */
2459
- static Language() {
1168
+ /** @returns {SlideshowMedia} */
1169
+ static SlideshowMedia() {
2460
1170
  return Joi.object({
2461
- display: Joi.string().allow(""),
1171
+ type: Joi.string().allow(""),
1172
+ url: Joi.string().allow(""),
1173
+ bg_color: Joi.string().allow(""),
1174
+ duration: Joi.number(),
1175
+ auto_decide_duration: Joi.boolean(),
1176
+ action: ContentPlatformModel.Action(),
2462
1177
  });
2463
1178
  }
2464
1179
 
2465
- /** @returns {LocaleLanguage} */
2466
- static LocaleLanguage() {
1180
+ /** @returns {UpdateHandpickedSchema} */
1181
+ static UpdateHandpickedSchema() {
2467
1182
  return Joi.object({
2468
- ar: ContentPlatformModel.Language(),
2469
- en_us: ContentPlatformModel.Language(),
2470
- hi: ContentPlatformModel.Language(),
1183
+ tag: ContentPlatformModel.HandpickedTagSchema(),
2471
1184
  });
2472
1185
  }
2473
1186
 
2474
- /** @returns {Metaobject} */
2475
- static Metaobject() {
1187
+ /** @returns {HandpickedTagSchema} */
1188
+ static HandpickedTagSchema() {
2476
1189
  return Joi.object({
2477
- category: Joi.string().allow(""),
2478
- list_enabled: Joi.boolean(),
1190
+ position: Joi.string().allow(""),
1191
+ attributes: Joi.any(),
2479
1192
  name: Joi.string().allow(""),
2480
- supported_validations: Joi.array().items(
2481
- ContentPlatformModel.SupportedValidationsSchema()
2482
- ),
1193
+ url: Joi.string().allow(""),
2483
1194
  type: Joi.string().allow(""),
1195
+ sub_type: Joi.string().allow(""),
1196
+ content: Joi.string().allow(""),
2484
1197
  });
2485
1198
  }
2486
1199
 
2487
- /** @returns {NavigationGetResponse} */
2488
- static NavigationGetResponse() {
1200
+ /** @returns {RemoveHandpickedSchema} */
1201
+ static RemoveHandpickedSchema() {
2489
1202
  return Joi.object({
2490
- items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
2491
- page: ContentPlatformModel.Page(),
1203
+ tags: Joi.array().items(Joi.string().allow("")),
2492
1204
  });
2493
1205
  }
2494
1206
 
2495
- /** @returns {NavigationReference} */
2496
- static NavigationReference() {
1207
+ /** @returns {CreateTagSchema} */
1208
+ static CreateTagSchema() {
2497
1209
  return Joi.object({
2498
- _locale_language: ContentPlatformModel.LocaleLanguage(),
2499
- acl: Joi.array().items(Joi.string().allow("")),
2500
- action: ContentPlatformModel.Action(),
2501
- active: Joi.boolean(),
2502
- display: Joi.string().allow(""),
2503
- image: Joi.string().allow(""),
2504
- sort_order: Joi.number(),
2505
- sub_navigation: Joi.array().items(Joi.link("#NavigationReference")),
2506
- tags: Joi.array().items(Joi.string().allow("")),
1210
+ name: Joi.string().allow(""),
1211
+ sub_type: Joi.string().allow(""),
1212
+ _id: Joi.string().allow(""),
2507
1213
  type: Joi.string().allow(""),
2508
- }).id("NavigationReference");
1214
+ url: Joi.string().allow(""),
1215
+ position: Joi.string().allow(""),
1216
+ attributes: Joi.any(),
1217
+ pages: Joi.array().items(Joi.any()),
1218
+ content: Joi.string().allow(""),
1219
+ });
2509
1220
  }
2510
1221
 
2511
- /** @returns {NavigationRequest} */
2512
- static NavigationRequest() {
1222
+ /** @returns {CreateTagRequestSchema} */
1223
+ static CreateTagRequestSchema() {
2513
1224
  return Joi.object({
2514
- name: Joi.string().allow(""),
2515
- navigation: Joi.array().items(ContentPlatformModel.NavigationReference()),
2516
- orientation: ContentPlatformModel.Orientation(),
2517
- platform: Joi.array().items(Joi.string().allow("")),
2518
- slug: Joi.string().allow(""),
1225
+ tags: Joi.array().items(ContentPlatformModel.CreateTagSchema()),
2519
1226
  });
2520
1227
  }
2521
1228
 
2522
- /** @returns {NavigationSchema} */
2523
- static NavigationSchema() {
1229
+ /** @returns {DataLoaderSchema} */
1230
+ static DataLoaderSchema() {
2524
1231
  return Joi.object({
2525
- _id: Joi.string().allow(""),
2526
- application: Joi.string().allow(""),
2527
- archived: Joi.boolean(),
2528
- created_by: ContentPlatformModel.CreatedBySchema(),
2529
- date_meta: ContentPlatformModel.DateMeta(),
2530
1232
  name: Joi.string().allow(""),
2531
- navigation: Joi.array().items(ContentPlatformModel.NavigationReference()),
2532
- orientation: ContentPlatformModel.Orientation(),
2533
- platform: Joi.array().items(Joi.string().allow("")),
2534
- slug: Joi.string().allow(""),
2535
- version: Joi.number(),
1233
+ service: Joi.string().allow(""),
1234
+ operation_id: Joi.string().allow(""),
1235
+ type: Joi.string().allow(""),
1236
+ url: Joi.string().allow(""),
1237
+ content: Joi.string().allow(""),
1238
+ __source: ContentPlatformModel.DataLoaderSourceSchema(),
1239
+ _id: Joi.string().allow(""),
1240
+ });
1241
+ }
1242
+
1243
+ /** @returns {DataLoaderSourceSchema} */
1244
+ static DataLoaderSourceSchema() {
1245
+ return Joi.object({
1246
+ type: Joi.string().allow(""),
1247
+ id: Joi.string().allow(""),
2536
1248
  });
2537
1249
  }
2538
1250
 
2539
- /** @returns {NextSchedule} */
2540
- static NextSchedule() {
1251
+ /** @returns {DataLoadersSchema} */
1252
+ static DataLoadersSchema() {
2541
1253
  return Joi.object({
2542
- end: Joi.string().allow(""),
2543
- start: Joi.string().allow(""),
1254
+ items: Joi.array().items(ContentPlatformModel.DataLoaderSchema()),
2544
1255
  });
2545
1256
  }
2546
1257
 
2547
- /** @returns {Orientation} */
2548
- static Orientation() {
1258
+ /** @returns {TagDeleteSuccessResponse} */
1259
+ static TagDeleteSuccessResponse() {
2549
1260
  return Joi.object({
2550
- landscape: Joi.array().items(Joi.string().allow("")),
2551
- portrait: Joi.array().items(Joi.string().allow("")),
1261
+ success: Joi.boolean(),
2552
1262
  });
2553
1263
  }
2554
1264
 
2555
- /** @returns {Page} */
2556
- static Page() {
1265
+ /** @returns {ContentAPIError} */
1266
+ static ContentAPIError() {
2557
1267
  return Joi.object({
2558
- current: Joi.number(),
2559
- has_next: Joi.boolean(),
2560
- has_previous: Joi.boolean(),
2561
- item_total: Joi.number(),
2562
- next_id: Joi.string().allow(""),
2563
- size: Joi.number(),
2564
- type: Joi.string().allow("").required(),
1268
+ message: Joi.string().allow(""),
1269
+ status: Joi.number(),
1270
+ code: Joi.string().allow(""),
1271
+ exception: Joi.string().allow(""),
1272
+ info: Joi.string().allow(""),
1273
+ request_id: Joi.string().allow(""),
1274
+ stack_trace: Joi.string().allow(""),
1275
+ meta: Joi.any(),
2565
1276
  });
2566
1277
  }
2567
1278
 
2568
- /** @returns {PageGetResponse} */
2569
- static PageGetResponse() {
1279
+ /** @returns {CommonError} */
1280
+ static CommonError() {
2570
1281
  return Joi.object({
2571
- items: Joi.array().items(ContentPlatformModel.PageSchema()),
2572
- page: ContentPlatformModel.Page(),
1282
+ message: Joi.string().allow(""),
2573
1283
  });
2574
1284
  }
2575
1285
 
2576
- /** @returns {PageMetaSchema} */
2577
- static PageMetaSchema() {
1286
+ /** @returns {CategorySchema} */
1287
+ static CategorySchema() {
2578
1288
  return Joi.object({
2579
- application_id: Joi.string().allow(""),
2580
- custom_pages: Joi.array().items(ContentPlatformModel.PageSchema()),
2581
- system_pages: Joi.array().items(ContentPlatformModel.NavigationSchema()),
1289
+ index: Joi.number(),
1290
+ title: Joi.string().allow(""),
1291
+ description: Joi.string().allow(""),
1292
+ children: Joi.array().items(Joi.string().allow("")),
1293
+ _id: Joi.string().allow(""),
1294
+ slug: Joi.string().allow(""),
1295
+ application: Joi.string().allow(""),
1296
+ icon_url: Joi.string().allow(""),
1297
+ _custom_json: Joi.any(),
2582
1298
  });
2583
1299
  }
2584
1300
 
2585
- /** @returns {PagePublishRequest} */
2586
- static PagePublishRequest() {
1301
+ /** @returns {ChildrenSchema} */
1302
+ static ChildrenSchema() {
2587
1303
  return Joi.object({
2588
- publish: Joi.boolean(),
1304
+ question: Joi.string().allow(""),
1305
+ answer: Joi.string().allow(""),
1306
+ slug: Joi.string().allow(""),
1307
+ application: Joi.string().allow(""),
1308
+ _id: Joi.string().allow(""),
2589
1309
  });
2590
1310
  }
2591
1311
 
2592
- /** @returns {PageRequest} */
2593
- static PageRequest() {
1312
+ /** @returns {CategoryRequestSchema} */
1313
+ static CategoryRequestSchema() {
2594
1314
  return Joi.object({
2595
- _custom_json: Joi.any(),
2596
- _schedule: ContentPlatformModel.CronSchedule(),
2597
- application: Joi.string().allow(""),
2598
- author: ContentPlatformModel.Author(),
2599
- content: Joi.array().items(Joi.any()),
2600
- feature_image: ContentPlatformModel.Asset(),
2601
- orientation: Joi.string().allow(""),
2602
- published: Joi.boolean(),
2603
- reading_time: Joi.string().allow(""),
2604
- seo: ContentPlatformModel.SEO(),
2605
1315
  slug: Joi.string().allow(""),
2606
- tags: Joi.array().items(Joi.string().allow("")),
2607
1316
  title: Joi.string().allow(""),
2608
1317
  });
2609
1318
  }
2610
1319
 
2611
- /** @returns {PageSchema} */
2612
- static PageSchema() {
1320
+ /** @returns {FAQCategorySchema} */
1321
+ static FAQCategorySchema() {
2613
1322
  return Joi.object({
2614
- _custom_json: Joi.any(),
1323
+ index: Joi.number(),
1324
+ title: Joi.string().allow(""),
1325
+ description: Joi.string().allow(""),
1326
+ children: Joi.array().items(ContentPlatformModel.ChildrenSchema()),
2615
1327
  _id: Joi.string().allow(""),
2616
- _schedule: ContentPlatformModel.ScheduleSchema(),
1328
+ slug: Joi.string().allow(""),
2617
1329
  application: Joi.string().allow(""),
2618
- archived: Joi.boolean(),
2619
- component_ids: Joi.array().items(Joi.string().allow("")),
2620
- content: Joi.array().items(Joi.any()),
2621
- content_path: Joi.string().allow(""),
2622
- created_by: ContentPlatformModel.CreatedBySchema(),
2623
- date_meta: ContentPlatformModel.DateMeta(),
2624
- description: Joi.string().allow(""),
2625
- feature_image: ContentPlatformModel.Asset(),
2626
- orientation: Joi.string().allow(""),
2627
- page_meta: Joi.array().items(Joi.any()),
2628
- platform: Joi.string().allow(""),
2629
- published: Joi.boolean(),
2630
- seo: ContentPlatformModel.SEO(),
1330
+ icon_url: Joi.string().allow(""),
1331
+ _custom_json: Joi.any(),
1332
+ });
1333
+ }
1334
+
1335
+ /** @returns {FaqSchema} */
1336
+ static FaqSchema() {
1337
+ return Joi.object({
2631
1338
  slug: Joi.string().allow(""),
1339
+ application: Joi.string().allow(""),
1340
+ _id: Joi.string().allow(""),
1341
+ question: Joi.string().allow(""),
1342
+ answer: Joi.string().allow(""),
2632
1343
  tags: Joi.array().items(Joi.string().allow("")),
2633
- title: Joi.string().allow(""),
2634
- type: Joi.string().allow(""),
2635
- visibility: Joi.any(),
2636
1344
  });
2637
1345
  }
2638
1346
 
2639
- /** @returns {PageSpec} */
2640
- static PageSpec() {
1347
+ /** @returns {FAQ} */
1348
+ static FAQ() {
2641
1349
  return Joi.object({
2642
- specifications: Joi.array().items(ContentPlatformModel.PageSpecItem()),
1350
+ slug: Joi.string().allow(""),
1351
+ question: Joi.string().allow(""),
1352
+ answer: Joi.string().allow(""),
2643
1353
  });
2644
1354
  }
2645
1355
 
2646
- /** @returns {PageSpecItem} */
2647
- static PageSpecItem() {
1356
+ /** @returns {CreateFaqResponseSchema} */
1357
+ static CreateFaqResponseSchema() {
2648
1358
  return Joi.object({
2649
- display_name: Joi.string().allow(""),
2650
- page_type: Joi.string().allow(""),
2651
- params: Joi.array().items(ContentPlatformModel.PageSpecParam()),
2652
- query: Joi.array().items(ContentPlatformModel.PageSpecParam()),
1359
+ faq: ContentPlatformModel.FaqSchema(),
2653
1360
  });
2654
1361
  }
2655
1362
 
2656
- /** @returns {PageSpecParam} */
2657
- static PageSpecParam() {
1363
+ /** @returns {CreateFaqSchema} */
1364
+ static CreateFaqSchema() {
2658
1365
  return Joi.object({
2659
- key: Joi.string().allow(""),
2660
- required: Joi.boolean(),
1366
+ faq: ContentPlatformModel.FAQ(),
2661
1367
  });
2662
1368
  }
2663
1369
 
2664
- /** @returns {PathMappingSchema} */
2665
- static PathMappingSchema() {
1370
+ /** @returns {GetFaqSchema} */
1371
+ static GetFaqSchema() {
2666
1372
  return Joi.object({
2667
- __source: ContentPlatformModel.PathSourceSchema(),
2668
- _id: Joi.string().allow(""),
2669
- application: Joi.string().allow(""),
2670
- created_at: Joi.string().allow(""),
2671
- redirect_from: Joi.string().allow(""),
2672
- redirect_to: Joi.string().allow(""),
2673
- updated_at: Joi.string().allow(""),
1373
+ faqs: Joi.array().items(ContentPlatformModel.FaqSchema()),
2674
1374
  });
2675
1375
  }
2676
1376
 
2677
- /** @returns {PathSourceSchema} */
2678
- static PathSourceSchema() {
1377
+ /** @returns {UpdateFaqCategoryRequestSchema} */
1378
+ static UpdateFaqCategoryRequestSchema() {
2679
1379
  return Joi.object({
2680
- id: Joi.string().allow(""),
2681
- type: Joi.string().allow(""),
1380
+ category: ContentPlatformModel.CategorySchema(),
2682
1381
  });
2683
1382
  }
2684
1383
 
2685
- /** @returns {PhoneProperties} */
2686
- static PhoneProperties() {
1384
+ /** @returns {CreateFaqCategoryRequestSchema} */
1385
+ static CreateFaqCategoryRequestSchema() {
2687
1386
  return Joi.object({
2688
- code: Joi.string().allow(""),
2689
- key: Joi.string().allow(""),
2690
- number: Joi.string().allow(""),
1387
+ category: ContentPlatformModel.CategoryRequestSchema(),
2691
1388
  });
2692
1389
  }
2693
1390
 
2694
- /** @returns {PhoneSchema} */
2695
- static PhoneSchema() {
1391
+ /** @returns {CreateFaqCategorySchema} */
1392
+ static CreateFaqCategorySchema() {
2696
1393
  return Joi.object({
2697
- active: Joi.boolean(),
2698
- phone: Joi.array().items(ContentPlatformModel.PhoneProperties()),
1394
+ category: ContentPlatformModel.CategorySchema(),
2699
1395
  });
2700
1396
  }
2701
1397
 
2702
- /** @returns {Product} */
2703
- static Product() {
1398
+ /** @returns {GetFaqCategoriesSchema} */
1399
+ static GetFaqCategoriesSchema() {
2704
1400
  return Joi.object({
2705
- category: Joi.string().allow(""),
2706
- list_enabled: Joi.boolean(),
2707
- name: Joi.string().allow(""),
2708
- supported_validations: Joi.array().items(
2709
- ContentPlatformModel.SupportedValidationsSchema()
2710
- ),
2711
- type: Joi.string().allow(""),
1401
+ categories: Joi.array().items(ContentPlatformModel.CategorySchema()),
2712
1402
  });
2713
1403
  }
2714
1404
 
2715
- /** @returns {RemoveHandpickedSchema} */
2716
- static RemoveHandpickedSchema() {
1405
+ /** @returns {GetFaqCategoryBySlugSchema} */
1406
+ static GetFaqCategoryBySlugSchema() {
2717
1407
  return Joi.object({
2718
- tags: Joi.array().items(Joi.string().allow("")),
1408
+ category: ContentPlatformModel.FAQCategorySchema(),
2719
1409
  });
2720
1410
  }
2721
1411
 
2722
- /** @returns {ResourceContent} */
2723
- static ResourceContent() {
1412
+ /** @returns {Page} */
1413
+ static Page() {
2724
1414
  return Joi.object({
2725
- type: Joi.string().allow(""),
2726
- value: Joi.string().allow(""),
1415
+ item_total: Joi.number(),
1416
+ next_id: Joi.string().allow(""),
1417
+ has_previous: Joi.boolean(),
1418
+ has_next: Joi.boolean(),
1419
+ current: Joi.number(),
1420
+ type: Joi.string().allow("").required(),
1421
+ size: Joi.number(),
2727
1422
  });
2728
1423
  }
2729
1424
 
2730
- /** @returns {ResourceSchema} */
2731
- static ResourceSchema() {
1425
+ /** @returns {LandingPageGetResponse} */
1426
+ static LandingPageGetResponse() {
2732
1427
  return Joi.object({
2733
- definitions_count: Joi.number(),
2734
- key: Joi.string().allow(""),
2735
- name: Joi.string().allow(""),
1428
+ items: Joi.array().items(ContentPlatformModel.LandingPageSchema()),
1429
+ page: ContentPlatformModel.Page(),
2736
1430
  });
2737
1431
  }
2738
1432
 
2739
- /** @returns {ResourcesSchema} */
2740
- static ResourcesSchema() {
1433
+ /** @returns {LandingPageSchema} */
1434
+ static LandingPageSchema() {
2741
1435
  return Joi.object({
2742
- resources: Joi.array().items(ContentPlatformModel.ResourceSchema()),
1436
+ slug: Joi.string().allow(""),
1437
+ action: ContentPlatformModel.Action(),
1438
+ platform: Joi.array().items(Joi.string().allow("")),
1439
+ created_by: ContentPlatformModel.CreatedBySchema(),
1440
+ date_meta: ContentPlatformModel.DateMeta(),
1441
+ _id: Joi.string().allow(""),
1442
+ application: Joi.string().allow(""),
1443
+ archived: Joi.boolean(),
1444
+ _custom_json: Joi.any(),
2743
1445
  });
2744
1446
  }
2745
1447
 
2746
- /** @returns {ScheduleSchema} */
2747
- static ScheduleSchema() {
1448
+ /** @returns {DefaultNavigationResponse} */
1449
+ static DefaultNavigationResponse() {
2748
1450
  return Joi.object({
2749
- cron: Joi.string().allow(""),
2750
- duration: Joi.number(),
2751
- end: Joi.string().allow(""),
2752
- next_schedule: Joi.array().items(ContentPlatformModel.NextSchedule()),
2753
- start: Joi.string().allow(""),
1451
+ items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
2754
1452
  });
2755
1453
  }
2756
1454
 
2757
- /** @returns {SEO} */
2758
- static SEO() {
1455
+ /** @returns {NavigationGetResponse} */
1456
+ static NavigationGetResponse() {
2759
1457
  return Joi.object({
2760
- breadcrumb: Joi.array().items(ContentPlatformModel.SEObreadcrumb()),
2761
- canonical_url: Joi.string().allow(""),
2762
- description: Joi.string().allow(""),
2763
- image: ContentPlatformModel.SEOImage(),
2764
- meta_tags: Joi.array().items(ContentPlatformModel.SEOMetaItem()),
2765
- sitemap: ContentPlatformModel.SEOSitemap(),
2766
- title: Joi.string().allow(""),
1458
+ items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
1459
+ page: ContentPlatformModel.Page(),
2767
1460
  });
2768
1461
  }
2769
1462
 
2770
- /** @returns {SEObreadcrumb} */
2771
- static SEObreadcrumb() {
1463
+ /** @returns {Orientation} */
1464
+ static Orientation() {
2772
1465
  return Joi.object({
2773
- action: ContentPlatformModel.Action(),
2774
- url: Joi.string().allow(""),
1466
+ portrait: Joi.array().items(Joi.string().allow("")),
1467
+ landscape: Joi.array().items(Joi.string().allow("")),
1468
+ });
1469
+ }
1470
+
1471
+ /** @returns {NavigationSchema} */
1472
+ static NavigationSchema() {
1473
+ return Joi.object({
1474
+ _id: Joi.string().allow(""),
1475
+ application: Joi.string().allow(""),
1476
+ archived: Joi.boolean(),
1477
+ name: Joi.string().allow(""),
1478
+ slug: Joi.string().allow(""),
1479
+ platform: Joi.array().items(Joi.string().allow("")),
1480
+ created_by: ContentPlatformModel.CreatedBySchema(),
1481
+ date_meta: ContentPlatformModel.DateMeta(),
1482
+ orientation: ContentPlatformModel.Orientation(),
1483
+ version: Joi.number(),
1484
+ navigation: Joi.array().items(ContentPlatformModel.NavigationReference()),
2775
1485
  });
2776
1486
  }
2777
1487
 
2778
- /** @returns {SeoComponent} */
2779
- static SeoComponent() {
1488
+ /** @returns {NavigationRequest} */
1489
+ static NavigationRequest() {
2780
1490
  return Joi.object({
2781
- seo: ContentPlatformModel.SeoSchema(),
1491
+ name: Joi.string().allow(""),
1492
+ slug: Joi.string().allow(""),
1493
+ platform: Joi.array().items(Joi.string().allow("")),
1494
+ orientation: ContentPlatformModel.Orientation(),
1495
+ navigation: Joi.array().items(ContentPlatformModel.NavigationReference()),
2782
1496
  });
2783
1497
  }
2784
1498
 
2785
- /** @returns {SEOImage} */
2786
- static SEOImage() {
1499
+ /** @returns {PageGetResponse} */
1500
+ static PageGetResponse() {
2787
1501
  return Joi.object({
2788
- url: Joi.string().allow(""),
1502
+ items: Joi.array().items(ContentPlatformModel.PageSchema()),
1503
+ page: ContentPlatformModel.Page(),
2789
1504
  });
2790
1505
  }
2791
1506
 
2792
- /** @returns {SEOMetaItem} */
2793
- static SEOMetaItem() {
1507
+ /** @returns {PageSpec} */
1508
+ static PageSpec() {
2794
1509
  return Joi.object({
2795
- items: Joi.array().items(ContentPlatformModel.SEOMetaItems()),
2796
- title: Joi.string().allow(""),
1510
+ specifications: Joi.array().items(ContentPlatformModel.PageSpecItem()),
2797
1511
  });
2798
1512
  }
2799
1513
 
2800
- /** @returns {SEOMetaItems} */
2801
- static SEOMetaItems() {
1514
+ /** @returns {PageSpecParam} */
1515
+ static PageSpecParam() {
2802
1516
  return Joi.object({
2803
1517
  key: Joi.string().allow(""),
2804
- value: Joi.string().allow(""),
1518
+ required: Joi.boolean(),
2805
1519
  });
2806
1520
  }
2807
1521
 
2808
- /** @returns {SeoSchema} */
2809
- static SeoSchema() {
1522
+ /** @returns {PageSpecItem} */
1523
+ static PageSpecItem() {
2810
1524
  return Joi.object({
2811
- _id: Joi.string().allow(""),
2812
- additional_sitemap: Joi.string().allow(""),
2813
- app: Joi.string().allow(""),
2814
- cannonical_enabled: Joi.boolean(),
2815
- created_at: Joi.string().allow(""),
2816
- custom_meta_tags: Joi.array().items(ContentPlatformModel.CustomMetaTag()),
2817
- details: ContentPlatformModel.Detail(),
2818
- robots_txt: Joi.string().allow(""),
2819
- sitemap_enabled: Joi.boolean(),
2820
- updated_at: Joi.string().allow(""),
1525
+ page_type: Joi.string().allow(""),
1526
+ display_name: Joi.string().allow(""),
1527
+ params: Joi.array().items(ContentPlatformModel.PageSpecParam()),
1528
+ query: Joi.array().items(ContentPlatformModel.PageSpecParam()),
2821
1529
  });
2822
1530
  }
2823
1531
 
2824
- /** @returns {SeoSchemaComponent} */
2825
- static SeoSchemaComponent() {
1532
+ /** @returns {PageSchema} */
1533
+ static PageSchema() {
2826
1534
  return Joi.object({
2827
- items: Joi.array().items(ContentPlatformModel.SEOSchemaMarkupTemplate()),
2828
- page: ContentPlatformModel.Page(),
1535
+ _id: Joi.string().allow(""),
1536
+ application: Joi.string().allow(""),
1537
+ component_ids: Joi.array().items(Joi.string().allow("")),
1538
+ content: Joi.array().items(Joi.any()),
1539
+ content_path: Joi.string().allow(""),
1540
+ created_by: ContentPlatformModel.CreatedBySchema(),
1541
+ date_meta: ContentPlatformModel.DateMeta(),
1542
+ description: Joi.string().allow(""),
1543
+ feature_image: ContentPlatformModel.Asset(),
1544
+ page_meta: Joi.array().items(Joi.any()),
1545
+ _schedule: ContentPlatformModel.ScheduleSchema(),
1546
+ _custom_json: Joi.any(),
1547
+ orientation: Joi.string().allow(""),
1548
+ platform: Joi.string().allow(""),
1549
+ published: Joi.boolean(),
1550
+ slug: Joi.string().allow(""),
1551
+ tags: Joi.array().items(Joi.string().allow("")),
1552
+ title: Joi.string().allow(""),
1553
+ type: Joi.string().allow(""),
1554
+ seo: ContentPlatformModel.SEO(),
1555
+ visibility: Joi.any(),
1556
+ archived: Joi.boolean(),
2829
1557
  });
2830
1558
  }
2831
1559
 
2832
- /** @returns {SEOSchemaMarkupTemplate} */
2833
- static SEOSchemaMarkupTemplate() {
1560
+ /** @returns {CreatedBySchema} */
1561
+ static CreatedBySchema() {
2834
1562
  return Joi.object({
2835
- active: Joi.boolean(),
2836
- application: Joi.string().allow(""),
2837
- created_at: Joi.string().allow(""),
2838
- description: Joi.string().allow(""),
2839
1563
  id: Joi.string().allow(""),
2840
- page_type: Joi.string().allow(""),
2841
- schema: Joi.string().allow(""),
2842
- target_json: Joi.object().pattern(/\S/, Joi.any()),
2843
- title: Joi.string().allow(""),
2844
- updated_at: Joi.string().allow(""),
2845
1564
  });
2846
1565
  }
2847
1566
 
2848
- /** @returns {SEOSchemaMarkupTemplateRequestBody} */
2849
- static SEOSchemaMarkupTemplateRequestBody() {
1567
+ /** @returns {PageRequest} */
1568
+ static PageRequest() {
2850
1569
  return Joi.object({
2851
- active: Joi.boolean(),
2852
- created_at: Joi.string().allow(""),
2853
- description: Joi.string().allow(""),
2854
- page_type: Joi.string().allow(""),
2855
- schema: Joi.string().allow(""),
2856
- target_json: Joi.object().pattern(/\S/, Joi.any()),
1570
+ _schedule: ContentPlatformModel.CronSchedule(),
1571
+ application: Joi.string().allow(""),
1572
+ author: ContentPlatformModel.Author(),
1573
+ _custom_json: Joi.any(),
1574
+ orientation: Joi.string().allow(""),
1575
+ content: Joi.array().items(Joi.any()),
1576
+ feature_image: ContentPlatformModel.Asset(),
1577
+ published: Joi.boolean(),
1578
+ reading_time: Joi.string().allow(""),
1579
+ slug: Joi.string().allow(""),
1580
+ tags: Joi.array().items(Joi.string().allow("")),
1581
+ seo: ContentPlatformModel.SEO(),
2857
1582
  title: Joi.string().allow(""),
2858
- updated_at: Joi.string().allow(""),
2859
1583
  });
2860
1584
  }
2861
1585
 
2862
- /** @returns {SEOSitemap} */
2863
- static SEOSitemap() {
1586
+ /** @returns {CronSchedule} */
1587
+ static CronSchedule() {
2864
1588
  return Joi.object({
2865
- frequency: Joi.string().allow(""),
2866
- priority: Joi.number(),
1589
+ cron: Joi.string().allow(""),
1590
+ start: Joi.string().allow(""),
1591
+ end: Joi.string().allow(""),
1592
+ duration: Joi.number(),
2867
1593
  });
2868
1594
  }
2869
1595
 
2870
- /** @returns {SlideshowGetResponse} */
2871
- static SlideshowGetResponse() {
1596
+ /** @returns {PagePublishRequest} */
1597
+ static PagePublishRequest() {
2872
1598
  return Joi.object({
2873
- items: Joi.array().items(ContentPlatformModel.SlideshowSchema()),
2874
- page: ContentPlatformModel.Page(),
1599
+ publish: Joi.boolean(),
2875
1600
  });
2876
1601
  }
2877
1602
 
2878
- /** @returns {SlideshowMedia} */
2879
- static SlideshowMedia() {
1603
+ /** @returns {PageMetaSchema} */
1604
+ static PageMetaSchema() {
2880
1605
  return Joi.object({
2881
- action: ContentPlatformModel.Action(),
2882
- auto_decide_duration: Joi.boolean(),
2883
- bg_color: Joi.string().allow(""),
2884
- duration: Joi.number(),
2885
- type: Joi.string().allow(""),
2886
- url: Joi.string().allow(""),
1606
+ system_pages: Joi.array().items(ContentPlatformModel.NavigationSchema()),
1607
+ custom_pages: Joi.array().items(ContentPlatformModel.PageSchema()),
1608
+ application_id: Joi.string().allow(""),
2887
1609
  });
2888
1610
  }
2889
1611
 
2890
- /** @returns {SlideshowRequest} */
2891
- static SlideshowRequest() {
1612
+ /** @returns {SlideshowGetResponse} */
1613
+ static SlideshowGetResponse() {
2892
1614
  return Joi.object({
2893
- active: Joi.boolean(),
2894
- configuration: ContentPlatformModel.ConfigurationSchema(),
2895
- media: ContentPlatformModel.SlideshowMedia(),
2896
- platform: Joi.string().allow(""),
2897
- slug: Joi.string().allow(""),
1615
+ items: Joi.array().items(ContentPlatformModel.SlideshowSchema()),
1616
+ page: ContentPlatformModel.Page(),
2898
1617
  });
2899
1618
  }
2900
1619
 
2901
1620
  /** @returns {SlideshowSchema} */
2902
1621
  static SlideshowSchema() {
2903
1622
  return Joi.object({
2904
- _custom_json: Joi.any(),
2905
1623
  _id: Joi.string().allow(""),
2906
- active: Joi.boolean(),
1624
+ slug: Joi.string().allow(""),
1625
+ date_meta: ContentPlatformModel.DateMeta(),
2907
1626
  application: Joi.string().allow(""),
2908
- archived: Joi.boolean(),
1627
+ platform: Joi.string().allow(""),
2909
1628
  configuration: ContentPlatformModel.ConfigurationSchema(),
2910
- date_meta: ContentPlatformModel.DateMeta(),
2911
1629
  media: Joi.array().items(ContentPlatformModel.SlideshowMedia()),
2912
- platform: Joi.string().allow(""),
2913
- slug: Joi.string().allow(""),
2914
- });
2915
- }
2916
-
2917
- /** @returns {StringMultiLine} */
2918
- static StringMultiLine() {
2919
- return Joi.object({
2920
- category: Joi.string().allow(""),
2921
- list_enabled: Joi.boolean(),
2922
- name: Joi.string().allow(""),
2923
- supported_validations: Joi.array().items(
2924
- ContentPlatformModel.SupportedValidationsSchema()
2925
- ),
2926
- type: Joi.string().allow(""),
1630
+ active: Joi.boolean(),
1631
+ archived: Joi.boolean(),
1632
+ _custom_json: Joi.any(),
2927
1633
  });
2928
1634
  }
2929
1635
 
2930
- /** @returns {StringSingleLine} */
2931
- static StringSingleLine() {
1636
+ /** @returns {SlideshowRequest} */
1637
+ static SlideshowRequest() {
2932
1638
  return Joi.object({
2933
- category: Joi.string().allow(""),
2934
- list_enabled: Joi.boolean(),
2935
- name: Joi.string().allow(""),
2936
- supported_validations: Joi.array().items(
2937
- ContentPlatformModel.SupportedValidationsSchema()
2938
- ),
2939
- type: Joi.string().allow(""),
1639
+ slug: Joi.string().allow(""),
1640
+ platform: Joi.string().allow(""),
1641
+ configuration: ContentPlatformModel.ConfigurationSchema(),
1642
+ media: ContentPlatformModel.SlideshowMedia(),
1643
+ active: Joi.boolean(),
2940
1644
  });
2941
1645
  }
2942
1646
 
2943
1647
  /** @returns {Support} */
2944
1648
  static Support() {
2945
1649
  return Joi.object({
1650
+ created: Joi.boolean(),
2946
1651
  _id: Joi.string().allow(""),
2947
- application: Joi.string().allow(""),
2948
1652
  config_type: Joi.string().allow(""),
2949
- contact: ContentPlatformModel.ContactSchema(),
2950
- created: Joi.boolean(),
1653
+ application: Joi.string().allow(""),
2951
1654
  created_at: Joi.string().allow(""),
2952
1655
  updated_at: Joi.string().allow(""),
1656
+ contact: ContentPlatformModel.ContactSchema(),
2953
1657
  });
2954
1658
  }
2955
1659
 
2956
- /** @returns {SupportedValidationsMetaExampleSchema} */
2957
- static SupportedValidationsMetaExampleSchema() {
2958
- return Joi.object({
2959
- name: Joi.string().allow(""),
2960
- value: Joi.string().allow(""),
2961
- });
2962
- }
2963
-
2964
- /** @returns {SupportedValidationsMetaSchema} */
2965
- static SupportedValidationsMetaSchema() {
1660
+ /** @returns {PhoneProperties} */
1661
+ static PhoneProperties() {
2966
1662
  return Joi.object({
2967
- examples: Joi.array().items(
2968
- ContentPlatformModel.SupportedValidationsMetaExampleSchema()
2969
- ),
1663
+ key: Joi.string().allow(""),
1664
+ code: Joi.string().allow(""),
1665
+ number: Joi.string().allow(""),
2970
1666
  });
2971
1667
  }
2972
1668
 
2973
- /** @returns {SupportedValidationsSchema} */
2974
- static SupportedValidationsSchema() {
1669
+ /** @returns {PhoneSchema} */
1670
+ static PhoneSchema() {
2975
1671
  return Joi.object({
2976
- display: Joi.string().allow(""),
2977
- meta: ContentPlatformModel.SupportedValidationsMetaSchema(),
2978
- name: Joi.string().allow(""),
2979
- required: Joi.boolean(),
2980
- type: Joi.string().allow(""),
1672
+ active: Joi.boolean(),
1673
+ phone: Joi.array().items(ContentPlatformModel.PhoneProperties()),
2981
1674
  });
2982
1675
  }
2983
1676
 
2984
- /** @returns {TagDeleteSuccessResponse} */
2985
- static TagDeleteSuccessResponse() {
1677
+ /** @returns {EmailProperties} */
1678
+ static EmailProperties() {
2986
1679
  return Joi.object({
2987
- success: Joi.boolean(),
1680
+ key: Joi.string().allow(""),
1681
+ value: Joi.string().allow(""),
2988
1682
  });
2989
1683
  }
2990
1684
 
2991
- /** @returns {TagSchema} */
2992
- static TagSchema() {
1685
+ /** @returns {EmailSchema} */
1686
+ static EmailSchema() {
2993
1687
  return Joi.object({
2994
- __source: ContentPlatformModel.TagSourceSchema(),
2995
- _id: Joi.string().allow(""),
2996
- attributes: Joi.any(),
2997
- content: Joi.string().allow(""),
2998
- name: Joi.string().allow(""),
2999
- pages: Joi.array().items(Joi.any()),
3000
- position: Joi.string().allow(""),
3001
- sub_type: Joi.string().allow(""),
3002
- type: Joi.string().allow(""),
3003
- url: Joi.string().allow(""),
1688
+ active: Joi.boolean(),
1689
+ email: Joi.array().items(ContentPlatformModel.EmailProperties()),
3004
1690
  });
3005
1691
  }
3006
1692
 
3007
- /** @returns {TagSourceSchema} */
3008
- static TagSourceSchema() {
1693
+ /** @returns {ContactSchema} */
1694
+ static ContactSchema() {
3009
1695
  return Joi.object({
3010
- id: Joi.string().allow(""),
3011
- type: Joi.string().allow(""),
1696
+ phone: ContentPlatformModel.PhoneSchema(),
1697
+ email: ContentPlatformModel.EmailSchema(),
3012
1698
  });
3013
1699
  }
3014
1700
 
3015
1701
  /** @returns {TagsSchema} */
3016
1702
  static TagsSchema() {
3017
1703
  return Joi.object({
3018
- _id: Joi.string().allow(""),
3019
1704
  application: Joi.string().allow(""),
1705
+ _id: Joi.string().allow(""),
3020
1706
  tags: Joi.array().items(ContentPlatformModel.TagSchema()),
3021
1707
  });
3022
1708
  }
3023
1709
 
3024
- /** @returns {UpdateFaqCategoryRequestSchema} */
3025
- static UpdateFaqCategoryRequestSchema() {
3026
- return Joi.object({
3027
- category: ContentPlatformModel.CategorySchema(),
3028
- });
3029
- }
3030
-
3031
- /** @returns {UpdateHandpickedSchema} */
3032
- static UpdateHandpickedSchema() {
1710
+ /** @returns {TagSchema} */
1711
+ static TagSchema() {
3033
1712
  return Joi.object({
3034
- tag: ContentPlatformModel.HandpickedTagSchema(),
1713
+ name: Joi.string().allow(""),
1714
+ url: Joi.string().allow(""),
1715
+ type: Joi.string().allow(""),
1716
+ sub_type: Joi.string().allow(""),
1717
+ _id: Joi.string().allow(""),
1718
+ position: Joi.string().allow(""),
1719
+ attributes: Joi.any(),
1720
+ content: Joi.string().allow(""),
1721
+ pages: Joi.array().items(Joi.any()),
1722
+ __source: ContentPlatformModel.TagSourceSchema(),
3035
1723
  });
3036
1724
  }
3037
1725
 
3038
- /** @returns {Url} */
3039
- static Url() {
1726
+ /** @returns {TagSourceSchema} */
1727
+ static TagSourceSchema() {
3040
1728
  return Joi.object({
3041
- list_enabled: Joi.boolean(),
3042
- name: Joi.string().allow(""),
3043
- supported_validations: Joi.array().items(
3044
- ContentPlatformModel.SupportedValidationsSchema()
3045
- ),
3046
1729
  type: Joi.string().allow(""),
1730
+ id: Joi.string().allow(""),
3047
1731
  });
3048
1732
  }
3049
1733