@gofynd/fdk-client-javascript 1.6.4 → 3.1.0-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 (290) 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 +100 -80
  6. package/sdk/application/Cart/CartApplicationClient.js +257 -126
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +3 -3
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +61 -21
  16. package/sdk/application/Content/ContentApplicationClient.js +250 -36
  17. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  18. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  19. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +106 -57
  20. package/sdk/application/Logistic/LogisticApplicationClient.js +326 -208
  21. package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
  22. package/sdk/application/Order/OrderApplicationClient.js +140 -21
  23. package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
  24. package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
  25. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  26. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  27. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  28. package/sdk/application/Share/ShareApplicationClient.js +14 -14
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
  30. package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
  31. package/sdk/application/User/UserApplicationClient.d.ts +13 -23
  32. package/sdk/application/User/UserApplicationClient.js +9 -57
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  35. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
  36. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
  37. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
  38. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
  39. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
  40. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
  41. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
  42. package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
  43. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
  44. package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
  45. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
  46. package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
  47. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +0 -10
  48. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +0 -75
  49. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +1 -54
  50. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +0 -43
  51. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
  52. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -6
  53. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  54. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  55. package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
  56. package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
  57. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  58. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
  59. package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
  60. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
  61. package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
  62. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
  63. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
  64. package/sdk/partner/PartnerClient.d.ts +6 -0
  65. package/sdk/partner/PartnerClient.js +9 -0
  66. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
  67. package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
  68. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
  69. package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
  70. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
  71. package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
  72. package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
  73. package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
  74. package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
  75. package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
  76. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
  77. package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
  78. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  79. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  80. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -670
  81. package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
  82. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  83. package/sdk/partner/index.d.ts +3 -0
  84. package/sdk/partner/index.js +6 -0
  85. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
  86. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  87. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
  88. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
  89. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  90. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  91. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
  92. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
  93. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  94. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  95. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  96. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  97. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  98. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  99. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  100. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  101. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +251 -172
  102. package/sdk/platform/Cart/CartPlatformApplicationClient.js +639 -521
  103. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  104. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
  105. package/sdk/platform/Cart/CartPlatformModel.d.ts +3150 -4468
  106. package/sdk/platform/Cart/CartPlatformModel.js +2858 -1867
  107. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +976 -380
  108. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6475 -2015
  109. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1083 -162
  110. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +884 -80
  111. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +325 -568
  112. package/sdk/platform/Catalog/CatalogPlatformClient.js +1162 -1562
  113. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6008 -7688
  114. package/sdk/platform/Catalog/CatalogPlatformModel.js +9522 -6892
  115. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +234 -227
  116. package/sdk/platform/Catalog/CatalogPlatformValidator.js +183 -177
  117. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
  118. package/sdk/platform/Common/CommonPlatformClient.js +5 -6
  119. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  120. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  121. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -238
  122. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +876 -588
  123. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
  124. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
  125. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
  126. package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
  127. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +506 -270
  128. package/sdk/platform/Communication/CommunicationPlatformModel.js +611 -313
  129. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
  130. package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
  131. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +78 -77
  132. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +97 -91
  133. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
  134. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
  135. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +31 -20
  136. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -20
  137. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
  138. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
  139. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
  140. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
  141. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
  142. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
  143. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1206 -459
  144. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1011 -320
  145. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
  146. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
  147. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +255 -140
  148. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1095 -464
  149. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
  150. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
  151. package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
  152. package/sdk/platform/Content/ContentPlatformClient.js +459 -379
  153. package/sdk/platform/Content/ContentPlatformModel.d.ts +871 -1315
  154. package/sdk/platform/Content/ContentPlatformModel.js +940 -599
  155. package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
  156. package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
  157. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
  158. package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
  159. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
  160. package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
  161. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  162. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  163. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
  164. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
  165. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
  166. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
  167. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  168. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  169. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
  170. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
  171. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  172. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  173. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  174. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  175. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
  176. package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
  177. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  178. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  179. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  180. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  181. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  182. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  183. package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
  184. package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
  185. package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
  186. package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
  187. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
  188. package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
  189. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
  190. package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
  191. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
  192. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
  193. package/sdk/platform/Order/OrderPlatformClient.d.ts +486 -277
  194. package/sdk/platform/Order/OrderPlatformClient.js +1491 -938
  195. package/sdk/platform/Order/OrderPlatformModel.d.ts +4560 -8636
  196. package/sdk/platform/Order/OrderPlatformModel.js +3604 -4056
  197. package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
  198. package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
  199. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  200. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  201. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  202. package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
  203. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
  204. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
  205. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
  206. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
  207. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
  208. package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
  209. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3531 -1292
  210. package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1504
  211. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
  212. package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
  213. package/sdk/platform/PlatformClient.d.ts +2 -0
  214. package/sdk/platform/PlatformClient.js +4 -0
  215. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  216. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  217. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  218. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  219. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
  220. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
  221. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
  222. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2188 -302
  223. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +394 -54
  224. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +342 -37
  225. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +150 -212
  226. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +589 -1238
  227. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3581 -2960
  228. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3730 -1779
  229. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +230 -382
  230. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +164 -287
  231. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
  232. package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
  233. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
  234. package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
  235. package/sdk/platform/Share/SharePlatformModel.d.ts +11 -50
  236. package/sdk/platform/Share/SharePlatformModel.js +5 -43
  237. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +36 -16
  238. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +201 -58
  239. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +28 -17
  240. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +33 -16
  241. package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
  242. package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
  243. package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
  244. package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
  245. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
  246. package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
  247. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +18 -71
  248. package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
  249. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
  250. package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
  251. package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
  252. package/sdk/platform/User/UserPlatformModel.js +209 -216
  253. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  254. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  255. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
  256. package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
  257. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  258. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  259. package/sdk/platform/index.d.ts +1 -0
  260. package/sdk/platform/index.js +2 -0
  261. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
  262. package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
  263. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
  264. package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
  265. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
  266. package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
  267. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  268. package/sdk/public/Content/ContentPublicClient.js +183 -0
  269. package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
  270. package/sdk/public/Content/ContentPublicModel.js +47 -1
  271. package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
  272. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  273. package/sdk/public/PublicClient.d.ts +0 -2
  274. package/sdk/public/PublicClient.js +0 -4
  275. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  276. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  277. package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
  278. package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
  279. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  280. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  281. package/sdk/public/index.d.ts +0 -1
  282. package/sdk/public/index.js +0 -2
  283. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  284. package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
  285. package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
  286. package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
  287. package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
  288. package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
  289. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
  290. package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
