@gofynd/fdk-client-javascript 1.4.15-beta.6 → 1.4.16-beta.1

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 (237) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +68 -48
  6. package/sdk/application/Cart/CartApplicationClient.js +130 -27
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +59 -58
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +30 -29
  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 +19 -30
  14. package/sdk/application/Content/ContentApplicationClient.js +40 -60
  15. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -7
  17. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  18. package/sdk/application/Finance/FinanceApplicationClient.js +126 -0
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
  20. package/sdk/application/Lead/LeadApplicationClient.js +1 -1
  21. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +35 -15
  22. package/sdk/application/Logistic/LogisticApplicationClient.js +118 -8
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
  24. package/sdk/application/Order/OrderApplicationClient.js +62 -8
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
  26. package/sdk/application/Payment/PaymentApplicationClient.js +65 -46
  27. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  28. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  30. package/sdk/application/Theme/ThemeApplicationClient.js +4 -2
  31. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  32. package/sdk/application/User/UserApplicationClient.js +6 -6
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  35. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  37. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  38. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  39. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  40. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  41. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  42. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  43. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  44. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  45. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  46. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  47. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
  48. package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
  49. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  50. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
  51. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  52. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  53. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  54. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  55. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  56. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  57. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  58. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  59. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  60. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  61. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  62. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  63. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  64. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  65. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  66. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  67. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  68. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  69. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  70. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  71. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  72. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  73. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  74. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  75. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  76. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  77. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  78. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  79. package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
  80. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -65
  81. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
  82. package/sdk/platform/Cart/CartPlatformModel.d.ts +5039 -1300
  83. package/sdk/platform/Cart/CartPlatformModel.js +1976 -1217
  84. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
  85. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
  86. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
  87. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
  88. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
  89. package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
  90. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6941 -2203
  91. package/sdk/platform/Catalog/CatalogPlatformModel.js +3224 -1687
  92. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
  93. package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
  94. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  95. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  96. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  97. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  98. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  99. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  100. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  101. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  102. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  103. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  104. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  105. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  106. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  107. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  108. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  109. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  110. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  111. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  112. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  113. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  114. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  115. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  116. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  117. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  118. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  119. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  120. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  121. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  122. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  123. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  124. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  125. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  126. package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
  127. package/sdk/platform/Content/ContentPlatformModel.js +521 -390
  128. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  129. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  130. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  131. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  132. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  133. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  134. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  136. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  137. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  140. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  141. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  144. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  145. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  146. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  147. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  148. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  149. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  150. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
  151. package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
  152. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
  153. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
  154. package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
  155. package/sdk/platform/Order/OrderPlatformClient.js +416 -198
  156. package/sdk/platform/Order/OrderPlatformModel.d.ts +7602 -1269
  157. package/sdk/platform/Order/OrderPlatformModel.js +3926 -1269
  158. package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
  159. package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
  160. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  161. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  162. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  163. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  164. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  165. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  166. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  167. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  168. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  169. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  170. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
  171. package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
  172. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  173. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  174. package/sdk/platform/PlatformClient.d.ts +0 -2
  175. package/sdk/platform/PlatformClient.js +0 -4
  176. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  177. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  178. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  179. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  180. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  181. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +48 -38
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +134 -43
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +38 -44
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +56 -62
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
  192. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  193. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  194. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  195. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  196. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  197. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  198. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  199. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  200. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  201. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  202. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  203. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  204. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  205. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  206. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  207. package/sdk/platform/User/UserPlatformModel.js +23 -23
  208. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  209. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  210. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  211. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  212. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  213. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  214. package/sdk/platform/index.d.ts +0 -1
  215. package/sdk/platform/index.js +0 -2
  216. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  217. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  218. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  219. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  220. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  221. package/sdk/public/Content/ContentPublicClient.js +895 -8
  222. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  223. package/sdk/public/Content/ContentPublicModel.js +649 -3
  224. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  225. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  226. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  227. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  228. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  229. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  230. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  231. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  232. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  233. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  234. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  235. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  236. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  237. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -28,21 +28,16 @@ const ContentPlatformModel = require("./ContentPlatformModel");
28
28
  * @property {ContentPlatformModel.AdminAnnouncementSchema} body
29
29
  */
30
30
 
