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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. package/README.md +2 -2
  2. package/application.d.ts +1 -2
  3. package/application.js +2 -3
  4. package/index.d.ts +1 -2
  5. package/index.js +7 -1
  6. package/package.json +2 -3
  7. package/sdk/application/ApplicationClient.d.ts +0 -2
  8. package/sdk/application/ApplicationClient.js +0 -20
  9. package/sdk/application/Cart/CartApplicationClient.d.ts +55 -97
  10. package/sdk/application/Cart/CartApplicationClient.js +60 -1262
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -162
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1313
  13. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -9
  14. package/sdk/application/Common/CommonApplicationClient.js +5 -90
  15. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
  16. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -80
  18. package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -725
  19. package/sdk/application/Content/ContentApplicationClient.d.ts +63 -85
  20. package/sdk/application/Content/ContentApplicationClient.js +126 -942
  21. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -15
  22. package/sdk/application/FileStorage/FileStorageApplicationClient.js +26 -130
  23. package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -17
  24. package/sdk/application/Lead/LeadApplicationClient.js +32 -201
  25. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -62
  26. package/sdk/application/Logistic/LogisticApplicationClient.js +51 -647
  27. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -56
  28. package/sdk/application/Order/OrderApplicationClient.js +86 -555
  29. package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -209
  30. package/sdk/application/Payment/PaymentApplicationClient.js +57 -2099
  31. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -26
  32. package/sdk/application/Rewards/RewardsApplicationClient.js +17 -303
  33. package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
  34. package/sdk/application/Share/ShareApplicationClient.js +34 -294
  35. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
  36. package/sdk/application/Theme/ThemeApplicationClient.js +30 -166
  37. package/sdk/application/User/UserApplicationClient.d.ts +87 -138
  38. package/sdk/application/User/UserApplicationClient.js +47 -1817
  39. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
  40. package/sdk/application/Webhook/WebhookApplicationClient.js +6 -49
  41. package/sdk/application/index.d.ts +0 -19
  42. package/sdk/application/index.js +0 -35
  43. package/sdk/common/Utility.d.ts +1 -1
  44. package/sdk/common/Utility.js +10 -7
  45. package/sdk/common/Validator.d.ts +1 -0
  46. package/sdk/common/Validator.js +20 -0
  47. package/sdk/common/utils.d.ts +0 -1
  48. package/sdk/common/utils.js +0 -14
  49. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
  50. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
  51. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
  52. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
  53. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
  54. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
  55. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  56. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  57. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  58. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  59. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
  60. package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
  61. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
  62. package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
  63. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
  64. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
  65. package/sdk/partner/OAuthClient.js +1 -0
  66. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
  67. package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
  68. package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
  69. package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
  70. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  71. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
  72. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
  73. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
  74. package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
  75. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
  76. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
  77. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
  78. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
  79. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
  80. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  82. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  87. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  88. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  89. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  90. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  91. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  92. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
  94. package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
  96. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
  97. package/sdk/platform/Cart/CartPlatformModel.d.ts +1328 -4975
  98. package/sdk/platform/Cart/CartPlatformModel.js +1229 -1922
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
  102. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
  103. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
  104. package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
  105. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1744 -1501
  106. package/sdk/platform/Catalog/CatalogPlatformModel.js +1211 -1383
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  108. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  109. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
  110. package/sdk/platform/Common/CommonPlatformClient.js +2 -3
  111. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  112. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  117. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
  118. package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
  121. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  122. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  125. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
  126. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
  127. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  128. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  129. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
  130. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
  131. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +138 -283
  132. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +100 -219
  133. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
  134. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
  135. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
  136. package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
  137. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
  138. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
  139. package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
  140. package/sdk/platform/Content/ContentPlatformClient.js +336 -523
  141. package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
  142. package/sdk/platform/Content/ContentPlatformModel.js +390 -521
  143. package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
  144. package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
  145. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
  146. package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
  147. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  148. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  149. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  150. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  151. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
  152. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
  153. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
  154. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
  155. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
  156. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
  157. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
  158. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
  159. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  160. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  161. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  162. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  163. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
  164. package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
  165. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  166. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  167. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  168. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  169. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  170. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  171. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -25
  172. package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -175
  173. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -52
  174. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -34
  175. package/sdk/platform/Order/OrderPlatformClient.d.ts +103 -174
  176. package/sdk/platform/Order/OrderPlatformClient.js +275 -528
  177. package/sdk/platform/Order/OrderPlatformModel.d.ts +3078 -5449
  178. package/sdk/platform/Order/OrderPlatformModel.js +1659 -3501
  179. package/sdk/platform/Order/OrderPlatformValidator.d.ts +219 -234
  180. package/sdk/platform/Order/OrderPlatformValidator.js +118 -146
  181. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  182. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  183. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  184. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  185. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
  186. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
  187. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
  188. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
  189. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  190. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  191. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
  192. package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
  193. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
  194. package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
  195. package/sdk/platform/PlatformClient.d.ts +2 -0
  196. package/sdk/platform/PlatformClient.js +4 -0
  197. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  198. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  199. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  200. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  201. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  202. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  203. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
  204. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
  205. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
  206. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
  209. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
  210. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
  211. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +11 -11
  212. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +10 -10
  213. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  214. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  215. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
  216. package/sdk/platform/Share/SharePlatformModel.js +4 -27
  217. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  218. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
  219. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
  220. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
  221. package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
  222. package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
  223. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  224. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  225. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  226. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  227. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  228. package/sdk/platform/User/UserPlatformModel.js +23 -23
  229. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  230. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  231. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
  232. package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
  233. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  234. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  235. package/sdk/platform/index.d.ts +1 -0
  236. package/sdk/platform/index.js +2 -0
  237. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
  238. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -8
  239. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  240. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  241. package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
  242. package/sdk/public/Content/ContentPublicClient.js +19 -793
  243. package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
  244. package/sdk/public/Content/ContentPublicModel.js +3 -649
  245. package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
  246. package/sdk/public/Content/ContentPublicValidator.js +2 -88
  247. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  248. package/sdk/public/Partner/PartnerPublicClient.js +14 -2
  249. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  250. package/sdk/public/Webhook/WebhookPublicClient.js +13 -10
  251. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  252. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  253. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  254. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  255. package/sdk/application/Cart/CartApplicationModel.d.ts +0 -4340
  256. package/sdk/application/Cart/CartApplicationModel.js +0 -2718
  257. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -788
  258. package/sdk/application/Cart/CartApplicationValidator.js +0 -546
  259. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3909
  260. package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2667
  261. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
  262. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
  263. package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
  264. package/sdk/application/Common/CommonApplicationModel.js +0 -308
  265. package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
  266. package/sdk/application/Common/CommonApplicationValidator.js +0 -38
  267. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
  268. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
  269. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
  270. package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
  271. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2544
  272. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1875
  273. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
  274. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
  275. package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2189
  276. package/sdk/application/Content/ContentApplicationModel.js +0 -1640
  277. package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -290
  278. package/sdk/application/Content/ContentApplicationValidator.js +0 -269
  279. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -270
  280. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -188
  281. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
  282. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
  283. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
  284. package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
  285. package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
  286. package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
  287. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
  288. package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
  289. package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
  290. package/sdk/application/Lead/LeadApplicationModel.js +0 -480
  291. package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
  292. package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
  293. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -2034
  294. package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1391
  295. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -299
  296. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -224
  297. package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2612
  298. package/sdk/application/Order/OrderApplicationModel.js +0 -1669
  299. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -279
  300. package/sdk/application/Order/OrderApplicationValidator.js +0 -210
  301. package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4062
  302. package/sdk/application/Payment/PaymentApplicationModel.js +0 -2632
  303. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
  304. package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
  305. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
  306. package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
  307. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
  308. package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
  309. package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
  310. package/sdk/application/Share/ShareApplicationModel.js +0 -234
  311. package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
  312. package/sdk/application/Share/ShareApplicationValidator.js +0 -91
  313. package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1744
  314. package/sdk/application/Theme/ThemeApplicationModel.js +0 -1446
  315. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -79
  316. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -65
  317. package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
  318. package/sdk/application/User/UserApplicationModel.js +0 -1382
  319. package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
  320. package/sdk/application/User/UserApplicationValidator.js +0 -573
  321. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -54
  322. package/sdk/application/Webhook/WebhookApplicationModel.js +0 -48
  323. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
  324. package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
  325. package/sdk/common/Clickstream.d.ts +0 -1
  326. package/sdk/common/Clickstream.js +0 -464