@@ -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
  /**
@@ -55,6 +60,11 @@ const ContentPlatformModel = require("./ContentPlatformModel");
55
60
  * @property {ContentPlatformModel.CreateFaqCategoryRequestSchema} body
56
61
  */
57
62
 
63
+ /**
64
+ * @typedef CreateInjectableTagParam
65
+ * @property {ContentPlatformModel.CreateTagRequestSchema} body
66
+ */
67
+
58
68
  /**
59
69
  * @typedef CreateLandingPageParam
60
70
  * @property {ContentPlatformModel.LandingPageSchema} body
@@ -62,12 +72,17 @@ const ContentPlatformModel = require("./ContentPlatformModel");
62
72
 
63
73
  /**
64
74
  * @typedef CreateNavigationParam
65
- * @property {ContentPlatformModel.NavigationPayload} body
75
+ * @property {ContentPlatformModel.NavigationRequest} body
66
76
  */
67
77
 
68
78
  /**
69
79
  * @typedef CreatePageParam
70
- * @property {ContentPlatformModel.PagePayload} body
80
+ * @property {ContentPlatformModel.PageRequest} body
81
+ */
82
+
83
+ /**
84
+ * @typedef CreatePagePreviewParam
85
+ * @property {ContentPlatformModel.PageRequest} body
71
86
  */
72
87
 
73
88
  /**
@@ -75,27 +90,33 @@ const ContentPlatformModel = require("./ContentPlatformModel");
75
90
  * @property {ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody} body
76
91
  */
77
92
 
93
+ /** @typedef DeleteAllInjectableTagsParam */
94
+
78
95
  /**
79
96
  * @typedef DeleteAnnouncementParam
80
97
  * @property {string} announcementId - ID allotted to the announcement.
81
98
  */
82
99
 
83
100
  /**
84
- * @typedef DeleteAppCustomFieldDefinitionBySlugParam
85
- * @property {string} slug
101
+ * @typedef DeleteAppCustomFieldDefinitionParam
102
+ * @property {string} id
103
+ */
104
+
105
+ /**
106
+ * @typedef DeleteAppCustomFieldsByResourceIdParam
86
107
  * @property {string} resource
87
- * @property {string} namespace
108
+ * @property {string} resourceId
109
+ * @property {string} ids
88
110
  */
89
111
 
90
112
  /**
91
- * @typedef DeleteAppCustomObjectBySlugParam
92
- * @property {string} definitionSlug
93
- * @property {string} slug
113
+ * @typedef DeleteAppCustomObjectParam
114
+ * @property {string} id
94
115
  */
95
116
 
96
117
  /**
97
- * @typedef DeleteAppCustomObjectDefinitionBySlugParam
98
- * @property {string} slug
118
+ * @typedef DeleteAppCustomObjectDefinitionParam
119
+ * @property {string} id
99
120
  */
100
121
 