31
- /**
32
- * @typedef CreateAppCustomFieldByResourceIdParam
33
- * @property {string} resource
34
- * @property {string} resourceId
35
- * @property {ContentPlatformModel.CustomFieldRequestSchema} body
36
- */
37
-
38
31
  /**
39
32
  * @typedef CreateAppCustomFieldDefinitionParam
33
+ * @property {string} resource
40
34
  * @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
41
35
  */
42
36
 
43
37
  /**
44
- * @typedef CreateAppCustomObjectParam
45
- * @property {ContentPlatformModel.CustomObjectRequestSchema} body
38
+ * @typedef CreateAppCustomObjectBySlugParam
39
+ * @property {string} definitionSlug
40
+ * @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
46
41
  */
47
42
 
48
43
  /**
@@ -52,7 +47,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
52
47
 
53
48
  /**
54
49
  * @typedef CreateBlogParam
55
- * @property {ContentPlatformModel.BlogRequest} body
50
+ * @property {ContentPlatformModel.BlogPayload} body
56
51
  */
57
52
 
58
53
  /**
@@ -67,17 +62,17 @@ const ContentPlatformModel = require("./ContentPlatformModel");
67
62
 
68
63
  /**
69
64
  * @typedef CreateNavigationParam
70
- * @property {ContentPlatformModel.NavigationRequest} body
65
+ * @property {ContentPlatformModel.NavigationPayload} body
71
66
  */
72
67
 
73
68
  /**
74
69
  * @typedef CreatePageParam
75
- * @property {ContentPlatformModel.PageRequest} body
70
+ * @property {ContentPlatformModel.PagePayload} body
76
71
  */
77
72
 
78
73
  /**
79
74
  * @typedef CreatePagePreviewParam
80
- * @property {ContentPlatformModel.PageRequest} body
75
+ * @property {ContentPlatformModel.PagePayload} body
81
76
  */
82
77
 
83
78
  /**
@@ -87,7 +82,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
87
82
 
88
83
  /**
89
84
  * @typedef CreateSlideshowParam
90
- * @property {ContentPlatformModel.SlideshowRequest} body
85
+ * @property {ContentPlatformModel.SlideshowPayload} body
91
86
  */
92
87
 
93
88
  /**
@@ -96,18 +91,21 @@ const ContentPlatformModel = require("./ContentPlatformModel");
96
91
  */
97
92
 
98
93
  /**
99
- * @typedef DeleteAppCustomFieldDefinitionParam
100
- * @property {string} definitionId
94
+ * @typedef DeleteAppCustomFieldDefinitionBySlugParam
95
+ * @property {string} slug
96
+ * @property {string} resource
97
+ * @property {string} namespace
101
98
  */
102
99
 
103
100
  /**
104
- * @typedef DeleteAppCustomObjectParam
105
- * @property {string} metaobjectId
101
+ * @typedef DeleteAppCustomObjectBySlugParam
102
+ * @property {string} definitionSlug
103
+ * @property {string} slug
106
104
  */
107
105
 
108
106
  /**
109
- * @typedef DeleteAppCustomObjectDefinitionParam
110
- * @property {string} definitionId
107
+ * @typedef DeleteAppCustomObjectDefinitionBySlugParam
108
+ * @property {string} slug
111
109
  */
112
110
 
113
111
  /**
@@ -182,8 +180,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
182
180
  */
183
181
 
184
182
  /**
185
- * @typedef ExportAppCustomObjectEntriesParam
186
- * @property {string} definitionId
183
+ * @typedef ExportAppCustomObjectEntriesBySlugParam
184
+ * @property {string} slug
187
185
  */
188
186
 
189
187
  /**
@@ -208,40 +206,51 @@ const ContentPlatformModel = require("./ContentPlatformModel");
208
206
  */
209
207
 
210
208
  /**
211
- * @typedef GetAppCustomFieldDefinitionParam
212
- * @property {string} definitionId
209
+ * @typedef GetAppCustomFieldDefinitionByResourceParam
210
+ * @property {string} pageNo
211
+ * @property {string} pageSize
212
+ * @property {string} resource
213
+ * @property {string} [types]
214
+ * @property {string} [search]
215
+ * @property {string} [slugs]
216
+ * @property {string} [namespaces]
217
+ */
218
+
219
+ /**
220
+ * @typedef GetAppCustomFieldDefinitionBySlugParam
221
+ * @property {string} slug
222
+ * @property {string} resource
223
+ * @property {string} namespace
213
224
  */
214
225
 
