@gofynd/fdk-client-javascript 1.4.16-beta.3 → 1.4.16-beta.4

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 (242) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +48 -68
  6. package/sdk/application/Cart/CartApplicationClient.js +27 -117
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +29 -30
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  10. package/sdk/application/Common/CommonApplicationClient.js +1 -1
  11. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
  12. package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
  13. package/sdk/application/Content/ContentApplicationClient.d.ts +30 -51
  14. package/sdk/application/Content/ContentApplicationClient.js +56 -161
  15. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -9
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -7
  17. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
  18. package/sdk/application/Lead/LeadApplicationClient.js +1 -1
  19. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
  20. package/sdk/application/Logistic/LogisticApplicationClient.js +8 -101
  21. package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
  22. package/sdk/application/Order/OrderApplicationClient.js +8 -56
  23. package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
  24. package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
  25. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  26. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  27. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  28. package/sdk/application/Theme/ThemeApplicationClient.js +2 -4
  29. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  30. package/sdk/application/User/UserApplicationClient.js +6 -6
  31. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  32. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  33. package/sdk/common/Utility.js +6 -3
  34. package/sdk/common/utils.d.ts +0 -1
  35. package/sdk/common/utils.js +0 -14
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
  37. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
  38. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
  39. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
  40. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
  41. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
  42. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  43. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  44. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  45. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  46. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
  47. package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
  48. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +167 -1200
  49. package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
  50. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
  51. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
  52. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
  53. package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
  54. package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
  55. package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
  56. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  57. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
  58. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
  59. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
  60. package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
  61. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
  62. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
  63. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
  64. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
  65. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
  66. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
  67. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  68. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  69. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
  70. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
  71. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  72. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  73. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  74. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  75. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  76. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  77. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  78. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  79. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
  80. package/sdk/platform/Cart/CartPlatformApplicationClient.js +115 -419
  81. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -121
  82. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
  83. package/sdk/platform/Cart/CartPlatformModel.d.ts +1294 -5068
  84. package/sdk/platform/Cart/CartPlatformModel.js +1217 -1992
  85. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
  86. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
  87. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
  88. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
  89. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
  90. package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
  91. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6389
  92. package/sdk/platform/Catalog/CatalogPlatformModel.js +1681 -3222
  93. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
  94. package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
  95. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
  96. package/sdk/platform/Common/CommonPlatformClient.js +2 -3
  97. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  98. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  99. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
  100. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
  101. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  102. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  103. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
  104. package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
  105. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
  106. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
  107. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  108. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
  109. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  110. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  111. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
  112. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
  113. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  114. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  115. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
  116. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
  117. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +131 -283
  118. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -219
  119. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
  120. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
  121. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -204
  122. package/sdk/platform/Content/ContentPlatformApplicationClient.js +475 -1073
  123. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -253
  124. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -256
  125. package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
  126. package/sdk/platform/Content/ContentPlatformClient.js +336 -523
  127. package/sdk/platform/Content/ContentPlatformModel.d.ts +403 -1375
  128. package/sdk/platform/Content/ContentPlatformModel.js +394 -631
  129. package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
  130. package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
  131. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
  132. package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
  133. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  134. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  135. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  137. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
  141. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
  142. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
  144. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
  145. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  146. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  147. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  148. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  149. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
  150. package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
  151. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  152. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  153. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  154. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  155. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  156. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  157. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -17
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
  159. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
  161. package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
  162. package/sdk/platform/Order/OrderPlatformClient.js +198 -416
  163. package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
  164. package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
  165. package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
  166. package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
  167. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  168. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  169. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  170. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  171. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +105 -93
  172. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
  173. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  174. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  175. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  176. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  177. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +319 -333
  178. package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
  179. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  180. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  181. package/sdk/platform/PlatformClient.d.ts +2 -0
  182. package/sdk/platform/PlatformClient.js +4 -0
  183. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  184. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  185. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  186. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  187. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  188. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +36 -46
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +49 -45
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +30 -28
  199. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
  200. package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
  201. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -3
  202. package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
  203. package/sdk/platform/Share/SharePlatformModel.d.ts +7 -46
  204. package/sdk/platform/Share/SharePlatformModel.js +6 -31
  205. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  206. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
  207. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
  208. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
  209. package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
  210. package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
  211. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  212. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  213. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  214. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  215. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  216. package/sdk/platform/User/UserPlatformModel.js +23 -23
  217. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  218. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  219. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
  220. package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
  221. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  222. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  223. package/sdk/platform/index.d.ts +1 -0
  224. package/sdk/platform/index.js +2 -0
  225. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
  226. package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
  227. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  228. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  229. package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
  230. package/sdk/public/Content/ContentPublicClient.js +6 -810
  231. package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
  232. package/sdk/public/Content/ContentPublicModel.js +3 -649
  233. package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
  234. package/sdk/public/Content/ContentPublicValidator.js +2 -88
  235. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  236. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  237. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  238. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  239. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  240. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  241. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  242. package/sdk/application/Finance/FinanceApplicationClient.js +0 -111