101
122
  /**
@@ -141,7 +162,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
141
162
 
142
163
  /**
143
164
  * @typedef DeleteSEOMarkupSchemaParam
144
- * @property {string} id - Alphanumeric ID allotted to a SEO Markup Schema
165
+ * @property {string} schemaId - Alphanumeric ID allotted to a SEO Markup Schema
145
166
  * Template created within a business.
146
167
  */
147
168
 
@@ -159,21 +180,20 @@ const ContentPlatformModel = require("./ContentPlatformModel");
159
180
 
160
181
  /**
161
182
  * @typedef EditSEOMarkupSchemaParam
162
- * @property {string} id - Alphanumeric ID allotted to a SEO Markup Schema
183
+ * @property {string} schemaId - Alphanumeric ID allotted to a SEO Markup Schema
163
184
  * Template created within a business.
164
185
  * @property {ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody} body
165
186
  */
166
187
 
167
188
  /**
168
- * @typedef ExportAppCustomObjectEntriesBySlugParam
169
- * @property {string} slug
189
+ * @typedef ExportAppCustomObjectEntriesParam
190
+ * @property {string} definitionId
170
191
  */
171
192
 
172
193
  /**
173
194
  * @typedef GenerateSEOTitleParam
174
- * @property {ContentPlatformModel.GenerationEntityType} type - String
175
- * representing the type of SEO content to be generated. Possible values are:
176
- * title, description
195
+ * @property {string} type - String representing the type of SEO content to be
196
+ * generated. Possible values are: title, description
177
197
  * @property {ContentPlatformModel.GenerateSEOContent} body
178
198
  */
179
199
 
@@ -191,21 +211,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
191
211
  */
192
212
 
193
213
  /**
194
- * @typedef GetAppCustomFieldDefinitionByResourceParam
195
- * @property {string} pageNo
196
- * @property {string} pageSize
197
- * @property {string} resource
198
- * @property {string} [types]
199
- * @property {string} [search]
200
- * @property {string} [slugs]
201
- * @property {string} [namespaces]
202
- */
203
-
204
- /**
205
- * @typedef GetAppCustomFieldDefinitionBySlugParam
206
- * @property {string} slug
207
- * @property {string} resource
208
- * @property {string} namespace
214
+ * @typedef GetAppCustomFieldDefinitionParam
215
+ * @property {string} id
209
216
  */
210
217
 
211
218
  /**
@@ -216,26 +223,36 @@ const ContentPlatformModel = require("./ContentPlatformModel");
216
223
  * @property {string} [types]
217
224
  * @property {string} [search]
218
225
  * @property {string} [slugs]
219
- * @property {string} [namespaces]
226
+ */
227
+
228
+ /**
229
+ * @typedef GetAppCustomFieldJobsParam
230
+ * @property {string} page
231
+ * @property {string} pageSize
232
+ * @property {string} actionType
220
233
  */
221
234
 
222
235
  /** @typedef GetAppCustomFieldTypesParam */
223
236
 
224
237
  /**
225
- * @typedef GetAppCustomFieldsByResourceSlugParam
238
+ * @typedef GetAppCustomFieldsParam
226
239
  * @property {string} resource
227
- * @property {string} resourceSlug
228
240
  */
229
241
 
230
242
  /**
231
- * @typedef GetAppCustomObjectBySlugParam
232
- * @property {string} definitionSlug
233
- * @property {string} slug
243
+ * @typedef GetAppCustomFieldsByResourceIdParam
244
+ * @property {string} resource
245
+ * @property {string} resourceId
234
246
  */
235
247
 
236
248
  /**
237
- * @typedef GetAppCustomObjectDefinitionBySlugParam
238
- * @property {string} slug
249
+ * @typedef GetAppCustomObjectParam
250
+ * @property {string} id
251
+ */
252
+
253
+ /**
254
+ * @typedef GetAppCustomObjectDefinitionParam
255
+ * @property {string} id
239
256
  */
240
257
 
241
258
  /**
@@ -246,10 +263,10 @@ const ContentPlatformModel = require("./ContentPlatformModel");
246
263
  */
247
264
 
248
265
  /**
249
- * @typedef GetAppCustomObjectsBySlugParam
266
+ * @typedef GetAppCustomObjectsParam
267
+ * @property {string} [definitionId]
250
268
  * @property {string} pageNo
251
269
  * @property {string} pageSize
252
- * @property {string} definitionSlug
253
270
  */
254
271
 
255
272
  /**
@@ -280,6 +297,18 @@ const ContentPlatformModel = require("./ContentPlatformModel");
280
297
  * @property {string} [status] - Blogs retrieve based on the status passed.
281
298
  */
282
299
 