215
226
  /**
216
227
  * @typedef GetAppCustomFieldDefinitionsParam
217
228
  * @property {string} pageNo
218
229
  * @property {string} pageSize
219
- * @property {string} [resource]
220
- * @property {string} [type]
230
+ * @property {string} [resources]
231
+ * @property {string} [types]
221
232
  * @property {string} [search]
233
+ * @property {string} [slugs]
234
+ * @property {string} [namespaces]
222
235
  */
223
236
 
224
237
  /** @typedef GetAppCustomFieldTypesParam */
225
238
 
226
239
  /**
227
- * @typedef GetAppCustomFieldsParam
240
+ * @typedef GetAppCustomFieldsByResourceSlugParam
228
241
  * @property {string} resource
242
+ * @property {string} resourceSlug
229
243
  */
230
244
 
231
245
  /**
232
- * @typedef GetAppCustomFieldsByResourceIdParam
233
- * @property {string} resource
234
- * @property {string} resourceId
246
+ * @typedef GetAppCustomObjectBySlugParam
247
+ * @property {string} definitionSlug
248
+ * @property {string} slug
235
249
  */
236
250
 
237
251
  /**
238
- * @typedef GetAppCustomObjectParam
239
- * @property {string} metaobjectId
240
- */
241
-
242
- /**
243
- * @typedef GetAppCustomObjectDefinitionParam
244
- * @property {string} definitionId
252
+ * @typedef GetAppCustomObjectDefinitionBySlugParam
253
+ * @property {string} slug
245
254
  */
246
255
 
247
256
  /**
@@ -252,10 +261,10 @@ const ContentPlatformModel = require("./ContentPlatformModel");
252
261
  */
253
262
 
254
263
  /**
255
- * @typedef GetAppCustomObjectsParam
256
- * @property {string} [definitionId]
264
+ * @typedef GetAppCustomObjectsBySlugParam
257
265
  * @property {string} pageNo
258
266
  * @property {string} pageSize
267
+ * @property {string} definitionSlug
259
268
  */
260
269
 
261
270
  /**
@@ -343,8 +352,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
343
352
  * @typedef GetNavigationBySlugParam
344
353
  * @property {string} slug - A short, human-readable, URL-friendly identifier of
345
354
  * 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
355
+ * @property {string} [devicePlatform] - Filter navigations by platform.
356
+ * Acceptable values are: web, android, ios.
348
357
  */
349
358
 
350
359
  /**
@@ -427,8 +436,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
427
436
  /** @typedef GetSupportInformationParam */
428
437
 
429
438
  /**
430
- * @typedef ImportAppCustomObjectEntriesParam
431
- * @property {string} definitionId
439
+ * @typedef ImportAppCustomObjectEntriesBySlugParam
440
+ * @property {string} slug
432
441
  * @property {ContentPlatformModel.CustomObjectBulkSchema} body
433
442
  */
434
443
 
@@ -444,8 +453,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
444
453
  */
445
454
 
446
455
  /**
447
- * @typedef SampleAppCustomObjectBulkEntryParam
448
- * @property {string} definitionId
456
+ * @typedef SampleAppCustomObjectBulkEntryBySlugParam
457
+ * @property {string} slug
449
458
  */
450
459
 
451
460
  /**
@@ -466,27 +475,37 @@ const ContentPlatformModel = require("./ContentPlatformModel");
466
475
  */
467
476
 
468
477
  /**
469
- * @typedef UpdateAppCustomFieldDefinitionParam
470
- * @property {string} definitionId
478
+ * @typedef UpdateAppCustomFieldByResourceSlugParam
479
+ * @property {string} resource
480
+ * @property {string} resourceSlug
481
+ * @property {ContentPlatformModel.CustomFieldRequestSchema} body
482
+ */
483
+
484
+ /**
485
+ * @typedef UpdateAppCustomFieldDefinitionBySlugParam
486
+ * @property {string} slug
487
+ * @property {string} resource
488
+ * @property {string} namespace
471
489
  * @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
472
490
  */
473
491
 
474
492
  /**
475
- * @typedef UpdateAppCustomObjectParam
476
- * @property {string} metaobjectId
477
- * @property {ContentPlatformModel.CustomObjectRequestSchema} body
493
+ * @typedef UpdateAppCustomObjectBySlugParam
494
+ * @property {string} definitionSlug
495
+ * @property {string} slug
496
+ * @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
478
497
  */
479
498
 