@@ -29,15 +29,20 @@ const ContentPlatformModel = require("./ContentPlatformModel");
29
29
  */
30
30
 
31
31
  /**
32
- * @typedef CreateAppCustomFieldDefinitionParam
32
+ * @typedef CreateAppCustomFieldByResourceIdParam
33
33
  * @property {string} resource
34
+ * @property {string} resourceId
35
+ * @property {ContentPlatformModel.CustomFieldRequestSchema} body
36
+ */
37
+
38
+ /**
39
+ * @typedef CreateAppCustomFieldDefinitionParam
34
40
  * @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
35
41
  */
36
42
 
37
43
  /**
38
- * @typedef CreateAppCustomObjectBySlugParam
39
- * @property {string} definitionSlug
40
- * @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
44
+ * @typedef CreateAppCustomObjectParam
45
+ * @property {ContentPlatformModel.CustomObjectRequestSchema} body
41
46
  */
42
47
 
43
48
  /**
@@ -47,7 +52,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
47
52
 
48
53
  /**
49
54
  * @typedef CreateBlogParam
50
- * @property {ContentPlatformModel.BlogPayload} body
55
+ * @property {ContentPlatformModel.BlogRequest} body
51
56
  */
52
57
 
53
58
  /**
@@ -62,17 +67,17 @@ const ContentPlatformModel = require("./ContentPlatformModel");
62
67
 
63
68
  /**
64
69
  * @typedef CreateNavigationParam
65
- * @property {ContentPlatformModel.NavigationPayload} body
70
+ * @property {ContentPlatformModel.NavigationRequest} body
66
71
  */
67
72
 
68
73
  /**
69
74
  * @typedef CreatePageParam
70
- * @property {ContentPlatformModel.PagePayload} body
75
+ * @property {ContentPlatformModel.PageRequest} body
71
76
  */
72
77
 
73
78
  /**
74
79
  * @typedef CreatePagePreviewParam
75
- * @property {ContentPlatformModel.PagePayload} body
80
+ * @property {ContentPlatformModel.PageRequest} body
76
81
  */
77
82
 
78
83
  /**
@@ -80,14 +85,9 @@ const ContentPlatformModel = require("./ContentPlatformModel");
80
85
  * @property {ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody} body
81
86
  */
82
87
 
83
- /**
84
- * @typedef CreateSitemapParam
85
- * @property {ContentPlatformModel.SitemapConfigCreate} body
86
- */
87
-
88
88
  /**
89
89
  * @typedef CreateSlideshowParam
90
- * @property {ContentPlatformModel.SlideshowPayload} body
90
+ * @property {ContentPlatformModel.SlideshowRequest} body
91
91
  */
92
92
 
93
93
  /**
@@ -96,21 +96,18 @@ const ContentPlatformModel = require("./ContentPlatformModel");
96
96
  */
97
97
 
98
98
  /**
99
- * @typedef DeleteAppCustomFieldDefinitionBySlugParam
100
- * @property {string} slug
101
- * @property {string} resource
102
- * @property {string} namespace
99
+ * @typedef DeleteAppCustomFieldDefinitionParam
100
+ * @property {string} definitionId
103
101
  */
104
102
 
105
103
  /**
106
- * @typedef DeleteAppCustomObjectBySlugParam
107
- * @property {string} definitionSlug
108
- * @property {string} slug
104
+ * @typedef DeleteAppCustomObjectParam
105
+ * @property {string} metaobjectId
109
106
  */
110
107
 
111
108
  /**
112
- * @typedef DeleteAppCustomObjectDefinitionBySlugParam
113
- * @property {string} slug
109
+ * @typedef DeleteAppCustomObjectDefinitionParam
110
+ * @property {string} definitionId
114
111
  */
115
112
 
116
113
  /**
@@ -160,11 +157,6 @@ const ContentPlatformModel = require("./ContentPlatformModel");
160
157
  * Template created within a business.
161
158
  */
162
159
 
163
- /**
164
- * @typedef DeleteSitemapParam
165
- * @property {string} name
166
- */
167
-
168
160
  /**
169
161
  * @typedef DeleteSlideshowParam
170
162
  * @property {string} id - ID allotted to the slideshow.
@@ -190,8 +182,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
190
182
  */
191
183
 