300
+ /**
301
+ * @typedef GetComponentByIdParam
302
+ * @property {string} slug - A short, human-readable, URL-friendly identifier of
303
+ * a blog page. You can get slug value of a blog from `getBlogs` API.
304
+ */
305
+
306
+ /**
307
+ * @typedef GetDataLoaderApiSpecsParam
308
+ * @property {string} dataLoader - Alphanumeric ID allotted to an application
309
+ * created within a business account.
310
+ */
311
+
283
312
  /** @typedef GetDataLoadersParam */
284
313
 
285
314
  /**
@@ -318,10 +347,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
318
347
  * can get slug value of an FAQ category from `getFaqCategories` API.
319
348
  */
320
349
 
321
- /**
322
- * @typedef GetInjectableTagsParam
323
- * @property {boolean} [all] - Get all tags irrespective of the creator of tags
324
- */
350
+ /** @typedef GetInjectableTagsParam */
325
351
 
326
352
  /**
327
353
  * @typedef GetLandingPagesParam
@@ -386,7 +412,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
386
412
 
387
413
  /**
388
414
  * @typedef GetSEOMarkupSchemaParam
389
- * @property {string} id - Alphanumeric ID allotted to a SEO Markup Schema
415
+ * @property {string} schemaId - Alphanumeric ID allotted to a SEO Markup Schema
390
416
  * Template created within a business.
391
417
  */
392
418
 
@@ -403,8 +429,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
403
429
  /** @typedef GetSupportInformationParam */
404
430
 
405
431
  /**
406
- * @typedef ImportAppCustomObjectEntriesBySlugParam
407
- * @property {string} slug
432
+ * @typedef ImportAppCustomObjectEntriesParam
433
+ * @property {string} definitionId
408
434
  * @property {ContentPlatformModel.CustomObjectBulkSchema} body
409
435
  */
410
436
 
@@ -420,8 +446,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
420
446
  */
421
447
 
422
448
  /**
423
- * @typedef SampleAppCustomObjectBulkEntryBySlugParam
424
- * @property {string} slug
449
+ * @typedef SampleAppCustomObjectBulkEntryParam
450
+ * @property {string} definitionId
425
451
  */
426
452
 
427
453
  /**
@@ -442,37 +468,34 @@ const ContentPlatformModel = require("./ContentPlatformModel");
442
468
  */
443
469
 
444
470
  /**
445
- * @typedef UpdateAppCustomFieldByResourceSlugParam
471
+ * @typedef UpdateAppCustomFieldByResourceIdParam
446
472
  * @property {string} resource
447
- * @property {string} resourceSlug
473
+ * @property {string} resourceId
448
474
  * @property {ContentPlatformModel.CustomFieldRequestSchema} body
449
475
  */
450
476
 
451
477
  /**
452
- * @typedef UpdateAppCustomFieldDefinitionBySlugParam
453
- * @property {string} slug
454
- * @property {string} resource
455
- * @property {string} namespace
478
+ * @typedef UpdateAppCustomFieldDefinitionParam
479
+ * @property {string} id
456
480
  * @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
457
481
  */
458
482
 
459
483
  /**
460
- * @typedef UpdateAppCustomObjectBySlugParam
461
- * @property {string} definitionSlug
462
- * @property {string} slug
463
- * @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
484
+ * @typedef UpdateAppCustomObjectParam
485
+ * @property {string} id
486
+ * @property {ContentPlatformModel.CustomObjectRequestSchema} body
464
487
  */
465
488
 
466
489
  /**
467
- * @typedef UpdateAppCustomObjectDefinitionBySlugParam
468
- * @property {string} slug
490
+ * @typedef UpdateAppCustomObjectDefinitionParam
491
+ * @property {string} id
469
492
  * @property {ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema} body
470
493
  */
471
494
 
472
495
  /**
473
496
  * @typedef UpdateBlogParam
474
497
  * @property {string} id - ID allotted to the blog.
475
- * @property {ContentPlatformModel.BlogPayload} body
498
+ * @property {ContentPlatformModel.BlogRequest} body
476
499
  */
477
500
 
478
501
  /**
@@ -507,7 +530,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
507
530
  /**
508
531
  * @typedef UpdateNavigationParam
509
532
  * @property {string} id - ID allotted to the navigation.
510
- * @property {ContentPlatformModel.NavigationPayload} body
533
+ * @property {ContentPlatformModel.NavigationRequest} body
511
534
  */
512
535
 
513
536
  /**
@@ -520,7 +543,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
520
543
  * @typedef UpdatePagePreviewParam
521
544
  * @property {string} slug - A short, human-readable, URL-friendly identifier of
522
545
  * a page. You can get slug value of a page from `getPages` API.
523
- * @property {ContentPlatformModel.PagePublishPayload} body
546
+ * @property {ContentPlatformModel.PagePublishRequest} body
524
547
  */
525
548
 
