@gofynd/fdk-client-javascript 1.4.15-beta.14 → 1.4.15-beta.15

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 (278) hide show
  1. package/README.md +23 -26
  2. package/package.json +5 -1
  3. package/sdk/application/ApplicationClient.d.ts +5 -6
  4. package/sdk/application/ApplicationClient.js +24 -20
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +133 -83
  6. package/sdk/application/Cart/CartApplicationClient.js +444 -76
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +132 -114
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +209 -126
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -4
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +58 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +73 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +95 -66
  16. package/sdk/application/Content/ContentApplicationClient.js +274 -111
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -11
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -10
  19. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  20. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  21. package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
  22. package/sdk/application/Lead/LeadApplicationClient.js +6 -6
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +37 -57
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +117 -180
  25. package/sdk/application/Order/OrderApplicationClient.d.ts +63 -21
  26. package/sdk/application/Order/OrderApplicationClient.js +217 -17
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +179 -149
  28. package/sdk/application/Payment/PaymentApplicationClient.js +301 -167
  29. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  30. package/sdk/application/Share/ShareApplicationClient.js +7 -7
  31. package/sdk/application/Theme/ThemeApplicationClient.d.ts +7 -7
  32. package/sdk/application/Theme/ThemeApplicationClient.js +10 -6
  33. package/sdk/application/User/UserApplicationClient.d.ts +103 -53
  34. package/sdk/application/User/UserApplicationClient.js +308 -49
  35. package/sdk/common/AxiosHelper.js +11 -4
  36. package/sdk/common/Constant.d.ts +27 -4
  37. package/sdk/common/Constant.js +33 -6
  38. package/sdk/common/utils.d.ts +10 -0
  39. package/sdk/common/utils.js +24 -3
  40. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +46 -16
  41. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +266 -40
  42. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +163 -19
  43. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -14
  44. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +5 -2
  45. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +23 -7
  46. package/sdk/partner/Lead/LeadPartnerClient.d.ts +9 -9
  47. package/sdk/partner/Lead/LeadPartnerClient.js +9 -9
  48. package/sdk/partner/Lead/LeadPartnerModel.d.ts +14 -9
  49. package/sdk/partner/Lead/LeadPartnerModel.js +19 -17
  50. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +264 -49
  51. package/sdk/partner/Logistics/LogisticsPartnerClient.js +2116 -252
  52. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2256 -258
  53. package/sdk/partner/Logistics/LogisticsPartnerModel.js +1187 -230
  54. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +21 -1
  55. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +218 -13
  56. package/sdk/partner/PartnerClient.d.ts +5 -2
  57. package/sdk/partner/PartnerClient.js +21 -7
  58. package/sdk/partner/Theme/ThemePartnerClient.d.ts +32 -34
  59. package/sdk/partner/Theme/ThemePartnerClient.js +42 -44
  60. package/sdk/partner/Theme/ThemePartnerModel.d.ts +142 -43
  61. package/sdk/partner/Theme/ThemePartnerModel.js +129 -44
  62. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  63. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +83 -27
  64. package/sdk/partner/Webhook/WebhookPartnerClient.js +446 -27
  65. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +920 -185
  66. package/sdk/partner/Webhook/WebhookPartnerModel.js +462 -154
  67. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +5 -0
  68. package/sdk/partner/Webhook/WebhookPartnerValidator.js +41 -3
  69. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +8 -7
  70. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +17 -11
  71. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  72. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  73. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +68 -13
  74. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +44 -6
  75. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +3 -33
  76. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -244
  77. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
  78. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
  79. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  80. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  81. package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -15
  82. package/sdk/platform/Billing/BillingPlatformClient.js +18 -18
  83. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  84. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  85. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  86. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  87. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +266 -203
  88. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1446 -500
  89. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +729 -100
  90. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +446 -82
  91. package/sdk/platform/Cart/CartPlatformModel.d.ts +6927 -1396
  92. package/sdk/platform/Cart/CartPlatformModel.js +3065 -1316
  93. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +433 -248
  94. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1662 -559
  95. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +464 -159
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +304 -87
  97. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +383 -234
  98. package/sdk/platform/Catalog/CatalogPlatformClient.js +2475 -1557
  99. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9573 -2678
  100. package/sdk/platform/Catalog/CatalogPlatformModel.js +5033 -1973
  101. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
  102. package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
  103. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
  104. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  105. package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
  106. package/sdk/platform/Common/CommonPlatformModel.js +25 -14
  107. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
  111. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
  112. package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
  113. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
  114. package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
  124. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
  125. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
  126. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
  127. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
  128. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
  129. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  130. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  131. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
  132. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
  133. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
  134. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
  135. package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
  136. package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
  137. package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
  138. package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
  139. package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
  140. package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
  141. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
  142. package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
  143. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
  144. package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
  145. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  146. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
  149. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
  150. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
  151. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
  152. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
  153. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
  154. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
  155. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  156. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  157. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
  158. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
  159. package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
  160. package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
  161. package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
  162. package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
  163. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
  164. package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
  165. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
  166. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
  167. package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
  168. package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
  169. package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
  170. package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
  171. package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
  172. package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
  173. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
  174. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
  175. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
  176. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
  177. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
  178. package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
  179. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
  180. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
  181. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
  182. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
  183. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
  184. package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
  185. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
  186. package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
  187. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  188. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  189. package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
  190. package/sdk/platform/PlatformApplicationClient.js +0 -4
  191. package/sdk/platform/PlatformClient.d.ts +5 -4
  192. package/sdk/platform/PlatformClient.js +32 -22
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
  202. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
  203. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
  204. package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
  205. package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
  206. package/sdk/platform/Share/SharePlatformModel.js +31 -6
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
  208. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
  210. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
  211. package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
  212. package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
  213. package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
  214. package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
  215. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
  216. package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
  217. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
  218. package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
  219. package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
  220. package/sdk/platform/User/UserPlatformModel.js +607 -46
  221. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
  222. package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
  223. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
  224. package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
  225. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  226. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  227. package/sdk/platform/index.d.ts +0 -2
  228. package/sdk/platform/index.js +0 -4
  229. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  230. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  231. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  232. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  233. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  234. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  235. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -4
  236. package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
  237. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
  238. package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
  239. package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
  240. package/sdk/public/Content/ContentPublicClient.js +1067 -17
  241. package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
  242. package/sdk/public/Content/ContentPublicModel.js +751 -3
  243. package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
  244. package/sdk/public/Content/ContentPublicValidator.js +119 -2
  245. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  246. package/sdk/public/Partner/PartnerPublicClient.js +1 -1
  247. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  248. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  249. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  250. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  251. package/sdk/public/PublicClient.d.ts +5 -2
  252. package/sdk/public/PublicClient.js +16 -6
  253. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
  254. package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
  255. package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
  256. package/sdk/public/Webhook/WebhookPublicModel.js +81 -61
  257. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  258. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  259. package/sdk/public/index.d.ts +1 -0
  260. package/sdk/public/index.js +2 -0
  261. package/utility.d.ts +3 -0
  262. package/utility.js +7 -0
  263. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
  264. package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
  265. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
  266. package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
  267. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  268. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  269. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  270. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  271. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  272. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
  273. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
  274. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
  275. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
  276. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
  277. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
  278. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