192
184
  /**
193
- * @typedef ExportAppCustomObjectEntriesBySlugParam
194
- * @property {string} slug
185
+ * @typedef ExportAppCustomObjectEntriesParam
186
+ * @property {string} definitionId
195
187
  */
196
188
 
197
189
  /**
@@ -216,51 +208,40 @@ const ContentPlatformModel = require("./ContentPlatformModel");
216
208
  */
217
209
 
218
210
  /**
219
- * @typedef GetAppCustomFieldDefinitionByResourceParam
220
- * @property {string} pageNo
221
- * @property {string} pageSize
222
- * @property {string} resource
223
- * @property {string} [types]
224
- * @property {string} [search]
225
- * @property {string} [slugs]
226
- * @property {string} [namespaces]
227
- */
228
-
229
- /**
230
- * @typedef GetAppCustomFieldDefinitionBySlugParam
231
- * @property {string} slug
232
- * @property {string} resource
233
- * @property {string} namespace
211
+ * @typedef GetAppCustomFieldDefinitionParam
212
+ * @property {string} definitionId
234
213
  */
235
214
 
236
215
  /**
237
216
  * @typedef GetAppCustomFieldDefinitionsParam
238
217
  * @property {string} pageNo
239
218
  * @property {string} pageSize
240
- * @property {string} [resources]
241
- * @property {string} [types]
219
+ * @property {string} [resource]
220
+ * @property {string} [type]
242
221
  * @property {string} [search]
243
- * @property {string} [slugs]
244
- * @property {string} [namespaces]
245
222
  */
246
223
 
247
224
  /** @typedef GetAppCustomFieldTypesParam */
248
225
 
249
226
  /**
250
- * @typedef GetAppCustomFieldsByResourceSlugParam
227
+ * @typedef GetAppCustomFieldsParam
251
228
  * @property {string} resource
252
- * @property {string} resourceSlug
253
229
  */
254
230
 
255
231
  /**
256
- * @typedef GetAppCustomObjectBySlugParam
257
- * @property {string} definitionSlug
258
- * @property {string} slug
232
+ * @typedef GetAppCustomFieldsByResourceIdParam
233
+ * @property {string} resource
234
+ * @property {string} resourceId
259
235
  */
260
236
 
261
237
  /**
262
- * @typedef GetAppCustomObjectDefinitionBySlugParam
263
- * @property {string} slug
238
+ * @typedef GetAppCustomObjectParam
239
+ * @property {string} metaobjectId
240
+ */
241
+
242
+ /**
243
+ * @typedef GetAppCustomObjectDefinitionParam
244
+ * @property {string} definitionId
264
245
  */
265
246
 
266
247
  /**
@@ -271,10 +252,10 @@ const ContentPlatformModel = require("./ContentPlatformModel");
271
252
  */
272
253
 
273
254
  /**
274
- * @typedef GetAppCustomObjectsBySlugParam
255
+ * @typedef GetAppCustomObjectsParam
256
+ * @property {string} [definitionId]
275
257
  * @property {string} pageNo
276
258
  * @property {string} pageSize
277
- * @property {string} definitionSlug
278
259
  */
279
260
 
280
261
  /**
@@ -320,8 +301,6 @@ const ContentPlatformModel = require("./ContentPlatformModel");
320
301
  * template was created
321
302
  */
322
303
 
323
- /** @typedef GetDefaultSitemapConfigParam */
324
-
325
304
  /**
326
305
  * @typedef GetFaqByIdOrSlugParam
327
306
  * @property {string} idOrSlug - ID or the slug allotted to an FAQ category.
@@ -364,8 +343,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
364
343
  * @typedef GetNavigationBySlugParam
365
344
  * @property {string} slug - A short, human-readable, URL-friendly identifier of
366
345
  * a navigation. You can get slug value of a navigation from `getNavigations` API.
367
- * @property {string} [devicePlatform] - Filter navigations by platform.
368
- * Acceptable values are: web, android, ios.
346
+ * @property {string} devicePlatform - Filter navigations by platform.
347
+ * Acceptable values are: web, android, ios, all
369
348
  */
370
349
 
371
350
  /**
@@ -427,20 +406,6 @@ const ContentPlatformModel = require("./ContentPlatformModel");
427
406
  * Default value is 10.
428
407
  */
429
408
 
430
- /**
431
- * @typedef GetSitemapParam
432
- * @property {string} name
433
- */
434
-
435
- /**
436
- * @typedef GetSitemapsParam
437
- * @property {string} pageNo
438
- * @property {string} pageSize
439
- * @property {boolean} [isActive] - Boolean flag for checking if sitemap is
440
- * active or not in storefront
441
- * @property {string} [name] - Query parameter to search sitemaps with name
442
- */
443
-
444
409
  /**
445
410
  * @typedef GetSlideshowBySlugParam
446
411
  * @property {string} slug - A short, human-readable, URL-friendly identifier of
@@ -462,8 +427,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
462
427
  /** @typedef GetSupportInformationParam */