526
549
  /**
@@ -576,19 +599,26 @@ class ContentPlatformApplicationValidator {
576
599
  }).required();
577
600
  }
578
601
 
602
+ /** @returns {CreateAppCustomFieldByResourceIdParam} */
603
+ static createAppCustomFieldByResourceId() {
604
+ return Joi.object({
605
+ resource: Joi.string().allow("").required(),
606
+ resourceId: Joi.string().allow("").required(),
607
+ body: ContentPlatformModel.CustomFieldRequestSchema().required(),
608
+ }).required();
609
+ }
610
+
579
611
  /** @returns {CreateAppCustomFieldDefinitionParam} */
580
612
  static createAppCustomFieldDefinition() {
581
613
  return Joi.object({
582
- resource: Joi.string().allow("").required(),
583
614
  body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
584
615
  }).required();
585
616
  }
586
617
 
587
- /** @returns {CreateAppCustomObjectBySlugParam} */
588
- static createAppCustomObjectBySlug() {
618
+ /** @returns {CreateAppCustomObjectParam} */
619
+ static createAppCustomObject() {
589
620
  return Joi.object({
590
- definitionSlug: Joi.string().allow("").required(),
591
- body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
621
+ body: ContentPlatformModel.CustomObjectRequestSchema().required(),
592
622
  }).required();
593
623
  }
594
624
 
@@ -602,7 +632,7 @@ class ContentPlatformApplicationValidator {
602
632
  /** @returns {CreateBlogParam} */
603
633
  static createBlog() {
604
634
  return Joi.object({
605
- body: ContentPlatformModel.BlogPayload().required(),
635
+ body: ContentPlatformModel.BlogRequest().required(),
606
636
  }).required();
607
637
  }
608
638
 
@@ -613,6 +643,13 @@ class ContentPlatformApplicationValidator {
613
643
  }).required();
614
644
  }
615
645
 
646
+ /** @returns {CreateInjectableTagParam} */
647
+ static createInjectableTag() {
648
+ return Joi.object({
649
+ body: ContentPlatformModel.CreateTagRequestSchema().required(),
650
+ }).required();
651
+ }
652
+
616
653
  /** @returns {CreateLandingPageParam} */