@@ -2,6 +2,11 @@ const Joi = require("joi");
2
2
 
3
3
  const ContentPlatformModel = require("./ContentPlatformModel");
4
4
 
5
+ /**
6
+ * @typedef AddApplicationLanguageParam
7
+ * @property {ContentPlatformModel.ApplicationLanguageCreate} body
8
+ */
9
+
5
10
  /**
6
11
  * @typedef AddDataLoaderParam
7
12
  * @property {ContentPlatformModel.DataLoaderSchema} body
@@ -24,25 +29,25 @@ const ContentPlatformModel = require("./ContentPlatformModel");
24
29
  */
25
30
 
26
31
  /**
27
- * @typedef CreateAnnouncementParam
28
- * @property {ContentPlatformModel.AdminAnnouncementSchema} body
32
+ * @typedef BulkUnPublishApplicationLanguageParam
33
+ * @property {ContentPlatformModel.unPublishApplicationLanguage} body
29
34
  */
30
35
 
31
36
  /**
32
- * @typedef CreateAppCustomFieldByResourceIdParam
33
- * @property {string} resource
34
- * @property {string} resourceId
35
- * @property {ContentPlatformModel.CustomFieldRequestSchema} body
37
+ * @typedef CreateAnnouncementParam
38
+ * @property {ContentPlatformModel.AdminAnnouncementSchema} body
36
39
  */
37
40
 
38
41
  /**
39
42
  * @typedef CreateAppCustomFieldDefinitionParam
43
+ * @property {string} resource
40
44
  * @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
41
45
  */
42
46
 
43
47
  /**
44
- * @typedef CreateAppCustomObjectParam
45
- * @property {ContentPlatformModel.CustomObjectRequestSchema} body
48
+ * @typedef CreateAppCustomObjectBySlugParam
49
+ * @property {string} definitionSlug
50
+ * @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
46
51
  */
47
52
 
48
53
  /**
@@ -50,9 +55,14 @@ const ContentPlatformModel = require("./ContentPlatformModel");
50
55
  * @property {ContentPlatformModel.CustomObjectDefinitionRequestSchema} body
51
56
  */
52
57
 
58
+ /**
59
+ * @typedef CreateApplicationResourceTranslationParam
60
+ * @property {ContentPlatformModel.ResourceTranslationCreate} body
61
+ */
62
+
53
63
  /**
54
64
  * @typedef CreateBlogParam
55
- * @property {ContentPlatformModel.BlogRequest} body
65
+ * @property {ContentPlatformModel.BlogPayload} body
56
66
  */
57
67
 
58
68
  /**
@@ -67,17 +77,12 @@ const ContentPlatformModel = require("./ContentPlatformModel");
67
77
 
68
78
  /**
69
79
  * @typedef CreateNavigationParam
70
- * @property {ContentPlatformModel.NavigationRequest} body
80
+ * @property {ContentPlatformModel.NavigationPayload} body
71
81
  */
72
82
 
73
83
  /**
74
84
  * @typedef CreatePageParam
75
- * @property {ContentPlatformModel.PageRequest} body
76
- */
77
-
78
- /**
79
- * @typedef CreatePagePreviewParam
80
- * @property {ContentPlatformModel.PageRequest} body
85
+ * @property {ContentPlatformModel.PagePayload} body
81
86
  */
82
87
 
83
88
  /**
@@ -86,8 +91,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
86
91
  */
87
92
 
88
93
  /**
89
- * @typedef CreateSlideshowParam
90
- * @property {ContentPlatformModel.SlideshowRequest} body
94
+ * @typedef CreateTranslateUILabelsParam
95
+ * @property {ContentPlatformModel.TranslateUiLabelsCreate} body
91
96
  */
92
97
 
93
98
  /**
@@ -96,18 +101,31 @@ const ContentPlatformModel = require("./ContentPlatformModel");
96
101
  */
97
102
 
98
103
  /**
99
- * @typedef DeleteAppCustomFieldDefinitionParam
100
- * @property {string} definitionId
104
+ * @typedef DeleteAppCustomFieldDefinitionBySlugParam
105
+ * @property {string} slug
106
+ * @property {string} resource
107
+ * @property {string} namespace
101
108
  */
102
109
 
103
110
  /**
104
- * @typedef DeleteAppCustomObjectParam
105
- * @property {string} metaobjectId
111
+ * @typedef DeleteAppCustomObjectBySlugParam
112
+ * @property {string} definitionSlug
113
+ * @property {string} slug
106
114
  */
107
115
 
108
116
  /**
109
- * @typedef DeleteAppCustomObjectDefinitionParam
110
- * @property {string} definitionId
117
+ * @typedef DeleteAppCustomObjectDefinitionBySlugParam
118
+ * @property {string} slug
119
+ */
120
+
121
+ /**
122
+ * @typedef DeleteApplicationLanguageParam
123
+ * @property {string} locale
124
+ */
125
+
126
+ /**
127
+ * @typedef DeleteApplicationResourceTranslationParam
128
+ * @property {string} id
111
129
  */