463
428
 
464
429
  /**
465
- * @typedef ImportAppCustomObjectEntriesBySlugParam
466
- * @property {string} slug
430
+ * @typedef ImportAppCustomObjectEntriesParam
431
+ * @property {string} definitionId
467
432
  * @property {ContentPlatformModel.CustomObjectBulkSchema} body
468
433
  */
469
434
 
@@ -479,8 +444,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
479
444
  */
480
445
 
481
446
  /**
482
- * @typedef SampleAppCustomObjectBulkEntryBySlugParam
483
- * @property {string} slug
447
+ * @typedef SampleAppCustomObjectBulkEntryParam
448
+ * @property {string} definitionId
484
449
  */
485
450
 
486
451
  /**
@@ -501,42 +466,27 @@ const ContentPlatformModel = require("./ContentPlatformModel");
501
466
  */
502
467
 
503
468
  /**
504
- * @typedef UpdateAppCustomFieldByResourceSlugParam
505
- * @property {string} resource
506
- * @property {string} resourceSlug
507
- * @property {ContentPlatformModel.CustomFieldRequestSchema} body
508
- */
509
-
510
- /**
511
- * @typedef UpdateAppCustomFieldDefinitionBySlugParam
512
- * @property {string} slug
513
- * @property {string} resource
514
- * @property {string} namespace
469
+ * @typedef UpdateAppCustomFieldDefinitionParam
470
+ * @property {string} definitionId
515
471
  * @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
516
472
  */
517
473
 
518
474
  /**
519
- * @typedef UpdateAppCustomObjectBySlugParam
520
- * @property {string} definitionSlug
521
- * @property {string} slug
522
- * @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
475
+ * @typedef UpdateAppCustomObjectParam
476
+ * @property {string} metaobjectId
477
+ * @property {ContentPlatformModel.CustomObjectRequestSchema} body
523
478
  */
524
479
 
525
480
  /**
526
- * @typedef UpdateAppCustomObjectDefinitionBySlugParam
527
- * @property {string} slug
481
+ * @typedef UpdateAppCustomObjectDefinitionParam
482
+ * @property {string} definitionId
528
483
  * @property {ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema} body
529
484
  */
530
485
 
531
486
  /**
532
487
  * @typedef UpdateBlogParam
533
488
  * @property {string} id - ID allotted to the blog.
534
- * @property {ContentPlatformModel.BlogPayload} body
535
- */
536
-
537
- /**
538
- * @typedef UpdateDefaultSitemapConfigParam
539
- * @property {ContentPlatformModel.DefaultSitemapConfig} body
489
+ * @property {ContentPlatformModel.BlogRequest} body
540
490
  */
541
491
 
542
492
  /**
@@ -571,7 +521,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
571
521
  /**
572
522
  * @typedef UpdateNavigationParam
573
523
  * @property {string} id - ID allotted to the navigation.
574
- * @property {ContentPlatformModel.NavigationPayload} body
524
+ * @property {ContentPlatformModel.NavigationRequest} body
575
525
  */
576
526
 
577
527
  /**
@@ -584,7 +534,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
584
534
  * @typedef UpdatePagePreviewParam
585
535
  * @property {string} slug - A short, human-readable, URL-friendly identifier of
586
536
  * a page. You can get slug value of a page from `getPages` API.
587
- * @property {ContentPlatformModel.PagePublishPayload} body
537
+ * @property {ContentPlatformModel.PagePublishRequest} body
588
538
  */
589
539
 
590
540
  /**
@@ -598,16 +548,10 @@ const ContentPlatformModel = require("./ContentPlatformModel");
598
548
  * @property {ContentPlatformModel.SeoComponent} body
599
549
  */
600
550
 
601
- /**
602
- * @typedef UpdateSitemapParam
603
- * @property {string} name
604
- * @property {ContentPlatformModel.SitemapConfigUpdate} body
605
- */
606
-
607
551
  /**
608
552
  * @typedef UpdateSlideshowParam
609
553
  * @property {string} id - ID allotted to the slideshow.
610
- * @property {ContentPlatformModel.SlideshowPayload} body
554
+ * @property {ContentPlatformModel.SlideshowRequest} body
611
555
  */
612
556
 