617
654
  static createLandingPage() {
618
655
  return Joi.object({
@@ -623,14 +660,21 @@ class ContentPlatformApplicationValidator {
623
660
  /** @returns {CreateNavigationParam} */
624
661
  static createNavigation() {
625
662
  return Joi.object({
626
- body: ContentPlatformModel.NavigationPayload().required(),
663
+ body: ContentPlatformModel.NavigationRequest().required(),
627
664
  }).required();
628
665
  }
629
666
 
630
667
  /** @returns {CreatePageParam} */
631
668
  static createPage() {
632
669
  return Joi.object({
633
- body: ContentPlatformModel.PagePayload().required(),
670
+ body: ContentPlatformModel.PageRequest().required(),
671
+ }).required();
672
+ }
673
+
674
+ /** @returns {CreatePagePreviewParam} */
675
+ static createPagePreview() {
676
+ return Joi.object({
677
+ body: ContentPlatformModel.PageRequest().required(),
634
678
  }).required();
635
679
  }
636
680
 
@@ -641,6 +685,11 @@ class ContentPlatformApplicationValidator {
641
685
  }).required();
642
686
  }
643
687
 
688
+ /** @returns {DeleteAllInjectableTagsParam} */
689
+ static deleteAllInjectableTags() {
690
+ return Joi.object({}).required();
691
+ }
692
+
644
693
  /** @returns {DeleteAnnouncementParam} */
645
694
  static deleteAnnouncement() {
646
695
  return Joi.object({
@@ -648,27 +697,33 @@ class ContentPlatformApplicationValidator {
648
697
  }).required();
649
698
  }
650
699
 
651
- /** @returns {DeleteAppCustomFieldDefinitionBySlugParam} */
652
- static deleteAppCustomFieldDefinitionBySlug() {
700
+ /** @returns {DeleteAppCustomFieldDefinitionParam} */
701
+ static deleteAppCustomFieldDefinition() {
702
+ return Joi.object({
703
+ id: Joi.string().allow("").required(),
704
+ }).required();
705
+ }
706
+
707
+ /** @returns {DeleteAppCustomFieldsByResourceIdParam} */
708
+ static deleteAppCustomFieldsByResourceId() {
653
709
  return Joi.object({
654
- slug: Joi.string().allow("").required(),
655
710
  resource: Joi.string().allow("").required(),
656
- namespace: Joi.string().allow("").required(),
711
+ resourceId: Joi.string().allow("").required(),
712
+ ids: Joi.string().allow("").required(),
657
713
  }).required();
658
714
  }
659
715
 
660
- /** @returns {DeleteAppCustomObjectBySlugParam} */
661
- static deleteAppCustomObjectBySlug() {
716
+ /** @returns {DeleteAppCustomObjectParam} */
717
+ static deleteAppCustomObject() {
662
718
  return Joi.object({
663
- definitionSlug: Joi.string().allow("").required(),
664
- slug: Joi.string().allow("").required(),
719
+ id: Joi.string().allow("").required(),
665
720
  }).required();
666
721
  }
667
722
 
668
- /** @returns {DeleteAppCustomObjectDefinitionBySlugParam} */
669
- static deleteAppCustomObjectDefinitionBySlug() {
723
+ /** @returns {DeleteAppCustomObjectDefinitionParam} */
724
+ static deleteAppCustomObjectDefinition() {
670
725
  return Joi.object({
671
- slug: Joi.string().allow("").required(),
726
+ id: Joi.string().allow("").required(),
672
727
  }).required();
673
728
  }
674
729
 
@@ -732,7 +787,7 @@ class ContentPlatformApplicationValidator {
732
787
  /** @returns {DeleteSEOMarkupSchemaParam} */
733
788
  static deleteSEOMarkupSchema() {
734
789
  return Joi.object({
735
- id: Joi.string().allow("").required(),
790
+ schemaId: Joi.string().allow("").required(),
736
791
  }).required();
737
792
  }
738
793
 
@@ -755,22 +810,22 @@ class ContentPlatformApplicationValidator {
755
810
  /** @returns {EditSEOMarkupSchemaParam} */
756
811
  static editSEOMarkupSchema() {
757
812
  return Joi.object({
758
- id: Joi.string().allow("").required(),
813
+ schemaId: Joi.string().allow("").required(),
759
814
  body: ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody().required(),
760
815
  }).required();
761
816
  }
762
817
 
763
- /** @returns {ExportAppCustomObjectEntriesBySlugParam} */
764
- static exportAppCustomObjectEntriesBySlug() {
818
+ /** @returns {ExportAppCustomObjectEntriesParam} */
819
+ static exportAppCustomObjectEntries() {
765
820
  return Joi.object({
766
- slug: Joi.string().allow("").required(),
821
+ definitionId: Joi.string().allow("").required(),
767
822
  }).required();
768
823
  }
769
824
 
770
825
  /** @returns {GenerateSEOTitleParam} */
771
826
  static generateSEOTitle() {
772
827
  return Joi.object({
773
- type: ContentPlatformModel.GenerationEntityType().required(),
828
+ type: Joi.string().allow("").required(),
774
829
  body: ContentPlatformModel.GenerateSEOContent().required(),
775
830
  }).required();
776
831
  }
@@ -790,25 +845,10 @@ class ContentPlatformApplicationValidator {
790
845
  }).required();
791
846
  }
792
847
 
793
- /** @returns {GetAppCustomFieldDefinitionByResourceParam} */
794
- static getAppCustomFieldDefinitionByResource() {
848
+ /** @returns {GetAppCustomFieldDefinitionParam} */
849
+ static getAppCustomFieldDefinition() {
795
850
  return Joi.object({
796
- pageNo: Joi.string().allow("").required(),
797
- pageSize: Joi.string().allow("").required(),
798
- resource: Joi.string().allow("").required(),
799
- types: Joi.string().allow(""),
800
- search: Joi.string().allow(""),
801
- slugs: Joi.string().allow(""),
802
- namespaces: Joi.string().allow(""),
803
- }).required();
804
- }
805
-
806
- /** @returns {GetAppCustomFieldDefinitionBySlugParam} */
807
- static getAppCustomFieldDefinitionBySlug() {
808
- return Joi.object({
809
- slug: Joi.string().allow("").required(),
810
- resource: Joi.string().allow("").required(),
811
- namespace: Joi.string().allow("").required(),
851
+ id: Joi.string().allow("").required(),
812
852
  }).required();
813
853
  }
814
854
 
@@ -821,7 +861,15 @@ class ContentPlatformApplicationValidator {
821
861
  types: Joi.string().allow(""),
822
862
  search: Joi.string().allow(""),
823
863
  slugs: Joi.string().allow(""),
824
- namespaces: Joi.string().allow(""),
864
+ }).required();
865
+ }
866
+
867
+ /** @returns {GetAppCustomFieldJobsParam} */
868
+ static getAppCustomFieldJobs() {
869
+ return Joi.object({
870
+ page: Joi.string().allow("").required(),
871
+ pageSize: Joi.string().allow("").required(),
872
+ actionType: Joi.string().allow("").required(),
825
873
  }).required();
826
874
  }
827
875
 
@@ -830,26 +878,32 @@ class ContentPlatformApplicationValidator {
830
878
  return Joi.object({}).required();
831
879
  }
832
880
 
833
- /** @returns {GetAppCustomFieldsByResourceSlugParam} */
834
- static getAppCustomFieldsByResourceSlug() {
881
+ /** @returns {GetAppCustomFieldsParam} */
882
+ static getAppCustomFields() {
835
883
  return Joi.object({
836
884
  resource: Joi.string().allow("").required(),
837
- resourceSlug: Joi.string().allow("").required(),
838
885
  }).required();
839
886
  }
840
887
 
841
- /** @returns {GetAppCustomObjectBySlugParam} */
842
- static getAppCustomObjectBySlug() {
888
+ /** @returns {GetAppCustomFieldsByResourceIdParam} */
889
+ static getAppCustomFieldsByResourceId() {
843
890
  return Joi.object({
844
- definitionSlug: Joi.string().allow("").required(),
845
- slug: Joi.string().allow("").required(),
891
+ resource: Joi.string().allow("").required(),
892
+ resourceId: Joi.string().allow("").required(),
846
893
  }).required();
847
894
  }
848
895
 
849
- /** @returns {GetAppCustomObjectDefinitionBySlugParam} */
850
- static getAppCustomObjectDefinitionBySlug() {
896
+ /** @returns {GetAppCustomObjectParam} */
897
+ static getAppCustomObject() {
851
898
  return Joi.object({
852
- slug: Joi.string().allow("").required(),
899
+ id: Joi.string().allow("").required(),
900
+ }).required();
901
+ }
902
+
903
+ /** @returns {GetAppCustomObjectDefinitionParam} */
904
+ static getAppCustomObjectDefinition() {
905
+ return Joi.object({
906
+ id: Joi.string().allow("").required(),
853
907
  }).required();
854
908
  }
855
909
 
@@ -862,12 +916,12 @@ class ContentPlatformApplicationValidator {
862
916
  }).required();
863
917
  }
864
918
 
865
- /** @returns {GetAppCustomObjectsBySlugParam} */
866
- static getAppCustomObjectsBySlug() {
919
+ /** @returns {GetAppCustomObjectsParam} */
920
+ static getAppCustomObjects() {
867
921
  return Joi.object({
922
+ definitionId: Joi.string().allow(""),
868
923
  pageNo: Joi.string().allow("").required(),
869
924
  pageSize: Joi.string().allow("").required(),
870
- definitionSlug: Joi.string().allow("").required(),
871
925
  }).required();
872
926
  }
873
927
 
@@ -905,6 +959,20 @@ class ContentPlatformApplicationValidator {
905
959
  }).required();
906
960
  }
907
961
 
962
+ /** @returns {GetComponentByIdParam} */
963
+ static getComponentById() {
964
+ return Joi.object({
965
+ slug: Joi.string().allow("").required(),
966
+ }).required();
967
+ }
968
+
969
+ /** @returns {GetDataLoaderApiSpecsParam} */
970
+ static getDataLoaderApiSpecs() {
971
+ return Joi.object({
972
+ dataLoader: Joi.string().allow("").required(),
973
+ }).required();
974
+ }
975
+
908
976
  /** @returns {GetDataLoadersParam} */
909
977
  static getDataLoaders() {
910
978
  return Joi.object({}).required();
@@ -957,9 +1025,7 @@ class ContentPlatformApplicationValidator {
957
1025
 
958
1026
  /** @returns {GetInjectableTagsParam} */
959
1027
  static getInjectableTags() {
960
- return Joi.object({
961
- all: Joi.boolean(),
962
- }).required();
1028
+ return Joi.object({}).required();
963
1029
  }
964
1030
 
965
1031
  /** @returns {GetLandingPagesParam} */
@@ -1040,7 +1106,7 @@ class ContentPlatformApplicationValidator {
1040
1106
  /** @returns {GetSEOMarkupSchemaParam} */
1041
1107
  static getSEOMarkupSchema() {
1042
1108
  return Joi.object({
1043
- id: Joi.string().allow("").required(),
1109
+ schemaId: Joi.string().allow("").required(),
1044
1110
  }).required();
1045
1111
  }
1046
1112
 
@@ -1059,10 +1125,10 @@ class ContentPlatformApplicationValidator {
1059
1125
  return Joi.object({}).required();
1060
1126
  }
1061
1127
 
1062
- /** @returns {ImportAppCustomObjectEntriesBySlugParam} */
1063
- static importAppCustomObjectEntriesBySlug() {
1128
+ /** @returns {ImportAppCustomObjectEntriesParam} */
1129
+ static importAppCustomObjectEntries() {
1064
1130
  return Joi.object({
1065
- slug: Joi.string().allow("").required(),
1131
+ definitionId: Joi.string().allow("").required(),
1066
1132
  body: ContentPlatformModel.CustomObjectBulkSchema().required(),
1067
1133
  }).required();
1068
1134
  }
@@ -1082,10 +1148,10 @@ class ContentPlatformApplicationValidator {
1082
1148
  }).required();
1083
1149
  }
1084
1150
 
1085
- /** @returns {SampleAppCustomObjectBulkEntryBySlugParam} */
1086
- static sampleAppCustomObjectBulkEntryBySlug() {
1151
+ /** @returns {SampleAppCustomObjectBulkEntryParam} */
1152
+ static sampleAppCustomObjectBulkEntry() {
1087
1153
  return Joi.object({
1088
- slug: Joi.string().allow("").required(),
1154
+ definitionId: Joi.string().allow("").required(),
1089
1155
  }).required();
1090
1156
  }
1091
1157
 
@@ -1112,38 +1178,35 @@ class ContentPlatformApplicationValidator {
1112
1178
  }).required();
1113
1179
  }
1114
1180
 
1115
- /** @returns {UpdateAppCustomFieldByResourceSlugParam} */
1116
- static updateAppCustomFieldByResourceSlug() {
1181
+ /** @returns {UpdateAppCustomFieldByResourceIdParam} */
1182
+ static updateAppCustomFieldByResourceId() {
1117
1183
  return Joi.object({
1118
1184
  resource: Joi.string().allow("").required(),
1119
- resourceSlug: Joi.string().allow("").required(),
1185
+ resourceId: Joi.string().allow("").required(),
1120
1186
  body: ContentPlatformModel.CustomFieldRequestSchema().required(),
1121
1187
  }).required();
1122
1188
  }
1123
1189
 
1124
- /** @returns {UpdateAppCustomFieldDefinitionBySlugParam} */
1125
- static updateAppCustomFieldDefinitionBySlug() {
1190
+ /** @returns {UpdateAppCustomFieldDefinitionParam} */
1191
+ static updateAppCustomFieldDefinition() {
1126
1192
  return Joi.object({
1127
- slug: Joi.string().allow("").required(),
1128
- resource: Joi.string().allow("").required(),
1129
- namespace: Joi.string().allow("").required(),
1193
+ id: Joi.string().allow("").required(),
1130
1194
  body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
1131
1195
  }).required();
1132
1196
  }
1133
1197
 
1134
- /** @returns {UpdateAppCustomObjectBySlugParam} */
1135
- static updateAppCustomObjectBySlug() {
1198
+ /** @returns {UpdateAppCustomObjectParam} */
1199
+ static updateAppCustomObject() {
1136
1200
  return Joi.object({
1137
- definitionSlug: Joi.string().allow("").required(),
1138
- slug: Joi.string().allow("").required(),
1139
- body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
1201
+ id: Joi.string().allow("").required(),
1202
+ body: ContentPlatformModel.CustomObjectRequestSchema().required(),
1140
1203
  }).required();
1141
1204
  }
1142
1205
 
1143
- /** @returns {UpdateAppCustomObjectDefinitionBySlugParam} */
1144
- static updateAppCustomObjectDefinitionBySlug() {
1206
+ /** @returns {UpdateAppCustomObjectDefinitionParam} */
1207
+ static updateAppCustomObjectDefinition() {
1145
1208
  return Joi.object({
1146
- slug: Joi.string().allow("").required(),
1209
+ id: Joi.string().allow("").required(),
1147
1210
  body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema().required(),
1148
1211
  }).required();
1149
1212
  }
@@ -1152,7 +1215,7 @@ class ContentPlatformApplicationValidator {
1152
1215
  static updateBlog() {
1153
1216
  return Joi.object({
1154
1217
  id: Joi.string().allow("").required(),
1155
- body: ContentPlatformModel.BlogPayload().required(),
1218
+ body: ContentPlatformModel.BlogRequest().required(),
1156
1219
  }).required();
1157
1220
  }
1158
1221
 
@@ -1199,7 +1262,7 @@ class ContentPlatformApplicationValidator {
1199
1262
  static updateNavigation() {
1200
1263
  return Joi.object({
1201
1264
  id: Joi.string().allow("").required(),
1202
- body: ContentPlatformModel.NavigationPayload().required(),
1265
+ body: ContentPlatformModel.NavigationRequest().required(),
1203
1266
  }).required();
1204
1267
  }
1205
1268
 
@@ -1215,7 +1278,7 @@ class ContentPlatformApplicationValidator {
1215
1278
  static updatePagePreview() {
1216
1279
  return Joi.object({
1217
1280
  slug: Joi.string().allow("").required(),
1218
- body: ContentPlatformModel.PagePublishPayload().required(),
1281
+ body: ContentPlatformModel.PagePublishRequest().required(),
1219
1282
  }).required();
1220
1283
  }
1221
1284