112
130
 
113
131
  /**
@@ -157,11 +175,6 @@ const ContentPlatformModel = require("./ContentPlatformModel");
157
175
  * Template created within a business.
158
176
  */
159
177
 
160
- /**
161
- * @typedef DeleteSlideshowParam
162
- * @property {string} id - ID allotted to the slideshow.
163
- */
164
-
165
178
  /**
166
179
  * @typedef EditDataLoaderParam
167
180
  * @property {string} dataLoaderId - ID allotted to the data loader.
@@ -182,8 +195,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
182
195
  */
183
196
 
184
197
  /**
185
- * @typedef ExportAppCustomObjectEntriesParam
186
- * @property {string} definitionId
198
+ * @typedef ExportAppCustomObjectEntriesBySlugParam
199
+ * @property {string} slug
187
200
  */
188
201
 
189
202
  /**
@@ -208,40 +221,51 @@ const ContentPlatformModel = require("./ContentPlatformModel");
208
221
  */
209
222
 
210
223
  /**
211
- * @typedef GetAppCustomFieldDefinitionParam
212
- * @property {string} definitionId
224
+ * @typedef GetAppCustomFieldDefinitionByResourceParam
225
+ * @property {string} pageNo
226
+ * @property {string} pageSize
227
+ * @property {string} resource
228
+ * @property {string} [types]
229
+ * @property {string} [search]
230
+ * @property {string} [slugs]
231
+ * @property {string} [namespaces]
232
+ */
233
+
234
+ /**
235
+ * @typedef GetAppCustomFieldDefinitionBySlugParam
236
+ * @property {string} slug
237
+ * @property {string} resource
238
+ * @property {string} namespace
213
239
  */
214
240
 
215
241
  /**
216
242
  * @typedef GetAppCustomFieldDefinitionsParam
217
243
  * @property {string} pageNo
218
244
  * @property {string} pageSize
219
- * @property {string} [resource]
220
- * @property {string} [type]
245
+ * @property {string} [resources]
246
+ * @property {string} [types]
221
247
  * @property {string} [search]
248
+ * @property {string} [slugs]
249
+ * @property {string} [namespaces]
222
250
  */
223
251
 
224
252
  /** @typedef GetAppCustomFieldTypesParam */
225
253
 
226
254
  /**
227
- * @typedef GetAppCustomFieldsParam
228
- * @property {string} resource
229
- */
230
-
231
- /**
232
- * @typedef GetAppCustomFieldsByResourceIdParam
255
+ * @typedef GetAppCustomFieldsByResourceSlugParam
233
256
  * @property {string} resource
234
- * @property {string} resourceId
257
+ * @property {string} resourceSlug
235
258
  */
236
259
 
237
260
  /**
238
- * @typedef GetAppCustomObjectParam
239
- * @property {string} metaobjectId
261
+ * @typedef GetAppCustomObjectBySlugParam
262
+ * @property {string} definitionSlug
263
+ * @property {string} slug
240
264
  */
241
265
 
242
266
  /**
243
- * @typedef GetAppCustomObjectDefinitionParam
244
- * @property {string} definitionId
267
+ * @typedef GetAppCustomObjectDefinitionBySlugParam
268
+ * @property {string} slug
245
269
  */
246
270
 
247
271
  /**
@@ -252,10 +276,10 @@ const ContentPlatformModel = require("./ContentPlatformModel");
252
276
  */
253
277
 
254
278
  /**
255
- * @typedef GetAppCustomObjectsParam
256
- * @property {string} [definitionId]
279
+ * @typedef GetAppCustomObjectsBySlugParam
257
280
  * @property {string} pageNo
258
281
  * @property {string} pageSize
282
+ * @property {string} definitionSlug
259
283
  */
260
284
 
261
285
  /**
@@ -267,6 +291,15 @@ const ContentPlatformModel = require("./ContentPlatformModel");
267
291
 
268
292
  /** @typedef GetAppResourcesParam */
269
293
 
294
+ /** @typedef GetApplicationLanguagesParam */
295
+
296
+ /**
297
+ * @typedef GetApplicationResourceTranslationsParam
298
+ * @property {string} locale
299
+ * @property {string} type
300
+ * @property {string} resourceId
301
+ */
302
+
270
303
  /**
271
304
  * @typedef GetBlogBySlugParam
272
305
  * @property {string} slug - A short, human-readable, URL-friendly identifier of
@@ -297,8 +330,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
297
330
 
298
331
  /**
299
332
  * @typedef GetDefaultSEOMarkupSchemaParam
300
- * @property {string} [pageType] - The type of page against which schema
301
- * template was created
333
+ * @property {ContentPlatformModel.PageType} [pageType] - The type of page
334
+ * against which schema template was created
302
335
  */
303
336
 
304
337
  /**
@@ -327,6 +360,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
327
360
  /**
328
361
  * @typedef GetInjectableTagsParam
329
362
  * @property {boolean} [all] - Get all tags irrespective of the creator of tags
363
+ * @property {string} [search] - Keyword to filter and find tags by name.
330
364
  */
331
365
 
332
366
  /**
@@ -343,8 +377,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
343
377
  * @typedef GetNavigationBySlugParam
344
378
  * @property {string} slug - A short, human-readable, URL-friendly identifier of
345
379
  * a navigation. You can get slug value of a navigation from `getNavigations` API.
346
- * @property {string} devicePlatform - Filter navigations by platform.
347
- * Acceptable values are: web, android, ios, all
380
+ * @property {string} [devicePlatform] - Filter navigations by platform.
381
+ * Acceptable values are: web, android, ios.
348
382
  */
349
383
 
350
384
  /**
@@ -406,29 +440,26 @@ const ContentPlatformModel = require("./ContentPlatformModel");
406
440
  * Default value is 10.
407
441
  */
408
442
 