480
499
  /**
481
- * @typedef UpdateAppCustomObjectDefinitionParam
482
- * @property {string} definitionId
500
+ * @typedef UpdateAppCustomObjectDefinitionBySlugParam
501
+ * @property {string} slug
483
502
  * @property {ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema} body
484
503
  */
485
504
 
486
505
  /**
487
506
  * @typedef UpdateBlogParam
488
507
  * @property {string} id - ID allotted to the blog.
489
- * @property {ContentPlatformModel.BlogRequest} body
508
+ * @property {ContentPlatformModel.BlogPayload} body
490
509
  */
491
510
 
492
511
  /**
@@ -521,7 +540,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
521
540
  /**
522
541
  * @typedef UpdateNavigationParam
523
542
  * @property {string} id - ID allotted to the navigation.
524
- * @property {ContentPlatformModel.NavigationRequest} body
543
+ * @property {ContentPlatformModel.NavigationPayload} body
525
544
  */
526
545
 
527
546
  /**
@@ -534,7 +553,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
534
553
  * @typedef UpdatePagePreviewParam
535
554
  * @property {string} slug - A short, human-readable, URL-friendly identifier of
536
555
  * a page. You can get slug value of a page from `getPages` API.
537
- * @property {ContentPlatformModel.PagePublishRequest} body
556
+ * @property {ContentPlatformModel.PagePublishPayload} body
538
557
  */
539
558
 
540
559
  /**
@@ -551,7 +570,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
551
570
  /**
552
571
  * @typedef UpdateSlideshowParam
553
572
  * @property {string} id - ID allotted to the slideshow.
554
- * @property {ContentPlatformModel.SlideshowRequest} body
573
+ * @property {ContentPlatformModel.SlideshowPayload} body
555
574
  */
556
575
 
557
576
  /**
@@ -596,26 +615,19 @@ class ContentPlatformApplicationValidator {
596
615
  }).required();
597
616
  }
598
617
 
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
-
608
618
  /** @returns {CreateAppCustomFieldDefinitionParam} */
609
619
  static createAppCustomFieldDefinition() {
610
620
  return Joi.object({
621
+ resource: Joi.string().allow("").required(),
611
622
  body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
612
623
  }).required();
613
624
  }
614
625
 