613
557
  /**
@@ -652,19 +596,26 @@ class ContentPlatformApplicationValidator {
652
596
  }).required();
653
597
  }
654
598
 
599
+ /** @returns {CreateAppCustomFieldByResourceIdParam} */
600
+ static createAppCustomFieldByResourceId() {
601
+ return Joi.object({
602
+ resource: Joi.string().allow("").required(),
603
+ resourceId: Joi.string().allow("").required(),
604
+ body: ContentPlatformModel.CustomFieldRequestSchema().required(),
605
+ }).required();
606
+ }
607
+
655
608
  /** @returns {CreateAppCustomFieldDefinitionParam} */
656
609
  static createAppCustomFieldDefinition() {
657
610
  return Joi.object({
658
- resource: Joi.string().allow("").required(),
659
611
  body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
660
612
  }).required();
661
613
  }
662
614
 
663
- /** @returns {CreateAppCustomObjectBySlugParam} */
664
- static createAppCustomObjectBySlug() {
615
+ /** @returns {CreateAppCustomObjectParam} */
616
+ static createAppCustomObject() {
665
617
  return Joi.object({
666
- definitionSlug: Joi.string().allow("").required(),
667
- body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
618
+ body: ContentPlatformModel.CustomObjectRequestSchema().required(),
668
619
  }).required();
669
620
  }
670
621
 
@@ -678,7 +629,7 @@ class ContentPlatformApplicationValidator {
678
629
  /** @returns {CreateBlogParam} */
679
630
  static createBlog() {
680
631
  return Joi.object({
681
- body: ContentPlatformModel.BlogPayload().required(),
632
+ body: ContentPlatformModel.BlogRequest().required(),
682
633
  }).required();
683
634
  }
684
635
 
@@ -699,21 +650,21 @@ class ContentPlatformApplicationValidator {
699
650
  /** @returns {CreateNavigationParam} */
700
651
  static createNavigation() {
701
652
  return Joi.object({
702
- body: ContentPlatformModel.NavigationPayload().required(),
653
+ body: ContentPlatformModel.NavigationRequest().required(),
703
654
  }).required();
704
655
  }
705
656
 
706
657
  /** @returns {CreatePageParam} */
707
658
  static createPage() {
708
659
  return Joi.object({
709
- body: ContentPlatformModel.PagePayload().required(),
660
+ body: ContentPlatformModel.PageRequest().required(),
710
661
  }).required();
711
662
  }
712
663
 
713
664
  /** @returns {CreatePagePreviewParam} */
714
665
  static createPagePreview() {
715
666
  return Joi.object({
716
- body: ContentPlatformModel.PagePayload().required(),
667
+ body: ContentPlatformModel.PageRequest().required(),
717
668
  }).required();
718
669
  }
719
670
 
@@ -724,17 +675,10 @@ class ContentPlatformApplicationValidator {
724
675
  }).required();
725
676
  }
726
677
 
727
- /** @returns {CreateSitemapParam} */
728
- static createSitemap() {
729
- return Joi.object({
730
- body: ContentPlatformModel.SitemapConfigCreate().required(),
731
- }).required();
732
- }
733
-
734
678
  /** @returns {CreateSlideshowParam} */
735
679
  static createSlideshow() {
736
680
  return Joi.object({
737
- body: ContentPlatformModel.SlideshowPayload().required(),
681
+ body: ContentPlatformModel.SlideshowRequest().required(),
738
682
  }).required();
739
683
  }
740
684
 
@@ -745,27 +689,24 @@ class ContentPlatformApplicationValidator {
745
689
  }).required();
746
690
  }
747
691
 