443
+ /** @typedef GetSupportInformationParam */
444
+
445
+ /** @typedef GetTagsTemplateParam */
446
+
409
447
  /**
410
- * @typedef GetSlideshowBySlugParam
411
- * @property {string} slug - A short, human-readable, URL-friendly identifier of
412
- * a slideshow. You can get slug value of a page from `getSlideshows` API.
413
- * @property {string} devicePlatform - Filter slideshows by platform. Acceptable
414
- * values are: web, android, ios and all
448
+ * @typedef GetTranslateUILabelsParam
449
+ * @property {string} [templateThemeId] - Unique id of template theme
450
+ * @property {string} [themeId] - Unique id of theme
451
+ * @property {string} [locale] - Multilingual locale
452
+ * @property {string} [type] - Filter Translate Ui Labels by type
415
453
  */
416
454
 
417
455
  /**
418
- * @typedef GetSlideshowsParam
419
- * @property {string} devicePlatform - Filter slideshows by platform. Acceptable
420
- * values are: web, android, ios and all
421
- * @property {number} [pageNo] - The page number to navigate through the given
422
- * set of results. Default value is 1.
423
- * @property {number} [pageSize] - The number of items to retrieve in each page.
424
- * Default value is 10.
456
+ * @typedef GetTranslateUILabelsByIdParam
457
+ * @property {string} id - ID of the Translate Ui Labels
425
458
  */
426
459
 
427
- /** @typedef GetSupportInformationParam */
428
-
429
460
  /**
430
- * @typedef ImportAppCustomObjectEntriesParam
431
- * @property {string} definitionId
461
+ * @typedef ImportAppCustomObjectEntriesBySlugParam
462
+ * @property {string} slug
432
463
  * @property {ContentPlatformModel.CustomObjectBulkSchema} body
433
464
  */
434
465
 
@@ -444,8 +475,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
444
475
  */
445
476
 
446
477
  /**
447
- * @typedef SampleAppCustomObjectBulkEntryParam
448
- * @property {string} definitionId
478
+ * @typedef SampleAppCustomObjectBulkEntryBySlugParam
479
+ * @property {string} slug
449
480
  */
450
481
 
451
482
  /**
@@ -466,27 +497,49 @@ const ContentPlatformModel = require("./ContentPlatformModel");
466
497
  */
467
498
 
468
499
  /**
469
- * @typedef UpdateAppCustomFieldDefinitionParam
470
- * @property {string} definitionId
500
+ * @typedef UpdateAppCustomFieldByResourceSlugParam
501
+ * @property {string} resource
502
+ * @property {string} resourceSlug
503
+ * @property {ContentPlatformModel.CustomFieldRequestSchema} body
504
+ */
505
+
506
+ /**
507
+ * @typedef UpdateAppCustomFieldDefinitionBySlugParam
508
+ * @property {string} slug
509
+ * @property {string} resource
510
+ * @property {string} namespace
471
511
  * @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
472
512
  */
473
513
 
474
514
  /**
475
- * @typedef UpdateAppCustomObjectParam
476
- * @property {string} metaobjectId
477
- * @property {ContentPlatformModel.CustomObjectRequestSchema} body
515
+ * @typedef UpdateAppCustomObjectBySlugParam
516
+ * @property {string} definitionSlug
517
+ * @property {string} slug
518
+ * @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
478
519
  */
479
520
 
480
521
  /**
481
- * @typedef UpdateAppCustomObjectDefinitionParam
482
- * @property {string} definitionId
522
+ * @typedef UpdateAppCustomObjectDefinitionBySlugParam
523
+ * @property {string} slug
483
524
  * @property {ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema} body
484
525
  */
485
526
 
527
+ /**
528
+ * @typedef UpdateApplicationLanguageStatusParam
529
+ * @property {string} locale
530
+ * @property {ContentPlatformModel.ApplicationLanguageUpdate} body
531
+ */
532
+
533
+ /**
534
+ * @typedef UpdateApplicationResourceTranslationParam
535
+ * @property {string} id
536
+ * @property {ContentPlatformModel.ResourceTranslationUpdate} body
537
+ */
538
+
486
539
  /**
487
540
  * @typedef UpdateBlogParam
488
541
  * @property {string} id - ID allotted to the blog.
489
- * @property {ContentPlatformModel.BlogRequest} body
542
+ * @property {ContentPlatformModel.BlogPayload} body
490
543
  */
491
544
 
492
545
  /**
@@ -502,11 +555,6 @@ const ContentPlatformModel = require("./ContentPlatformModel");
502
555
  * @property {ContentPlatformModel.UpdateFaqCategoryRequestSchema} body
503
556
  */
504
557
 
505
- /**
506
- * @typedef UpdateInjectableTagParam
507
- * @property {ContentPlatformModel.CreateTagRequestSchema} body
508
- */
509
-
510
558
  /**
511
559
  * @typedef UpdateLandingPageParam
512
560
  * @property {string} id - ID allotted to a landing page.
@@ -521,7 +569,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
521
569
  /**
522
570
  * @typedef UpdateNavigationParam
523
571
  * @property {string} id - ID allotted to the navigation.
524
- * @property {ContentPlatformModel.NavigationRequest} body
572
+ * @property {ContentPlatformModel.NavigationPayload} body
525
573
  */
526
574
 
527
575
  /**
@@ -534,7 +582,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
534
582
  * @typedef UpdatePagePreviewParam
535
583
  * @property {string} slug - A short, human-readable, URL-friendly identifier of
536
584
  * a page. You can get slug value of a page from `getPages` API.
537
- * @property {ContentPlatformModel.PagePublishRequest} body
585
+ * @property {ContentPlatformModel.PagePublishPayload} body
538
586
  */
539
587
 
540
588
  /**
@@ -549,17 +597,29 @@ const ContentPlatformModel = require("./ContentPlatformModel");
549
597
  */
550
598
 
551
599
  /**
552
- * @typedef UpdateSlideshowParam
553
- * @property {string} id - ID allotted to the slideshow.
554
- * @property {ContentPlatformModel.SlideshowRequest} body
600
+ * @typedef UpdateSupportInformationParam
601
+ * @property {ContentPlatformModel.Support} body
555
602
  */
556
603
 