615
- /** @returns {CreateAppCustomObjectParam} */
616
- static createAppCustomObject() {
626
+ /** @returns {CreateAppCustomObjectBySlugParam} */
627
+ static createAppCustomObjectBySlug() {
617
628
  return Joi.object({
618
- body: ContentPlatformModel.CustomObjectRequestSchema().required(),
629
+ definitionSlug: Joi.string().allow("").required(),
630
+ body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
619
631
  }).required();
620
632
  }
621
633
 
@@ -629,7 +641,7 @@ class ContentPlatformApplicationValidator {
629
641
  /** @returns {CreateBlogParam} */
630
642
  static createBlog() {
631
643
  return Joi.object({
632
- body: ContentPlatformModel.BlogRequest().required(),
644
+ body: ContentPlatformModel.BlogPayload().required(),
633
645
  }).required();
634
646
  }
635
647
 
@@ -650,21 +662,21 @@ class ContentPlatformApplicationValidator {
650
662
  /** @returns {CreateNavigationParam} */
651
663
  static createNavigation() {
652
664
  return Joi.object({
653
- body: ContentPlatformModel.NavigationRequest().required(),
665
+ body: ContentPlatformModel.NavigationPayload().required(),
654
666
  }).required();
655
667
  }
656
668
 
657
669
  /** @returns {CreatePageParam} */
658
670
  static createPage() {
659
671
  return Joi.object({
660
- body: ContentPlatformModel.PageRequest().required(),
672
+ body: ContentPlatformModel.PagePayload().required(),
661
673
  }).required();
662
674
  }
663
675
 
664
676
  /** @returns {CreatePagePreviewParam} */
665
677
  static createPagePreview() {
666
678
  return Joi.object({
667
- body: ContentPlatformModel.PageRequest().required(),
679
+ body: ContentPlatformModel.PagePayload().required(),
668
680
  }).required();
669
681
  }
670
682
 
@@ -678,7 +690,7 @@ class ContentPlatformApplicationValidator {
678
690
  /** @returns {CreateSlideshowParam} */
679
691
  static createSlideshow() {
680
692
  return Joi.object({
681
- body: ContentPlatformModel.SlideshowRequest().required(),
693
+ body: ContentPlatformModel.SlideshowPayload().required(),
682
694
  }).required();
683
695
  }
684
696
 
@@ -689,24 +701,27 @@ class ContentPlatformApplicationValidator {
689
701
  }).required();
690
702
  }
691
703
 
692
- /** @returns {DeleteAppCustomFieldDefinitionParam} */
693
- static deleteAppCustomFieldDefinition() {
704
+ /** @returns {DeleteAppCustomFieldDefinitionBySlugParam} */
705
+ static deleteAppCustomFieldDefinitionBySlug() {
694
706
  return Joi.object({
695
- definitionId: Joi.string().allow("").required(),
707
+ slug: Joi.string().allow("").required(),
708
+ resource: Joi.string().allow("").required(),
709
+ namespace: Joi.string().allow("").required(),
696
710
  }).required();
697
711
  }
698
712
 
699
- /** @returns {DeleteAppCustomObjectParam} */
700
- static deleteAppCustomObject() {
713
+ /** @returns {DeleteAppCustomObjectBySlugParam} */
714
+ static deleteAppCustomObjectBySlug() {
701
715
  return Joi.object({
702
- metaobjectId: Joi.string().allow("").required(),
716
+ definitionSlug: Joi.string().allow("").required(),
717
+ slug: Joi.string().allow("").required(),
703
718
  }).required();
704
719
  }
705
720
 
706
- /** @returns {DeleteAppCustomObjectDefinitionParam} */
707
- static deleteAppCustomObjectDefinition() {
721
+ /** @returns {DeleteAppCustomObjectDefinitionBySlugParam} */
722
+ static deleteAppCustomObjectDefinitionBySlug() {
708
723
  return Joi.object({
709
- definitionId: Joi.string().allow("").required(),
724
+ slug: Joi.string().allow("").required(),
710
725
  }).required();
711
726
  }
712
727
 
@@ -805,10 +820,10 @@ class ContentPlatformApplicationValidator {
805
820
  }).required();
806
821
  }
807
822
 
808
- /** @returns {ExportAppCustomObjectEntriesParam} */
809
- static exportAppCustomObjectEntries() {
823
+ /** @returns {ExportAppCustomObjectEntriesBySlugParam} */
824
+ static exportAppCustomObjectEntriesBySlug() {
810
825
  return Joi.object({
811
- definitionId: Joi.string().allow("").required(),
826
+ slug: Joi.string().allow("").required(),
812
827
  }).required();
813
828
  }
814
829
 
@@ -835,10 +850,25 @@ class ContentPlatformApplicationValidator {
835
850
  }).required();
836
851
  }
837
852
 
838
- /** @returns {GetAppCustomFieldDefinitionParam} */
839
- static getAppCustomFieldDefinition() {
853
+ /** @returns {GetAppCustomFieldDefinitionByResourceParam} */
854
+ static getAppCustomFieldDefinitionByResource() {
840
855
  return Joi.object({
841
- definitionId: Joi.string().allow("").required(),
856
+ pageNo: Joi.string().allow("").required(),
857
+ pageSize: Joi.string().allow("").required(),
858
+ resource: Joi.string().allow("").required(),
859
+ types: Joi.string().allow(""),
860
+ search: Joi.string().allow(""),
861
+ slugs: Joi.string().allow(""),
862
+ namespaces: Joi.string().allow(""),
863
+ }).required();
864
+ }
865
+
866
+ /** @returns {GetAppCustomFieldDefinitionBySlugParam} */
867
+ static getAppCustomFieldDefinitionBySlug() {
868
+ return Joi.object({
869
+ slug: Joi.string().allow("").required(),
870
+ resource: Joi.string().allow("").required(),
871
+ namespace: Joi.string().allow("").required(),
842
872
  }).required();
843
873
  }
844
874
 
@@ -847,9 +877,11 @@ class ContentPlatformApplicationValidator {
847
877
  return Joi.object({
848
878
  pageNo: Joi.string().allow("").required(),
849
879
  pageSize: Joi.string().allow("").required(),
850
- resource: Joi.string().allow(""),
851
- type: Joi.string().allow(""),
880
+ resources: Joi.string().allow(""),
881
+ types: Joi.string().allow(""),
852
882
  search: Joi.string().allow(""),
883
+ slugs: Joi.string().allow(""),
884
+ namespaces: Joi.string().allow(""),
853
885
  }).required();
854
886
  }
855
887
 
@@ -858,32 +890,26 @@ class ContentPlatformApplicationValidator {
858
890
  return Joi.object({}).required();
859
891
  }
860
892
 
861
- /** @returns {GetAppCustomFieldsParam} */
862
- static getAppCustomFields() {
863
- return Joi.object({
864
- resource: Joi.string().allow("").required(),
865
- }).required();
866
- }
867
-
868
- /** @returns {GetAppCustomFieldsByResourceIdParam} */
869
- static getAppCustomFieldsByResourceId() {
893
+ /** @returns {GetAppCustomFieldsByResourceSlugParam} */
894
+ static getAppCustomFieldsByResourceSlug() {
870
895
  return Joi.object({
871
896
  resource: Joi.string().allow("").required(),
872
- resourceId: Joi.string().allow("").required(),
897
+ resourceSlug: Joi.string().allow("").required(),
873
898
  }).required();
874
899
  }
875
900
 
876
- /** @returns {GetAppCustomObjectParam} */
877
- static getAppCustomObject() {
901
+ /** @returns {GetAppCustomObjectBySlugParam} */
902
+ static getAppCustomObjectBySlug() {
878
903
  return Joi.object({
879
- metaobjectId: Joi.string().allow("").required(),
904
+ definitionSlug: Joi.string().allow("").required(),
905
+ slug: Joi.string().allow("").required(),
880
906
  }).required();
881
907
  }
882
908
 
883
- /** @returns {GetAppCustomObjectDefinitionParam} */
884
- static getAppCustomObjectDefinition() {
909
+ /** @returns {GetAppCustomObjectDefinitionBySlugParam} */
910
+ static getAppCustomObjectDefinitionBySlug() {
885
911
  return Joi.object({
886
- definitionId: Joi.string().allow("").required(),
912
+ slug: Joi.string().allow("").required(),
887
913
  }).required();
888
914
  }
889
915
 
@@ -896,12 +922,12 @@ class ContentPlatformApplicationValidator {
896
922
  }).required();
897
923
  }
898
924
 
899
- /** @returns {GetAppCustomObjectsParam} */
900
- static getAppCustomObjects() {
925
+ /** @returns {GetAppCustomObjectsBySlugParam} */
926
+ static getAppCustomObjectsBySlug() {
901
927
  return Joi.object({
902
- definitionId: Joi.string().allow(""),
903
928
  pageNo: Joi.string().allow("").required(),
904
929
  pageSize: Joi.string().allow("").required(),
930
+ definitionSlug: Joi.string().allow("").required(),
905
931
  }).required();
906
932
  }
907
933
 
@@ -1013,7 +1039,7 @@ class ContentPlatformApplicationValidator {
1013
1039
  static getNavigationBySlug() {
1014
1040
  return Joi.object({
1015
1041
  slug: Joi.string().allow("").required(),
1016
- devicePlatform: Joi.string().allow("").required(),
1042
+ devicePlatform: Joi.string().allow(""),
1017
1043
  }).required();
1018
1044
  }
1019
1045
 
@@ -1110,10 +1136,10 @@ class ContentPlatformApplicationValidator {
1110
1136
  return Joi.object({}).required();
1111
1137
  }
1112
1138
 
1113
- /** @returns {ImportAppCustomObjectEntriesParam} */
1114
- static importAppCustomObjectEntries() {
1139
+ /** @returns {ImportAppCustomObjectEntriesBySlugParam} */
1140
+ static importAppCustomObjectEntriesBySlug() {
1115
1141
  return Joi.object({
1116
- definitionId: Joi.string().allow("").required(),
1142
+ slug: Joi.string().allow("").required(),
1117
1143
  body: ContentPlatformModel.CustomObjectBulkSchema().required(),
1118
1144
  }).required();
1119
1145
  }
@@ -1133,10 +1159,10 @@ class ContentPlatformApplicationValidator {
1133
1159
  }).required();
1134
1160
  }
1135
1161
 
1136
- /** @returns {SampleAppCustomObjectBulkEntryParam} */
1137
- static sampleAppCustomObjectBulkEntry() {
1162
+ /** @returns {SampleAppCustomObjectBulkEntryBySlugParam} */
1163
+ static sampleAppCustomObjectBulkEntryBySlug() {
1138
1164
  return Joi.object({
1139
- definitionId: Joi.string().allow("").required(),
1165
+ slug: Joi.string().allow("").required(),
1140
1166
  }).required();
1141
1167
  }
1142
1168
 
@@ -1163,26 +1189,38 @@ class ContentPlatformApplicationValidator {
1163
1189
  }).required();
1164
1190
  }
1165
1191
 
1166
- /** @returns {UpdateAppCustomFieldDefinitionParam} */
1167
- static updateAppCustomFieldDefinition() {
1192
+ /** @returns {UpdateAppCustomFieldByResourceSlugParam} */
1193
+ static updateAppCustomFieldByResourceSlug() {
1168
1194
  return Joi.object({
1169
- definitionId: Joi.string().allow("").required(),
1195
+ resource: Joi.string().allow("").required(),
1196
+ resourceSlug: Joi.string().allow("").required(),
1197
+ body: ContentPlatformModel.CustomFieldRequestSchema().required(),
1198
+ }).required();
1199
+ }
1200
+
1201
+ /** @returns {UpdateAppCustomFieldDefinitionBySlugParam} */
1202
+ static updateAppCustomFieldDefinitionBySlug() {
1203
+ return Joi.object({
1204
+ slug: Joi.string().allow("").required(),
1205
+ resource: Joi.string().allow("").required(),
1206
+ namespace: Joi.string().allow("").required(),
1170
1207
  body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
1171
1208
  }).required();
1172
1209
  }
1173
1210
 
1174
- /** @returns {UpdateAppCustomObjectParam} */
1175
- static updateAppCustomObject() {
1211
+ /** @returns {UpdateAppCustomObjectBySlugParam} */
1212
+ static updateAppCustomObjectBySlug() {
1176
1213
  return Joi.object({
1177
- metaobjectId: Joi.string().allow("").required(),
1178
- body: ContentPlatformModel.CustomObjectRequestSchema().required(),
1214
+ definitionSlug: Joi.string().allow("").required(),
1215
+ slug: Joi.string().allow("").required(),
1216
+ body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
1179
1217
  }).required();
1180
1218
  }
1181
1219
 
1182
- /** @returns {UpdateAppCustomObjectDefinitionParam} */
1183
- static updateAppCustomObjectDefinition() {
1220
+ /** @returns {UpdateAppCustomObjectDefinitionBySlugParam} */
1221
+ static updateAppCustomObjectDefinitionBySlug() {
1184
1222
  return Joi.object({
1185
- definitionId: Joi.string().allow("").required(),
1223
+ slug: Joi.string().allow("").required(),
1186
1224
  body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema().required(),
1187
1225
  }).required();
1188
1226
  }
@@ -1191,7 +1229,7 @@ class ContentPlatformApplicationValidator {
1191
1229
  static updateBlog() {
1192
1230
  return Joi.object({
1193
1231
  id: Joi.string().allow("").required(),
1194
- body: ContentPlatformModel.BlogRequest().required(),
1232
+ body: ContentPlatformModel.BlogPayload().required(),
1195
1233
  }).required();
1196
1234
  }
1197
1235
 
@@ -1238,7 +1276,7 @@ class ContentPlatformApplicationValidator {
1238
1276
  static updateNavigation() {
1239
1277
  return Joi.object({
1240
1278
  id: Joi.string().allow("").required(),
1241
- body: ContentPlatformModel.NavigationRequest().required(),
1279
+ body: ContentPlatformModel.NavigationPayload().required(),
1242
1280
  }).required();
1243
1281
  }
1244
1282
 
@@ -1254,7 +1292,7 @@ class ContentPlatformApplicationValidator {
1254
1292
  static updatePagePreview() {
1255
1293
  return Joi.object({
1256
1294
  slug: Joi.string().allow("").required(),
1257
- body: ContentPlatformModel.PagePublishRequest().required(),
1295
+ body: ContentPlatformModel.PagePublishPayload().required(),
1258
1296
  }).required();
1259
1297
  }
1260
1298
 
@@ -1277,7 +1315,7 @@ class ContentPlatformApplicationValidator {
1277
1315
  static updateSlideshow() {
1278
1316
  return Joi.object({
1279
1317
  id: Joi.string().allow("").required(),
1280
- body: ContentPlatformModel.SlideshowRequest().required(),
1318
+ body: ContentPlatformModel.SlideshowPayload().required(),
1281
1319
  }).required();
1282
1320
  }
1283
1321