748
- /** @returns {DeleteAppCustomFieldDefinitionBySlugParam} */
749
- static deleteAppCustomFieldDefinitionBySlug() {
692
+ /** @returns {DeleteAppCustomFieldDefinitionParam} */
693
+ static deleteAppCustomFieldDefinition() {
750
694
  return Joi.object({
751
- slug: Joi.string().allow("").required(),
752
- resource: Joi.string().allow("").required(),
753
- namespace: Joi.string().allow("").required(),
695
+ definitionId: Joi.string().allow("").required(),
754
696
  }).required();
755
697
  }
756
698
 
757
- /** @returns {DeleteAppCustomObjectBySlugParam} */
758
- static deleteAppCustomObjectBySlug() {
699
+ /** @returns {DeleteAppCustomObjectParam} */
700
+ static deleteAppCustomObject() {
759
701
  return Joi.object({
760
- definitionSlug: Joi.string().allow("").required(),
761
- slug: Joi.string().allow("").required(),
702
+ metaobjectId: Joi.string().allow("").required(),
762
703
  }).required();
763
704
  }
764
705
 
765
- /** @returns {DeleteAppCustomObjectDefinitionBySlugParam} */
766
- static deleteAppCustomObjectDefinitionBySlug() {
706
+ /** @returns {DeleteAppCustomObjectDefinitionParam} */
707
+ static deleteAppCustomObjectDefinition() {
767
708
  return Joi.object({
768
- slug: Joi.string().allow("").required(),
709
+ definitionId: Joi.string().allow("").required(),
769
710
  }).required();
770
711
  }
771
712
 
@@ -833,13 +774,6 @@ class ContentPlatformApplicationValidator {
833
774
  }).required();
834
775
  }
835
776
 
836
- /** @returns {DeleteSitemapParam} */
837
- static deleteSitemap() {
838
- return Joi.object({
839
- name: Joi.string().allow("").required(),
840
- }).required();
841
- }
842
-
843
777
  /** @returns {DeleteSlideshowParam} */
844
778
  static deleteSlideshow() {
845
779
  return Joi.object({
@@ -871,10 +805,10 @@ class ContentPlatformApplicationValidator {
871
805
  }).required();
872
806
  }
873
807
 
874
- /** @returns {ExportAppCustomObjectEntriesBySlugParam} */
875
- static exportAppCustomObjectEntriesBySlug() {
808
+ /** @returns {ExportAppCustomObjectEntriesParam} */
809
+ static exportAppCustomObjectEntries() {
876
810
  return Joi.object({
877
- slug: Joi.string().allow("").required(),
811
+ definitionId: Joi.string().allow("").required(),
878
812
  }).required();
879
813
  }
880
814
 
@@ -901,25 +835,10 @@ class ContentPlatformApplicationValidator {
901
835
  }).required();
902
836
  }
903
837
 
904
- /** @returns {GetAppCustomFieldDefinitionByResourceParam} */
905
- static getAppCustomFieldDefinitionByResource() {
906
- return Joi.object({
907
- pageNo: Joi.string().allow("").required(),
908
- pageSize: Joi.string().allow("").required(),
909
- resource: Joi.string().allow("").required(),
910
- types: Joi.string().allow(""),
911
- search: Joi.string().allow(""),
912
- slugs: Joi.string().allow(""),
913
- namespaces: Joi.string().allow(""),
914
- }).required();
915
- }
916
-
917
- /** @returns {GetAppCustomFieldDefinitionBySlugParam} */
918
- static getAppCustomFieldDefinitionBySlug() {
838
+ /** @returns {GetAppCustomFieldDefinitionParam} */
839
+ static getAppCustomFieldDefinition() {
919
840
  return Joi.object({
920
- slug: Joi.string().allow("").required(),
921
- resource: Joi.string().allow("").required(),
922
- namespace: Joi.string().allow("").required(),
841
+ definitionId: Joi.string().allow("").required(),
923
842
  }).required();
924
843
  }
925
844
 
@@ -928,11 +847,9 @@ class ContentPlatformApplicationValidator {
928
847
  return Joi.object({
929
848
  pageNo: Joi.string().allow("").required(),
930
849
  pageSize: Joi.string().allow("").required(),
931
- resources: Joi.string().allow(""),
932
- types: Joi.string().allow(""),
850
+ resource: Joi.string().allow(""),
851
+ type: Joi.string().allow(""),
933
852
  search: Joi.string().allow(""),
934
- slugs: Joi.string().allow(""),
935
- namespaces: Joi.string().allow(""),
936
853
  }).required();
937
854
  }
938
855
 
@@ -941,26 +858,32 @@ class ContentPlatformApplicationValidator {
941
858
  return Joi.object({}).required();
942
859
  }
943
860
 
944
- /** @returns {GetAppCustomFieldsByResourceSlugParam} */
945
- static getAppCustomFieldsByResourceSlug() {
861
+ /** @returns {GetAppCustomFieldsParam} */
862
+ static getAppCustomFields() {
946
863
  return Joi.object({
947
864
  resource: Joi.string().allow("").required(),
948
- resourceSlug: Joi.string().allow("").required(),
949
865
  }).required();
950
866
  }
951
867
 
952
- /** @returns {GetAppCustomObjectBySlugParam} */
953
- static getAppCustomObjectBySlug() {
868
+ /** @returns {GetAppCustomFieldsByResourceIdParam} */
869
+ static getAppCustomFieldsByResourceId() {
954
870
  return Joi.object({
955
- definitionSlug: Joi.string().allow("").required(),
956
- slug: Joi.string().allow("").required(),
871
+ resource: Joi.string().allow("").required(),
872
+ resourceId: Joi.string().allow("").required(),
957
873
  }).required();
958
874
  }
959
875
 
960
- /** @returns {GetAppCustomObjectDefinitionBySlugParam} */
961
- static getAppCustomObjectDefinitionBySlug() {
876
+ /** @returns {GetAppCustomObjectParam} */
877
+ static getAppCustomObject() {
962
878
  return Joi.object({
963
- slug: Joi.string().allow("").required(),
879
+ metaobjectId: Joi.string().allow("").required(),
880
+ }).required();
881
+ }
882
+
883
+ /** @returns {GetAppCustomObjectDefinitionParam} */
884
+ static getAppCustomObjectDefinition() {
885
+ return Joi.object({
886
+ definitionId: Joi.string().allow("").required(),
964
887
  }).required();
965
888
  }
966
889
 
@@ -973,12 +896,12 @@ class ContentPlatformApplicationValidator {
973
896
  }).required();
974
897
  }
975
898
 
976
- /** @returns {GetAppCustomObjectsBySlugParam} */
977
- static getAppCustomObjectsBySlug() {
899
+ /** @returns {GetAppCustomObjectsParam} */
900
+ static getAppCustomObjects() {
978
901
  return Joi.object({
902
+ definitionId: Joi.string().allow(""),
979
903
  pageNo: Joi.string().allow("").required(),
980
904
  pageSize: Joi.string().allow("").required(),
981
- definitionSlug: Joi.string().allow("").required(),
982
905
  }).required();
983
906
  }
984
907
 
@@ -1040,11 +963,6 @@ class ContentPlatformApplicationValidator {
1040
963
  }).required();
1041
964
  }
1042
965
 
1043
- /** @returns {GetDefaultSitemapConfigParam} */
1044
- static getDefaultSitemapConfig() {
1045
- return Joi.object({}).required();
1046
- }
1047
-
1048
966
  /** @returns {GetFaqByIdOrSlugParam} */
1049
967
  static getFaqByIdOrSlug() {
1050
968
  return Joi.object({
@@ -1095,7 +1013,7 @@ class ContentPlatformApplicationValidator {
1095
1013
  static getNavigationBySlug() {
1096
1014
  return Joi.object({
1097
1015
  slug: Joi.string().allow("").required(),
1098
- devicePlatform: Joi.string().allow(""),
1016
+ devicePlatform: Joi.string().allow("").required(),
1099
1017
  }).required();
1100
1018
  }
1101
1019
 
@@ -1170,23 +1088,6 @@ class ContentPlatformApplicationValidator {
1170
1088
  }).required();
1171
1089
  }
1172
1090
 
1173
- /** @returns {GetSitemapParam} */
1174
- static getSitemap() {
1175
- return Joi.object({
1176
- name: Joi.string().allow("").required(),
1177
- }).required();
1178
- }
1179
-
1180
- /** @returns {GetSitemapsParam} */
1181
- static getSitemaps() {
1182
- return Joi.object({
1183
- pageNo: Joi.string().allow("").required(),
1184
- pageSize: Joi.string().allow("").required(),
1185
- isActive: Joi.boolean(),
1186
- name: Joi.string().allow(""),
1187
- }).required();
1188
- }
1189
-
1190
1091
  /** @returns {GetSlideshowBySlugParam} */
1191
1092
  static getSlideshowBySlug() {
1192
1093
  return Joi.object({
@@ -1209,10 +1110,10 @@ class ContentPlatformApplicationValidator {
1209
1110
  return Joi.object({}).required();
1210
1111
  }
1211
1112
 
1212
- /** @returns {ImportAppCustomObjectEntriesBySlugParam} */
1213
- static importAppCustomObjectEntriesBySlug() {
1113
+ /** @returns {ImportAppCustomObjectEntriesParam} */
1114
+ static importAppCustomObjectEntries() {
1214
1115
  return Joi.object({
1215
- slug: Joi.string().allow("").required(),
1116
+ definitionId: Joi.string().allow("").required(),
1216
1117
  body: ContentPlatformModel.CustomObjectBulkSchema().required(),
1217
1118
  }).required();
1218
1119
  }
@@ -1232,10 +1133,10 @@ class ContentPlatformApplicationValidator {
1232
1133
  }).required();
1233
1134
  }
1234
1135
 
1235
- /** @returns {SampleAppCustomObjectBulkEntryBySlugParam} */
1236
- static sampleAppCustomObjectBulkEntryBySlug() {
1136
+ /** @returns {SampleAppCustomObjectBulkEntryParam} */
1137
+ static sampleAppCustomObjectBulkEntry() {
1237
1138
  return Joi.object({
1238
- slug: Joi.string().allow("").required(),
1139
+ definitionId: Joi.string().allow("").required(),
1239
1140
  }).required();
1240
1141
  }
1241
1142
 
@@ -1262,38 +1163,26 @@ class ContentPlatformApplicationValidator {
1262
1163
  }).required();
1263
1164
  }
1264
1165
 
1265
- /** @returns {UpdateAppCustomFieldByResourceSlugParam} */
1266
- static updateAppCustomFieldByResourceSlug() {
1166
+ /** @returns {UpdateAppCustomFieldDefinitionParam} */
1167
+ static updateAppCustomFieldDefinition() {
1267
1168
  return Joi.object({
1268
- resource: Joi.string().allow("").required(),
1269
- resourceSlug: Joi.string().allow("").required(),
1270
- body: ContentPlatformModel.CustomFieldRequestSchema().required(),
1271
- }).required();
1272
- }
1273
-
1274
- /** @returns {UpdateAppCustomFieldDefinitionBySlugParam} */
1275
- static updateAppCustomFieldDefinitionBySlug() {
1276
- return Joi.object({
1277
- slug: Joi.string().allow("").required(),
1278
- resource: Joi.string().allow("").required(),
1279
- namespace: Joi.string().allow("").required(),
1169
+ definitionId: Joi.string().allow("").required(),
1280
1170
  body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
1281
1171
  }).required();
1282
1172
  }
1283
1173
 
1284
- /** @returns {UpdateAppCustomObjectBySlugParam} */
1285
- static updateAppCustomObjectBySlug() {
1174
+ /** @returns {UpdateAppCustomObjectParam} */
1175
+ static updateAppCustomObject() {
1286
1176
  return Joi.object({
1287
- definitionSlug: Joi.string().allow("").required(),
1288
- slug: Joi.string().allow("").required(),
1289
- body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
1177
+ metaobjectId: Joi.string().allow("").required(),
1178
+ body: ContentPlatformModel.CustomObjectRequestSchema().required(),
1290
1179
  }).required();
1291
1180
  }
1292
1181
 
1293
- /** @returns {UpdateAppCustomObjectDefinitionBySlugParam} */
1294
- static updateAppCustomObjectDefinitionBySlug() {
1182
+ /** @returns {UpdateAppCustomObjectDefinitionParam} */
1183
+ static updateAppCustomObjectDefinition() {
1295
1184
  return Joi.object({
1296
- slug: Joi.string().allow("").required(),
1185
+ definitionId: Joi.string().allow("").required(),
1297
1186
  body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema().required(),
1298
1187
  }).required();
1299
1188
  }
@@ -1302,14 +1191,7 @@ class ContentPlatformApplicationValidator {
1302
1191
  static updateBlog() {
1303
1192
  return Joi.object({
1304
1193
  id: Joi.string().allow("").required(),
1305
- body: ContentPlatformModel.BlogPayload().required(),
1306
- }).required();
1307
- }
1308
-
1309
- /** @returns {UpdateDefaultSitemapConfigParam} */
1310
- static updateDefaultSitemapConfig() {
1311
- return Joi.object({
1312
- body: ContentPlatformModel.DefaultSitemapConfig().required(),
1194
+ body: ContentPlatformModel.BlogRequest().required(),
1313
1195
  }).required();
1314
1196
  }
1315
1197
 
@@ -1356,7 +1238,7 @@ class ContentPlatformApplicationValidator {
1356
1238
  static updateNavigation() {
1357
1239
  return Joi.object({
1358
1240
  id: Joi.string().allow("").required(),
1359
- body: ContentPlatformModel.NavigationPayload().required(),
1241
+ body: ContentPlatformModel.NavigationRequest().required(),
1360
1242
  }).required();
1361
1243
  }
1362
1244
 
@@ -1372,7 +1254,7 @@ class ContentPlatformApplicationValidator {
1372
1254
  static updatePagePreview() {
1373
1255
  return Joi.object({
1374
1256
  slug: Joi.string().allow("").required(),
1375
- body: ContentPlatformModel.PagePublishPayload().required(),
1257
+ body: ContentPlatformModel.PagePublishRequest().required(),
1376
1258
  }).required();
1377
1259
  }
1378
1260
 
@@ -1391,19 +1273,11 @@ class ContentPlatformApplicationValidator {
1391
1273
  }).required();
1392
1274
  }
1393
1275
 
1394
- /** @returns {UpdateSitemapParam} */
1395
- static updateSitemap() {
1396
- return Joi.object({
1397
- name: Joi.string().allow("").required(),
1398
- body: ContentPlatformModel.SitemapConfigUpdate().required(),
1399
- }).required();
1400
- }
1401
-
1402
1276
  /** @returns {UpdateSlideshowParam} */
1403
1277
  static updateSlideshow() {
1404
1278
  return Joi.object({
1405
1279
  id: Joi.string().allow("").required(),
1406
- body: ContentPlatformModel.SlideshowPayload().required(),
1280
+ body: ContentPlatformModel.SlideshowRequest().required(),
1407
1281
  }).required();
1408
1282
  }
1409
1283