557
604
  /**
558
- * @typedef UpdateSupportInformationParam
559
- * @property {ContentPlatformModel.Support} body
605
+ * @typedef UpdateTranslateUILabelsParam
606
+ * @property {string} id - The unique identifier of the Translate Ui Labels to update
607
+ * @property {ContentPlatformModel.StaticResourceUpdate} body
608
+ */
609
+
610
+ /**
611
+ * @typedef UpsertApplicationResourceTranslationInBulkParam
612
+ * @property {ContentPlatformModel.ResourceTranslationList} body
560
613
  */
561
614
 
562
615
  class ContentPlatformApplicationValidator {
616
+ /** @returns {AddApplicationLanguageParam} */
617
+ static addApplicationLanguage() {
618
+ return Joi.object({
619
+ body: ContentPlatformModel.ApplicationLanguageCreate().required(),
620
+ }).required();
621
+ }
622
+
563
623
  /** @returns {AddDataLoaderParam} */
564
624
  static addDataLoader() {
565
625
  return Joi.object({
@@ -589,33 +649,33 @@ class ContentPlatformApplicationValidator {
589
649
  }).required();
590
650
  }
591
651
 
592
- /** @returns {CreateAnnouncementParam} */
593
- static createAnnouncement() {
652
+ /** @returns {BulkUnPublishApplicationLanguageParam} */
653
+ static bulkUnPublishApplicationLanguage() {
594
654
  return Joi.object({
595
- body: ContentPlatformModel.AdminAnnouncementSchema().required(),
655
+ body: ContentPlatformModel.unPublishApplicationLanguage().required(),
596
656
  }).required();
597
657
  }
598
658
 
599
- /** @returns {CreateAppCustomFieldByResourceIdParam} */
600
- static createAppCustomFieldByResourceId() {
659
+ /** @returns {CreateAnnouncementParam} */
660
+ static createAnnouncement() {
601
661
  return Joi.object({
602
- resource: Joi.string().allow("").required(),
603
- resourceId: Joi.string().allow("").required(),
604
- body: ContentPlatformModel.CustomFieldRequestSchema().required(),
662
+ body: ContentPlatformModel.AdminAnnouncementSchema().required(),
605
663
  }).required();
606
664
  }
607
665
 
608
666
  /** @returns {CreateAppCustomFieldDefinitionParam} */
609
667
  static createAppCustomFieldDefinition() {
610
668
  return Joi.object({
669
+ resource: Joi.string().allow("").required(),
611
670
  body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
612
671
  }).required();
613
672
  }
614
673
 
615
- /** @returns {CreateAppCustomObjectParam} */
616
- static createAppCustomObject() {
674
+ /** @returns {CreateAppCustomObjectBySlugParam} */
675
+ static createAppCustomObjectBySlug() {
617
676
  return Joi.object({
618
- body: ContentPlatformModel.CustomObjectRequestSchema().required(),
677
+ definitionSlug: Joi.string().allow("").required(),
678
+ body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
619
679
  }).required();
620
680
  }
621
681
 
@@ -626,10 +686,17 @@ class ContentPlatformApplicationValidator {
626
686
  }).required();
627
687
  }
628
688
 
689
+ /** @returns {CreateApplicationResourceTranslationParam} */
690
+ static createApplicationResourceTranslation() {
691
+ return Joi.object({
692
+ body: ContentPlatformModel.ResourceTranslationCreate().required(),
693
+ }).required();
694
+ }
695
+
629
696
  /** @returns {CreateBlogParam} */
630
697
  static createBlog() {
631
698
  return Joi.object({
632
- body: ContentPlatformModel.BlogRequest().required(),
699
+ body: ContentPlatformModel.BlogPayload().required(),
633
700
  }).required();
634
701
  }
635
702
 
@@ -650,21 +717,14 @@ class ContentPlatformApplicationValidator {
650
717
  /** @returns {CreateNavigationParam} */
651
718
  static createNavigation() {
652
719
  return Joi.object({
653
- body: ContentPlatformModel.NavigationRequest().required(),
720
+ body: ContentPlatformModel.NavigationPayload().required(),
654
721
  }).required();
655
722
  }
656
723
 
657
724
  /** @returns {CreatePageParam} */
658
725
  static createPage() {
659
726
  return Joi.object({
660
- body: ContentPlatformModel.PageRequest().required(),
661
- }).required();
662
- }
663
-
664
- /** @returns {CreatePagePreviewParam} */
665
- static createPagePreview() {
666
- return Joi.object({
667
- body: ContentPlatformModel.PageRequest().required(),
727
+ body: ContentPlatformModel.PagePayload().required(),
668
728
  }).required();
669
729
  }
670
730
 
@@ -675,10 +735,10 @@ class ContentPlatformApplicationValidator {
675
735
  }).required();
676
736
  }
677
737
 
678
- /** @returns {CreateSlideshowParam} */
679
- static createSlideshow() {
738
+ /** @returns {CreateTranslateUILabelsParam} */
739
+ static createTranslateUILabels() {
680
740
  return Joi.object({
681
- body: ContentPlatformModel.SlideshowRequest().required(),
741
+ body: ContentPlatformModel.TranslateUiLabelsCreate().required(),
682
742
  }).required();
683
743
  }
684
744
 
@@ -689,24 +749,41 @@ class ContentPlatformApplicationValidator {
689
749
  }).required();
690
750
  }
691
751
 
692
- /** @returns {DeleteAppCustomFieldDefinitionParam} */
693
- static deleteAppCustomFieldDefinition() {
752
+ /** @returns {DeleteAppCustomFieldDefinitionBySlugParam} */
753
+ static deleteAppCustomFieldDefinitionBySlug() {
694
754
  return Joi.object({
695
- definitionId: Joi.string().allow("").required(),
755
+ slug: Joi.string().allow("").required(),
756
+ resource: Joi.string().allow("").required(),
757
+ namespace: Joi.string().allow("").required(),
696
758
  }).required();
697
759
  }
698
760
 
699
- /** @returns {DeleteAppCustomObjectParam} */
700
- static deleteAppCustomObject() {
761
+ /** @returns {DeleteAppCustomObjectBySlugParam} */
762
+ static deleteAppCustomObjectBySlug() {
701
763
  return Joi.object({
702
- metaobjectId: Joi.string().allow("").required(),
764
+ definitionSlug: Joi.string().allow("").required(),
765
+ slug: Joi.string().allow("").required(),
703
766
  }).required();
704
767
  }
705
768
 
706
- /** @returns {DeleteAppCustomObjectDefinitionParam} */
707
- static deleteAppCustomObjectDefinition() {
769
+ /** @returns {DeleteAppCustomObjectDefinitionBySlugParam} */
770
+ static deleteAppCustomObjectDefinitionBySlug() {
708
771
  return Joi.object({
709
- definitionId: Joi.string().allow("").required(),
772
+ slug: Joi.string().allow("").required(),
773
+ }).required();
774
+ }
775
+
776
+ /** @returns {DeleteApplicationLanguageParam} */
777
+ static deleteApplicationLanguage() {
778
+ return Joi.object({
779
+ locale: Joi.string().allow("").required(),
780
+ }).required();
781
+ }
782
+
783
+ /** @returns {DeleteApplicationResourceTranslationParam} */
784
+ static deleteApplicationResourceTranslation() {
785
+ return Joi.object({
786
+ id: Joi.string().allow("").required(),
710
787
  }).required();
711
788
  }
712
789
 
@@ -774,13 +851,6 @@ class ContentPlatformApplicationValidator {
774
851
  }).required();
775
852
  }
776
853
 
777
- /** @returns {DeleteSlideshowParam} */
778
- static deleteSlideshow() {
779
- return Joi.object({
780
- id: Joi.string().allow("").required(),
781
- }).required();
782
- }
783
-
784
854
  /** @returns {EditDataLoaderParam} */
785
855
  static editDataLoader() {
786
856
  return Joi.object({
@@ -805,10 +875,10 @@ class ContentPlatformApplicationValidator {
805
875
  }).required();
806
876
  }
807
877
 
808
- /** @returns {ExportAppCustomObjectEntriesParam} */
809
- static exportAppCustomObjectEntries() {
878
+ /** @returns {ExportAppCustomObjectEntriesBySlugParam} */
879
+ static exportAppCustomObjectEntriesBySlug() {
810
880
  return Joi.object({
811
- definitionId: Joi.string().allow("").required(),
881
+ slug: Joi.string().allow("").required(),
812
882
  }).required();
813
883
  }
814
884
 
@@ -835,10 +905,25 @@ class ContentPlatformApplicationValidator {
835
905
  }).required();
836
906
  }
837
907
 
838
- /** @returns {GetAppCustomFieldDefinitionParam} */
839
- static getAppCustomFieldDefinition() {
908
+ /** @returns {GetAppCustomFieldDefinitionByResourceParam} */
909
+ static getAppCustomFieldDefinitionByResource() {
840
910
  return Joi.object({
841
- definitionId: Joi.string().allow("").required(),
911
+ pageNo: Joi.string().allow("").required(),
912
+ pageSize: Joi.string().allow("").required(),
913
+ resource: Joi.string().allow("").required(),
914
+ types: Joi.string().allow(""),
915
+ search: Joi.string().allow(""),
916
+ slugs: Joi.string().allow(""),
917
+ namespaces: Joi.string().allow(""),
918
+ }).required();
919
+ }
920
+
921
+ /** @returns {GetAppCustomFieldDefinitionBySlugParam} */
922
+ static getAppCustomFieldDefinitionBySlug() {
923
+ return Joi.object({
924
+ slug: Joi.string().allow("").required(),
925
+ resource: Joi.string().allow("").required(),
926
+ namespace: Joi.string().allow("").required(),
842
927
  }).required();
843
928
  }
844
929
 
@@ -847,9 +932,11 @@ class ContentPlatformApplicationValidator {
847
932
  return Joi.object({
848
933
  pageNo: Joi.string().allow("").required(),
849
934
  pageSize: Joi.string().allow("").required(),
850
- resource: Joi.string().allow(""),
851
- type: Joi.string().allow(""),
935
+ resources: Joi.string().allow(""),
936
+ types: Joi.string().allow(""),
852
937
  search: Joi.string().allow(""),
938
+ slugs: Joi.string().allow(""),
939
+ namespaces: Joi.string().allow(""),
853
940
  }).required();
854
941
  }
855
942
 
@@ -858,32 +945,26 @@ class ContentPlatformApplicationValidator {
858
945
  return Joi.object({}).required();
859
946
  }
860
947
 
861
- /** @returns {GetAppCustomFieldsParam} */
862
- static getAppCustomFields() {
948
+ /** @returns {GetAppCustomFieldsByResourceSlugParam} */
949
+ static getAppCustomFieldsByResourceSlug() {
863
950
  return Joi.object({
864
951
  resource: Joi.string().allow("").required(),
952
+ resourceSlug: Joi.string().allow("").required(),
865
953
  }).required();
866
954
  }
867
955
 
868
- /** @returns {GetAppCustomFieldsByResourceIdParam} */
869
- static getAppCustomFieldsByResourceId() {
956
+ /** @returns {GetAppCustomObjectBySlugParam} */
957
+ static getAppCustomObjectBySlug() {
870
958
  return Joi.object({
871
- resource: Joi.string().allow("").required(),
872
- resourceId: Joi.string().allow("").required(),
873
- }).required();
874
- }
875
-
876
- /** @returns {GetAppCustomObjectParam} */
877
- static getAppCustomObject() {
878
- return Joi.object({
879
- metaobjectId: Joi.string().allow("").required(),
959
+ definitionSlug: Joi.string().allow("").required(),
960
+ slug: Joi.string().allow("").required(),
880
961
  }).required();
881
962
  }
882
963
 
883
- /** @returns {GetAppCustomObjectDefinitionParam} */
884
- static getAppCustomObjectDefinition() {
964
+ /** @returns {GetAppCustomObjectDefinitionBySlugParam} */
965
+ static getAppCustomObjectDefinitionBySlug() {
885
966
  return Joi.object({
886
- definitionId: Joi.string().allow("").required(),
967
+ slug: Joi.string().allow("").required(),
887
968
  }).required();
888
969
  }
889
970
 
@@ -896,12 +977,12 @@ class ContentPlatformApplicationValidator {
896
977
  }).required();
897
978
  }
898
979
 
899
- /** @returns {GetAppCustomObjectsParam} */
900
- static getAppCustomObjects() {
980
+ /** @returns {GetAppCustomObjectsBySlugParam} */
981
+ static getAppCustomObjectsBySlug() {
901
982
  return Joi.object({
902
- definitionId: Joi.string().allow(""),
903
983
  pageNo: Joi.string().allow("").required(),
904
984
  pageSize: Joi.string().allow("").required(),
985
+ definitionSlug: Joi.string().allow("").required(),
905
986
  }).required();
906
987
  }
907
988
 
@@ -919,6 +1000,20 @@ class ContentPlatformApplicationValidator {
919
1000
  return Joi.object({}).required();
920
1001
  }
921
1002
 
1003
+ /** @returns {GetApplicationLanguagesParam} */
1004
+ static getApplicationLanguages() {
1005
+ return Joi.object({}).required();
1006
+ }
1007
+
1008
+ /** @returns {GetApplicationResourceTranslationsParam} */
1009
+ static getApplicationResourceTranslations() {
1010
+ return Joi.object({
1011
+ locale: Joi.string().allow("").required(),
1012
+ type: Joi.string().allow("").required(),
1013
+ resourceId: Joi.string().allow("").required(),
1014
+ }).required();
1015
+ }
1016
+
922
1017
  /** @returns {GetBlogBySlugParam} */
923
1018
  static getBlogBySlug() {
924
1019
  return Joi.object({
@@ -959,7 +1054,7 @@ class ContentPlatformApplicationValidator {
959
1054
  /** @returns {GetDefaultSEOMarkupSchemaParam} */
960
1055
  static getDefaultSEOMarkupSchema() {
961
1056
  return Joi.object({
962
- pageType: Joi.string().allow(""),
1057
+ pageType: ContentPlatformModel.PageType(),
963
1058
  }).required();
964
1059
  }
965
1060
 
@@ -993,6 +1088,7 @@ class ContentPlatformApplicationValidator {
993
1088
  static getInjectableTags() {
994
1089
  return Joi.object({
995
1090
  all: Joi.boolean(),
1091
+ search: Joi.string().allow(""),
996
1092
  }).required();
997
1093
  }
998
1094
 
@@ -1013,7 +1109,7 @@ class ContentPlatformApplicationValidator {
1013
1109
  static getNavigationBySlug() {
1014
1110
  return Joi.object({
1015
1111
  slug: Joi.string().allow("").required(),
1016
- devicePlatform: Joi.string().allow("").required(),
1112
+ devicePlatform: Joi.string().allow(""),
1017
1113
  }).required();
1018
1114
  }
1019
1115
 
@@ -1088,32 +1184,37 @@ class ContentPlatformApplicationValidator {
1088
1184
  }).required();
1089
1185
  }
1090
1186
 
1091
- /** @returns {GetSlideshowBySlugParam} */
1092
- static getSlideshowBySlug() {
1093
- return Joi.object({
1094
- slug: Joi.string().allow("").required(),
1095
- devicePlatform: Joi.string().allow("").required(),
1096
- }).required();
1187
+ /** @returns {GetSupportInformationParam} */
1188
+ static getSupportInformation() {
1189
+ return Joi.object({}).required();
1190
+ }
1191
+
1192
+ /** @returns {GetTagsTemplateParam} */
1193
+ static getTagsTemplate() {
1194
+ return Joi.object({}).required();
1097
1195
  }
1098
1196
 
1099
- /** @returns {GetSlideshowsParam} */
1100
- static getSlideshows() {
1197
+ /** @returns {GetTranslateUILabelsParam} */
1198
+ static getTranslateUILabels() {
1101
1199
  return Joi.object({
1102
- devicePlatform: Joi.string().allow("").required(),
1103
- pageNo: Joi.number(),
1104
- pageSize: Joi.number(),
1200
+ templateThemeId: Joi.string().allow(""),
1201
+ themeId: Joi.string().allow(""),
1202
+ locale: Joi.string().allow(""),
1203
+ type: Joi.string().allow(""),
1105
1204
  }).required();
1106
1205
  }
1107
1206
 
1108
- /** @returns {GetSupportInformationParam} */
1109
- static getSupportInformation() {
1110
- return Joi.object({}).required();
1207
+ /** @returns {GetTranslateUILabelsByIdParam} */
1208
+ static getTranslateUILabelsById() {
1209
+ return Joi.object({
1210
+ id: Joi.string().allow("").required(),
1211
+ }).required();
1111
1212
  }
1112
1213
 
1113
- /** @returns {ImportAppCustomObjectEntriesParam} */
1114
- static importAppCustomObjectEntries() {
1214
+ /** @returns {ImportAppCustomObjectEntriesBySlugParam} */
1215
+ static importAppCustomObjectEntriesBySlug() {
1115
1216
  return Joi.object({
1116
- definitionId: Joi.string().allow("").required(),
1217
+ slug: Joi.string().allow("").required(),
1117
1218
  body: ContentPlatformModel.CustomObjectBulkSchema().required(),
1118
1219
  }).required();
1119
1220
  }
@@ -1133,10 +1234,10 @@ class ContentPlatformApplicationValidator {
1133
1234
  }).required();
1134
1235
  }
1135
1236
 
1136
- /** @returns {SampleAppCustomObjectBulkEntryParam} */
1137
- static sampleAppCustomObjectBulkEntry() {
1237
+ /** @returns {SampleAppCustomObjectBulkEntryBySlugParam} */
1238
+ static sampleAppCustomObjectBulkEntryBySlug() {
1138
1239
  return Joi.object({
1139
- definitionId: Joi.string().allow("").required(),
1240
+ slug: Joi.string().allow("").required(),
1140
1241
  }).required();
1141
1242
  }
1142
1243
 
@@ -1163,35 +1264,63 @@ class ContentPlatformApplicationValidator {
1163
1264
  }).required();
1164
1265
  }
1165
1266
 
1166
- /** @returns {UpdateAppCustomFieldDefinitionParam} */
1167
- static updateAppCustomFieldDefinition() {
1267
+ /** @returns {UpdateAppCustomFieldByResourceSlugParam} */
1268
+ static updateAppCustomFieldByResourceSlug() {
1168
1269
  return Joi.object({
1169
- definitionId: Joi.string().allow("").required(),
1270
+ resource: Joi.string().allow("").required(),
1271
+ resourceSlug: Joi.string().allow("").required(),
1272
+ body: ContentPlatformModel.CustomFieldRequestSchema().required(),
1273
+ }).required();
1274
+ }
1275
+
1276
+ /** @returns {UpdateAppCustomFieldDefinitionBySlugParam} */
1277
+ static updateAppCustomFieldDefinitionBySlug() {
1278
+ return Joi.object({
1279
+ slug: Joi.string().allow("").required(),
1280
+ resource: Joi.string().allow("").required(),
1281
+ namespace: Joi.string().allow("").required(),
1170
1282
  body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
1171
1283
  }).required();
1172
1284
  }
1173
1285
 
1174
- /** @returns {UpdateAppCustomObjectParam} */
1175
- static updateAppCustomObject() {
1286
+ /** @returns {UpdateAppCustomObjectBySlugParam} */
1287
+ static updateAppCustomObjectBySlug() {
1176
1288
  return Joi.object({
1177
- metaobjectId: Joi.string().allow("").required(),
1178
- body: ContentPlatformModel.CustomObjectRequestSchema().required(),
1289
+ definitionSlug: Joi.string().allow("").required(),
1290
+ slug: Joi.string().allow("").required(),
1291
+ body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
1179
1292
  }).required();
1180
1293
  }
1181
1294
 
1182
- /** @returns {UpdateAppCustomObjectDefinitionParam} */
1183
- static updateAppCustomObjectDefinition() {
1295
+ /** @returns {UpdateAppCustomObjectDefinitionBySlugParam} */
1296
+ static updateAppCustomObjectDefinitionBySlug() {
1184
1297
  return Joi.object({
1185
- definitionId: Joi.string().allow("").required(),
1298
+ slug: Joi.string().allow("").required(),
1186
1299
  body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema().required(),
1187
1300
  }).required();
1188
1301
  }
1189
1302
 
1303
+ /** @returns {UpdateApplicationLanguageStatusParam} */
1304
+ static updateApplicationLanguageStatus() {
1305
+ return Joi.object({
1306
+ locale: Joi.string().allow("").required(),
1307
+ body: ContentPlatformModel.ApplicationLanguageUpdate().required(),
1308
+ }).required();
1309
+ }
1310
+
1311
+ /** @returns {UpdateApplicationResourceTranslationParam} */
1312
+ static updateApplicationResourceTranslation() {
1313
+ return Joi.object({
1314
+ id: Joi.string().allow("").required(),
1315
+ body: ContentPlatformModel.ResourceTranslationUpdate().required(),
1316
+ }).required();
1317
+ }
1318
+
1190
1319
  /** @returns {UpdateBlogParam} */
1191
1320
  static updateBlog() {
1192
1321
  return Joi.object({
1193
1322
  id: Joi.string().allow("").required(),
1194
- body: ContentPlatformModel.BlogRequest().required(),
1323
+ body: ContentPlatformModel.BlogPayload().required(),
1195
1324
  }).required();
1196
1325
  }
1197
1326
 
@@ -1212,13 +1341,6 @@ class ContentPlatformApplicationValidator {
1212
1341
  }).required();
1213
1342
  }
1214
1343
 
1215
- /** @returns {UpdateInjectableTagParam} */
1216
- static updateInjectableTag() {
1217
- return Joi.object({
1218
- body: ContentPlatformModel.CreateTagRequestSchema().required(),
1219
- }).required();
1220
- }
1221
-
1222
1344
  /** @returns {UpdateLandingPageParam} */
1223
1345
  static updateLandingPage() {
1224
1346
  return Joi.object({
@@ -1238,7 +1360,7 @@ class ContentPlatformApplicationValidator {
1238
1360
  static updateNavigation() {
1239
1361
  return Joi.object({
1240
1362
  id: Joi.string().allow("").required(),
1241
- body: ContentPlatformModel.NavigationRequest().required(),
1363
+ body: ContentPlatformModel.NavigationPayload().required(),
1242
1364
  }).required();
1243
1365
  }
1244
1366
 
@@ -1254,7 +1376,7 @@ class ContentPlatformApplicationValidator {
1254
1376
  static updatePagePreview() {
1255
1377
  return Joi.object({
1256
1378
  slug: Joi.string().allow("").required(),
1257
- body: ContentPlatformModel.PagePublishRequest().required(),
1379
+ body: ContentPlatformModel.PagePublishPayload().required(),
1258
1380
  }).required();
1259
1381
  }
1260
1382
 
@@ -1273,18 +1395,26 @@ class ContentPlatformApplicationValidator {
1273
1395
  }).required();
1274
1396
  }
1275
1397
 
1276
- /** @returns {UpdateSlideshowParam} */
1277
- static updateSlideshow() {
1398
+ /** @returns {UpdateSupportInformationParam} */
1399
+ static updateSupportInformation() {
1400
+ return Joi.object({
1401
+ body: ContentPlatformModel.Support().required(),
1402
+ }).required();
1403
+ }
1404
+
1405
+ /** @returns {UpdateTranslateUILabelsParam} */
1406
+ static updateTranslateUILabels() {
1278
1407
  return Joi.object({
1279
1408
  id: Joi.string().allow("").required(),
1280
- body: ContentPlatformModel.SlideshowRequest().required(),
1409
+
1410
+ body: ContentPlatformModel.StaticResourceUpdate().required(),
1281
1411
  }).required();
1282
1412
  }
1283
1413
 
1284
- /** @returns {UpdateSupportInformationParam} */
1285
- static updateSupportInformation() {
1414
+ /** @returns {UpsertApplicationResourceTranslationInBulkParam} */
1415
+ static upsertApplicationResourceTranslationInBulk() {
1286
1416
  return Joi.object({
1287
- body: ContentPlatformModel.Support().required(),
1417
+ body: ContentPlatformModel.ResourceTranslationList().required(),
1288
1418
  }).required();
1289
1419
  }
1290
1420
  }