@@ -1,1640 +0,0 @@
1
- const Joi = require("joi");
2
-
3
- /**
4
- * @typedef ApplicationLegal
5
- * @property {string} [application] - Application ID - Identifier for a Sales channel.
6
- * @property {string} [tnc] - Content for Terms and Conditions page on storefront.
7
- * @property {string} [policy] - Content for Privacy Policy page on storefront.
8
- * @property {string} [shipping] - Content for Shipping Policy page on storefront.
9
- * @property {string} [returns] - Content for Return policy page on storefront.
10
- * @property {ApplicationLegalFAQ[]} [faq] - FAQs of an application.
11
- * @property {string} [_id] - Unique identifier of an entry.
12
- * @property {string} [updated_at] - Timestamp which represent when was the last
13
- * time when data was updated.
14
- * @property {string} [created_at] - Timestamp which represent the time when
15
- * data was created.
16
- */
17
-
18
- /**
19
- * @typedef ApplicationLegalFAQ
20
- * @property {string} [question] - The contents of a question of a FAQ.
21
- * @property {string} [answer] - The contents of a answer of a FAQ.
22
- */
23
-
24
- /**
25
- * @typedef SeoComponent
26
- * @property {SeoSchema} [seo]
27
- */
28
-
29
- /**
30
- * @typedef ValidationError
31
- * @property {string} message - A brief description of the error encountered.
32
- * @property {string} field - The field in the request that caused the error.
33
- */
34
-
35
- /**
36
- * @typedef SeoSchema
37
- * @property {string} [app] - Application ID - Identifier for a Sales channel.
38
- * @property {string} [_id] - Unique identifier of an entry.
39
- * @property {string} [robots_txt] - Contents of robots.txt file of a sales channel.
40
- * @property {boolean} [sitemap_enabled] - Whether sitemaps is enabled or not
41
- * for a sales channel's website.
42
- * @property {string} [additonal_sitemap] - Contents of additional sitemap.
43
- * @property {boolean} [cannonical_enabled] - Whether canonical tags is enabled
44
- * or not for a sales channel's website.
45
- * @property {CustomMetaTag[]} [custom_meta_tags] - Custom meta tags for a sales
46
- * channel website.
47
- * @property {Detail} [details]
48
- * @property {string} [created_at] - Timestamp which represent the time when
49
- * data was created.
50
- * @property {string} [updated_at] - Timestamp which represent when was the last
51
- * time when data was updated.
52
- */
53
-
54
- /**
55
- * @typedef CustomMetaTag
56
- * @property {string} [name] - Name of the custom meta tag group.
57
- * @property {string} [content] - Contents of the custom meta tag group.
58
- * @property {string} [_id] - Unique identifier of an entry.
59
- */
60
-
61
- /**
62
- * @typedef Detail
63
- * @property {string} [title] - Contents of the og:title of a sales channel website.
64
- * @property {string} [description] - Contents of the og:description of a sales
65
- * channel website.
66
- * @property {string} [image_url] - URL of the og:image of a sales channel website.
67
- */
68
-
69
- /**
70
- * @typedef SeoSchemaComponent
71
- * @property {SEOSchemaMarkupTemplate[]} [items] - List of SEO Markup Schemas
72
- * for a sales channel website.
73
- */
74
-
75
- /**
76
- * @typedef SEOSchemaMarkupTemplate
77
- * @property {string} [id] - Unique identifier for an entry.
78
- * @property {string} [title] - Title of the SEO Schema template.
79
- * @property {string} [page_type] - Page Type for the SEO Schema Template where
80
- * it'll be rendered.
81
- * @property {string} [description] - Description of the SEO Schema Template.
82
- * @property {string} [schema] - Contents of the SEO Schema template in nunjucks format.
83
- * @property {boolean} [active] - Whether SEO Schema template is active or not.
84
- * @property {string} [created_at] - Timestamp which represent the time when
85
- * data was created.
86
- * @property {string} [updated_at] - Timestamp which represent when was the last
87
- * time when data was updated.
88
- * @property {string} [application] - Application ID - Identifier for a Sales channel.
89
- */
90
-
91
- /**
92
- * @typedef ScheduleSchema
93
- * @property {string} [cron] - String representing the cron expression.
94
- * @property {string} [start] - Start time of schedule.
95
- * @property {string} [end] - End time of schedule.
96
- * @property {number} [duration] - Duration of the scheduled entity.
97
- * @property {NextSchedule[]} [next_schedule] - Details regarding the next
98
- * trigger point of schedule.
99
- */
100
-
101
- /**
102
- * @typedef NextSchedule
103
- * @property {string} [start] - Start time of next trigger point of schedule.
104
- * @property {string} [end] - End time of next trigger point of schedule.
105
- */
106
-
107
- /**
108
- * @typedef AnnouncementSchema
109
- * @property {string} [announcement] - Details regarding the announcement bar contents.
110
- * @property {ScheduleStartSchema} [schedule]
111
- */
112
-
113
- /**
114
- * @typedef ScheduleStartSchema
115
- * @property {string} [start] - Start time of schedule.
116
- * @property {string} [end] - End time of schedule.
117
- */
118
-
119
- /**
120
- * @typedef BlogGetDetails
121
- * @property {BlogSchema[]} [items] - List of blogs with details.
122
- * @property {Page} [page]
123
- * @property {BlogFilters} [filters]
124
- */
125
-
126
- /**
127
- * @typedef BlogFilters
128
- * @property {string[]} [tags] - All tags present under blogs.
129
- */
130
-
131
- /**
132
- * @typedef ResourceContent
133
- * @property {string} [type] - The type of content of blogs - html.
134
- * @property {string} [value] - The contents of blog.
135
- */
136
-
137
- /**
138
- * @typedef Asset
139
- * @property {string} [aspect_ratio] - Aspect ratio of the image.
140
- * @property {string} [id] - Unique identifier for an entry.
141
- * @property {string} [secure_url] - URL of the image.
142
- */
143
-
144
- /**
145
- * @typedef Author
146
- * @property {string} [designation] - Description of the author of blog.
147
- * @property {string} [id] - Unique Identifier of the author of blog.
148
- * @property {string} [name] - Name of the author of blog.
149
- */
150
-
151
- /**
152
- * @typedef BlogSchema
153
- * @property {string} [_id] - Unique identifier for an entry.
154
- * @property {Object} [_custom_json] - Custom JSON object for specific use cases.
155
- * @property {string} [application] - Application ID - Identifier for a Sales channel.
156
- * @property {boolean} [archived] - Boolean flag denoting whether blog is archived or not.
157
- * @property {Author} [author]
158
- * @property {ResourceContent[]} [content] - Contents of blog.
159
- * @property {Asset} [feature_image]
160
- * @property {boolean} [published] - Boolean flag denoting whether blog is
161
- * published or not.
162
- * @property {string} [reading_time] - Estimated time required to read the blog.
163
- * @property {string} [slug] - A short, human-readable, URL-friendly identifier.
164
- * @property {string[]} [tags] - Tags under a blog.
165
- * @property {string} [publish_date] - Timestamp denoting when the blog was published.
166
- * @property {SEO} [seo]
167
- * @property {string} [title] - Title of the Blog.
168
- * @property {DateMeta} [date_meta]
169
- * @property {string} [summary] - A brief description of blog.
170
- */
171
-
172
- /**
173
- * @typedef SEO
174
- * @property {string} [description] - The contents of og:description.
175
- * @property {SEOImage} [image]
176
- * @property {string} [title] - The contents of og:title.
177
- * @property {SEOMetaItem[]} [meta_tags] - List of meta tags.
178
- * @property {SEOSitemap} [sitemap]
179
- * @property {SEObreadcrumb[]} [breadcrumb] - List of action objects which can
180
- * power breadcrumbs on website.
181
- * @property {string} [canonical_url] - The canonical URL for canonical link element.
182
- */
183
-
184
- /**
185
- * @typedef SEOImage
186
- * @property {string} [url] - The url of image.
187
- */
188
-
189
- /**
190
- * @typedef SEOMetaItem
191
- * @property {string} [title] - Title of the custom meta tags group.
192
- * @property {SEOMetaItems[]} [items] - List of key value pairs to power meta tags.
193
- */
194
-
195
- /**
196
- * @typedef SEOMetaItems
197
- * @property {string} [key] - The key denoting the attribute name of SEO meta tag.
198
- * @property {string} [value] - The key denoting the attribute value of SEO meta tag.
199
- */
200
-
201
- /**
202
- * @typedef SEOSitemap
203
- * @property {number} [priority] - Value of sitemap priority randing from 0.0 to 1.0.
204
- * @property {string} [frequency] - Value of sitemap frequency change denoting
205
- * how frequently the content changes.
206
- */
207
-
208
- /**
209
- * @typedef SEObreadcrumb
210
- * @property {string} [url] - URL of where the breadcrumb link redirects to.
211
- * @property {Action} [action]
212
- */
213
-
214
- /**
215
- * @typedef DateMeta
216
- * @property {string} [created_on] - Timestamp which represent the time when
217
- * data was created.
218
- * @property {string} [modified_on] - Timestamp which represent when was the
219
- * last time when data was updated.
220
- */
221
-
222
- /**
223
- * @typedef LocaleLanguage
224
- * @property {Language} [hi]
225
- * @property {Language} [ar]
226
- * @property {Language} [en_us]
227
- */
228
-
229
- /**
230
- * @typedef Language
231
- * @property {string} [display] - Name of an entry in a specific language.
232
- */
233
-
234
- /**
235
- * @typedef Action
236
- * @property {string} [type] - Type of action to be taken e.g, page.
237
- * @property {ActionPage} [page]
238
- * @property {ActionPage} [popup]
239
- */
240
-
241
- /**
242
- * @typedef NavigationReference
243
- * @property {string[]} [acl] - Details regarding the authorization level to
244
- * access the navigation item.
245
- * @property {string[]} [tags] - List of tags under a navigation link.
246
- * @property {LocaleLanguage} [_locale_language]
247
- * @property {string} [image] - URL of an image associated with a navigation link.
248
- * @property {string} [type] - Type of action to be taken e.g, page.
249
- * @property {Action} [action]
250
- * @property {boolean} [active] - Whether navigation is active or not.
251
- * @property {string} [display] - Display name of the navigation link.
252
- * @property {number} [sort_order] - Number denoting the position of navigation link.
253
- * @property {NavigationReference[]} [sub_navigation] - List of sub links and
254
- * details under a navigation.
255
- */
256
-
257
- /**
258
- * @typedef ConfigurationSchema
259
- * @property {number} [sleep_time] - Amount of time in seconds after which
260
- * slideshow/screensaver is run.
261
- * @property {boolean} [start_on_launch] - Flag denoting whether screensaver
262
- * needs to be shown on launch of website/app.
263
- * @property {number} [duration] - Duration of the slideshow/screensaver.
264
- * @property {string} [slide_direction] - Direction of the slideshow.
265
- */
266
-
267
- /**
268
- * @typedef SlideshowMedia
269
- * @property {string} [type] - Type of Media.
270
- * @property {string} [url] - URL of Media where it's hosted.
271
- * @property {string} [bg_color] - Background colour of Media.
272
- * @property {number} [duration] - Amount of time in seconds for which Media has
273
- * to appear.
274
- * @property {boolean} [auto_decide_duration] - Whether the duration for each
275
- * media is to be decided by system or not. If true, it'll equally divide time
276
- * in all medias.
277
- * @property {Action} [action]
278
- */
279
-
280
- /**
281
- * @typedef AnnouncementsResponseSchema
282
- * @property {Object} [announcements] - List all the announcement bar details
283
- * and its contents.
284
- * @property {number} [refresh_rate] - Number of seconds after which api should
285
- * hit again to fetch new announcements.
286
- * @property {string[]} [refresh_pages] - List of page slugs on which
287
- * announcement should be fetched as soon as they are loaded.
288
- */
289
-
290
- /**
291
- * @typedef FaqResponseSchema
292
- * @property {FaqSchema[]} [faqs] - List of FAQs.
293
- */
294
-
295
- /**
296
- * @typedef DataLoaderSchema
297
- * @property {string} [name] - Name of dataloader.
298
- * @property {string} [service] - Service of data loader which overrides the
299
- * default method.
300
- * @property {string} [operation_id] - Operation ID of the method which data
301
- * loader is overriding.
302
- * @property {string} [type] - Type of data loader.
303
- * @property {string} [url] - URL at which data loader redirects.
304
- * @property {string} [content] - Content of a data loader.
305
- * @property {DataLoaderSourceSchema} [__source]
306
- * @property {string} [_id] - Unique identifier of an entry.
307
- */
308
-
309
- /**
310
- * @typedef DataLoaderSourceSchema
311
- * @property {string} [type] - Type of creator.
312
- * @property {string} [id] - Identifier of an extension.
313
- */
314
-
315
- /**
316
- * @typedef DataLoadersSchema
317
- * @property {DataLoaderSchema[]} [items] - List of data loaders.
318
- */
319
-
320
- /**
321
- * @typedef ContentAPIError
322
- * @property {string} [message] - Error message.
323
- * @property {number} [status] - HTTP Status code of the error.
324
- * @property {string} [code] - Status code of an error.
325
- * @property {string} [exception] - Exception class name.
326
- * @property {string} [info] - Details regarding the error.
327
- * @property {string} [request_id] - The identifier denoting request.
328
- * @property {string} [stack_trace] - Report of a stack frame to debug the issue.
329
- * @property {Object} [meta] - Metadata related to an error.
330
- */
331
-
332
- /**
333
- * @typedef CommonError
334
- * @property {string} [message] - Error message.
335
- */
336
-
337
- /**
338
- * @typedef CategorySchema
339
- * @property {number} [index] - Order of FAQ Category.
340
- * @property {string} [title] - Title of the FAQ category.
341
- * @property {string} [description] - Details of the FAQ category.
342
- * @property {string[]} [children] - List of FAQs.
343
- * @property {string} [_id] - Unique identifier of an entry.
344
- * @property {string} [slug] - A short, human-readable, URL-friendly identifier.
345
- * @property {string} [application] - Application ID - Identifier for a Sales channel.
346
- * @property {string} [icon_url] - URL of the image associated with FAQ Category.
347
- * @property {Object} [_custom_json] - Custom JSON object for specific use cases.
348
- */
349
-
350
- /**
351
- * @typedef ChildrenSchema
352
- * @property {string} [question] - The contents of a question of a FAQ.
353
- * @property {string} [answer] - The contents of a answer of a FAQ.
354
- * @property {string} [slug] - A short, human-readable, URL-friendly identifier.
355
- * @property {string} [application] - Application ID - Identifier for a Sales channel.
356
- * @property {string} [_id] - Unique identifier of an entry.
357
- */
358
-
359
- /**
360
- * @typedef FAQCategorySchema
361
- * @property {number} [index] - Order of FAQ Category.
362
- * @property {string} [title] - Title of a FAQ Category.
363
- * @property {string} [description] - Details of the FAQ category.
364
- * @property {ChildrenSchema[]} [children] - Details regarding a FAQs stored
365
- * under a FAQs category.
366
- * @property {string} [_id] - Unique identifier of an entry.
367
- * @property {string} [slug] - A short, human-readable, URL-friendly identifier.
368
- * @property {string} [application] - Application ID - Identifier for a Sales channel.
369
- * @property {string} [icon_url] - URL of the image associated with FAQ Category.
370
- * @property {Object} [_custom_json] - Custom JSON object for specific use cases.
371
- */
372
-
373
- /**
374
- * @typedef FaqSchema
375
- * @property {string} [slug] - A short, human-readable, URL-friendly identifier.
376
- * @property {string} [application] - Application ID - Identifier for a Sales channel.
377
- * @property {string} [_id] - Unique identifier of an entry.
378
- * @property {string} [question] - The contents of a question of a FAQ.
379
- * @property {string} [answer] - The contents of a answer of a FAQ.
380
- * @property {string[]} [tags] - Tags under a FAQ.
381
- */
382
-
383
- /**
384
- * @typedef GetFaqSchema
385
- * @property {FaqSchema[]} [faqs] - List of FAQs.
386
- */
387
-
388
- /**
389
- * @typedef GetFaqCategoriesSchema
390
- * @property {CategorySchema[]} [categories] - List of FAQ Categories.
391
- */
392
-
393
- /**
394
- * @typedef GetFaqCategoryBySlugSchema
395
- * @property {FAQCategorySchema} [category]
396
- */
397
-
398
- /**
399
- * @typedef Page
400
- * @property {number} [item_total] - The total number of items on the page.
401
- * @property {string} [next_id] - The identifier for the next page.
402
- * @property {boolean} [has_previous] - Indicates whether there is a previous page.
403
- * @property {boolean} [has_next] - Indicates whether there is a next page.
404
- * @property {number} [current] - The current page number.
405
- * @property {string} type - The type of the page, such as 'PageType'.
406
- * @property {number} [size] - The number of items per page.
407
- */
408
-
409
- /**
410
- * @typedef LandingPageSchema
411
- * @property {string} [slug] - A short, human-readable, URL-friendly identifier.
412
- * @property {Action} [action]
413
- * @property {string[]} [platform] - List of platforms linked to this landing page.
414
- * @property {CreatedBySchema} [created_by]
415
- * @property {DateMeta} [date_meta]
416
- * @property {string} [_id] - Unique identifier of an entry.
417
- * @property {string} [application] - Application ID - Identifier for a Sales channel.
418
- * @property {boolean} [archived] - Whether landing page is archived or not.
419
- * @property {Object} [_custom_json] - Custom JSON object for specific use cases.
420
- */
421
-
422
- /**
423
- * @typedef NavigationGetDetails
424
- * @property {NavigationSchema[]} [items] - List of navigation items.
425
- * @property {Page} [page]
426
- */
427
-
428
- /**
429
- * @typedef Orientation
430
- * @property {string[]} [portrait] - Data related to devices where navigation is
431
- * assigned in portrait mode.
432
- * @property {string[]} [landscape] - Data related to devices where navigation
433
- * is assigned in landscape mode.
434
- */
435
-
436
- /**
437
- * @typedef NavigationSchema
438
- * @property {string} [_id] - Unique identifier of an entry.
439
- * @property {string} [application] - Application ID - Identifier for a Sales channel.
440
- * @property {boolean} [archived] - Whether navigation is archived or not.
441
- * @property {string} [name] - Name of the navigation link.
442
- * @property {string} [slug] - A short, human-readable, URL-friendly identifier.
443
- * @property {string[]} [platform] - Details regarding the platforms for which
444
- * this navigation is to applied on.
445
- * @property {CreatedBySchema} [created_by]
446
- * @property {DateMeta} [date_meta]
447
- * @property {Orientation} [orientation]
448
- * @property {number} [version] - A hardcoded key for internally managing
449
- * navigation versions.
450
- * @property {NavigationReference[]} [navigation] - List of all navigations
451
- * links and relevant details.
452
- */
453
-
454
- /**
455
- * @typedef PageGetDetails
456
- * @property {PageSchema[]} [items] - List of details of custom pages.
457
- * @property {Page} [page]
458
- */
459
-
460
- /**
461
- * @typedef PageSchema
462
- * @property {string} [_id] - Unique identifier of an entry.
463
- * @property {string} [application] - Application ID - Identifier for a Sales channel.
464
- * @property {string[]} [component_ids] - Components can be used to store
465
- * multiple components.
466
- * @property {Object[]} [content] - Contents of a custom page.
467
- * @property {string} [content_path] - A CDN URL at which the entire html
468
- * content can be fetched from.
469
- * @property {CreatedBySchema} [created_by]
470
- * @property {DateMeta} [date_meta]
471
- * @property {string} [description] - Description about the page.
472
- * @property {Asset} [feature_image]
473
- * @property {Object[]} [page_meta] - List of Custom JSON object for specific use cases.
474
- * @property {ScheduleSchema} [_schedule]
475
- * @property {Object} [_custom_json] - Custom JSON object for specific use cases.
476
- * @property {string} [orientation] - Orientation for Custom Pages - Landscape
477
- * or portrait.
478
- * @property {string} [platform] - Platform for Custom Pages - Denotes the device type.
479
- * @property {boolean} [published] - Whether page is active or not on website.
480
- * @property {string} [slug] - A short, human-readable, URL-friendly identifier.
481
- * @property {string[]} [tags] - Tags under a page.
482
- * @property {string} [title] - The title of the page.
483
- * @property {string} [type] - Type of editor through which the page was created
484
- * so appropriate rendering engine is used.
485
- * @property {SEO} [seo]
486
- * @property {Object} [visibility] - Visibility of Page.
487
- * @property {boolean} [archived] - Flag denoting whether the page is archived or not.
488
- */
489
-
490
- /**
491
- * @typedef CreatedBySchema
492
- * @property {string} [id] - Details containing the creator of custom page.
493
- */
494
-
495
- /**
496
- * @typedef SlideshowGetDetails
497
- * @property {SlideshowSchema[]} [items] - Details related to slideshow/screensaver.
498
- * @property {Page} [page]
499
- */
500
-
501
- /**
502
- * @typedef SlideshowSchema
503
- * @property {string} [_id] - Unique identifier of an entry.
504
- * @property {string} [slug] - Details related to slideshow/screensaver.
505
- * @property {DateMeta} [date_meta]
506
- * @property {string} [application] - Application ID - Identifier for a Sales channel.
507
- * @property {string} [platform] - Details related to slideshow/screensaver.
508
- * @property {ConfigurationSchema} [configuration]
509
- * @property {SlideshowMedia[]} [media] - Details related to slideshow/screensaver.
510
- * @property {boolean} [active] - Details related to slideshow/screensaver.
511
- * @property {boolean} [archived] - Whether slideshow is deleted or not.
512
- * @property {Object} [_custom_json] - Custom JSON object for specific use cases.
513
- */
514
-
515
- /**
516
- * @typedef Support
517
- * @property {boolean} [created] - Whether support contact details are created or not.
518
- * @property {string} [_id] - Unique identifier of an entry.
519
- * @property {string} [application] - Application ID - Identifier for a Sales channel.
520
- * @property {string} [created_at] - Timestamp which represent the time when
521
- * data was created.
522
- * @property {string} [updated_at] - Timestamp which represent when was the last
523
- * time when data was updated.
524
- * @property {ContactSchema} [contact]
525
- */
526
-
527
- /**
528
- * @typedef PhoneProperties
529
- * @property {string} [key] - Name of the Contact SPOC.
530
- * @property {string} [code] - International dial Code.
531
- * @property {string} [number] - Phone Number.
532
- * @property {string} [phone_type] - Denotes the type of phone number.
533
- */
534
-
535
- /**
536
- * @typedef PhoneSchema
537
- * @property {boolean} [active] - Flag denoting whether contact detail is active or not.
538
- * @property {PhoneProperties[]} [phone] - Details related to phone contact of SPOC.
539
- */
540
-
541
- /**
542
- * @typedef EmailProperties
543
- * @property {string} [key] - Name of email SPOC.
544
- * @property {string} [value] - Email Id of the SPOC.
545
- */
546
-
547
- /**
548
- * @typedef EmailSchema
549
- * @property {boolean} [active] - Whether contact detail is active or not.
550
- * @property {EmailProperties[]} [email] - Details related to email contact of SPOC.
551
- */
552
-
553
- /**
554
- * @typedef ContactSchema
555
- * @property {PhoneSchema} [phone]
556
- * @property {EmailSchema} [email]
557
- */
558
-
559
- /**
560
- * @typedef TagsSchema
561
- * @property {string} [application] - Application ID - Identifier for a Sales channel.
562
- * @property {string} [_id] - Unique identifier of an entry.
563
- * @property {TagSchema[]} [tags] - List of Third party injectable html tags.
564
- */
565
-
566
- /**
567
- * @typedef TagSchema
568
- * @property {string} [name] - Name of the html tag.
569
- * @property {string} [url] - URL at which css or js might be hosted.
570
- * @property {string} [type] - Whether Tag is JS or CSS.
571
- * @property {string} [sub_type] - Whether js/css is external or inline.
572
- * @property {string} [_id] - Unique identifier of an entry.
573
- * @property {string} [position] - Position where Tag is so to be placed.
574
- * @property {Object} [attributes] - Custom JSON object for specific use cases.
575
- * @property {string} [content] - Content of tag.
576
- * @property {Object[]} [pages] - List of all the page where tag is to be added.
577
- * @property {TagSourceSchema} [__source]
578
- */
579
-
580
- /**
581
- * @typedef TagSourceSchema
582
- * @property {string} [type] - Type of creator of tag.
583
- * @property {string} [id] - Identifier of an extension.
584
- */
585
-
586
- /**
587
- * @typedef CustomObjectFieldValue
588
- * @property {Object} [value] - Value of custom field.
589
- */
590
-
591
- /**
592
- * @typedef CustomObjectListItemDefinationSchema
593
- * @property {string} [_id] - Unique identifier of an entry.
594
- * @property {string} [name] - Name of definition of custom field.
595
- * @property {string} [type] - Data type of the custom field.
596
- */
597
-
598
- /**
599
- * @typedef CustomObjectFieldSchema
600
- * @property {string} [_id] - Unique identifier of an entry.
601
- * @property {string} [slug] - Slug of custom field inside custom object.
602
- * @property {CustomObjectFieldValue[]} [value] - Value of custom field inside
603
- * custom object.
604
- * @property {string} [type] - Data type of custom field inside custom object.
605
- * @property {string} [definition_id] - Definition id of custom field inside
606
- * custom object.
607
- */
608
-
609
- /**
610
- * @typedef CustomObjectByIdSchema
611
- * @property {string} [id] - Unique identifier of an entry.
612
- * @property {string} [status] - String denoting whether custom object is active
613
- * or inactive.
614
- * @property {string} [display_name] - Unique Display name of a custom object
615
- * which is system generated: Concatenation of string definition name and _id.
616
- * @property {CustomObjectListItemDefinationSchema} [definition]
617
- * @property {Object[]} [references] - List of custom fields ids where the
618
- * custom object is added as a field.
619
- * @property {CustomObjectFieldSchema[]} [fields] - List of custom fields
620
- * against a Custom Object.
621
- */
622
-
623
- /**
624
- * @typedef CustomFieldValue
625
- * @property {Object} [value] - Array containing value(s) of custom field.
626
- */
627
-
628
- /**
629
- * @typedef CustomFieldSchema
630
- * @property {string} [_id] - Unique identifier of an entry.
631
- * @property {string} [namespace] - Namespace under which custom field is present.
632
- * @property {string} [slug] - Unique identifier for a custom field in a given namespace.
633
- * @property {string} [resource] - Type of an entity under which custom field is defined.
634
- * @property {CustomFieldValue[]} [value] - Array containing values of custom field.
635
- * @property {string} [resource_id] - Unique identifier for the entity under
636
- * which custom field is defined.
637
- * @property {string} [type] - The type type of custom field.
638
- * @property {boolean} [multi_value] - Whether custom field can have multiple
639
- * values or not.
640
- * @property {string} [company_id] - Unique Identifier for a company.
641
- * @property {string} [application_id] - Application ID - Identifier for a Sales channel.
642
- * @property {string} [definition_id] - Unique identifier for a custom field definition.
643
- * @property {boolean} [has_invalid_values] - Whether the custom field has invalid values.
644
- * @property {Object[]} [invalid_value_errors] - Array denoting if there's a
645
- * validation failure on a custom field inside a custom object.
646
- * @property {boolean} [is_deleted] - Whether the custom field definition is deleted.
647
- * @property {string} [created_at] - Timestamp which represent the time when
648
- * data was created.
649
- * @property {string} [updated_at] - Timestamp which represent when was the last
650
- * time when data was updated.
651
- */
652
-
653
- /**
654
- * @typedef CustomFieldsResponseByResourceIdSchema
655
- * @property {CustomFieldSchema[]} [items] - List of custom fields against a resource.
656
- */
657
-
658
- /**
659
- * @typedef CustomObjectListItemSchema
660
- * @property {string} [_id] - Unique system generated if for a custom object
661
- * @property {string} [definition_id] - Unique system generated id for a custom
662
- * object definition
663
- * @property {string} [status] - Flag to denote whether custom object is active or not
664
- * @property {string} [updated_at] - Updation time of custom object entry
665
- * @property {string} [display_name] - A custom field inside custom object used
666
- * to display the entry of custom object in listing
667
- * @property {CustomObjectListItemDefinationSchema} [definition]
668
- * @property {number} [references]
669
- */
670
-
671
- /**
672
- * @typedef CustomObjectsSchema
673
- * @property {CustomObjectListItemSchema[]} [items]
674
- * @property {Page} [page]
675
- */
676
-
677
- /**
678
- * @typedef ActionPage
679
- * @property {Object} [params] - Parameters that should be considered in path.
680
- * @property {Object} [query] - Query parameter if any to be added to the action.
681
- * @property {string} [url] - The URL for the action.
682
- * @property {PageType} type
683
- */
684
-
685
- /**
686
- * @typedef {| "about-us"
687
- * | "addresses"
688
- * | "blog"
689
- * | "brands"
690
- * | "cards"
691
- * | "cart"
692
- * | "categories"
693
- * | "brand"
694
- * | "category"
695
- * | "collection"
696
- * | "collections"
697
- * | "custom"
698
- * | "contact-us"
699
- * | "external"
700
- * | "faq"
701
- * | "freshchat"
702
- * | "home"
703
- * | "notification-settings"
704
- * | "orders"
705
- * | "page"
706
- * | "policy"
707
- * | "product"
708
- * | "product-request"
709
- * | "products"
710
- * | "profile"
711
- * | "profile-order-shipment"
712
- * | "profile-basic"
713
- * | "profile-company"
714
- * | "profile-emails"
715
- * | "profile-phones"
716
- * | "rate-us"
717
- * | "refer-earn"
718
- * | "settings"
719
- * | "shared-cart"
720
- * | "tnc"
721
- * | "track-order"
722
- * | "wishlist"
723
- * | "sections"
724
- * | "form"
725
- * | "cart-delivery"
726
- * | "cart-payment"
727
- * | "cart-review"
728
- * | "login"
729
- * | "register"
730
- * | "shipping-policy"
731
- * | "return-policy"
732
- * | "order-status"
733
- * | "locate-us"} PageType
734
- */
735
-
736
- class ContentApplicationModel {
737
- /** @returns {ApplicationLegal} */
738
- static ApplicationLegal() {
739
- return Joi.object({
740
- application: Joi.string().allow(""),
741
- tnc: Joi.string().allow(""),
742
- policy: Joi.string().allow(""),
743
- shipping: Joi.string().allow(""),
744
- returns: Joi.string().allow(""),
745
- faq: Joi.array().items(ContentApplicationModel.ApplicationLegalFAQ()),
746
- _id: Joi.string().allow(""),
747
- updated_at: Joi.string().allow(""),
748
- created_at: Joi.string().allow(""),
749
- });
750
- }
751
-
752
- /** @returns {ApplicationLegalFAQ} */
753
- static ApplicationLegalFAQ() {
754
- return Joi.object({
755
- question: Joi.string().allow(""),
756
- answer: Joi.string().allow(""),
757
- });
758
- }
759
-
760
- /** @returns {SeoComponent} */
761
- static SeoComponent() {
762
- return Joi.object({
763
- seo: ContentApplicationModel.SeoSchema(),
764
- });
765
- }
766
-
767
- /** @returns {ValidationError} */
768
- static ValidationError() {
769
- return Joi.object({
770
- message: Joi.string().allow("").required(),
771
- field: Joi.string().allow("").required(),
772
- });
773
- }
774
-
775
- /** @returns {SeoSchema} */
776
- static SeoSchema() {
777
- return Joi.object({
778
- app: Joi.string().allow(""),
779
- _id: Joi.string().allow(""),
780
- robots_txt: Joi.string().allow(""),
781
- sitemap_enabled: Joi.boolean(),
782
- additonal_sitemap: Joi.string().allow(""),
783
- cannonical_enabled: Joi.boolean(),
784
- custom_meta_tags: Joi.array().items(
785
- ContentApplicationModel.CustomMetaTag()
786
- ),
787
- details: ContentApplicationModel.Detail(),
788
- created_at: Joi.string().allow(""),
789
- updated_at: Joi.string().allow(""),
790
- });
791
- }
792
-
793
- /** @returns {CustomMetaTag} */
794
- static CustomMetaTag() {
795
- return Joi.object({
796
- name: Joi.string().allow(""),
797
- content: Joi.string().allow(""),
798
- _id: Joi.string().allow(""),
799
- });
800
- }
801
-
802
- /** @returns {Detail} */
803
- static Detail() {
804
- return Joi.object({
805
- title: Joi.string().allow(""),
806
- description: Joi.string().allow(""),
807
- image_url: Joi.string().allow(""),
808
- });
809
- }
810
-
811
- /** @returns {SeoSchemaComponent} */
812
- static SeoSchemaComponent() {
813
- return Joi.object({
814
- items: Joi.array().items(
815
- ContentApplicationModel.SEOSchemaMarkupTemplate()
816
- ),
817
- });
818
- }
819
-
820
- /** @returns {SEOSchemaMarkupTemplate} */
821
- static SEOSchemaMarkupTemplate() {
822
- return Joi.object({
823
- id: Joi.string().allow(""),
824
- title: Joi.string().allow(""),
825
- page_type: Joi.string().allow(""),
826
- description: Joi.string().allow(""),
827
- schema: Joi.string().allow(""),
828
- active: Joi.boolean(),
829
- created_at: Joi.string().allow(""),
830
- updated_at: Joi.string().allow(""),
831
- application: Joi.string().allow(""),
832
- });
833
- }
834
-
835
- /** @returns {ScheduleSchema} */
836
- static ScheduleSchema() {
837
- return Joi.object({
838
- cron: Joi.string().allow(""),
839
- start: Joi.string().allow(""),
840
- end: Joi.string().allow(""),
841
- duration: Joi.number(),
842
- next_schedule: Joi.array().items(ContentApplicationModel.NextSchedule()),
843
- });
844
- }
845
-
846
- /** @returns {NextSchedule} */
847
- static NextSchedule() {
848
- return Joi.object({
849
- start: Joi.string().allow(""),
850
- end: Joi.string().allow(""),
851
- });
852
- }
853
-
854
- /** @returns {AnnouncementSchema} */
855
- static AnnouncementSchema() {
856
- return Joi.object({
857
- announcement: Joi.string().allow(""),
858
- schedule: ContentApplicationModel.ScheduleStartSchema(),
859
- });
860
- }
861
-
862
- /** @returns {ScheduleStartSchema} */
863
- static ScheduleStartSchema() {
864
- return Joi.object({
865
- start: Joi.string().allow(""),
866
- end: Joi.string().allow(""),
867
- });
868
- }
869
-
870
- /** @returns {BlogGetDetails} */
871
- static BlogGetDetails() {
872
- return Joi.object({
873
- items: Joi.array().items(ContentApplicationModel.BlogSchema()),
874
- page: ContentApplicationModel.Page(),
875
- filters: ContentApplicationModel.BlogFilters(),
876
- });
877
- }
878
-
879
- /** @returns {BlogFilters} */
880
- static BlogFilters() {
881
- return Joi.object({
882
- tags: Joi.array().items(Joi.string().allow("")),
883
- });
884
- }
885
-
886
- /** @returns {ResourceContent} */
887
- static ResourceContent() {
888
- return Joi.object({
889
- type: Joi.string().allow(""),
890
- value: Joi.string().allow(""),
891
- });
892
- }
893
-
894
- /** @returns {Asset} */
895
- static Asset() {
896
- return Joi.object({
897
- aspect_ratio: Joi.string().allow(""),
898
- id: Joi.string().allow(""),
899
- secure_url: Joi.string().allow(""),
900
- });
901
- }
902
-
903
- /** @returns {Author} */
904
- static Author() {
905
- return Joi.object({
906
- designation: Joi.string().allow(""),
907
- id: Joi.string().allow(""),
908
- name: Joi.string().allow(""),
909
- });
910
- }
911
-
912
- /** @returns {BlogSchema} */
913
- static BlogSchema() {
914
- return Joi.object({
915
- _id: Joi.string().allow(""),
916
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
917
- application: Joi.string().allow(""),
918
- archived: Joi.boolean(),
919
- author: ContentApplicationModel.Author(),
920
- content: Joi.array().items(ContentApplicationModel.ResourceContent()),
921
- feature_image: ContentApplicationModel.Asset(),
922
- published: Joi.boolean(),
923
- reading_time: Joi.string().allow(""),
924
- slug: Joi.string().allow(""),
925
- tags: Joi.array().items(Joi.string().allow("")),
926
- publish_date: Joi.string().allow(""),
927
- seo: ContentApplicationModel.SEO(),
928
- title: Joi.string().allow(""),
929
- date_meta: ContentApplicationModel.DateMeta(),
930
- summary: Joi.string().allow(""),
931
- });
932
- }
933
-
934
- /** @returns {SEO} */
935
- static SEO() {
936
- return Joi.object({
937
- description: Joi.string().allow(""),
938
- image: ContentApplicationModel.SEOImage(),
939
- title: Joi.string().allow(""),
940
- meta_tags: Joi.array().items(ContentApplicationModel.SEOMetaItem()),
941
- sitemap: ContentApplicationModel.SEOSitemap(),
942
- breadcrumb: Joi.array().items(ContentApplicationModel.SEObreadcrumb()),
943
- canonical_url: Joi.string().allow(""),
944
- });
945
- }
946
-
947
- /** @returns {SEOImage} */
948
- static SEOImage() {
949
- return Joi.object({
950
- url: Joi.string().allow(""),
951
- });
952
- }
953
-
954
- /** @returns {SEOMetaItem} */
955
- static SEOMetaItem() {
956
- return Joi.object({
957
- title: Joi.string().allow(""),
958
- items: Joi.array().items(ContentApplicationModel.SEOMetaItems()),
959
- });
960
- }
961
-
962
- /** @returns {SEOMetaItems} */
963
- static SEOMetaItems() {
964
- return Joi.object({
965
- key: Joi.string().allow(""),
966
- value: Joi.string().allow(""),
967
- });
968
- }
969
-
970
- /** @returns {SEOSitemap} */
971
- static SEOSitemap() {
972
- return Joi.object({
973
- priority: Joi.number(),
974
- frequency: Joi.string().allow(""),
975
- });
976
- }
977
-
978
- /** @returns {SEObreadcrumb} */
979
- static SEObreadcrumb() {
980
- return Joi.object({
981
- url: Joi.string().allow(""),
982
- action: ContentApplicationModel.Action(),
983
- });
984
- }
985
-
986
- /** @returns {DateMeta} */
987
- static DateMeta() {
988
- return Joi.object({
989
- created_on: Joi.string().allow(""),
990
- modified_on: Joi.string().allow(""),
991
- });
992
- }
993
-
994
- /** @returns {LocaleLanguage} */
995
- static LocaleLanguage() {
996
- return Joi.object({
997
- hi: ContentApplicationModel.Language(),
998
- ar: ContentApplicationModel.Language(),
999
- en_us: ContentApplicationModel.Language(),
1000
- });
1001
- }
1002
-
1003
- /** @returns {Language} */
1004
- static Language() {
1005
- return Joi.object({
1006
- display: Joi.string().allow(""),
1007
- });
1008
- }
1009
-
1010
- /** @returns {Action} */
1011
- static Action() {
1012
- return Joi.object({
1013
- type: Joi.string().allow(""),
1014
- page: ContentApplicationModel.ActionPage(),
1015
- popup: ContentApplicationModel.ActionPage(),
1016
- });
1017
- }
1018
-
1019
- /** @returns {NavigationReference} */
1020
- static NavigationReference() {
1021
- return Joi.object({
1022
- acl: Joi.array().items(Joi.string().allow("")),
1023
- tags: Joi.array().items(Joi.string().allow("")),
1024
- _locale_language: ContentApplicationModel.LocaleLanguage(),
1025
- image: Joi.string().allow(""),
1026
- type: Joi.string().allow(""),
1027
- action: ContentApplicationModel.Action(),
1028
- active: Joi.boolean(),
1029
- display: Joi.string().allow(""),
1030
- sort_order: Joi.number(),
1031
- sub_navigation: Joi.array().items(Joi.link("#NavigationReference")),
1032
- }).id("NavigationReference");
1033
- }
1034
-
1035
- /** @returns {ConfigurationSchema} */
1036
- static ConfigurationSchema() {
1037
- return Joi.object({
1038
- sleep_time: Joi.number(),
1039
- start_on_launch: Joi.boolean(),
1040
- duration: Joi.number(),
1041
- slide_direction: Joi.string().allow(""),
1042
- });
1043
- }
1044
-
1045
- /** @returns {SlideshowMedia} */
1046
- static SlideshowMedia() {
1047
- return Joi.object({
1048
- type: Joi.string().allow(""),
1049
- url: Joi.string().allow(""),
1050
- bg_color: Joi.string().allow(""),
1051
- duration: Joi.number(),
1052
- auto_decide_duration: Joi.boolean(),
1053
- action: ContentApplicationModel.Action(),
1054
- });
1055
- }
1056
-
1057
- /** @returns {AnnouncementsResponseSchema} */
1058
- static AnnouncementsResponseSchema() {
1059
- return Joi.object({
1060
- announcements: Joi.object().pattern(
1061
- /\S/,
1062
- Joi.array().items(ContentApplicationModel.AnnouncementSchema())
1063
- ),
1064
- refresh_rate: Joi.number(),
1065
- refresh_pages: Joi.array().items(Joi.string().allow("")),
1066
- });
1067
- }
1068
-
1069
- /** @returns {FaqResponseSchema} */
1070
- static FaqResponseSchema() {
1071
- return Joi.object({
1072
- faqs: Joi.array().items(ContentApplicationModel.FaqSchema()),
1073
- });
1074
- }
1075
-
1076
- /** @returns {DataLoaderSchema} */
1077
- static DataLoaderSchema() {
1078
- return Joi.object({
1079
- name: Joi.string().allow(""),
1080
- service: Joi.string().allow(""),
1081
- operation_id: Joi.string().allow(""),
1082
- type: Joi.string().allow(""),
1083
- url: Joi.string().allow(""),
1084
- content: Joi.string().allow(""),
1085
- __source: ContentApplicationModel.DataLoaderSourceSchema(),
1086
- _id: Joi.string().allow(""),
1087
- });
1088
- }
1089
-
1090
- /** @returns {DataLoaderSourceSchema} */
1091
- static DataLoaderSourceSchema() {
1092
- return Joi.object({
1093
- type: Joi.string().allow(""),
1094
- id: Joi.string().allow(""),
1095
- });
1096
- }
1097
-
1098
- /** @returns {DataLoadersSchema} */
1099
- static DataLoadersSchema() {
1100
- return Joi.object({
1101
- items: Joi.array().items(ContentApplicationModel.DataLoaderSchema()),
1102
- });
1103
- }
1104
-
1105
- /** @returns {ContentAPIError} */
1106
- static ContentAPIError() {
1107
- return Joi.object({
1108
- message: Joi.string().allow(""),
1109
- status: Joi.number(),
1110
- code: Joi.string().allow(""),
1111
- exception: Joi.string().allow(""),
1112
- info: Joi.string().allow(""),
1113
- request_id: Joi.string().allow(""),
1114
- stack_trace: Joi.string().allow(""),
1115
- meta: Joi.object().pattern(/\S/, Joi.any()),
1116
- });
1117
- }
1118
-
1119
- /** @returns {CommonError} */
1120
- static CommonError() {
1121
- return Joi.object({
1122
- message: Joi.string().allow(""),
1123
- });
1124
- }
1125
-
1126
- /** @returns {CategorySchema} */
1127
- static CategorySchema() {
1128
- return Joi.object({
1129
- index: Joi.number(),
1130
- title: Joi.string().allow(""),
1131
- description: Joi.string().allow(""),
1132
- children: Joi.array().items(Joi.string().allow("")),
1133
- _id: Joi.string().allow(""),
1134
- slug: Joi.string().allow(""),
1135
- application: Joi.string().allow(""),
1136
- icon_url: Joi.string().allow(""),
1137
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1138
- });
1139
- }
1140
-
1141
- /** @returns {ChildrenSchema} */
1142
- static ChildrenSchema() {
1143
- return Joi.object({
1144
- question: Joi.string().allow(""),
1145
- answer: Joi.string().allow(""),
1146
- slug: Joi.string().allow(""),
1147
- application: Joi.string().allow(""),
1148
- _id: Joi.string().allow(""),
1149
- });
1150
- }
1151
-
1152
- /** @returns {FAQCategorySchema} */
1153
- static FAQCategorySchema() {
1154
- return Joi.object({
1155
- index: Joi.number(),
1156
- title: Joi.string().allow(""),
1157
- description: Joi.string().allow(""),
1158
- children: Joi.array().items(ContentApplicationModel.ChildrenSchema()),
1159
- _id: Joi.string().allow(""),
1160
- slug: Joi.string().allow(""),
1161
- application: Joi.string().allow(""),
1162
- icon_url: Joi.string().allow(""),
1163
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1164
- });
1165
- }
1166
-
1167
- /** @returns {FaqSchema} */
1168
- static FaqSchema() {
1169
- return Joi.object({
1170
- slug: Joi.string().allow(""),
1171
- application: Joi.string().allow(""),
1172
- _id: Joi.string().allow(""),
1173
- question: Joi.string().allow(""),
1174
- answer: Joi.string().allow(""),
1175
- tags: Joi.array().items(Joi.string().allow("")),
1176
- });
1177
- }
1178
-
1179
- /** @returns {GetFaqSchema} */
1180
- static GetFaqSchema() {
1181
- return Joi.object({
1182
- faqs: Joi.array().items(ContentApplicationModel.FaqSchema()),
1183
- });
1184
- }
1185
-
1186
- /** @returns {GetFaqCategoriesSchema} */
1187
- static GetFaqCategoriesSchema() {
1188
- return Joi.object({
1189
- categories: Joi.array().items(ContentApplicationModel.CategorySchema()),
1190
- });
1191
- }
1192
-
1193
- /** @returns {GetFaqCategoryBySlugSchema} */
1194
- static GetFaqCategoryBySlugSchema() {
1195
- return Joi.object({
1196
- category: ContentApplicationModel.FAQCategorySchema(),
1197
- });
1198
- }
1199
-
1200
- /** @returns {Page} */
1201
- static Page() {
1202
- return Joi.object({
1203
- item_total: Joi.number(),
1204
- next_id: Joi.string().allow(""),
1205
- has_previous: Joi.boolean(),
1206
- has_next: Joi.boolean(),
1207
- current: Joi.number(),
1208
- type: Joi.string().allow("").required(),
1209
- size: Joi.number(),
1210
- });
1211
- }
1212
-
1213
- /** @returns {LandingPageSchema} */
1214
- static LandingPageSchema() {
1215
- return Joi.object({
1216
- slug: Joi.string().allow(""),
1217
- action: ContentApplicationModel.Action(),
1218
- platform: Joi.array().items(Joi.string().allow("")),
1219
- created_by: ContentApplicationModel.CreatedBySchema(),
1220
- date_meta: ContentApplicationModel.DateMeta(),
1221
- _id: Joi.string().allow(""),
1222
- application: Joi.string().allow(""),
1223
- archived: Joi.boolean(),
1224
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1225
- });
1226
- }
1227
-
1228
- /** @returns {NavigationGetDetails} */
1229
- static NavigationGetDetails() {
1230
- return Joi.object({
1231
- items: Joi.array().items(ContentApplicationModel.NavigationSchema()),
1232
- page: ContentApplicationModel.Page(),
1233
- });
1234
- }
1235
-
1236
- /** @returns {Orientation} */
1237
- static Orientation() {
1238
- return Joi.object({
1239
- portrait: Joi.array().items(Joi.string().allow("")),
1240
- landscape: Joi.array().items(Joi.string().allow("")),
1241
- });
1242
- }
1243
-
1244
- /** @returns {NavigationSchema} */
1245
- static NavigationSchema() {
1246
- return Joi.object({
1247
- _id: Joi.string().allow(""),
1248
- application: Joi.string().allow(""),
1249
- archived: Joi.boolean(),
1250
- name: Joi.string().allow(""),
1251
- slug: Joi.string().allow(""),
1252
- platform: Joi.array().items(Joi.string().allow("")),
1253
- created_by: ContentApplicationModel.CreatedBySchema(),
1254
- date_meta: ContentApplicationModel.DateMeta(),
1255
- orientation: ContentApplicationModel.Orientation(),
1256
- version: Joi.number(),
1257
- navigation: Joi.array().items(
1258
- ContentApplicationModel.NavigationReference()
1259
- ),
1260
- });
1261
- }
1262
-
1263
- /** @returns {PageGetDetails} */
1264
- static PageGetDetails() {
1265
- return Joi.object({
1266
- items: Joi.array().items(ContentApplicationModel.PageSchema()),
1267
- page: ContentApplicationModel.Page(),
1268
- });
1269
- }
1270
-
1271
- /** @returns {PageSchema} */
1272
- static PageSchema() {
1273
- return Joi.object({
1274
- _id: Joi.string().allow(""),
1275
- application: Joi.string().allow(""),
1276
- component_ids: Joi.array().items(Joi.string().allow("")),
1277
- content: Joi.array().items(Joi.any()),
1278
- content_path: Joi.string().allow(""),
1279
- created_by: ContentApplicationModel.CreatedBySchema(),
1280
- date_meta: ContentApplicationModel.DateMeta(),
1281
- description: Joi.string().allow(""),
1282
- feature_image: ContentApplicationModel.Asset(),
1283
- page_meta: Joi.array().items(Joi.any()),
1284
- _schedule: ContentApplicationModel.ScheduleSchema(),
1285
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1286
- orientation: Joi.string().allow(""),
1287
- platform: Joi.string().allow(""),
1288
- published: Joi.boolean(),
1289
- slug: Joi.string().allow(""),
1290
- tags: Joi.array().items(Joi.string().allow("")),
1291
- title: Joi.string().allow(""),
1292
- type: Joi.string().allow(""),
1293
- seo: ContentApplicationModel.SEO(),
1294
- visibility: Joi.object().pattern(/\S/, Joi.any()),
1295
- archived: Joi.boolean(),
1296
- });
1297
- }
1298
-
1299
- /** @returns {CreatedBySchema} */
1300
- static CreatedBySchema() {
1301
- return Joi.object({
1302
- id: Joi.string().allow(""),
1303
- });
1304
- }
1305
-
1306
- /** @returns {SlideshowGetDetails} */
1307
- static SlideshowGetDetails() {
1308
- return Joi.object({
1309
- items: Joi.array().items(ContentApplicationModel.SlideshowSchema()),
1310
- page: ContentApplicationModel.Page(),
1311
- });
1312
- }
1313
-
1314
- /** @returns {SlideshowSchema} */
1315
- static SlideshowSchema() {
1316
- return Joi.object({
1317
- _id: Joi.string().allow(""),
1318
- slug: Joi.string().allow(""),
1319
- date_meta: ContentApplicationModel.DateMeta(),
1320
- application: Joi.string().allow(""),
1321
- platform: Joi.string().allow(""),
1322
- configuration: ContentApplicationModel.ConfigurationSchema(),
1323
- media: Joi.array().items(ContentApplicationModel.SlideshowMedia()),
1324
- active: Joi.boolean(),
1325
- archived: Joi.boolean(),
1326
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1327
- });
1328
- }
1329
-
1330
- /** @returns {Support} */
1331
- static Support() {
1332
- return Joi.object({
1333
- created: Joi.boolean(),
1334
- _id: Joi.string().allow(""),
1335
- application: Joi.string().allow(""),
1336
- created_at: Joi.string().allow(""),
1337
- updated_at: Joi.string().allow(""),
1338
- contact: ContentApplicationModel.ContactSchema(),
1339
- });
1340
- }
1341
-
1342
- /** @returns {PhoneProperties} */
1343
- static PhoneProperties() {
1344
- return Joi.object({
1345
- key: Joi.string().allow(""),
1346
- code: Joi.string().allow(""),
1347
- number: Joi.string().allow(""),
1348
- phone_type: Joi.string().allow(""),
1349
- });
1350
- }
1351
-
1352
- /** @returns {PhoneSchema} */
1353
- static PhoneSchema() {
1354
- return Joi.object({
1355
- active: Joi.boolean(),
1356
- phone: Joi.array().items(ContentApplicationModel.PhoneProperties()),
1357
- });
1358
- }
1359
-
1360
- /** @returns {EmailProperties} */
1361
- static EmailProperties() {
1362
- return Joi.object({
1363
- key: Joi.string().allow(""),
1364
- value: Joi.string().allow(""),
1365
- });
1366
- }
1367
-
1368
- /** @returns {EmailSchema} */
1369
- static EmailSchema() {
1370
- return Joi.object({
1371
- active: Joi.boolean(),
1372
- email: Joi.array().items(ContentApplicationModel.EmailProperties()),
1373
- });
1374
- }
1375
-
1376
- /** @returns {ContactSchema} */
1377
- static ContactSchema() {
1378
- return Joi.object({
1379
- phone: ContentApplicationModel.PhoneSchema(),
1380
- email: ContentApplicationModel.EmailSchema(),
1381
- });
1382
- }
1383
-
1384
- /** @returns {TagsSchema} */
1385
- static TagsSchema() {
1386
- return Joi.object({
1387
- application: Joi.string().allow(""),
1388
- _id: Joi.string().allow(""),
1389
- tags: Joi.array().items(ContentApplicationModel.TagSchema()),
1390
- });
1391
- }
1392
-
1393
- /** @returns {TagSchema} */
1394
- static TagSchema() {
1395
- return Joi.object({
1396
- name: Joi.string().allow(""),
1397
- url: Joi.string().allow(""),
1398
- type: Joi.string().allow(""),
1399
- sub_type: Joi.string().allow(""),
1400
- _id: Joi.string().allow(""),
1401
- position: Joi.string().allow(""),
1402
- attributes: Joi.object().pattern(/\S/, Joi.any()),
1403
- content: Joi.string().allow(""),
1404
- pages: Joi.array().items(Joi.any()),
1405
- __source: ContentApplicationModel.TagSourceSchema(),
1406
- });
1407
- }
1408
-
1409
- /** @returns {TagSourceSchema} */
1410
- static TagSourceSchema() {
1411
- return Joi.object({
1412
- type: Joi.string().allow(""),
1413
- id: Joi.string().allow(""),
1414
- });
1415
- }
1416
-
1417
- /** @returns {CustomObjectFieldValue} */
1418
- static CustomObjectFieldValue() {
1419
- return Joi.object({
1420
- value: Joi.any(),
1421
- });
1422
- }
1423
-
1424
- /** @returns {CustomObjectListItemDefinationSchema} */
1425
- static CustomObjectListItemDefinationSchema() {
1426
- return Joi.object({
1427
- _id: Joi.string().allow(""),
1428
- name: Joi.string().allow(""),
1429
- type: Joi.string().allow(""),
1430
- });
1431
- }
1432
-
1433
- /** @returns {CustomObjectFieldSchema} */
1434
- static CustomObjectFieldSchema() {
1435
- return Joi.object({
1436
- _id: Joi.string().allow(""),
1437
- slug: Joi.string().allow(""),
1438
- value: Joi.array().items(
1439
- ContentApplicationModel.CustomObjectFieldValue()
1440
- ),
1441
- type: Joi.string().allow(""),
1442
- definition_id: Joi.string().allow(""),
1443
- });
1444
- }
1445
-
1446
- /** @returns {CustomObjectByIdSchema} */
1447
- static CustomObjectByIdSchema() {
1448
- return Joi.object({
1449
- id: Joi.string().allow(""),
1450
- status: Joi.string().allow(""),
1451
- display_name: Joi.string().allow(""),
1452
- definition: ContentApplicationModel.CustomObjectListItemDefinationSchema(),
1453
- references: Joi.array().items(Joi.any()),
1454
- fields: Joi.array().items(
1455
- ContentApplicationModel.CustomObjectFieldSchema()
1456
- ),
1457
- });
1458
- }
1459
-
1460
- /** @returns {CustomFieldValue} */
1461
- static CustomFieldValue() {
1462
- return Joi.object({
1463
- value: Joi.any(),
1464
- });
1465
- }
1466
-
1467
- /** @returns {CustomFieldSchema} */
1468
- static CustomFieldSchema() {
1469
- return Joi.object({
1470
- _id: Joi.string().allow(""),
1471
- namespace: Joi.string().allow(""),
1472
- slug: Joi.string().allow(""),
1473
- resource: Joi.string().allow(""),
1474
- value: Joi.array().items(ContentApplicationModel.CustomFieldValue()),
1475
- resource_id: Joi.string().allow(""),
1476
- type: Joi.string().allow(""),
1477
- multi_value: Joi.boolean(),
1478
- company_id: Joi.string().allow(""),
1479
- application_id: Joi.string().allow(""),
1480
- definition_id: Joi.string().allow(""),
1481
- has_invalid_values: Joi.boolean(),
1482
- invalid_value_errors: Joi.array().items(Joi.any()),
1483
- is_deleted: Joi.boolean(),
1484
- created_at: Joi.string().allow(""),
1485
- updated_at: Joi.string().allow(""),
1486
- });
1487
- }
1488
-
1489
- /** @returns {CustomFieldsResponseByResourceIdSchema} */
1490
- static CustomFieldsResponseByResourceIdSchema() {
1491
- return Joi.object({
1492
- items: Joi.array().items(ContentApplicationModel.CustomFieldSchema()),
1493
- });
1494
- }
1495
-
1496
- /** @returns {CustomObjectListItemSchema} */
1497
- static CustomObjectListItemSchema() {
1498
- return Joi.object({
1499
- _id: Joi.string().allow(""),
1500
- definition_id: Joi.string().allow(""),
1501
- status: Joi.string().allow(""),
1502
- updated_at: Joi.string().allow(""),
1503
- display_name: Joi.string().allow(""),
1504
- definition: ContentApplicationModel.CustomObjectListItemDefinationSchema(),
1505
- references: Joi.number(),
1506
- });
1507
- }
1508
-
1509
- /** @returns {CustomObjectsSchema} */
1510
- static CustomObjectsSchema() {
1511
- return Joi.object({
1512
- items: Joi.array().items(
1513
- ContentApplicationModel.CustomObjectListItemSchema()
1514
- ),
1515
- page: ContentApplicationModel.Page(),
1516
- });
1517
- }
1518
-
1519
- /** @returns {ActionPage} */
1520
- static ActionPage() {
1521
- return Joi.object({
1522
- params: Joi.object().pattern(
1523
- /\S/,
1524
- Joi.array().items(Joi.string().allow(""))
1525
- ),
1526
- query: Joi.object().pattern(
1527
- /\S/,
1528
- Joi.array().items(Joi.string().allow(""))
1529
- ),
1530
- url: Joi.string().allow(""),
1531
- type: ContentApplicationModel.PageType().required(),
1532
- });
1533
- }
1534
-
1535
- /**
1536
- * Enum: PageType Used By: Content
1537
- *
1538
- * @returns {PageType}
1539
- */
1540
- static PageType() {
1541
- return Joi.string().valid(
1542
- "about-us",
1543
-
1544
- "addresses",
1545
-
1546
- "blog",
1547
-
1548
- "brands",
1549
-
1550
- "cards",
1551
-
1552
- "cart",
1553
-
1554
- "categories",
1555
-
1556
- "brand",
1557
-
1558
- "category",
1559
-
1560
- "collection",
1561
-
1562
- "collections",
1563
-
1564
- "custom",
1565
-
1566
- "contact-us",
1567
-
1568
- "external",
1569
-
1570
- "faq",
1571
-
1572
- "freshchat",
1573
-
1574
- "home",
1575
-
1576
- "notification-settings",
1577
-
1578
- "orders",
1579
-
1580
- "page",
1581
-
1582
- "policy",
1583
-
1584
- "product",
1585
-
1586
- "product-request",
1587
-
1588
- "products",
1589
-
1590
- "profile",
1591
-
1592
- "profile-order-shipment",
1593
-
1594
- "profile-basic",
1595
-
1596
- "profile-company",
1597
-
1598
- "profile-emails",
1599
-
1600
- "profile-phones",
1601
-
1602
- "rate-us",
1603
-
1604
- "refer-earn",
1605
-
1606
- "settings",
1607
-
1608
- "shared-cart",
1609
-
1610
- "tnc",
1611
-
1612
- "track-order",
1613
-
1614
- "wishlist",
1615
-
1616
- "sections",
1617
-
1618
- "form",
1619
-
1620
- "cart-delivery",
1621
-
1622
- "cart-payment",
1623
-
1624
- "cart-review",
1625
-
1626
- "login",
1627
-
1628
- "register",
1629
-
1630
- "shipping-policy",
1631
-
1632
- "return-policy",
1633
-
1634
- "order-status",
1635
-
1636
- "locate-us"
1637
- );
1638
- }
1639
- }
1640
- module.exports = ContentApplicationModel;