@gofynd/fdk-client-javascript 3.0.0-beta.1 → 3.0.0

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 (310) 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 +93 -113
  6. package/sdk/application/Cart/CartApplicationClient.js +157 -530
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -19
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +65 -55
  16. package/sdk/application/Content/ContentApplicationClient.js +211 -341
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -33
  19. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  20. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  21. package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
  22. package/sdk/application/Lead/LeadApplicationClient.js +24 -55
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +32 -87
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +126 -383
  25. package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
  26. package/sdk/application/Order/OrderApplicationClient.js +89 -293
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
  28. package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
  29. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
  30. package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
  31. package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
  32. package/sdk/application/Share/ShareApplicationClient.js +35 -89
  33. package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
  34. package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
  35. package/sdk/application/User/UserApplicationClient.d.ts +23 -13
  36. package/sdk/application/User/UserApplicationClient.js +49 -407
  37. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  38. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
  39. package/sdk/common/Utility.d.ts +1 -1
  40. package/sdk/common/Utility.js +10 -7
  41. package/sdk/common/Validator.d.ts +1 -0
  42. package/sdk/common/Validator.js +20 -0
  43. package/sdk/common/utils.d.ts +0 -1
  44. package/sdk/common/utils.js +0 -14
  45. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +18 -62
  46. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +40 -372
  47. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +99 -33
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +84 -25
  49. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
  50. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +7 -38
  51. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  52. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  53. package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
  54. package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
  55. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  56. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
  57. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
  58. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
  59. package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
  60. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
  61. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
  62. package/sdk/partner/PartnerClient.d.ts +0 -6
  63. package/sdk/partner/PartnerClient.js +0 -9
  64. package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
  65. package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
  66. package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
  67. package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
  68. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
  69. package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
  70. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  71. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  72. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
  73. package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
  74. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  75. package/sdk/partner/index.d.ts +0 -3
  76. package/sdk/partner/index.js +0 -6
  77. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  78. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  79. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
  80. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  82. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  87. package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -406
  88. package/sdk/platform/Billing/BillingPlatformClient.js +76 -3214
  89. package/sdk/platform/Billing/BillingPlatformModel.d.ts +459 -3798
  90. package/sdk/platform/Billing/BillingPlatformModel.js +338 -2573
  91. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +24 -465
  92. package/sdk/platform/Billing/BillingPlatformValidator.js +14 -490
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +205 -284
  94. package/sdk/platform/Cart/CartPlatformApplicationClient.js +554 -672
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  96. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +132 -108
  97. package/sdk/platform/Cart/CartPlatformModel.d.ts +4865 -3148
  98. package/sdk/platform/Cart/CartPlatformModel.js +2071 -2854
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +419 -1015
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6444
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +226 -1117
  102. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +127 -919
  103. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +574 -372
  104. package/sdk/platform/Catalog/CatalogPlatformClient.js +1315 -1238
  105. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9334 -7634
  106. package/sdk/platform/Catalog/CatalogPlatformModel.js +6980 -9652
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +239 -294
  108. package/sdk/platform/Catalog/CatalogPlatformValidator.js +186 -246
  109. package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
  110. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  111. package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
  112. package/sdk/platform/Common/CommonPlatformModel.js +11 -14
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +236 -376
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +579 -868
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
  117. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
  118. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
  119. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +314 -422
  120. package/sdk/platform/Communication/CommunicationPlatformModel.js +382 -538
  121. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
  122. package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -68
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -84
  125. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
  128. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +118 -333
  130. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
  131. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
  132. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
  133. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
  134. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
  135. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +565 -1282
  136. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +369 -1034
  137. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
  138. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
  139. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -246
  140. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1297 -776
  141. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
  142. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
  143. package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
  144. package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
  145. package/sdk/platform/Content/ContentPlatformModel.d.ts +2374 -877
  146. package/sdk/platform/Content/ContentPlatformModel.js +1304 -930
  147. package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
  148. package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
  149. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
  150. package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
  151. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
  152. package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
  153. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  154. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  155. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
  156. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
  157. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
  158. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
  159. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  160. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  161. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
  162. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
  163. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  164. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  165. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  166. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  167. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  168. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  169. package/sdk/platform/Lead/LeadPlatformClient.d.ts +24 -4
  170. package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
  171. package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
  172. package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
  173. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
  174. package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
  175. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
  176. package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
  177. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
  178. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
  179. package/sdk/platform/Order/OrderPlatformClient.d.ts +421 -418
  180. package/sdk/platform/Order/OrderPlatformClient.js +1194 -1350
  181. package/sdk/platform/Order/OrderPlatformModel.d.ts +9145 -4107
  182. package/sdk/platform/Order/OrderPlatformModel.js +4257 -3197
  183. package/sdk/platform/Order/OrderPlatformValidator.d.ts +641 -442
  184. package/sdk/platform/Order/OrderPlatformValidator.js +341 -311
  185. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  186. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  187. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
  188. package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
  189. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
  190. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +934 -2452
  191. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -306
  192. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -305
  193. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
  194. package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
  195. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1327 -3529
  196. package/sdk/platform/Payment/PaymentPlatformModel.js +1397 -3693
  197. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
  198. package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
  199. package/sdk/platform/PlatformClient.d.ts +0 -2
  200. package/sdk/platform/PlatformClient.js +0 -4
  201. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  202. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  203. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  204. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  205. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +12 -12
  206. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -513
  209. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -103
  210. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -99
  211. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +162 -127
  212. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +775 -435
  213. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6250 -3861
  214. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3178 -3798
  215. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +295 -199
  216. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -133
  217. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
  218. package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
  219. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
  220. package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
  221. package/sdk/platform/Share/SharePlatformModel.d.ts +53 -4
  222. package/sdk/platform/Share/SharePlatformModel.js +45 -3
  223. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +4 -26
  224. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +10 -157
  225. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +10 -21
  226. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +6 -23
  227. package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
  228. package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
  229. package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
  230. package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
  231. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
  232. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
  233. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
  234. package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
  235. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
  236. package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
  237. package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
  238. package/sdk/platform/User/UserPlatformModel.js +253 -210
  239. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  240. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  241. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
  242. package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
  243. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  244. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  245. package/sdk/platform/index.d.ts +0 -1
  246. package/sdk/platform/index.js +0 -2
  247. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  248. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  249. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  250. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  251. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  252. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  253. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
  254. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
  255. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
  256. package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
  257. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
  258. package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
  259. package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
  260. package/sdk/public/Content/ContentPublicClient.js +254 -280
  261. package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
  262. package/sdk/public/Content/ContentPublicModel.js +98 -44
  263. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
  264. package/sdk/public/Content/ContentPublicValidator.js +26 -19
  265. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  266. package/sdk/public/Partner/PartnerPublicClient.js +6 -11
  267. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  268. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  269. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  270. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  271. package/sdk/public/PublicClient.d.ts +2 -2
  272. package/sdk/public/PublicClient.js +2 -2
  273. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  274. package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
  275. package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
  276. package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
  277. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  278. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  279. package/sdk/public/index.d.ts +1 -1
  280. package/sdk/public/index.js +1 -1
  281. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
  282. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
  283. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
  284. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
  285. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
  286. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
  287. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
  288. package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
  289. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
  290. package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
  291. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
  292. package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
  293. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
  294. package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
  295. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
  296. package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
  297. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
  298. package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
  299. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  300. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  301. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
  302. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
  303. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  304. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
  305. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -56
  306. package/sdk/public/Billing/BillingPublicClient.js +0 -397
  307. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -919
  308. package/sdk/public/Billing/BillingPublicModel.js +0 -560
  309. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -43
  310. package/sdk/public/Billing/BillingPublicValidator.js +0 -50
@@ -15,6 +15,85 @@ class Content {
15
15
  this.applicationId = applicationId;
16
16
  }
17
17
 
18
+ /**
19
+ * @param {ContentPlatformApplicationValidator.AddApplicationLanguageParam} arg
20
+ * - Arg object
21
+ *
22
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
23
+ * @param {import("../PlatformAPIClient").Options} - Options
24
+ * @returns {Promise<Object>} - Success response
25
+ * @name addApplicationLanguage
26
+ * @summary: Add app language
27
+ * @description: Add new languages to application's supported language list. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/addApplicationLanguage/).
28
+ */
29
+ async addApplicationLanguage(
30
+ { body, requestHeaders } = { requestHeaders: {} },
31
+ { responseHeaders } = { responseHeaders: false }
32
+ ) {
33
+ const {
34
+ error,
35
+ } = ContentPlatformApplicationValidator.addApplicationLanguage().validate(
36
+ {
37
+ body,
38
+ },
39
+ { abortEarly: false, allowUnknown: true }
40
+ );
41
+ if (error) {
42
+ return Promise.reject(new FDKClientValidationError(error));
43
+ }
44
+
45
+ // Showing warrnings if extra unknown parameters are found
46
+ const {
47
+ error: warrning,
48
+ } = ContentPlatformApplicationValidator.addApplicationLanguage().validate(
49
+ {
50
+ body,
51
+ },
52
+ { abortEarly: false, allowUnknown: false }
53
+ );
54
+ if (warrning) {
55
+ Logger({
56
+ level: "WARN",
57
+ message: `Parameter Validation warrnings for platform > Content > addApplicationLanguage \n ${warrning}`,
58
+ });
59
+ }
60
+
61
+ const query_params = {};
62
+
63
+ const response = await PlatformAPIClient.execute(
64
+ this.config,
65
+ "post",
66
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/languages`,
67
+ query_params,
68
+ body,
69
+ requestHeaders,
70
+ { responseHeaders }
71
+ );
72
+
73
+ let responseData = response;
74
+ if (responseHeaders) {
75
+ responseData = response[0];
76
+ }
77
+
78
+ const { error: res_error } = Joi.any().validate(responseData, {
79
+ abortEarly: false,
80
+ allowUnknown: true,
81
+ });
82
+
83
+ if (res_error) {
84
+ if (this.config.options.strictResponseCheck === true) {
85
+ return Promise.reject(new FDKResponseValidationError(res_error));
86
+ } else {
87
+ Logger({
88
+ level: "WARN",
89
+ message: `Response Validation Warnings for platform > Content > addApplicationLanguage \n ${res_error}`,
90
+ });
91
+ }
92
+ }
93
+
94
+ return response;
95
+ }
96
+
18
97
  /**
19
98
  * @param {ContentPlatformApplicationValidator.AddDataLoaderParam} arg - Arg object
20
99
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -181,7 +260,7 @@ class Content {
181
260
  * @returns {Promise<ContentPlatformModel.TagsSchema>} - Success response
182
261
  * @name addInjectableTag
183
262
  * @summary: Create HTML tag
184
- * @description: Create and add a new injectable tag - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/addInjectableTag/).
263
+ * @description: Create and add a new injectable tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/addInjectableTag/).
185
264
  */
186
265
  async addInjectableTag(
187
266
  { body, requestHeaders } = { requestHeaders: {} },
@@ -259,7 +338,7 @@ class Content {
259
338
  *
260
339
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
261
340
  * @param {import("../PlatformAPIClient").Options} - Options
262
- * @returns {Promise<ContentPlatformModel.CreatePathMappingSchema>} - Success response
341
+ * @returns {Promise<ContentPlatformModel.PathMappingSchema>} - Success response
263
342
  * @name addPathRedirectionRules
264
343
  * @summary: Create path redirection rules
265
344
  * @description: Create and add rules for path redirection. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/addPathRedirectionRules/).
@@ -315,7 +394,7 @@ class Content {
315
394
 
316
395
  const {
317
396
  error: res_error,
318
- } = ContentPlatformModel.CreatePathMappingSchema().validate(responseData, {
397
+ } = ContentPlatformModel.PathMappingSchema().validate(responseData, {
319
398
  abortEarly: false,
320
399
  allowUnknown: true,
321
400
  });
@@ -335,24 +414,23 @@ class Content {
335
414
  }
336
415
 
337
416
  /**
338
- * @param {ContentPlatformApplicationValidator.CreateAnnouncementParam} arg
417
+ * @param {ContentPlatformApplicationValidator.BulkUnPublishApplicationLanguageParam} arg
339
418
  * - Arg object
340
419
  *
341
420
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
342
421
  * @param {import("../PlatformAPIClient").Options} - Options
343
- * @returns {Promise<ContentPlatformModel.CreateAnnouncementSchema>} -
344
- * Success response
345
- * @name createAnnouncement
346
- * @summary: Create announcement
347
- * @description: Generate and add a new announcement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createAnnouncement/).
422
+ * @returns {Promise<Object>} - Success response
423
+ * @name bulkUnPublishApplicationLanguage
424
+ * @summary: Unpublish all languages of sales channel.
425
+ * @description: Unpublish all application's published languages of specific sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/bulkUnPublishApplicationLanguage/).
348
426
  */
349
- async createAnnouncement(
427
+ async bulkUnPublishApplicationLanguage(
350
428
  { body, requestHeaders } = { requestHeaders: {} },
351
429
  { responseHeaders } = { responseHeaders: false }
352
430
  ) {
353
431
  const {
354
432
  error,
355
- } = ContentPlatformApplicationValidator.createAnnouncement().validate(
433
+ } = ContentPlatformApplicationValidator.bulkUnPublishApplicationLanguage().validate(
356
434
  {
357
435
  body,
358
436
  },
@@ -365,7 +443,7 @@ class Content {
365
443
  // Showing warrnings if extra unknown parameters are found
366
444
  const {
367
445
  error: warrning,
368
- } = ContentPlatformApplicationValidator.createAnnouncement().validate(
446
+ } = ContentPlatformApplicationValidator.bulkUnPublishApplicationLanguage().validate(
369
447
  {
370
448
  body,
371
449
  },
@@ -374,7 +452,7 @@ class Content {
374
452
  if (warrning) {
375
453
  Logger({
376
454
  level: "WARN",
377
- message: `Parameter Validation warrnings for platform > Content > createAnnouncement \n ${warrning}`,
455
+ message: `Parameter Validation warrnings for platform > Content > bulkUnPublishApplicationLanguage \n ${warrning}`,
378
456
  });
379
457
  }
380
458
 
@@ -382,8 +460,8 @@ class Content {
382
460
 
383
461
  const response = await PlatformAPIClient.execute(
384
462
  this.config,
385
- "post",
386
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/announcements`,
463
+ "patch",
464
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/languages`,
387
465
  query_params,
388
466
  body,
389
467
  requestHeaders,
@@ -395,9 +473,7 @@ class Content {
395
473
  responseData = response[0];
396
474
  }
397
475
 
398
- const {
399
- error: res_error,
400
- } = ContentPlatformModel.CreateAnnouncementSchema().validate(responseData, {
476
+ const { error: res_error } = Joi.any().validate(responseData, {
401
477
  abortEarly: false,
402
478
  allowUnknown: true,
403
479
  });
@@ -408,7 +484,7 @@ class Content {
408
484
  } else {
409
485
  Logger({
410
486
  level: "WARN",
411
- message: `Response Validation Warnings for platform > Content > createAnnouncement \n ${res_error}`,
487
+ message: `Response Validation Warnings for platform > Content > bulkUnPublishApplicationLanguage \n ${res_error}`,
412
488
  });
413
489
  }
414
490
  }
@@ -417,28 +493,25 @@ class Content {
417
493
  }
418
494
 
419
495
  /**
420
- * @param {ContentPlatformApplicationValidator.CreateAppCustomFieldByResourceIdParam} arg
496
+ * @param {ContentPlatformApplicationValidator.CreateAnnouncementParam} arg
421
497
  * - Arg object
422
498
  *
423
499
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
424
500
  * @param {import("../PlatformAPIClient").Options} - Options
425
- * @returns {Promise<ContentPlatformModel.CustomFieldsResponseByResourceIdSchema>}
426
- * - Success response
427
- *
428
- * @name createAppCustomFieldByResourceId
429
- * @summary: Create custom field entries for gives resource and resource_id
430
- * @description: You can add a custom field using this endpoint to any resource by providing the resource ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createAppCustomFieldByResourceId/).
501
+ * @returns {Promise<ContentPlatformModel.CreateAnnouncementSchema>} -
502
+ * Success response
503
+ * @name createAnnouncement
504
+ * @summary: Create announcement
505
+ * @description: Generate and add a new announcement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createAnnouncement/).
431
506
  */
432
- async createAppCustomFieldByResourceId(
433
- { resource, resourceId, body, requestHeaders } = { requestHeaders: {} },
507
+ async createAnnouncement(
508
+ { body, requestHeaders } = { requestHeaders: {} },
434
509
  { responseHeaders } = { responseHeaders: false }
435
510
  ) {
436
511
  const {
437
512
  error,
438
- } = ContentPlatformApplicationValidator.createAppCustomFieldByResourceId().validate(
513
+ } = ContentPlatformApplicationValidator.createAnnouncement().validate(
439
514
  {
440
- resource,
441
- resourceId,
442
515
  body,
443
516
  },
444
517
  { abortEarly: false, allowUnknown: true }
@@ -450,10 +523,8 @@ class Content {
450
523
  // Showing warrnings if extra unknown parameters are found
451
524
  const {
452
525
  error: warrning,
453
- } = ContentPlatformApplicationValidator.createAppCustomFieldByResourceId().validate(
526
+ } = ContentPlatformApplicationValidator.createAnnouncement().validate(
454
527
  {
455
- resource,
456
- resourceId,
457
528
  body,
458
529
  },
459
530
  { abortEarly: false, allowUnknown: false }
@@ -461,7 +532,7 @@ class Content {
461
532
  if (warrning) {
462
533
  Logger({
463
534
  level: "WARN",
464
- message: `Parameter Validation warrnings for platform > Content > createAppCustomFieldByResourceId \n ${warrning}`,
535
+ message: `Parameter Validation warrnings for platform > Content > createAnnouncement \n ${warrning}`,
465
536
  });
466
537
  }
467
538
 
@@ -470,7 +541,7 @@ class Content {
470
541
  const response = await PlatformAPIClient.execute(
471
542
  this.config,
472
543
  "post",
473
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/${resource}/${resourceId}`,
544
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/announcements`,
474
545
  query_params,
475
546
  body,
476
547
  requestHeaders,
@@ -484,10 +555,10 @@ class Content {
484
555
 
485
556
  const {
486
557
  error: res_error,
487
- } = ContentPlatformModel.CustomFieldsResponseByResourceIdSchema().validate(
488
- responseData,
489
- { abortEarly: false, allowUnknown: true }
490
- );
558
+ } = ContentPlatformModel.CreateAnnouncementSchema().validate(responseData, {
559
+ abortEarly: false,
560
+ allowUnknown: true,
561
+ });
491
562
 
492
563
  if (res_error) {
493
564
  if (this.config.options.strictResponseCheck === true) {
@@ -495,7 +566,7 @@ class Content {
495
566
  } else {
496
567
  Logger({
497
568
  level: "WARN",
498
- message: `Response Validation Warnings for platform > Content > createAppCustomFieldByResourceId \n ${res_error}`,
569
+ message: `Response Validation Warnings for platform > Content > createAnnouncement \n ${res_error}`,
499
570
  });
500
571
  }
501
572
  }
@@ -513,17 +584,18 @@ class Content {
513
584
  * - Success response
514
585
  *
515
586
  * @name createAppCustomFieldDefinition
516
- * @summary: Create custom field definition
587
+ * @summary: Create custom field definition for a given resource type
517
588
  * @description: You can create custom fields definition to any resource so you can extend property of resource. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createAppCustomFieldDefinition/).
518
589
  */
519
590
  async createAppCustomFieldDefinition(
520
- { body, requestHeaders } = { requestHeaders: {} },
591
+ { resource, body, requestHeaders } = { requestHeaders: {} },
521
592
  { responseHeaders } = { responseHeaders: false }
522
593
  ) {
523
594
  const {
524
595
  error,
525
596
  } = ContentPlatformApplicationValidator.createAppCustomFieldDefinition().validate(
526
597
  {
598
+ resource,
527
599
  body,
528
600
  },
529
601
  { abortEarly: false, allowUnknown: true }
@@ -537,6 +609,7 @@ class Content {
537
609
  error: warrning,
538
610
  } = ContentPlatformApplicationValidator.createAppCustomFieldDefinition().validate(
539
611
  {
612
+ resource,
540
613
  body,
541
614
  },
542
615
  { abortEarly: false, allowUnknown: false }
@@ -553,7 +626,7 @@ class Content {
553
626
  const response = await PlatformAPIClient.execute(
554
627
  this.config,
555
628
  "post",
556
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/definitions`,
629
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/definition`,
557
630
  query_params,
558
631
  body,
559
632
  requestHeaders,
@@ -587,24 +660,25 @@ class Content {
587
660
  }
588
661
 
589
662
  /**
590
- * @param {ContentPlatformApplicationValidator.CreateAppCustomObjectParam} arg
663
+ * @param {ContentPlatformApplicationValidator.CreateAppCustomObjectBySlugParam} arg
591
664
  * - Arg object
592
665
  *
593
666
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
594
667
  * @param {import("../PlatformAPIClient").Options} - Options
595
668
  * @returns {Promise<ContentPlatformModel.CustomObjectSchema>} - Success response
596
- * @name createAppCustomObject
669
+ * @name createAppCustomObjectBySlug
597
670
  * @summary: Create custom object entries
598
- * @description: Custom object entries against the custom object definition can be added using this API. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createAppCustomObject/).
671
+ * @description: Custom object entries against the custom object definition can be added using this API. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createAppCustomObjectBySlug/).
599
672
  */
600
- async createAppCustomObject(
601
- { body, requestHeaders } = { requestHeaders: {} },
673
+ async createAppCustomObjectBySlug(
674
+ { definitionSlug, body, requestHeaders } = { requestHeaders: {} },
602
675
  { responseHeaders } = { responseHeaders: false }
603
676
  ) {
604
677
  const {
605
678
  error,
606
- } = ContentPlatformApplicationValidator.createAppCustomObject().validate(
679
+ } = ContentPlatformApplicationValidator.createAppCustomObjectBySlug().validate(
607
680
  {
681
+ definitionSlug,
608
682
  body,
609
683
  },
610
684
  { abortEarly: false, allowUnknown: true }
@@ -616,8 +690,9 @@ class Content {
616
690
  // Showing warrnings if extra unknown parameters are found
617
691
  const {
618
692
  error: warrning,
619
- } = ContentPlatformApplicationValidator.createAppCustomObject().validate(
693
+ } = ContentPlatformApplicationValidator.createAppCustomObjectBySlug().validate(
620
694
  {
695
+ definitionSlug,
621
696
  body,
622
697
  },
623
698
  { abortEarly: false, allowUnknown: false }
@@ -625,7 +700,7 @@ class Content {
625
700
  if (warrning) {
626
701
  Logger({
627
702
  level: "WARN",
628
- message: `Parameter Validation warrnings for platform > Content > createAppCustomObject \n ${warrning}`,
703
+ message: `Parameter Validation warrnings for platform > Content > createAppCustomObjectBySlug \n ${warrning}`,
629
704
  });
630
705
  }
631
706
 
@@ -634,7 +709,7 @@ class Content {
634
709
  const response = await PlatformAPIClient.execute(
635
710
  this.config,
636
711
  "post",
637
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects`,
712
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries`,
638
713
  query_params,
639
714
  body,
640
715
  requestHeaders,
@@ -659,7 +734,7 @@ class Content {
659
734
  } else {
660
735
  Logger({
661
736
  level: "WARN",
662
- message: `Response Validation Warnings for platform > Content > createAppCustomObject \n ${res_error}`,
737
+ message: `Response Validation Warnings for platform > Content > createAppCustomObjectBySlug \n ${res_error}`,
663
738
  });
664
739
  }
665
740
  }
@@ -673,8 +748,9 @@ class Content {
673
748
  *
674
749
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
675
750
  * @param {import("../PlatformAPIClient").Options} - Options
676
- * @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSchema>} -
677
- * Success response
751
+ * @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSlugSchema>}
752
+ * - Success response
753
+ *
678
754
  * @name createAppCustomObjectDefinition
679
755
  * @summary: Create custom object definition
680
756
  * @description: Create a custom object that will have a collection of custom fields and can be used anywhere in the custom field for any resource. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createAppCustomObjectDefinition/).
@@ -716,7 +792,7 @@ class Content {
716
792
  const response = await PlatformAPIClient.execute(
717
793
  this.config,
718
794
  "post",
719
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/definitions`,
795
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition`,
720
796
  query_params,
721
797
  body,
722
798
  requestHeaders,
@@ -730,7 +806,7 @@ class Content {
730
806
 
731
807
  const {
732
808
  error: res_error,
733
- } = ContentPlatformModel.CustomObjectDefinitionSchema().validate(
809
+ } = ContentPlatformModel.CustomObjectDefinitionSlugSchema().validate(
734
810
  responseData,
735
811
  { abortEarly: false, allowUnknown: true }
736
812
  );
@@ -750,19 +826,23 @@ class Content {
750
826
  }
751
827
 
752
828
  /**
753
- * @param {ContentPlatformApplicationValidator.CreateBlogParam} arg - Arg object
829
+ * @param {ContentPlatformApplicationValidator.CreateApplicationResourceTranslationParam} arg
830
+ * - Arg object
831
+ *
754
832
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
755
833
  * @param {import("../PlatformAPIClient").Options} - Options
756
- * @returns {Promise<ContentPlatformModel.BlogSchema>} - Success response
757
- * @name createBlog
758
- * @summary: Create blog
759
- * @description: Generate and add a new blog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createBlog/).
834
+ * @returns {Promise<ContentPlatformModel.ResourceTranslation>} - Success response
835
+ * @name createApplicationResourceTranslation
836
+ * @summary: Add app translation
837
+ * @description: Create new translations for application resources. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createApplicationResourceTranslation/).
760
838
  */
761
- async createBlog(
839
+ async createApplicationResourceTranslation(
762
840
  { body, requestHeaders } = { requestHeaders: {} },
763
841
  { responseHeaders } = { responseHeaders: false }
764
842
  ) {
765
- const { error } = ContentPlatformApplicationValidator.createBlog().validate(
843
+ const {
844
+ error,
845
+ } = ContentPlatformApplicationValidator.createApplicationResourceTranslation().validate(
766
846
  {
767
847
  body,
768
848
  },
@@ -775,7 +855,7 @@ class Content {
775
855
  // Showing warrnings if extra unknown parameters are found
776
856
  const {
777
857
  error: warrning,
778
- } = ContentPlatformApplicationValidator.createBlog().validate(
858
+ } = ContentPlatformApplicationValidator.createApplicationResourceTranslation().validate(
779
859
  {
780
860
  body,
781
861
  },
@@ -784,7 +864,7 @@ class Content {
784
864
  if (warrning) {
785
865
  Logger({
786
866
  level: "WARN",
787
- message: `Parameter Validation warrnings for platform > Content > createBlog \n ${warrning}`,
867
+ message: `Parameter Validation warrnings for platform > Content > createApplicationResourceTranslation \n ${warrning}`,
788
868
  });
789
869
  }
790
870
 
@@ -793,7 +873,7 @@ class Content {
793
873
  const response = await PlatformAPIClient.execute(
794
874
  this.config,
795
875
  "post",
796
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/blogs`,
876
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/resource/translations`,
797
877
  query_params,
798
878
  body,
799
879
  requestHeaders,
@@ -807,7 +887,7 @@ class Content {
807
887
 
808
888
  const {
809
889
  error: res_error,
810
- } = ContentPlatformModel.BlogSchema().validate(responseData, {
890
+ } = ContentPlatformModel.ResourceTranslation().validate(responseData, {
811
891
  abortEarly: false,
812
892
  allowUnknown: true,
813
893
  });
@@ -818,7 +898,7 @@ class Content {
818
898
  } else {
819
899
  Logger({
820
900
  level: "WARN",
821
- message: `Response Validation Warnings for platform > Content > createBlog \n ${res_error}`,
901
+ message: `Response Validation Warnings for platform > Content > createApplicationResourceTranslation \n ${res_error}`,
822
902
  });
823
903
  }
824
904
  }
@@ -827,23 +907,19 @@ class Content {
827
907
  }
828
908
 
829
909
  /**
830
- * @param {ContentPlatformApplicationValidator.CreateFaqCategoryParam} arg
831
- * - Arg object
832
- *
910
+ * @param {ContentPlatformApplicationValidator.CreateBlogParam} arg - Arg object
833
911
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
834
912
  * @param {import("../PlatformAPIClient").Options} - Options
835
- * @returns {Promise<ContentPlatformModel.CreateFaqCategorySchema>} - Success response
836
- * @name createFaqCategory
837
- * @summary: Create FAQ Category
838
- * @description: Generate and add a new FAQ category. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createFaqCategory/).
913
+ * @returns {Promise<ContentPlatformModel.BlogSchema>} - Success response
914
+ * @name createBlog
915
+ * @summary: Create blog
916
+ * @description: Generate and add a new blog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createBlog/).
839
917
  */
840
- async createFaqCategory(
918
+ async createBlog(
841
919
  { body, requestHeaders } = { requestHeaders: {} },
842
920
  { responseHeaders } = { responseHeaders: false }
843
921
  ) {
844
- const {
845
- error,
846
- } = ContentPlatformApplicationValidator.createFaqCategory().validate(
922
+ const { error } = ContentPlatformApplicationValidator.createBlog().validate(
847
923
  {
848
924
  body,
849
925
  },
@@ -856,7 +932,7 @@ class Content {
856
932
  // Showing warrnings if extra unknown parameters are found
857
933
  const {
858
934
  error: warrning,
859
- } = ContentPlatformApplicationValidator.createFaqCategory().validate(
935
+ } = ContentPlatformApplicationValidator.createBlog().validate(
860
936
  {
861
937
  body,
862
938
  },
@@ -865,7 +941,7 @@ class Content {
865
941
  if (warrning) {
866
942
  Logger({
867
943
  level: "WARN",
868
- message: `Parameter Validation warrnings for platform > Content > createFaqCategory \n ${warrning}`,
944
+ message: `Parameter Validation warrnings for platform > Content > createBlog \n ${warrning}`,
869
945
  });
870
946
  }
871
947
 
@@ -874,7 +950,7 @@ class Content {
874
950
  const response = await PlatformAPIClient.execute(
875
951
  this.config,
876
952
  "post",
877
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/faq/category`,
953
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/blogs/`,
878
954
  query_params,
879
955
  body,
880
956
  requestHeaders,
@@ -888,7 +964,7 @@ class Content {
888
964
 
889
965
  const {
890
966
  error: res_error,
891
- } = ContentPlatformModel.CreateFaqCategorySchema().validate(responseData, {
967
+ } = ContentPlatformModel.BlogSchema().validate(responseData, {
892
968
  abortEarly: false,
893
969
  allowUnknown: true,
894
970
  });
@@ -899,7 +975,7 @@ class Content {
899
975
  } else {
900
976
  Logger({
901
977
  level: "WARN",
902
- message: `Response Validation Warnings for platform > Content > createFaqCategory \n ${res_error}`,
978
+ message: `Response Validation Warnings for platform > Content > createBlog \n ${res_error}`,
903
979
  });
904
980
  }
905
981
  }
@@ -908,23 +984,23 @@ class Content {
908
984
  }
909
985
 
910
986
  /**
911
- * @param {ContentPlatformApplicationValidator.CreateInjectableTagParam} arg
987
+ * @param {ContentPlatformApplicationValidator.CreateFaqCategoryParam} arg
912
988
  * - Arg object
913
989
  *
914
990
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
915
991
  * @param {import("../PlatformAPIClient").Options} - Options
916
- * @returns {Promise<ContentPlatformModel.TagsSchema>} - Success response
917
- * @name createInjectableTag
918
- * @summary: Create HTML tags
919
- * @description: Use this API to create HTML tags. This includes a list of tags with name, tag type (css/js), url and position of the tag - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createInjectableTag/).
992
+ * @returns {Promise<ContentPlatformModel.CreateFaqCategorySchema>} - Success response
993
+ * @name createFaqCategory
994
+ * @summary: Create FAQ Category
995
+ * @description: Generate and add a new FAQ category. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createFaqCategory/).
920
996
  */
921
- async createInjectableTag(
997
+ async createFaqCategory(
922
998
  { body, requestHeaders } = { requestHeaders: {} },
923
999
  { responseHeaders } = { responseHeaders: false }
924
1000
  ) {
925
1001
  const {
926
1002
  error,
927
- } = ContentPlatformApplicationValidator.createInjectableTag().validate(
1003
+ } = ContentPlatformApplicationValidator.createFaqCategory().validate(
928
1004
  {
929
1005
  body,
930
1006
  },
@@ -937,7 +1013,7 @@ class Content {
937
1013
  // Showing warrnings if extra unknown parameters are found
938
1014
  const {
939
1015
  error: warrning,
940
- } = ContentPlatformApplicationValidator.createInjectableTag().validate(
1016
+ } = ContentPlatformApplicationValidator.createFaqCategory().validate(
941
1017
  {
942
1018
  body,
943
1019
  },
@@ -946,7 +1022,7 @@ class Content {
946
1022
  if (warrning) {
947
1023
  Logger({
948
1024
  level: "WARN",
949
- message: `Parameter Validation warrnings for platform > Content > createInjectableTag \n ${warrning}`,
1025
+ message: `Parameter Validation warrnings for platform > Content > createFaqCategory \n ${warrning}`,
950
1026
  });
951
1027
  }
952
1028
 
@@ -955,7 +1031,7 @@ class Content {
955
1031
  const response = await PlatformAPIClient.execute(
956
1032
  this.config,
957
1033
  "post",
958
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/tags`,
1034
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/faq/category`,
959
1035
  query_params,
960
1036
  body,
961
1037
  requestHeaders,
@@ -969,7 +1045,7 @@ class Content {
969
1045
 
970
1046
  const {
971
1047
  error: res_error,
972
- } = ContentPlatformModel.TagsSchema().validate(responseData, {
1048
+ } = ContentPlatformModel.CreateFaqCategorySchema().validate(responseData, {
973
1049
  abortEarly: false,
974
1050
  allowUnknown: true,
975
1051
  });
@@ -980,7 +1056,7 @@ class Content {
980
1056
  } else {
981
1057
  Logger({
982
1058
  level: "WARN",
983
- message: `Response Validation Warnings for platform > Content > createInjectableTag \n ${res_error}`,
1059
+ message: `Response Validation Warnings for platform > Content > createFaqCategory \n ${res_error}`,
984
1060
  });
985
1061
  }
986
1062
  }
@@ -1036,7 +1112,7 @@ class Content {
1036
1112
  const response = await PlatformAPIClient.execute(
1037
1113
  this.config,
1038
1114
  "post",
1039
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/landing-page`,
1115
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/landing-page/`,
1040
1116
  query_params,
1041
1117
  body,
1042
1118
  requestHeaders,
@@ -1115,7 +1191,7 @@ class Content {
1115
1191
  const response = await PlatformAPIClient.execute(
1116
1192
  this.config,
1117
1193
  "post",
1118
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/navigations`,
1194
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/navigations/`,
1119
1195
  query_params,
1120
1196
  body,
1121
1197
  requestHeaders,
@@ -1192,7 +1268,7 @@ class Content {
1192
1268
  const response = await PlatformAPIClient.execute(
1193
1269
  this.config,
1194
1270
  "post",
1195
- `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/pages`,
1271
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/pages/`,
1196
1272
  query_params,
1197
1273
  body,
1198
1274
  requestHeaders,
@@ -1226,23 +1302,23 @@ class Content {
1226
1302
  }
1227
1303
 
1228
1304
  /**
1229
- * @param {ContentPlatformApplicationValidator.CreatePagePreviewParam} arg
1305
+ * @param {ContentPlatformApplicationValidator.CreateSEOMarkupSchemaParam} arg
1230
1306
  * - Arg object
1231
1307
  *
1232
1308
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1233
1309
  * @param {import("../PlatformAPIClient").Options} - Options
1234
- * @returns {Promise<ContentPlatformModel.PageSchema>} - Success response
1235
- * @name createPagePreview
1236
- * @summary: Create page preview
1237
- * @description: Generate and add a new page preview. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createPagePreview/).
1310
+ * @returns {Promise<ContentPlatformModel.SEOSchemaMarkupTemplate>} - Success response
1311
+ * @name createSEOMarkupSchema
1312
+ * @summary: Create SEO Markup Schema
1313
+ * @description: Use this API to Create SEO Markup Schema - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createSEOMarkupSchema/).
1238
1314
  */
1239
- async createPagePreview(
1315
+ async createSEOMarkupSchema(
1240
1316
  { body, requestHeaders } = { requestHeaders: {} },
1241
1317
  { responseHeaders } = { responseHeaders: false }
1242
1318
  ) {
1243
1319
  const {
1244
1320
  error,
1245
- } = ContentPlatformApplicationValidator.createPagePreview().validate(
1321
+ } = ContentPlatformApplicationValidator.createSEOMarkupSchema().validate(
1246
1322
  {
1247
1323
  body,
1248
1324
  },
@@ -1255,7 +1331,7 @@ class Content {
1255
1331
  // Showing warrnings if extra unknown parameters are found
1256
1332
  const {
1257
1333
  error: warrning,
1258
- } = ContentPlatformApplicationValidator.createPagePreview().validate(
1334
+ } = ContentPlatformApplicationValidator.createSEOMarkupSchema().validate(
1259
1335
  {
1260
1336
  body,
1261
1337
  },
@@ -1264,7 +1340,7 @@ class Content {
1264
1340
  if (warrning) {
1265
1341
  Logger({
1266
1342
  level: "WARN",
1267
- message: `Parameter Validation warrnings for platform > Content > createPagePreview \n ${warrning}`,
1343
+ message: `Parameter Validation warrnings for platform > Content > createSEOMarkupSchema \n ${warrning}`,
1268
1344
  });
1269
1345
  }
1270
1346
 
@@ -1273,7 +1349,7 @@ class Content {
1273
1349
  const response = await PlatformAPIClient.execute(
1274
1350
  this.config,
1275
1351
  "post",
1276
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pages/preview`,
1352
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema`,
1277
1353
  query_params,
1278
1354
  body,
1279
1355
  requestHeaders,
@@ -1287,7 +1363,7 @@ class Content {
1287
1363
 
1288
1364
  const {
1289
1365
  error: res_error,
1290
- } = ContentPlatformModel.PageSchema().validate(responseData, {
1366
+ } = ContentPlatformModel.SEOSchemaMarkupTemplate().validate(responseData, {
1291
1367
  abortEarly: false,
1292
1368
  allowUnknown: true,
1293
1369
  });
@@ -1298,7 +1374,7 @@ class Content {
1298
1374
  } else {
1299
1375
  Logger({
1300
1376
  level: "WARN",
1301
- message: `Response Validation Warnings for platform > Content > createPagePreview \n ${res_error}`,
1377
+ message: `Response Validation Warnings for platform > Content > createSEOMarkupSchema \n ${res_error}`,
1302
1378
  });
1303
1379
  }
1304
1380
  }
@@ -1307,23 +1383,23 @@ class Content {
1307
1383
  }
1308
1384
 
1309
1385
  /**
1310
- * @param {ContentPlatformApplicationValidator.CreateSEOMarkupSchemaParam} arg
1386
+ * @param {ContentPlatformApplicationValidator.CreateTranslateUILabelsParam} arg
1311
1387
  * - Arg object
1312
1388
  *
1313
1389
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1314
1390
  * @param {import("../PlatformAPIClient").Options} - Options
1315
- * @returns {Promise<ContentPlatformModel.SEOSchemaMarkupTemplate>} - Success response
1316
- * @name createSEOMarkupSchema
1317
- * @summary: Create SEO Markup Schema
1318
- * @description: Use this API to Create SEO Markup Schema - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createSEOMarkupSchema/).
1391
+ * @returns {Promise<ContentPlatformModel.TranslateUiLabels>} - Success response
1392
+ * @name createTranslateUILabels
1393
+ * @summary: Add Translate Ui Labels
1394
+ * @description: Creates a new Translate Ui Labels entry with specified configuration and locale settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createTranslateUILabels/).
1319
1395
  */
1320
- async createSEOMarkupSchema(
1396
+ async createTranslateUILabels(
1321
1397
  { body, requestHeaders } = { requestHeaders: {} },
1322
1398
  { responseHeaders } = { responseHeaders: false }
1323
1399
  ) {
1324
1400
  const {
1325
1401
  error,
1326
- } = ContentPlatformApplicationValidator.createSEOMarkupSchema().validate(
1402
+ } = ContentPlatformApplicationValidator.createTranslateUILabels().validate(
1327
1403
  {
1328
1404
  body,
1329
1405
  },
@@ -1336,7 +1412,7 @@ class Content {
1336
1412
  // Showing warrnings if extra unknown parameters are found
1337
1413
  const {
1338
1414
  error: warrning,
1339
- } = ContentPlatformApplicationValidator.createSEOMarkupSchema().validate(
1415
+ } = ContentPlatformApplicationValidator.createTranslateUILabels().validate(
1340
1416
  {
1341
1417
  body,
1342
1418
  },
@@ -1345,7 +1421,7 @@ class Content {
1345
1421
  if (warrning) {
1346
1422
  Logger({
1347
1423
  level: "WARN",
1348
- message: `Parameter Validation warrnings for platform > Content > createSEOMarkupSchema \n ${warrning}`,
1424
+ message: `Parameter Validation warrnings for platform > Content > createTranslateUILabels \n ${warrning}`,
1349
1425
  });
1350
1426
  }
1351
1427
 
@@ -1354,7 +1430,7 @@ class Content {
1354
1430
  const response = await PlatformAPIClient.execute(
1355
1431
  this.config,
1356
1432
  "post",
1357
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema`,
1433
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/translate-ui-labels`,
1358
1434
  query_params,
1359
1435
  body,
1360
1436
  requestHeaders,
@@ -1368,7 +1444,7 @@ class Content {
1368
1444
 
1369
1445
  const {
1370
1446
  error: res_error,
1371
- } = ContentPlatformModel.SEOSchemaMarkupTemplate().validate(responseData, {
1447
+ } = ContentPlatformModel.TranslateUiLabels().validate(responseData, {
1372
1448
  abortEarly: false,
1373
1449
  allowUnknown: true,
1374
1450
  });
@@ -1379,7 +1455,7 @@ class Content {
1379
1455
  } else {
1380
1456
  Logger({
1381
1457
  level: "WARN",
1382
- message: `Response Validation Warnings for platform > Content > createSEOMarkupSchema \n ${res_error}`,
1458
+ message: `Response Validation Warnings for platform > Content > createTranslateUILabels \n ${res_error}`,
1383
1459
  });
1384
1460
  }
1385
1461
  }
@@ -1388,24 +1464,27 @@ class Content {
1388
1464
  }
1389
1465
 
1390
1466
  /**
1391
- * @param {ContentPlatformApplicationValidator.DeleteAllInjectableTagsParam} arg
1467
+ * @param {ContentPlatformApplicationValidator.DeleteAnnouncementParam} arg
1392
1468
  * - Arg object
1393
1469
  *
1394
1470
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1395
1471
  * @param {import("../PlatformAPIClient").Options} - Options
1396
- * @returns {Promise<ContentPlatformModel.TagsSchema>} - Success response
1397
- * @name deleteAllInjectableTags
1398
- * @summary: Delete HTML tags in application
1399
- * @description: Use this API to delete all the existing tags at once - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAllInjectableTags/).
1472
+ * @returns {Promise<ContentPlatformModel.CreateAnnouncementSchema>} -
1473
+ * Success response
1474
+ * @name deleteAnnouncement
1475
+ * @summary: Delete an announcement
1476
+ * @description: Remove a specific announcement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAnnouncement/).
1400
1477
  */
1401
- async deleteAllInjectableTags(
1402
- { requestHeaders } = { requestHeaders: {} },
1478
+ async deleteAnnouncement(
1479
+ { announcementId, requestHeaders } = { requestHeaders: {} },
1403
1480
  { responseHeaders } = { responseHeaders: false }
1404
1481
  ) {
1405
1482
  const {
1406
1483
  error,
1407
- } = ContentPlatformApplicationValidator.deleteAllInjectableTags().validate(
1408
- {},
1484
+ } = ContentPlatformApplicationValidator.deleteAnnouncement().validate(
1485
+ {
1486
+ announcementId,
1487
+ },
1409
1488
  { abortEarly: false, allowUnknown: true }
1410
1489
  );
1411
1490
  if (error) {
@@ -1415,14 +1494,16 @@ class Content {
1415
1494
  // Showing warrnings if extra unknown parameters are found
1416
1495
  const {
1417
1496
  error: warrning,
1418
- } = ContentPlatformApplicationValidator.deleteAllInjectableTags().validate(
1419
- {},
1497
+ } = ContentPlatformApplicationValidator.deleteAnnouncement().validate(
1498
+ {
1499
+ announcementId,
1500
+ },
1420
1501
  { abortEarly: false, allowUnknown: false }
1421
1502
  );
1422
1503
  if (warrning) {
1423
1504
  Logger({
1424
1505
  level: "WARN",
1425
- message: `Parameter Validation warrnings for platform > Content > deleteAllInjectableTags \n ${warrning}`,
1506
+ message: `Parameter Validation warrnings for platform > Content > deleteAnnouncement \n ${warrning}`,
1426
1507
  });
1427
1508
  }
1428
1509
 
@@ -1431,7 +1512,7 @@ class Content {
1431
1512
  const response = await PlatformAPIClient.execute(
1432
1513
  this.config,
1433
1514
  "delete",
1434
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/tags`,
1515
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/announcements/${announcementId}`,
1435
1516
  query_params,
1436
1517
  undefined,
1437
1518
  requestHeaders,
@@ -1445,7 +1526,7 @@ class Content {
1445
1526
 
1446
1527
  const {
1447
1528
  error: res_error,
1448
- } = ContentPlatformModel.TagsSchema().validate(responseData, {
1529
+ } = ContentPlatformModel.CreateAnnouncementSchema().validate(responseData, {
1449
1530
  abortEarly: false,
1450
1531
  allowUnknown: true,
1451
1532
  });
@@ -1456,7 +1537,7 @@ class Content {
1456
1537
  } else {
1457
1538
  Logger({
1458
1539
  level: "WARN",
1459
- message: `Response Validation Warnings for platform > Content > deleteAllInjectableTags \n ${res_error}`,
1540
+ message: `Response Validation Warnings for platform > Content > deleteAnnouncement \n ${res_error}`,
1460
1541
  });
1461
1542
  }
1462
1543
  }
@@ -1465,26 +1546,27 @@ class Content {
1465
1546
  }
1466
1547
 
1467
1548
  /**
1468
- * @param {ContentPlatformApplicationValidator.DeleteAnnouncementParam} arg
1549
+ * @param {ContentPlatformApplicationValidator.DeleteAppCustomFieldDefinitionBySlugParam} arg
1469
1550
  * - Arg object
1470
1551
  *
1471
1552
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1472
1553
  * @param {import("../PlatformAPIClient").Options} - Options
1473
- * @returns {Promise<ContentPlatformModel.CreateAnnouncementSchema>} -
1474
- * Success response
1475
- * @name deleteAnnouncement
1476
- * @summary: Delete an announcement
1477
- * @description: Remove a specific announcement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAnnouncement/).
1554
+ * @returns {Promise<ContentPlatformModel.CustomDataDeleteSchema>} - Success response
1555
+ * @name deleteAppCustomFieldDefinitionBySlug
1556
+ * @summary: Delete custom fields definition
1557
+ * @description: Custom field definition and its assosiated custom fields value can be deleted using this api on the basis of definition id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAppCustomFieldDefinitionBySlug/).
1478
1558
  */
1479
- async deleteAnnouncement(
1480
- { announcementId, requestHeaders } = { requestHeaders: {} },
1559
+ async deleteAppCustomFieldDefinitionBySlug(
1560
+ { slug, resource, namespace, requestHeaders } = { requestHeaders: {} },
1481
1561
  { responseHeaders } = { responseHeaders: false }
1482
1562
  ) {
1483
1563
  const {
1484
1564
  error,
1485
- } = ContentPlatformApplicationValidator.deleteAnnouncement().validate(
1565
+ } = ContentPlatformApplicationValidator.deleteAppCustomFieldDefinitionBySlug().validate(
1486
1566
  {
1487
- announcementId,
1567
+ slug,
1568
+ resource,
1569
+ namespace,
1488
1570
  },
1489
1571
  { abortEarly: false, allowUnknown: true }
1490
1572
  );
@@ -1495,16 +1577,18 @@ class Content {
1495
1577
  // Showing warrnings if extra unknown parameters are found
1496
1578
  const {
1497
1579
  error: warrning,
1498
- } = ContentPlatformApplicationValidator.deleteAnnouncement().validate(
1580
+ } = ContentPlatformApplicationValidator.deleteAppCustomFieldDefinitionBySlug().validate(
1499
1581
  {
1500
- announcementId,
1582
+ slug,
1583
+ resource,
1584
+ namespace,
1501
1585
  },
1502
1586
  { abortEarly: false, allowUnknown: false }
1503
1587
  );
1504
1588
  if (warrning) {
1505
1589
  Logger({
1506
1590
  level: "WARN",
1507
- message: `Parameter Validation warrnings for platform > Content > deleteAnnouncement \n ${warrning}`,
1591
+ message: `Parameter Validation warrnings for platform > Content > deleteAppCustomFieldDefinitionBySlug \n ${warrning}`,
1508
1592
  });
1509
1593
  }
1510
1594
 
@@ -1513,7 +1597,7 @@ class Content {
1513
1597
  const response = await PlatformAPIClient.execute(
1514
1598
  this.config,
1515
1599
  "delete",
1516
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/announcements/${announcementId}`,
1600
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/namespace/${namespace}/definition/${slug}`,
1517
1601
  query_params,
1518
1602
  undefined,
1519
1603
  requestHeaders,
@@ -1527,7 +1611,7 @@ class Content {
1527
1611
 
1528
1612
  const {
1529
1613
  error: res_error,
1530
- } = ContentPlatformModel.CreateAnnouncementSchema().validate(responseData, {
1614
+ } = ContentPlatformModel.CustomDataDeleteSchema().validate(responseData, {
1531
1615
  abortEarly: false,
1532
1616
  allowUnknown: true,
1533
1617
  });
@@ -1538,7 +1622,7 @@ class Content {
1538
1622
  } else {
1539
1623
  Logger({
1540
1624
  level: "WARN",
1541
- message: `Response Validation Warnings for platform > Content > deleteAnnouncement \n ${res_error}`,
1625
+ message: `Response Validation Warnings for platform > Content > deleteAppCustomFieldDefinitionBySlug \n ${res_error}`,
1542
1626
  });
1543
1627
  }
1544
1628
  }
@@ -1547,25 +1631,26 @@ class Content {
1547
1631
  }
1548
1632
 
1549
1633
  /**
1550
- * @param {ContentPlatformApplicationValidator.DeleteAppCustomFieldDefinitionParam} arg
1634
+ * @param {ContentPlatformApplicationValidator.DeleteAppCustomObjectBySlugParam} arg
1551
1635
  * - Arg object
1552
1636
  *
1553
1637
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1554
1638
  * @param {import("../PlatformAPIClient").Options} - Options
1555
1639
  * @returns {Promise<ContentPlatformModel.CustomDataDeleteSchema>} - Success response
1556
- * @name deleteAppCustomFieldDefinition
1557
- * @summary: Delete custom fields definition
1558
- * @description: Custom field definition and its assosiated custom fields value can be deleted using this api on the basis of definition id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAppCustomFieldDefinition/).
1640
+ * @name deleteAppCustomObjectBySlug
1641
+ * @summary: Delete custom object
1642
+ * @description: A Custom object entry can be deleted by providing the custom object definition slug and custom object entry slug using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAppCustomObjectBySlug/).
1559
1643
  */
1560
- async deleteAppCustomFieldDefinition(
1561
- { id, requestHeaders } = { requestHeaders: {} },
1644
+ async deleteAppCustomObjectBySlug(
1645
+ { definitionSlug, slug, requestHeaders } = { requestHeaders: {} },
1562
1646
  { responseHeaders } = { responseHeaders: false }
1563
1647
  ) {
1564
1648
  const {
1565
1649
  error,
1566
- } = ContentPlatformApplicationValidator.deleteAppCustomFieldDefinition().validate(
1650
+ } = ContentPlatformApplicationValidator.deleteAppCustomObjectBySlug().validate(
1567
1651
  {
1568
- id,
1652
+ definitionSlug,
1653
+ slug,
1569
1654
  },
1570
1655
  { abortEarly: false, allowUnknown: true }
1571
1656
  );
@@ -1576,16 +1661,17 @@ class Content {
1576
1661
  // Showing warrnings if extra unknown parameters are found
1577
1662
  const {
1578
1663
  error: warrning,
1579
- } = ContentPlatformApplicationValidator.deleteAppCustomFieldDefinition().validate(
1664
+ } = ContentPlatformApplicationValidator.deleteAppCustomObjectBySlug().validate(
1580
1665
  {
1581
- id,
1666
+ definitionSlug,
1667
+ slug,
1582
1668
  },
1583
1669
  { abortEarly: false, allowUnknown: false }
1584
1670
  );
1585
1671
  if (warrning) {
1586
1672
  Logger({
1587
1673
  level: "WARN",
1588
- message: `Parameter Validation warrnings for platform > Content > deleteAppCustomFieldDefinition \n ${warrning}`,
1674
+ message: `Parameter Validation warrnings for platform > Content > deleteAppCustomObjectBySlug \n ${warrning}`,
1589
1675
  });
1590
1676
  }
1591
1677
 
@@ -1594,7 +1680,7 @@ class Content {
1594
1680
  const response = await PlatformAPIClient.execute(
1595
1681
  this.config,
1596
1682
  "delete",
1597
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/definitions/${id}`,
1683
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries/${slug}`,
1598
1684
  query_params,
1599
1685
  undefined,
1600
1686
  requestHeaders,
@@ -1619,7 +1705,7 @@ class Content {
1619
1705
  } else {
1620
1706
  Logger({
1621
1707
  level: "WARN",
1622
- message: `Response Validation Warnings for platform > Content > deleteAppCustomFieldDefinition \n ${res_error}`,
1708
+ message: `Response Validation Warnings for platform > Content > deleteAppCustomObjectBySlug \n ${res_error}`,
1623
1709
  });
1624
1710
  }
1625
1711
  }
@@ -1628,28 +1714,27 @@ class Content {
1628
1714
  }
1629
1715
 
1630
1716
  /**
1631
- * @param {ContentPlatformApplicationValidator.DeleteAppCustomFieldsByResourceIdParam} arg
1717
+ * @param {ContentPlatformApplicationValidator.DeleteAppCustomObjectDefinitionBySlugParam} arg
1632
1718
  * - Arg object
1633
1719
  *
1634
1720
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1635
1721
  * @param {import("../PlatformAPIClient").Options} - Options
1636
- * @returns {Promise<ContentPlatformModel.CustomFieldsDeleteSchema>} -
1637
- * Success response
1638
- * @name deleteAppCustomFieldsByResourceId
1639
- * @summary: delete custom fields of given resource and resource id
1640
- * @description: Use this API to delete the custom fields for given resource in param. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAppCustomFieldsByResourceId/).
1722
+ * @returns {Promise<ContentPlatformModel.CustomObjectDefinitionDeleteResponseSchema>}
1723
+ * - Success response
1724
+ *
1725
+ * @name deleteAppCustomObjectDefinitionBySlug
1726
+ * @summary: Delete custom object definition
1727
+ * @description: Custom object definitions can be deleted using this endpoint by providing the definition ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAppCustomObjectDefinitionBySlug/).
1641
1728
  */
1642
- async deleteAppCustomFieldsByResourceId(
1643
- { resource, resourceId, ids, requestHeaders } = { requestHeaders: {} },
1729
+ async deleteAppCustomObjectDefinitionBySlug(
1730
+ { slug, requestHeaders } = { requestHeaders: {} },
1644
1731
  { responseHeaders } = { responseHeaders: false }
1645
1732
  ) {
1646
1733
  const {
1647
1734
  error,
1648
- } = ContentPlatformApplicationValidator.deleteAppCustomFieldsByResourceId().validate(
1735
+ } = ContentPlatformApplicationValidator.deleteAppCustomObjectDefinitionBySlug().validate(
1649
1736
  {
1650
- resource,
1651
- resourceId,
1652
- ids,
1737
+ slug,
1653
1738
  },
1654
1739
  { abortEarly: false, allowUnknown: true }
1655
1740
  );
@@ -1660,28 +1745,25 @@ class Content {
1660
1745
  // Showing warrnings if extra unknown parameters are found
1661
1746
  const {
1662
1747
  error: warrning,
1663
- } = ContentPlatformApplicationValidator.deleteAppCustomFieldsByResourceId().validate(
1748
+ } = ContentPlatformApplicationValidator.deleteAppCustomObjectDefinitionBySlug().validate(
1664
1749
  {
1665
- resource,
1666
- resourceId,
1667
- ids,
1750
+ slug,
1668
1751
  },
1669
1752
  { abortEarly: false, allowUnknown: false }
1670
1753
  );
1671
1754
  if (warrning) {
1672
1755
  Logger({
1673
1756
  level: "WARN",
1674
- message: `Parameter Validation warrnings for platform > Content > deleteAppCustomFieldsByResourceId \n ${warrning}`,
1757
+ message: `Parameter Validation warrnings for platform > Content > deleteAppCustomObjectDefinitionBySlug \n ${warrning}`,
1675
1758
  });
1676
1759
  }
1677
1760
 
1678
1761
  const query_params = {};
1679
- query_params["ids"] = ids;
1680
1762
 
1681
1763
  const response = await PlatformAPIClient.execute(
1682
1764
  this.config,
1683
1765
  "delete",
1684
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/${resource}/${resourceId}`,
1766
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}`,
1685
1767
  query_params,
1686
1768
  undefined,
1687
1769
  requestHeaders,
@@ -1695,10 +1777,10 @@ class Content {
1695
1777
 
1696
1778
  const {
1697
1779
  error: res_error,
1698
- } = ContentPlatformModel.CustomFieldsDeleteSchema().validate(responseData, {
1699
- abortEarly: false,
1700
- allowUnknown: true,
1701
- });
1780
+ } = ContentPlatformModel.CustomObjectDefinitionDeleteResponseSchema().validate(
1781
+ responseData,
1782
+ { abortEarly: false, allowUnknown: true }
1783
+ );
1702
1784
 
1703
1785
  if (res_error) {
1704
1786
  if (this.config.options.strictResponseCheck === true) {
@@ -1706,7 +1788,7 @@ class Content {
1706
1788
  } else {
1707
1789
  Logger({
1708
1790
  level: "WARN",
1709
- message: `Response Validation Warnings for platform > Content > deleteAppCustomFieldsByResourceId \n ${res_error}`,
1791
+ message: `Response Validation Warnings for platform > Content > deleteAppCustomObjectDefinitionBySlug \n ${res_error}`,
1710
1792
  });
1711
1793
  }
1712
1794
  }
@@ -1715,25 +1797,25 @@ class Content {
1715
1797
  }
1716
1798
 
1717
1799
  /**
1718
- * @param {ContentPlatformApplicationValidator.DeleteAppCustomObjectParam} arg
1800
+ * @param {ContentPlatformApplicationValidator.DeleteApplicationLanguageParam} arg
1719
1801
  * - Arg object
1720
1802
  *
1721
1803
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1722
1804
  * @param {import("../PlatformAPIClient").Options} - Options
1723
- * @returns {Promise<ContentPlatformModel.CustomDataDeleteSchema>} - Success response
1724
- * @name deleteAppCustomObject
1725
- * @summary: Delete custom object
1726
- * @description: Custom object entries can be deleted by providing the delete ID using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAppCustomObject/).
1805
+ * @returns {Promise<ContentPlatformModel.OperationResponseSchema>} - Success response
1806
+ * @name deleteApplicationLanguage
1807
+ * @summary: Remove app language
1808
+ * @description: Remove a language from application's supported languages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteApplicationLanguage/).
1727
1809
  */
1728
- async deleteAppCustomObject(
1729
- { id, requestHeaders } = { requestHeaders: {} },
1810
+ async deleteApplicationLanguage(
1811
+ { locale, requestHeaders } = { requestHeaders: {} },
1730
1812
  { responseHeaders } = { responseHeaders: false }
1731
1813
  ) {
1732
1814
  const {
1733
1815
  error,
1734
- } = ContentPlatformApplicationValidator.deleteAppCustomObject().validate(
1816
+ } = ContentPlatformApplicationValidator.deleteApplicationLanguage().validate(
1735
1817
  {
1736
- id,
1818
+ locale,
1737
1819
  },
1738
1820
  { abortEarly: false, allowUnknown: true }
1739
1821
  );
@@ -1744,16 +1826,16 @@ class Content {
1744
1826
  // Showing warrnings if extra unknown parameters are found
1745
1827
  const {
1746
1828
  error: warrning,
1747
- } = ContentPlatformApplicationValidator.deleteAppCustomObject().validate(
1829
+ } = ContentPlatformApplicationValidator.deleteApplicationLanguage().validate(
1748
1830
  {
1749
- id,
1831
+ locale,
1750
1832
  },
1751
1833
  { abortEarly: false, allowUnknown: false }
1752
1834
  );
1753
1835
  if (warrning) {
1754
1836
  Logger({
1755
1837
  level: "WARN",
1756
- message: `Parameter Validation warrnings for platform > Content > deleteAppCustomObject \n ${warrning}`,
1838
+ message: `Parameter Validation warrnings for platform > Content > deleteApplicationLanguage \n ${warrning}`,
1757
1839
  });
1758
1840
  }
1759
1841
 
@@ -1762,7 +1844,7 @@ class Content {
1762
1844
  const response = await PlatformAPIClient.execute(
1763
1845
  this.config,
1764
1846
  "delete",
1765
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/${id}`,
1847
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/languages/${locale}`,
1766
1848
  query_params,
1767
1849
  undefined,
1768
1850
  requestHeaders,
@@ -1776,7 +1858,7 @@ class Content {
1776
1858
 
1777
1859
  const {
1778
1860
  error: res_error,
1779
- } = ContentPlatformModel.CustomDataDeleteSchema().validate(responseData, {
1861
+ } = ContentPlatformModel.OperationResponseSchema().validate(responseData, {
1780
1862
  abortEarly: false,
1781
1863
  allowUnknown: true,
1782
1864
  });
@@ -1787,7 +1869,7 @@ class Content {
1787
1869
  } else {
1788
1870
  Logger({
1789
1871
  level: "WARN",
1790
- message: `Response Validation Warnings for platform > Content > deleteAppCustomObject \n ${res_error}`,
1872
+ message: `Response Validation Warnings for platform > Content > deleteApplicationLanguage \n ${res_error}`,
1791
1873
  });
1792
1874
  }
1793
1875
  }
@@ -1796,25 +1878,23 @@ class Content {
1796
1878
  }
1797
1879
 
1798
1880
  /**
1799
- * @param {ContentPlatformApplicationValidator.DeleteAppCustomObjectDefinitionParam} arg
1881
+ * @param {ContentPlatformApplicationValidator.DeleteApplicationResourceTranslationParam} arg
1800
1882
  * - Arg object
1801
1883
  *
1802
1884
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1803
1885
  * @param {import("../PlatformAPIClient").Options} - Options
1804
- * @returns {Promise<ContentPlatformModel.CustomObjectDefinitionDeleteResponseSchema>}
1805
- * - Success response
1806
- *
1807
- * @name deleteAppCustomObjectDefinition
1808
- * @summary: Delete custom object definition
1809
- * @description: Custom object definitions can be deleted using this endpoint by providing the definition ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAppCustomObjectDefinition/).
1886
+ * @returns {Promise<ContentPlatformModel.OperationResponseSchema>} - Success response
1887
+ * @name deleteApplicationResourceTranslation
1888
+ * @summary: Remove app translation
1889
+ * @description: Remove translations for application resources. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteApplicationResourceTranslation/).
1810
1890
  */
1811
- async deleteAppCustomObjectDefinition(
1891
+ async deleteApplicationResourceTranslation(
1812
1892
  { id, requestHeaders } = { requestHeaders: {} },
1813
1893
  { responseHeaders } = { responseHeaders: false }
1814
1894
  ) {
1815
1895
  const {
1816
1896
  error,
1817
- } = ContentPlatformApplicationValidator.deleteAppCustomObjectDefinition().validate(
1897
+ } = ContentPlatformApplicationValidator.deleteApplicationResourceTranslation().validate(
1818
1898
  {
1819
1899
  id,
1820
1900
  },
@@ -1827,7 +1907,7 @@ class Content {
1827
1907
  // Showing warrnings if extra unknown parameters are found
1828
1908
  const {
1829
1909
  error: warrning,
1830
- } = ContentPlatformApplicationValidator.deleteAppCustomObjectDefinition().validate(
1910
+ } = ContentPlatformApplicationValidator.deleteApplicationResourceTranslation().validate(
1831
1911
  {
1832
1912
  id,
1833
1913
  },
@@ -1836,7 +1916,7 @@ class Content {
1836
1916
  if (warrning) {
1837
1917
  Logger({
1838
1918
  level: "WARN",
1839
- message: `Parameter Validation warrnings for platform > Content > deleteAppCustomObjectDefinition \n ${warrning}`,
1919
+ message: `Parameter Validation warrnings for platform > Content > deleteApplicationResourceTranslation \n ${warrning}`,
1840
1920
  });
1841
1921
  }
1842
1922
 
@@ -1845,7 +1925,7 @@ class Content {
1845
1925
  const response = await PlatformAPIClient.execute(
1846
1926
  this.config,
1847
1927
  "delete",
1848
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/definitions/${id}`,
1928
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/resource/translations/${id}`,
1849
1929
  query_params,
1850
1930
  undefined,
1851
1931
  requestHeaders,
@@ -1859,10 +1939,10 @@ class Content {
1859
1939
 
1860
1940
  const {
1861
1941
  error: res_error,
1862
- } = ContentPlatformModel.CustomObjectDefinitionDeleteResponseSchema().validate(
1863
- responseData,
1864
- { abortEarly: false, allowUnknown: true }
1865
- );
1942
+ } = ContentPlatformModel.OperationResponseSchema().validate(responseData, {
1943
+ abortEarly: false,
1944
+ allowUnknown: true,
1945
+ });
1866
1946
 
1867
1947
  if (res_error) {
1868
1948
  if (this.config.options.strictResponseCheck === true) {
@@ -1870,7 +1950,7 @@ class Content {
1870
1950
  } else {
1871
1951
  Logger({
1872
1952
  level: "WARN",
1873
- message: `Response Validation Warnings for platform > Content > deleteAppCustomObjectDefinition \n ${res_error}`,
1953
+ message: `Response Validation Warnings for platform > Content > deleteApplicationResourceTranslation \n ${res_error}`,
1874
1954
  });
1875
1955
  }
1876
1956
  }
@@ -2120,7 +2200,7 @@ class Content {
2120
2200
  *
2121
2201
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2122
2202
  * @param {import("../PlatformAPIClient").Options} - Options
2123
- * @returns {Promise<ContentPlatformModel.CreateFaqCategorySchema>} - Success response
2203
+ * @returns {Promise<ContentPlatformModel.FaqSchema>} - Success response
2124
2204
  * @name deleteFaqCategory
2125
2205
  * @summary: Delete FAQ category
2126
2206
  * @description: Remove a specific FAQ category. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteFaqCategory/).
@@ -2176,7 +2256,7 @@ class Content {
2176
2256
 
2177
2257
  const {
2178
2258
  error: res_error,
2179
- } = ContentPlatformModel.CreateFaqCategorySchema().validate(responseData, {
2259
+ } = ContentPlatformModel.FaqSchema().validate(responseData, {
2180
2260
  abortEarly: false,
2181
2261
  allowUnknown: true,
2182
2262
  });
@@ -2438,7 +2518,7 @@ class Content {
2438
2518
  *
2439
2519
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2440
2520
  * @param {import("../PlatformAPIClient").Options} - Options
2441
- * @returns {Promise<ContentPlatformModel.DeletPathMappingSchema>} - Success response
2521
+ * @returns {Promise<Object>} - Success response
2442
2522
  * @name deletePathRedirectionRules
2443
2523
  * @summary: Delete path redirection rule
2444
2524
  * @description: Remove specific path redirection rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deletePathRedirectionRules/).
@@ -2492,9 +2572,7 @@ class Content {
2492
2572
  responseData = response[0];
2493
2573
  }
2494
2574
 
2495
- const {
2496
- error: res_error,
2497
- } = ContentPlatformModel.DeletPathMappingSchema().validate(responseData, {
2575
+ const { error: res_error } = Joi.any().validate(responseData, {
2498
2576
  abortEarly: false,
2499
2577
  allowUnknown: true,
2500
2578
  });
@@ -2525,14 +2603,14 @@ class Content {
2525
2603
  * @description: Use this API to Delete SEO Markup Schema - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteSEOMarkupSchema/).
2526
2604
  */
2527
2605
  async deleteSEOMarkupSchema(
2528
- { schemaId, requestHeaders } = { requestHeaders: {} },
2606
+ { id, requestHeaders } = { requestHeaders: {} },
2529
2607
  { responseHeaders } = { responseHeaders: false }
2530
2608
  ) {
2531
2609
  const {
2532
2610
  error,
2533
2611
  } = ContentPlatformApplicationValidator.deleteSEOMarkupSchema().validate(
2534
2612
  {
2535
- schemaId,
2613
+ id,
2536
2614
  },
2537
2615
  { abortEarly: false, allowUnknown: true }
2538
2616
  );
@@ -2545,7 +2623,7 @@ class Content {
2545
2623
  error: warrning,
2546
2624
  } = ContentPlatformApplicationValidator.deleteSEOMarkupSchema().validate(
2547
2625
  {
2548
- schemaId,
2626
+ id,
2549
2627
  },
2550
2628
  { abortEarly: false, allowUnknown: false }
2551
2629
  );
@@ -2561,7 +2639,7 @@ class Content {
2561
2639
  const response = await PlatformAPIClient.execute(
2562
2640
  this.config,
2563
2641
  "delete",
2564
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema/${schemaId}`,
2642
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema/${id}`,
2565
2643
  query_params,
2566
2644
  undefined,
2567
2645
  requestHeaders,
@@ -2685,7 +2763,7 @@ class Content {
2685
2763
  * @returns {Promise<ContentPlatformModel.TagsSchema>} - Success response
2686
2764
  * @name editInjectableTag
2687
2765
  * @summary: Update HTML tag
2688
- * @description: Modify an injectable tag - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/editInjectableTag/).
2766
+ * @description: Modify settings for an injectable tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/editInjectableTag/).
2689
2767
  */
2690
2768
  async editInjectableTag(
2691
2769
  { tagId, body, requestHeaders } = { requestHeaders: {} },
@@ -2767,18 +2845,18 @@ class Content {
2767
2845
  * @param {import("../PlatformAPIClient").Options} - Options
2768
2846
  * @returns {Promise<ContentPlatformModel.SEOSchemaMarkupTemplate>} - Success response
2769
2847
  * @name editSEOMarkupSchema
2770
- * @summary: Edit SEO Markup Schema
2771
- * @description: Use this API to edit SEO Markup Schema - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/editSEOMarkupSchema/).
2848
+ * @summary: Get SEO Markup Schema
2849
+ * @description: Use this API to Get SEO Markup Schema - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/editSEOMarkupSchema/).
2772
2850
  */
2773
2851
  async editSEOMarkupSchema(
2774
- { schemaId, body, requestHeaders } = { requestHeaders: {} },
2852
+ { id, body, requestHeaders } = { requestHeaders: {} },
2775
2853
  { responseHeaders } = { responseHeaders: false }
2776
2854
  ) {
2777
2855
  const {
2778
2856
  error,
2779
2857
  } = ContentPlatformApplicationValidator.editSEOMarkupSchema().validate(
2780
2858
  {
2781
- schemaId,
2859
+ id,
2782
2860
  body,
2783
2861
  },
2784
2862
  { abortEarly: false, allowUnknown: true }
@@ -2792,7 +2870,7 @@ class Content {
2792
2870
  error: warrning,
2793
2871
  } = ContentPlatformApplicationValidator.editSEOMarkupSchema().validate(
2794
2872
  {
2795
- schemaId,
2873
+ id,
2796
2874
  body,
2797
2875
  },
2798
2876
  { abortEarly: false, allowUnknown: false }
@@ -2809,7 +2887,7 @@ class Content {
2809
2887
  const response = await PlatformAPIClient.execute(
2810
2888
  this.config,
2811
2889
  "put",
2812
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema/${schemaId}`,
2890
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema/${id}`,
2813
2891
  query_params,
2814
2892
  body,
2815
2893
  requestHeaders,
@@ -2843,7 +2921,7 @@ class Content {
2843
2921
  }
2844
2922
 
2845
2923
  /**
2846
- * @param {ContentPlatformApplicationValidator.ExportAppCustomObjectEntriesParam} arg
2924
+ * @param {ContentPlatformApplicationValidator.ExportAppCustomObjectEntriesBySlugParam} arg
2847
2925
  * - Arg object
2848
2926
  *
2849
2927
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -2851,19 +2929,19 @@ class Content {
2851
2929
  * @returns {Promise<ContentPlatformModel.CustomObjectBulkEntryInitiateDownload>}
2852
2930
  * - Success response
2853
2931
  *
2854
- * @name exportAppCustomObjectEntries
2932
+ * @name exportAppCustomObjectEntriesBySlug
2855
2933
  * @summary: Initiate download for bulk custom object entries
2856
- * @description: Custom object bulk export of bulk entries can be perform using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/exportAppCustomObjectEntries/).
2934
+ * @description: Custom object bulk export of bulk entries can be perform using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/exportAppCustomObjectEntriesBySlug/).
2857
2935
  */
2858
- async exportAppCustomObjectEntries(
2859
- { definitionId, requestHeaders } = { requestHeaders: {} },
2936
+ async exportAppCustomObjectEntriesBySlug(
2937
+ { slug, requestHeaders } = { requestHeaders: {} },
2860
2938
  { responseHeaders } = { responseHeaders: false }
2861
2939
  ) {
2862
2940
  const {
2863
2941
  error,
2864
- } = ContentPlatformApplicationValidator.exportAppCustomObjectEntries().validate(
2942
+ } = ContentPlatformApplicationValidator.exportAppCustomObjectEntriesBySlug().validate(
2865
2943
  {
2866
- definitionId,
2944
+ slug,
2867
2945
  },
2868
2946
  { abortEarly: false, allowUnknown: true }
2869
2947
  );
@@ -2874,16 +2952,16 @@ class Content {
2874
2952
  // Showing warrnings if extra unknown parameters are found
2875
2953
  const {
2876
2954
  error: warrning,
2877
- } = ContentPlatformApplicationValidator.exportAppCustomObjectEntries().validate(
2955
+ } = ContentPlatformApplicationValidator.exportAppCustomObjectEntriesBySlug().validate(
2878
2956
  {
2879
- definitionId,
2957
+ slug,
2880
2958
  },
2881
2959
  { abortEarly: false, allowUnknown: false }
2882
2960
  );
2883
2961
  if (warrning) {
2884
2962
  Logger({
2885
2963
  level: "WARN",
2886
- message: `Parameter Validation warrnings for platform > Content > exportAppCustomObjectEntries \n ${warrning}`,
2964
+ message: `Parameter Validation warrnings for platform > Content > exportAppCustomObjectEntriesBySlug \n ${warrning}`,
2887
2965
  });
2888
2966
  }
2889
2967
 
@@ -2892,7 +2970,7 @@ class Content {
2892
2970
  const response = await PlatformAPIClient.execute(
2893
2971
  this.config,
2894
2972
  "get",
2895
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/bulk/${definitionId}/download`,
2973
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}/bulk/download`,
2896
2974
  query_params,
2897
2975
  undefined,
2898
2976
  requestHeaders,
@@ -2917,7 +2995,7 @@ class Content {
2917
2995
  } else {
2918
2996
  Logger({
2919
2997
  level: "WARN",
2920
- message: `Response Validation Warnings for platform > Content > exportAppCustomObjectEntries \n ${res_error}`,
2998
+ message: `Response Validation Warnings for platform > Content > exportAppCustomObjectEntriesBySlug \n ${res_error}`,
2921
2999
  });
2922
3000
  }
2923
3001
  }
@@ -3174,27 +3252,41 @@ class Content {
3174
3252
  }
3175
3253
 
3176
3254
  /**
3177
- * @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionParam} arg
3255
+ * @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionByResourceParam} arg
3178
3256
  * - Arg object
3179
3257
  *
3180
3258
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3181
3259
  * @param {import("../PlatformAPIClient").Options} - Options
3182
- * @returns {Promise<ContentPlatformModel.CustomFieldDefinitionDetailResSchema>}
3183
- * - Success response
3184
- *
3185
- * @name getAppCustomFieldDefinition
3186
- * @summary: Get custom fields definition by id
3187
- * @description: Use this API to retrieve the definitions of custom fields using definition_id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldDefinition/).
3260
+ * @returns {Promise<ContentPlatformModel.CustomFieldDefinitionsSchema>} -
3261
+ * Success response
3262
+ * @name getAppCustomFieldDefinitionByResource
3263
+ * @summary: Get custom fields definitions for a given resource type
3264
+ * @description: Custom field definitions enable you to include data validation for custom fields, and enable sellers to add custom fields values for resources. With the help of this seller can retrive list of custom field definitions list. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldDefinitionByResource/).
3188
3265
  */
3189
- async getAppCustomFieldDefinition(
3190
- { id, requestHeaders } = { requestHeaders: {} },
3266
+ async getAppCustomFieldDefinitionByResource(
3267
+ {
3268
+ pageNo,
3269
+ pageSize,
3270
+ resource,
3271
+ types,
3272
+ search,
3273
+ slugs,
3274
+ namespaces,
3275
+ requestHeaders,
3276
+ } = { requestHeaders: {} },
3191
3277
  { responseHeaders } = { responseHeaders: false }
3192
3278
  ) {
3193
3279
  const {
3194
3280
  error,
3195
- } = ContentPlatformApplicationValidator.getAppCustomFieldDefinition().validate(
3281
+ } = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionByResource().validate(
3196
3282
  {
3197
- id,
3283
+ pageNo,
3284
+ pageSize,
3285
+ resource,
3286
+ types,
3287
+ search,
3288
+ slugs,
3289
+ namespaces,
3198
3290
  },
3199
3291
  { abortEarly: false, allowUnknown: true }
3200
3292
  );
@@ -3205,25 +3297,37 @@ class Content {
3205
3297
  // Showing warrnings if extra unknown parameters are found
3206
3298
  const {
3207
3299
  error: warrning,
3208
- } = ContentPlatformApplicationValidator.getAppCustomFieldDefinition().validate(
3300
+ } = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionByResource().validate(
3209
3301
  {
3210
- id,
3302
+ pageNo,
3303
+ pageSize,
3304
+ resource,
3305
+ types,
3306
+ search,
3307
+ slugs,
3308
+ namespaces,
3211
3309
  },
3212
3310
  { abortEarly: false, allowUnknown: false }
3213
3311
  );
3214
3312
  if (warrning) {
3215
3313
  Logger({
3216
3314
  level: "WARN",
3217
- message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinition \n ${warrning}`,
3315
+ message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinitionByResource \n ${warrning}`,
3218
3316
  });
3219
3317
  }
3220
3318
 
3221
3319
  const query_params = {};
3320
+ query_params["page_no"] = pageNo;
3321
+ query_params["page_size"] = pageSize;
3322
+ query_params["types"] = types;
3323
+ query_params["search"] = search;
3324
+ query_params["slugs"] = slugs;
3325
+ query_params["namespaces"] = namespaces;
3222
3326
 
3223
3327
  const response = await PlatformAPIClient.execute(
3224
3328
  this.config,
3225
3329
  "get",
3226
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/definitions/${id}`,
3330
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/definition`,
3227
3331
  query_params,
3228
3332
  undefined,
3229
3333
  requestHeaders,
@@ -3237,7 +3341,7 @@ class Content {
3237
3341
 
3238
3342
  const {
3239
3343
  error: res_error,
3240
- } = ContentPlatformModel.CustomFieldDefinitionDetailResSchema().validate(
3344
+ } = ContentPlatformModel.CustomFieldDefinitionsSchema().validate(
3241
3345
  responseData,
3242
3346
  { abortEarly: false, allowUnknown: true }
3243
3347
  );
@@ -3248,7 +3352,7 @@ class Content {
3248
3352
  } else {
3249
3353
  Logger({
3250
3354
  level: "WARN",
3251
- message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinition \n ${res_error}`,
3355
+ message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinitionByResource \n ${res_error}`,
3252
3356
  });
3253
3357
  }
3254
3358
  }
@@ -3257,34 +3361,29 @@ class Content {
3257
3361
  }
3258
3362
 
3259
3363
  /**
3260
- * @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionsParam} arg
3364
+ * @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionBySlugParam} arg
3261
3365
  * - Arg object
3262
3366
  *
3263
3367
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3264
3368
  * @param {import("../PlatformAPIClient").Options} - Options
3265
- * @returns {Promise<ContentPlatformModel.ApplicationCustomFieldDefinitionsSchema>}
3369
+ * @returns {Promise<ContentPlatformModel.MetaFieldDefinitionDetailResSchema>}
3266
3370
  * - Success response
3267
3371
  *
3268
- * @name getAppCustomFieldDefinitions
3269
- * @summary: Get custom fields definitions
3270
- * @description: Custom field definitions enable you to include data validation for custom fields, and enable sellers to add custom fields values for resources. With the help of this seller can retrive list of custom field definitions list. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldDefinitions/).
3372
+ * @name getAppCustomFieldDefinitionBySlug
3373
+ * @summary: Get custom fields definition by resource, slug and namespace
3374
+ * @description: Custom field definitions can be retrived from this using its slug, namespace and resource - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldDefinitionBySlug/).
3271
3375
  */
3272
- async getAppCustomFieldDefinitions(
3273
- { pageNo, pageSize, resources, types, search, slugs, requestHeaders } = {
3274
- requestHeaders: {},
3275
- },
3376
+ async getAppCustomFieldDefinitionBySlug(
3377
+ { slug, resource, namespace, requestHeaders } = { requestHeaders: {} },
3276
3378
  { responseHeaders } = { responseHeaders: false }
3277
3379
  ) {
3278
3380
  const {
3279
3381
  error,
3280
- } = ContentPlatformApplicationValidator.getAppCustomFieldDefinitions().validate(
3382
+ } = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionBySlug().validate(
3281
3383
  {
3282
- pageNo,
3283
- pageSize,
3284
- resources,
3285
- types,
3286
- search,
3287
- slugs,
3384
+ slug,
3385
+ resource,
3386
+ namespace,
3288
3387
  },
3289
3388
  { abortEarly: false, allowUnknown: true }
3290
3389
  );
@@ -3295,36 +3394,27 @@ class Content {
3295
3394
  // Showing warrnings if extra unknown parameters are found
3296
3395
  const {
3297
3396
  error: warrning,
3298
- } = ContentPlatformApplicationValidator.getAppCustomFieldDefinitions().validate(
3397
+ } = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionBySlug().validate(
3299
3398
  {
3300
- pageNo,
3301
- pageSize,
3302
- resources,
3303
- types,
3304
- search,
3305
- slugs,
3399
+ slug,
3400
+ resource,
3401
+ namespace,
3306
3402
  },
3307
3403
  { abortEarly: false, allowUnknown: false }
3308
3404
  );
3309
3405
  if (warrning) {
3310
3406
  Logger({
3311
3407
  level: "WARN",
3312
- message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinitions \n ${warrning}`,
3408
+ message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinitionBySlug \n ${warrning}`,
3313
3409
  });
3314
3410
  }
3315
3411
 
3316
3412
  const query_params = {};
3317
- query_params["page_no"] = pageNo;
3318
- query_params["page_size"] = pageSize;
3319
- query_params["resources"] = resources;
3320
- query_params["types"] = types;
3321
- query_params["search"] = search;
3322
- query_params["slugs"] = slugs;
3323
3413
 
3324
3414
  const response = await PlatformAPIClient.execute(
3325
3415
  this.config,
3326
3416
  "get",
3327
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/definitions`,
3417
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/namespace/${namespace}/definition/${slug}`,
3328
3418
  query_params,
3329
3419
  undefined,
3330
3420
  requestHeaders,
@@ -3338,7 +3428,7 @@ class Content {
3338
3428
 
3339
3429
  const {
3340
3430
  error: res_error,
3341
- } = ContentPlatformModel.ApplicationCustomFieldDefinitionsSchema().validate(
3431
+ } = ContentPlatformModel.MetaFieldDefinitionDetailResSchema().validate(
3342
3432
  responseData,
3343
3433
  { abortEarly: false, allowUnknown: true }
3344
3434
  );
@@ -3349,7 +3439,7 @@ class Content {
3349
3439
  } else {
3350
3440
  Logger({
3351
3441
  level: "WARN",
3352
- message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinitions \n ${res_error}`,
3442
+ message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinitionBySlug \n ${res_error}`,
3353
3443
  });
3354
3444
  }
3355
3445
  }
@@ -3358,27 +3448,41 @@ class Content {
3358
3448
  }
3359
3449
 
3360
3450
  /**
3361
- * @param {ContentPlatformApplicationValidator.GetAppCustomFieldJobsParam} arg
3451
+ * @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionsParam} arg
3362
3452
  * - Arg object
3363
3453
  *
3364
3454
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3365
3455
  * @param {import("../PlatformAPIClient").Options} - Options
3366
- * @returns {Promise<ContentPlatformModel.CustomFieldBulkEntry>} - Success response
3367
- * @name getAppCustomFieldJobs
3368
- * @summary: Fetch bulk import and export job list.
3369
- * @description: Use this api to get list of jobs of bulk import and exports - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldJobs/).
3456
+ * @returns {Promise<ContentPlatformModel.CustomFieldDefinitionsSchema>} -
3457
+ * Success response
3458
+ * @name getAppCustomFieldDefinitions
3459
+ * @summary: Get custom fields definitions
3460
+ * @description: Custom field definitions enable you to include data validation for custom fields, and enable sellers to add custom fields values for resources. With the help of this seller can retrive list of custom field definitions list. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldDefinitions/).
3370
3461
  */
3371
- async getAppCustomFieldJobs(
3372
- { page, pageSize, actionType, requestHeaders } = { requestHeaders: {} },
3462
+ async getAppCustomFieldDefinitions(
3463
+ {
3464
+ pageNo,
3465
+ pageSize,
3466
+ resources,
3467
+ types,
3468
+ search,
3469
+ slugs,
3470
+ namespaces,
3471
+ requestHeaders,
3472
+ } = { requestHeaders: {} },
3373
3473
  { responseHeaders } = { responseHeaders: false }
3374
3474
  ) {
3375
3475
  const {
3376
3476
  error,
3377
- } = ContentPlatformApplicationValidator.getAppCustomFieldJobs().validate(
3477
+ } = ContentPlatformApplicationValidator.getAppCustomFieldDefinitions().validate(
3378
3478
  {
3379
- page,
3479
+ pageNo,
3380
3480
  pageSize,
3381
- actionType,
3481
+ resources,
3482
+ types,
3483
+ search,
3484
+ slugs,
3485
+ namespaces,
3382
3486
  },
3383
3487
  { abortEarly: false, allowUnknown: true }
3384
3488
  );
@@ -3389,30 +3493,38 @@ class Content {
3389
3493
  // Showing warrnings if extra unknown parameters are found
3390
3494
  const {
3391
3495
  error: warrning,
3392
- } = ContentPlatformApplicationValidator.getAppCustomFieldJobs().validate(
3496
+ } = ContentPlatformApplicationValidator.getAppCustomFieldDefinitions().validate(
3393
3497
  {
3394
- page,
3498
+ pageNo,
3395
3499
  pageSize,
3396
- actionType,
3500
+ resources,
3501
+ types,
3502
+ search,
3503
+ slugs,
3504
+ namespaces,
3397
3505
  },
3398
3506
  { abortEarly: false, allowUnknown: false }
3399
3507
  );
3400
3508
  if (warrning) {
3401
3509
  Logger({
3402
3510
  level: "WARN",
3403
- message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldJobs \n ${warrning}`,
3511
+ message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinitions \n ${warrning}`,
3404
3512
  });
3405
3513
  }
3406
3514
 
3407
3515
  const query_params = {};
3408
- query_params["page"] = page;
3516
+ query_params["page_no"] = pageNo;
3409
3517
  query_params["page_size"] = pageSize;
3410
- query_params["action_type"] = actionType;
3518
+ query_params["resources"] = resources;
3519
+ query_params["types"] = types;
3520
+ query_params["search"] = search;
3521
+ query_params["slugs"] = slugs;
3522
+ query_params["namespaces"] = namespaces;
3411
3523
 
3412
3524
  const response = await PlatformAPIClient.execute(
3413
3525
  this.config,
3414
3526
  "get",
3415
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/jobs`,
3527
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/definition`,
3416
3528
  query_params,
3417
3529
  undefined,
3418
3530
  requestHeaders,
@@ -3426,10 +3538,10 @@ class Content {
3426
3538
 
3427
3539
  const {
3428
3540
  error: res_error,
3429
- } = ContentPlatformModel.CustomFieldBulkEntry().validate(responseData, {
3430
- abortEarly: false,
3431
- allowUnknown: true,
3432
- });
3541
+ } = ContentPlatformModel.CustomFieldDefinitionsSchema().validate(
3542
+ responseData,
3543
+ { abortEarly: false, allowUnknown: true }
3544
+ );
3433
3545
 
3434
3546
  if (res_error) {
3435
3547
  if (this.config.options.strictResponseCheck === true) {
@@ -3437,7 +3549,7 @@ class Content {
3437
3549
  } else {
3438
3550
  Logger({
3439
3551
  level: "WARN",
3440
- message: `Response Validation Warnings for platform > Content > getAppCustomFieldJobs \n ${res_error}`,
3552
+ message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinitions \n ${res_error}`,
3441
3553
  });
3442
3554
  }
3443
3555
  }
@@ -3523,89 +3635,7 @@ class Content {
3523
3635
  }
3524
3636
 
3525
3637
  /**
3526
- * @param {ContentPlatformApplicationValidator.GetAppCustomFieldsParam} arg
3527
- * - Arg object
3528
- *
3529
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3530
- * @param {import("../PlatformAPIClient").Options} - Options
3531
- * @returns {Promise<ContentPlatformModel.CustomFieldsResponseSchema>} -
3532
- * Success response
3533
- * @name getAppCustomFields
3534
- * @summary: Get list of custom fields of gives resource
3535
- * @description: Retrieves a list of custom fields attached to a particular resource by using the resource. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFields/).
3536
- */
3537
- async getAppCustomFields(
3538
- { resource, requestHeaders } = { requestHeaders: {} },
3539
- { responseHeaders } = { responseHeaders: false }
3540
- ) {
3541
- const {
3542
- error,
3543
- } = ContentPlatformApplicationValidator.getAppCustomFields().validate(
3544
- {
3545
- resource,
3546
- },
3547
- { abortEarly: false, allowUnknown: true }
3548
- );
3549
- if (error) {
3550
- return Promise.reject(new FDKClientValidationError(error));
3551
- }
3552
-
3553
- // Showing warrnings if extra unknown parameters are found
3554
- const {
3555
- error: warrning,
3556
- } = ContentPlatformApplicationValidator.getAppCustomFields().validate(
3557
- {
3558
- resource,
3559
- },
3560
- { abortEarly: false, allowUnknown: false }
3561
- );
3562
- if (warrning) {
3563
- Logger({
3564
- level: "WARN",
3565
- message: `Parameter Validation warrnings for platform > Content > getAppCustomFields \n ${warrning}`,
3566
- });
3567
- }
3568
-
3569
- const query_params = {};
3570
-
3571
- const response = await PlatformAPIClient.execute(
3572
- this.config,
3573
- "get",
3574
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/${resource}`,
3575
- query_params,
3576
- undefined,
3577
- requestHeaders,
3578
- { responseHeaders }
3579
- );
3580
-
3581
- let responseData = response;
3582
- if (responseHeaders) {
3583
- responseData = response[0];
3584
- }
3585
-
3586
- const {
3587
- error: res_error,
3588
- } = ContentPlatformModel.CustomFieldsResponseSchema().validate(
3589
- responseData,
3590
- { abortEarly: false, allowUnknown: true }
3591
- );
3592
-
3593
- if (res_error) {
3594
- if (this.config.options.strictResponseCheck === true) {
3595
- return Promise.reject(new FDKResponseValidationError(res_error));
3596
- } else {
3597
- Logger({
3598
- level: "WARN",
3599
- message: `Response Validation Warnings for platform > Content > getAppCustomFields \n ${res_error}`,
3600
- });
3601
- }
3602
- }
3603
-
3604
- return response;
3605
- }
3606
-
3607
- /**
3608
- * @param {ContentPlatformApplicationValidator.GetAppCustomFieldsByResourceIdParam} arg
3638
+ * @param {ContentPlatformApplicationValidator.GetAppCustomFieldsByResourceSlugParam} arg
3609
3639
  * - Arg object
3610
3640
  *
3611
3641
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -3613,20 +3643,20 @@ class Content {
3613
3643
  * @returns {Promise<ContentPlatformModel.CustomFieldsResponseByResourceIdSchema>}
3614
3644
  * - Success response
3615
3645
  *
3616
- * @name getAppCustomFieldsByResourceId
3617
- * @summary: Get list of custom fields of given resource and resource id
3618
- * @description: Retrieves a list of custom fields attached to a particular resource by using the resource and resource id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldsByResourceId/).
3646
+ * @name getAppCustomFieldsByResourceSlug
3647
+ * @summary: Get list of custom fields of given resource and resource slug
3648
+ * @description: Retrieves a list of custom fields attached to a particular resource by using the resource and resource slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldsByResourceSlug/).
3619
3649
  */
3620
- async getAppCustomFieldsByResourceId(
3621
- { resource, resourceId, requestHeaders } = { requestHeaders: {} },
3650
+ async getAppCustomFieldsByResourceSlug(
3651
+ { resource, resourceSlug, requestHeaders } = { requestHeaders: {} },
3622
3652
  { responseHeaders } = { responseHeaders: false }
3623
3653
  ) {
3624
3654
  const {
3625
3655
  error,
3626
- } = ContentPlatformApplicationValidator.getAppCustomFieldsByResourceId().validate(
3656
+ } = ContentPlatformApplicationValidator.getAppCustomFieldsByResourceSlug().validate(
3627
3657
  {
3628
3658
  resource,
3629
- resourceId,
3659
+ resourceSlug,
3630
3660
  },
3631
3661
  { abortEarly: false, allowUnknown: true }
3632
3662
  );
@@ -3637,17 +3667,17 @@ class Content {
3637
3667
  // Showing warrnings if extra unknown parameters are found
3638
3668
  const {
3639
3669
  error: warrning,
3640
- } = ContentPlatformApplicationValidator.getAppCustomFieldsByResourceId().validate(
3670
+ } = ContentPlatformApplicationValidator.getAppCustomFieldsByResourceSlug().validate(
3641
3671
  {
3642
3672
  resource,
3643
- resourceId,
3673
+ resourceSlug,
3644
3674
  },
3645
3675
  { abortEarly: false, allowUnknown: false }
3646
3676
  );
3647
3677
  if (warrning) {
3648
3678
  Logger({
3649
3679
  level: "WARN",
3650
- message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldsByResourceId \n ${warrning}`,
3680
+ message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldsByResourceSlug \n ${warrning}`,
3651
3681
  });
3652
3682
  }
3653
3683
 
@@ -3656,7 +3686,7 @@ class Content {
3656
3686
  const response = await PlatformAPIClient.execute(
3657
3687
  this.config,
3658
3688
  "get",
3659
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/${resource}/${resourceId}`,
3689
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/${resourceSlug}`,
3660
3690
  query_params,
3661
3691
  undefined,
3662
3692
  requestHeaders,
@@ -3681,7 +3711,7 @@ class Content {
3681
3711
  } else {
3682
3712
  Logger({
3683
3713
  level: "WARN",
3684
- message: `Response Validation Warnings for platform > Content > getAppCustomFieldsByResourceId \n ${res_error}`,
3714
+ message: `Response Validation Warnings for platform > Content > getAppCustomFieldsByResourceSlug \n ${res_error}`,
3685
3715
  });
3686
3716
  }
3687
3717
  }
@@ -3690,25 +3720,27 @@ class Content {
3690
3720
  }
3691
3721
 
3692
3722
  /**
3693
- * @param {ContentPlatformApplicationValidator.GetAppCustomObjectParam} arg
3723
+ * @param {ContentPlatformApplicationValidator.GetAppCustomObjectBySlugParam} arg
3694
3724
  * - Arg object
3695
3725
  *
3696
3726
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3697
3727
  * @param {import("../PlatformAPIClient").Options} - Options
3698
- * @returns {Promise<ContentPlatformModel.CustomObjectByIdSchema>} - Success response
3699
- * @name getAppCustomObject
3728
+ * @returns {Promise<ContentPlatformModel.CustomObjectBySlugSchema>} -
3729
+ * Success response
3730
+ * @name getAppCustomObjectBySlug
3700
3731
  * @summary: Get custom object details
3701
- * @description: Details of custom objects, their field details, definitions, and references can be obtained using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomObject/).
3732
+ * @description: Details of a custom object entry can be obtained using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomObjectBySlug/).
3702
3733
  */
3703
- async getAppCustomObject(
3704
- { id, requestHeaders } = { requestHeaders: {} },
3734
+ async getAppCustomObjectBySlug(
3735
+ { definitionSlug, slug, requestHeaders } = { requestHeaders: {} },
3705
3736
  { responseHeaders } = { responseHeaders: false }
3706
3737
  ) {
3707
3738
  const {
3708
3739
  error,
3709
- } = ContentPlatformApplicationValidator.getAppCustomObject().validate(
3740
+ } = ContentPlatformApplicationValidator.getAppCustomObjectBySlug().validate(
3710
3741
  {
3711
- id,
3742
+ definitionSlug,
3743
+ slug,
3712
3744
  },
3713
3745
  { abortEarly: false, allowUnknown: true }
3714
3746
  );
@@ -3719,16 +3751,17 @@ class Content {
3719
3751
  // Showing warrnings if extra unknown parameters are found
3720
3752
  const {
3721
3753
  error: warrning,
3722
- } = ContentPlatformApplicationValidator.getAppCustomObject().validate(
3754
+ } = ContentPlatformApplicationValidator.getAppCustomObjectBySlug().validate(
3723
3755
  {
3724
- id,
3756
+ definitionSlug,
3757
+ slug,
3725
3758
  },
3726
3759
  { abortEarly: false, allowUnknown: false }
3727
3760
  );
3728
3761
  if (warrning) {
3729
3762
  Logger({
3730
3763
  level: "WARN",
3731
- message: `Parameter Validation warrnings for platform > Content > getAppCustomObject \n ${warrning}`,
3764
+ message: `Parameter Validation warrnings for platform > Content > getAppCustomObjectBySlug \n ${warrning}`,
3732
3765
  });
3733
3766
  }
3734
3767
 
@@ -3737,7 +3770,7 @@ class Content {
3737
3770
  const response = await PlatformAPIClient.execute(
3738
3771
  this.config,
3739
3772
  "get",
3740
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/${id}`,
3773
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries/${slug}`,
3741
3774
  query_params,
3742
3775
  undefined,
3743
3776
  requestHeaders,
@@ -3751,7 +3784,7 @@ class Content {
3751
3784
 
3752
3785
  const {
3753
3786
  error: res_error,
3754
- } = ContentPlatformModel.CustomObjectByIdSchema().validate(responseData, {
3787
+ } = ContentPlatformModel.CustomObjectBySlugSchema().validate(responseData, {
3755
3788
  abortEarly: false,
3756
3789
  allowUnknown: true,
3757
3790
  });
@@ -3762,7 +3795,7 @@ class Content {
3762
3795
  } else {
3763
3796
  Logger({
3764
3797
  level: "WARN",
3765
- message: `Response Validation Warnings for platform > Content > getAppCustomObject \n ${res_error}`,
3798
+ message: `Response Validation Warnings for platform > Content > getAppCustomObjectBySlug \n ${res_error}`,
3766
3799
  });
3767
3800
  }
3768
3801
  }
@@ -3771,26 +3804,27 @@ class Content {
3771
3804
  }
3772
3805
 
3773
3806
  /**
3774
- * @param {ContentPlatformApplicationValidator.GetAppCustomObjectDefinitionParam} arg
3807
+ * @param {ContentPlatformApplicationValidator.GetAppCustomObjectDefinitionBySlugParam} arg
3775
3808
  * - Arg object
3776
3809
  *
3777
3810
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3778
3811
  * @param {import("../PlatformAPIClient").Options} - Options
3779
- * @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSchema>} -
3780
- * Success response
3781
- * @name getAppCustomObjectDefinition
3812
+ * @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSlugSchema>}
3813
+ * - Success response
3814
+ *
3815
+ * @name getAppCustomObjectDefinitionBySlug
3782
3816
  * @summary: Get custom object definition
3783
- * @description: Custom object definitions can be fetched using their definition ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomObjectDefinition/).
3817
+ * @description: Custom object definitions can be fetched using their custom object definition slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomObjectDefinitionBySlug/).
3784
3818
  */
3785
- async getAppCustomObjectDefinition(
3786
- { id, requestHeaders } = { requestHeaders: {} },
3819
+ async getAppCustomObjectDefinitionBySlug(
3820
+ { slug, requestHeaders } = { requestHeaders: {} },
3787
3821
  { responseHeaders } = { responseHeaders: false }
3788
3822
  ) {
3789
3823
  const {
3790
3824
  error,
3791
- } = ContentPlatformApplicationValidator.getAppCustomObjectDefinition().validate(
3825
+ } = ContentPlatformApplicationValidator.getAppCustomObjectDefinitionBySlug().validate(
3792
3826
  {
3793
- id,
3827
+ slug,
3794
3828
  },
3795
3829
  { abortEarly: false, allowUnknown: true }
3796
3830
  );
@@ -3801,16 +3835,16 @@ class Content {
3801
3835
  // Showing warrnings if extra unknown parameters are found
3802
3836
  const {
3803
3837
  error: warrning,
3804
- } = ContentPlatformApplicationValidator.getAppCustomObjectDefinition().validate(
3838
+ } = ContentPlatformApplicationValidator.getAppCustomObjectDefinitionBySlug().validate(
3805
3839
  {
3806
- id,
3840
+ slug,
3807
3841
  },
3808
3842
  { abortEarly: false, allowUnknown: false }
3809
3843
  );
3810
3844
  if (warrning) {
3811
3845
  Logger({
3812
3846
  level: "WARN",
3813
- message: `Parameter Validation warrnings for platform > Content > getAppCustomObjectDefinition \n ${warrning}`,
3847
+ message: `Parameter Validation warrnings for platform > Content > getAppCustomObjectDefinitionBySlug \n ${warrning}`,
3814
3848
  });
3815
3849
  }
3816
3850
 
@@ -3819,7 +3853,7 @@ class Content {
3819
3853
  const response = await PlatformAPIClient.execute(
3820
3854
  this.config,
3821
3855
  "get",
3822
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/definitions/${id}`,
3856
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}`,
3823
3857
  query_params,
3824
3858
  undefined,
3825
3859
  requestHeaders,
@@ -3833,7 +3867,7 @@ class Content {
3833
3867
 
3834
3868
  const {
3835
3869
  error: res_error,
3836
- } = ContentPlatformModel.CustomObjectDefinitionSchema().validate(
3870
+ } = ContentPlatformModel.CustomObjectDefinitionSlugSchema().validate(
3837
3871
  responseData,
3838
3872
  { abortEarly: false, allowUnknown: true }
3839
3873
  );
@@ -3844,7 +3878,7 @@ class Content {
3844
3878
  } else {
3845
3879
  Logger({
3846
3880
  level: "WARN",
3847
- message: `Response Validation Warnings for platform > Content > getAppCustomObjectDefinition \n ${res_error}`,
3881
+ message: `Response Validation Warnings for platform > Content > getAppCustomObjectDefinitionBySlug \n ${res_error}`,
3848
3882
  });
3849
3883
  }
3850
3884
  }
@@ -3908,7 +3942,7 @@ class Content {
3908
3942
  const response = await PlatformAPIClient.execute(
3909
3943
  this.config,
3910
3944
  "get",
3911
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/definitions`,
3945
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition`,
3912
3946
  query_params,
3913
3947
  undefined,
3914
3948
  requestHeaders,
@@ -3942,27 +3976,29 @@ class Content {
3942
3976
  }
3943
3977
 
3944
3978
  /**
3945
- * @param {ContentPlatformApplicationValidator.GetAppCustomObjectsParam} arg
3979
+ * @param {ContentPlatformApplicationValidator.GetAppCustomObjectsBySlugParam} arg
3946
3980
  * - Arg object
3947
3981
  *
3948
3982
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3949
3983
  * @param {import("../PlatformAPIClient").Options} - Options
3950
3984
  * @returns {Promise<ContentPlatformModel.CustomObjectsSchema>} - Success response
3951
- * @name getAppCustomObjects
3985
+ * @name getAppCustomObjectsBySlug
3952
3986
  * @summary: Get list of custom objects
3953
- * @description: Custom object entries can fetch using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomObjects/).
3987
+ * @description: Custom object entries can fetch using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomObjectsBySlug/).
3954
3988
  */
3955
- async getAppCustomObjects(
3956
- { pageNo, pageSize, definitionId, requestHeaders } = { requestHeaders: {} },
3989
+ async getAppCustomObjectsBySlug(
3990
+ { pageNo, pageSize, definitionSlug, requestHeaders } = {
3991
+ requestHeaders: {},
3992
+ },
3957
3993
  { responseHeaders } = { responseHeaders: false }
3958
3994
  ) {
3959
3995
  const {
3960
3996
  error,
3961
- } = ContentPlatformApplicationValidator.getAppCustomObjects().validate(
3997
+ } = ContentPlatformApplicationValidator.getAppCustomObjectsBySlug().validate(
3962
3998
  {
3963
3999
  pageNo,
3964
4000
  pageSize,
3965
- definitionId,
4001
+ definitionSlug,
3966
4002
  },
3967
4003
  { abortEarly: false, allowUnknown: true }
3968
4004
  );
@@ -3973,30 +4009,29 @@ class Content {
3973
4009
  // Showing warrnings if extra unknown parameters are found
3974
4010
  const {
3975
4011
  error: warrning,
3976
- } = ContentPlatformApplicationValidator.getAppCustomObjects().validate(
4012
+ } = ContentPlatformApplicationValidator.getAppCustomObjectsBySlug().validate(
3977
4013
  {
3978
4014
  pageNo,
3979
4015
  pageSize,
3980
- definitionId,
4016
+ definitionSlug,
3981
4017
  },
3982
4018
  { abortEarly: false, allowUnknown: false }
3983
4019
  );
3984
4020
  if (warrning) {
3985
4021
  Logger({
3986
4022
  level: "WARN",
3987
- message: `Parameter Validation warrnings for platform > Content > getAppCustomObjects \n ${warrning}`,
4023
+ message: `Parameter Validation warrnings for platform > Content > getAppCustomObjectsBySlug \n ${warrning}`,
3988
4024
  });
3989
4025
  }
3990
4026
 
3991
4027
  const query_params = {};
3992
- query_params["definition_id"] = definitionId;
3993
4028
  query_params["page_no"] = pageNo;
3994
4029
  query_params["page_size"] = pageSize;
3995
4030
 
3996
4031
  const response = await PlatformAPIClient.execute(
3997
4032
  this.config,
3998
4033
  "get",
3999
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects`,
4034
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries`,
4000
4035
  query_params,
4001
4036
  undefined,
4002
4037
  requestHeaders,
@@ -4021,7 +4056,7 @@ class Content {
4021
4056
  } else {
4022
4057
  Logger({
4023
4058
  level: "WARN",
4024
- message: `Response Validation Warnings for platform > Content > getAppCustomObjects \n ${res_error}`,
4059
+ message: `Response Validation Warnings for platform > Content > getAppCustomObjectsBySlug \n ${res_error}`,
4025
4060
  });
4026
4061
  }
4027
4062
  }
@@ -4189,24 +4224,24 @@ class Content {
4189
4224
  }
4190
4225
 
4191
4226
  /**
4192
- * @param {ContentPlatformApplicationValidator.GetBlogBySlugParam} arg - Arg object
4227
+ * @param {ContentPlatformApplicationValidator.GetApplicationLanguagesParam} arg
4228
+ * - Arg object
4229
+ *
4193
4230
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4194
4231
  * @param {import("../PlatformAPIClient").Options} - Options
4195
- * @returns {Promise<ContentPlatformModel.BlogSchema>} - Success response
4196
- * @name getBlogBySlug
4197
- * @summary: Get blog by slug.
4198
- * @description: Retrieve detailed information about a specific blog using its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getBlogBySlug/).
4232
+ * @returns {Promise<Object>} - Success response
4233
+ * @name getApplicationLanguages
4234
+ * @summary: Get app languages
4235
+ * @description: Fetch all languages configured for the specified application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getApplicationLanguages/).
4199
4236
  */
4200
- async getBlogBySlug(
4201
- { slug, requestHeaders } = { requestHeaders: {} },
4237
+ async getApplicationLanguages(
4238
+ { requestHeaders } = { requestHeaders: {} },
4202
4239
  { responseHeaders } = { responseHeaders: false }
4203
4240
  ) {
4204
4241
  const {
4205
4242
  error,
4206
- } = ContentPlatformApplicationValidator.getBlogBySlug().validate(
4207
- {
4208
- slug,
4209
- },
4243
+ } = ContentPlatformApplicationValidator.getApplicationLanguages().validate(
4244
+ {},
4210
4245
  { abortEarly: false, allowUnknown: true }
4211
4246
  );
4212
4247
  if (error) {
@@ -4216,16 +4251,14 @@ class Content {
4216
4251
  // Showing warrnings if extra unknown parameters are found
4217
4252
  const {
4218
4253
  error: warrning,
4219
- } = ContentPlatformApplicationValidator.getBlogBySlug().validate(
4220
- {
4221
- slug,
4222
- },
4254
+ } = ContentPlatformApplicationValidator.getApplicationLanguages().validate(
4255
+ {},
4223
4256
  { abortEarly: false, allowUnknown: false }
4224
4257
  );
4225
4258
  if (warrning) {
4226
4259
  Logger({
4227
4260
  level: "WARN",
4228
- message: `Parameter Validation warrnings for platform > Content > getBlogBySlug \n ${warrning}`,
4261
+ message: `Parameter Validation warrnings for platform > Content > getApplicationLanguages \n ${warrning}`,
4229
4262
  });
4230
4263
  }
4231
4264
 
@@ -4234,7 +4267,7 @@ class Content {
4234
4267
  const response = await PlatformAPIClient.execute(
4235
4268
  this.config,
4236
4269
  "get",
4237
- `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/blogs/${slug}`,
4270
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/languages`,
4238
4271
  query_params,
4239
4272
  undefined,
4240
4273
  requestHeaders,
@@ -4246,9 +4279,7 @@ class Content {
4246
4279
  responseData = response[0];
4247
4280
  }
4248
4281
 
4249
- const {
4250
- error: res_error,
4251
- } = ContentPlatformModel.BlogSchema().validate(responseData, {
4282
+ const { error: res_error } = Joi.any().validate(responseData, {
4252
4283
  abortEarly: false,
4253
4284
  allowUnknown: true,
4254
4285
  });
@@ -4259,7 +4290,7 @@ class Content {
4259
4290
  } else {
4260
4291
  Logger({
4261
4292
  level: "WARN",
4262
- message: `Response Validation Warnings for platform > Content > getBlogBySlug \n ${res_error}`,
4293
+ message: `Response Validation Warnings for platform > Content > getApplicationLanguages \n ${res_error}`,
4263
4294
  });
4264
4295
  }
4265
4296
  }
@@ -4268,29 +4299,27 @@ class Content {
4268
4299
  }
4269
4300
 
4270
4301
  /**
4271
- * @param {ContentPlatformApplicationValidator.GetBlogsParam} arg - Arg object
4302
+ * @param {ContentPlatformApplicationValidator.GetApplicationResourceTranslationsParam} arg
4303
+ * - Arg object
4304
+ *
4272
4305
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4273
4306
  * @param {import("../PlatformAPIClient").Options} - Options
4274
- * @returns {Promise<ContentPlatformModel.BlogGetResponse>} - Success response
4275
- * @name getBlogs
4276
- * @summary: List blogs
4277
- * @description: List all blogs - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getBlogs/).
4307
+ * @returns {Promise<Object>} - Success response
4308
+ * @name getApplicationResourceTranslations
4309
+ * @summary: Get app translations
4310
+ * @description: Fetch translations for application-level resources. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getApplicationResourceTranslations/).
4278
4311
  */
4279
- async getBlogs(
4280
- { pageNo, pageSize, tags, q, slug, title, status, requestHeaders } = {
4281
- requestHeaders: {},
4282
- },
4312
+ async getApplicationResourceTranslations(
4313
+ { locale, type, resourceId, requestHeaders } = { requestHeaders: {} },
4283
4314
  { responseHeaders } = { responseHeaders: false }
4284
4315
  ) {
4285
- const { error } = ContentPlatformApplicationValidator.getBlogs().validate(
4316
+ const {
4317
+ error,
4318
+ } = ContentPlatformApplicationValidator.getApplicationResourceTranslations().validate(
4286
4319
  {
4287
- pageNo,
4288
- pageSize,
4289
- tags,
4290
- q,
4291
- slug,
4292
- title,
4293
- status,
4320
+ locale,
4321
+ type,
4322
+ resourceId,
4294
4323
  },
4295
4324
  { abortEarly: false, allowUnknown: true }
4296
4325
  );
@@ -4301,38 +4330,30 @@ class Content {
4301
4330
  // Showing warrnings if extra unknown parameters are found
4302
4331
  const {
4303
4332
  error: warrning,
4304
- } = ContentPlatformApplicationValidator.getBlogs().validate(
4333
+ } = ContentPlatformApplicationValidator.getApplicationResourceTranslations().validate(
4305
4334
  {
4306
- pageNo,
4307
- pageSize,
4308
- tags,
4309
- q,
4310
- slug,
4311
- title,
4312
- status,
4335
+ locale,
4336
+ type,
4337
+ resourceId,
4313
4338
  },
4314
4339
  { abortEarly: false, allowUnknown: false }
4315
4340
  );
4316
4341
  if (warrning) {
4317
4342
  Logger({
4318
4343
  level: "WARN",
4319
- message: `Parameter Validation warrnings for platform > Content > getBlogs \n ${warrning}`,
4344
+ message: `Parameter Validation warrnings for platform > Content > getApplicationResourceTranslations \n ${warrning}`,
4320
4345
  });
4321
4346
  }
4322
4347
 
4323
4348
  const query_params = {};
4324
- query_params["page_no"] = pageNo;
4325
- query_params["page_size"] = pageSize;
4326
- query_params["tags"] = tags;
4327
- query_params["q"] = q;
4328
- query_params["slug"] = slug;
4329
- query_params["title"] = title;
4330
- query_params["status"] = status;
4349
+ query_params["locale"] = locale;
4350
+ query_params["type"] = type;
4351
+ query_params["resource_id"] = resourceId;
4331
4352
 
4332
4353
  const response = await PlatformAPIClient.execute(
4333
4354
  this.config,
4334
4355
  "get",
4335
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/blogs`,
4356
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/resource/translations`,
4336
4357
  query_params,
4337
4358
  undefined,
4338
4359
  requestHeaders,
@@ -4344,9 +4365,7 @@ class Content {
4344
4365
  responseData = response[0];
4345
4366
  }
4346
4367
 
4347
- const {
4348
- error: res_error,
4349
- } = ContentPlatformModel.BlogGetResponse().validate(responseData, {
4368
+ const { error: res_error } = Joi.any().validate(responseData, {
4350
4369
  abortEarly: false,
4351
4370
  allowUnknown: true,
4352
4371
  });
@@ -4357,7 +4376,7 @@ class Content {
4357
4376
  } else {
4358
4377
  Logger({
4359
4378
  level: "WARN",
4360
- message: `Response Validation Warnings for platform > Content > getBlogs \n ${res_error}`,
4379
+ message: `Response Validation Warnings for platform > Content > getApplicationResourceTranslations \n ${res_error}`,
4361
4380
  });
4362
4381
  }
4363
4382
  }
@@ -4366,21 +4385,21 @@ class Content {
4366
4385
  }
4367
4386
 
4368
4387
  /**
4369
- * @param {ContentPlatformApplicationValidator.GetComponentByIdParam} arg - Arg object
4388
+ * @param {ContentPlatformApplicationValidator.GetBlogBySlugParam} arg - Arg object
4370
4389
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4371
4390
  * @param {import("../PlatformAPIClient").Options} - Options
4372
4391
  * @returns {Promise<ContentPlatformModel.BlogSchema>} - Success response
4373
- * @name getComponentById
4374
- * @summary: Get component
4375
- * @description: Retrieve detailed information about a specific component. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getComponentById/).
4392
+ * @name getBlogBySlug
4393
+ * @summary: Get blog by slug
4394
+ * @description: Retrieve detailed information about a specific blog using its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getBlogBySlug/).
4376
4395
  */
4377
- async getComponentById(
4396
+ async getBlogBySlug(
4378
4397
  { slug, requestHeaders } = { requestHeaders: {} },
4379
4398
  { responseHeaders } = { responseHeaders: false }
4380
4399
  ) {
4381
4400
  const {
4382
4401
  error,
4383
- } = ContentPlatformApplicationValidator.getComponentById().validate(
4402
+ } = ContentPlatformApplicationValidator.getBlogBySlug().validate(
4384
4403
  {
4385
4404
  slug,
4386
4405
  },
@@ -4393,7 +4412,7 @@ class Content {
4393
4412
  // Showing warrnings if extra unknown parameters are found
4394
4413
  const {
4395
4414
  error: warrning,
4396
- } = ContentPlatformApplicationValidator.getComponentById().validate(
4415
+ } = ContentPlatformApplicationValidator.getBlogBySlug().validate(
4397
4416
  {
4398
4417
  slug,
4399
4418
  },
@@ -4402,7 +4421,7 @@ class Content {
4402
4421
  if (warrning) {
4403
4422
  Logger({
4404
4423
  level: "WARN",
4405
- message: `Parameter Validation warrnings for platform > Content > getComponentById \n ${warrning}`,
4424
+ message: `Parameter Validation warrnings for platform > Content > getBlogBySlug \n ${warrning}`,
4406
4425
  });
4407
4426
  }
4408
4427
 
@@ -4411,7 +4430,7 @@ class Content {
4411
4430
  const response = await PlatformAPIClient.execute(
4412
4431
  this.config,
4413
4432
  "get",
4414
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/blogs/${slug}`,
4433
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/blogs/${slug}`,
4415
4434
  query_params,
4416
4435
  undefined,
4417
4436
  requestHeaders,
@@ -4436,7 +4455,7 @@ class Content {
4436
4455
  } else {
4437
4456
  Logger({
4438
4457
  level: "WARN",
4439
- message: `Response Validation Warnings for platform > Content > getComponentById \n ${res_error}`,
4458
+ message: `Response Validation Warnings for platform > Content > getBlogBySlug \n ${res_error}`,
4440
4459
  });
4441
4460
  }
4442
4461
  }
@@ -4445,26 +4464,29 @@ class Content {
4445
4464
  }
4446
4465
 
4447
4466
  /**
4448
- * @param {ContentPlatformApplicationValidator.GetDataLoaderApiSpecsParam} arg
4449
- * - Arg object
4450
- *
4467
+ * @param {ContentPlatformApplicationValidator.GetBlogsParam} arg - Arg object
4451
4468
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4452
4469
  * @param {import("../PlatformAPIClient").Options} - Options
4453
- * @returns {Promise<ContentPlatformModel.DataLoadersApiSpecSchema>} -
4454
- * Success response
4455
- * @name getDataLoaderApiSpecs
4456
- * @summary: Get data loaders api specs.
4457
- * @description: Retrieve a list of data loaders api specs. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getDataLoaderApiSpecs/).
4470
+ * @returns {Promise<ContentPlatformModel.BlogGetDetails>} - Success response
4471
+ * @name getBlogs
4472
+ * @summary: List blogs
4473
+ * @description: List all blogs - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getBlogs/).
4458
4474
  */
4459
- async getDataLoaderApiSpecs(
4460
- { dataLoader, requestHeaders } = { requestHeaders: {} },
4475
+ async getBlogs(
4476
+ { pageNo, pageSize, tags, q, slug, title, status, requestHeaders } = {
4477
+ requestHeaders: {},
4478
+ },
4461
4479
  { responseHeaders } = { responseHeaders: false }
4462
4480
  ) {
4463
- const {
4464
- error,
4465
- } = ContentPlatformApplicationValidator.getDataLoaderApiSpecs().validate(
4481
+ const { error } = ContentPlatformApplicationValidator.getBlogs().validate(
4466
4482
  {
4467
- dataLoader,
4483
+ pageNo,
4484
+ pageSize,
4485
+ tags,
4486
+ q,
4487
+ slug,
4488
+ title,
4489
+ status,
4468
4490
  },
4469
4491
  { abortEarly: false, allowUnknown: true }
4470
4492
  );
@@ -4475,26 +4497,38 @@ class Content {
4475
4497
  // Showing warrnings if extra unknown parameters are found
4476
4498
  const {
4477
4499
  error: warrning,
4478
- } = ContentPlatformApplicationValidator.getDataLoaderApiSpecs().validate(
4500
+ } = ContentPlatformApplicationValidator.getBlogs().validate(
4479
4501
  {
4480
- dataLoader,
4502
+ pageNo,
4503
+ pageSize,
4504
+ tags,
4505
+ q,
4506
+ slug,
4507
+ title,
4508
+ status,
4481
4509
  },
4482
4510
  { abortEarly: false, allowUnknown: false }
4483
4511
  );
4484
4512
  if (warrning) {
4485
4513
  Logger({
4486
4514
  level: "WARN",
4487
- message: `Parameter Validation warrnings for platform > Content > getDataLoaderApiSpecs \n ${warrning}`,
4515
+ message: `Parameter Validation warrnings for platform > Content > getBlogs \n ${warrning}`,
4488
4516
  });
4489
4517
  }
4490
4518
 
4491
4519
  const query_params = {};
4492
- query_params["data_loader"] = dataLoader;
4520
+ query_params["page_no"] = pageNo;
4521
+ query_params["page_size"] = pageSize;
4522
+ query_params["tags"] = tags;
4523
+ query_params["q"] = q;
4524
+ query_params["slug"] = slug;
4525
+ query_params["title"] = title;
4526
+ query_params["status"] = status;
4493
4527
 
4494
4528
  const response = await PlatformAPIClient.execute(
4495
4529
  this.config,
4496
4530
  "get",
4497
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/data-loader/api-spec`,
4531
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/blogs/`,
4498
4532
  query_params,
4499
4533
  undefined,
4500
4534
  requestHeaders,
@@ -4508,7 +4542,7 @@ class Content {
4508
4542
 
4509
4543
  const {
4510
4544
  error: res_error,
4511
- } = ContentPlatformModel.DataLoadersApiSpecSchema().validate(responseData, {
4545
+ } = ContentPlatformModel.BlogGetDetails().validate(responseData, {
4512
4546
  abortEarly: false,
4513
4547
  allowUnknown: true,
4514
4548
  });
@@ -4519,7 +4553,7 @@ class Content {
4519
4553
  } else {
4520
4554
  Logger({
4521
4555
  level: "WARN",
4522
- message: `Response Validation Warnings for platform > Content > getDataLoaderApiSpecs \n ${res_error}`,
4556
+ message: `Response Validation Warnings for platform > Content > getBlogs \n ${res_error}`,
4523
4557
  });
4524
4558
  }
4525
4559
  }
@@ -4608,7 +4642,7 @@ class Content {
4608
4642
  *
4609
4643
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4610
4644
  * @param {import("../PlatformAPIClient").Options} - Options
4611
- * @returns {Promise<ContentPlatformModel.DataLoaderItemsResponseSchema>} -
4645
+ * @returns {Promise<ContentPlatformModel.DataLoaderResponseSchema>} -
4612
4646
  * Success response
4613
4647
  * @name getDataLoadersByService
4614
4648
  * @summary: List all data loaders
@@ -4665,10 +4699,10 @@ class Content {
4665
4699
 
4666
4700
  const {
4667
4701
  error: res_error,
4668
- } = ContentPlatformModel.DataLoaderItemsResponseSchema().validate(
4669
- responseData,
4670
- { abortEarly: false, allowUnknown: true }
4671
- );
4702
+ } = ContentPlatformModel.DataLoaderResponseSchema().validate(responseData, {
4703
+ abortEarly: false,
4704
+ allowUnknown: true,
4705
+ });
4672
4706
 
4673
4707
  if (res_error) {
4674
4708
  if (this.config.options.strictResponseCheck === true) {
@@ -4690,7 +4724,7 @@ class Content {
4690
4724
  *
4691
4725
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4692
4726
  * @param {import("../PlatformAPIClient").Options} - Options
4693
- * @returns {Promise<ContentPlatformModel.DefaultNavigationResponse>} -
4727
+ * @returns {Promise<ContentPlatformModel.DefaultNavigationDetails>} -
4694
4728
  * Success response
4695
4729
  * @name getDefaultNavigations
4696
4730
  * @summary: Get default navigations
@@ -4743,10 +4777,10 @@ class Content {
4743
4777
 
4744
4778
  const {
4745
4779
  error: res_error,
4746
- } = ContentPlatformModel.DefaultNavigationResponse().validate(
4747
- responseData,
4748
- { abortEarly: false, allowUnknown: true }
4749
- );
4780
+ } = ContentPlatformModel.DefaultNavigationDetails().validate(responseData, {
4781
+ abortEarly: false,
4782
+ allowUnknown: true,
4783
+ });
4750
4784
 
4751
4785
  if (res_error) {
4752
4786
  if (this.config.options.strictResponseCheck === true) {
@@ -5169,17 +5203,19 @@ class Content {
5169
5203
  * @param {import("../PlatformAPIClient").Options} - Options
5170
5204
  * @returns {Promise<ContentPlatformModel.TagsSchema>} - Success response
5171
5205
  * @name getInjectableTags
5172
- * @summary: Get all the tags in an application
5173
- * @description: Use this API to retrieve all HTML Tags - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getInjectableTags/).
5206
+ * @summary: Get all HTML tags
5207
+ * @description: Retrieve a list of injectable tags. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getInjectableTags/).
5174
5208
  */
5175
5209
  async getInjectableTags(
5176
- { requestHeaders } = { requestHeaders: {} },
5210
+ { all, requestHeaders } = { requestHeaders: {} },
5177
5211
  { responseHeaders } = { responseHeaders: false }
5178
5212
  ) {
5179
5213
  const {
5180
5214
  error,
5181
5215
  } = ContentPlatformApplicationValidator.getInjectableTags().validate(
5182
- {},
5216
+ {
5217
+ all,
5218
+ },
5183
5219
  { abortEarly: false, allowUnknown: true }
5184
5220
  );
5185
5221
  if (error) {
@@ -5190,7 +5226,9 @@ class Content {
5190
5226
  const {
5191
5227
  error: warrning,
5192
5228
  } = ContentPlatformApplicationValidator.getInjectableTags().validate(
5193
- {},
5229
+ {
5230
+ all,
5231
+ },
5194
5232
  { abortEarly: false, allowUnknown: false }
5195
5233
  );
5196
5234
  if (warrning) {
@@ -5201,6 +5239,7 @@ class Content {
5201
5239
  }
5202
5240
 
5203
5241
  const query_params = {};
5242
+ query_params["all"] = all;
5204
5243
 
5205
5244
  const response = await PlatformAPIClient.execute(
5206
5245
  this.config,
@@ -5242,7 +5281,7 @@ class Content {
5242
5281
  * @param {ContentPlatformApplicationValidator.GetLandingPagesParam} arg - Arg object
5243
5282
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5244
5283
  * @param {import("../PlatformAPIClient").Options} - Options
5245
- * @returns {Promise<ContentPlatformModel.LandingPageGetResponse>} - Success response
5284
+ * @returns {Promise<ContentPlatformModel.LandingPageGetDetails>} - Success response
5246
5285
  * @name getLandingPages
5247
5286
  * @summary: Get landing pages
5248
5287
  * @description: Lists a list landing pages as per device types - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getLandingPages/).
@@ -5288,7 +5327,7 @@ class Content {
5288
5327
  const response = await PlatformAPIClient.execute(
5289
5328
  this.config,
5290
5329
  "get",
5291
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/landing-page`,
5330
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/landing-page/`,
5292
5331
  query_params,
5293
5332
  undefined,
5294
5333
  requestHeaders,
@@ -5302,7 +5341,7 @@ class Content {
5302
5341
 
5303
5342
  const {
5304
5343
  error: res_error,
5305
- } = ContentPlatformModel.LandingPageGetResponse().validate(responseData, {
5344
+ } = ContentPlatformModel.LandingPageGetDetails().validate(responseData, {
5306
5345
  abortEarly: false,
5307
5346
  allowUnknown: true,
5308
5347
  });
@@ -5486,7 +5525,7 @@ class Content {
5486
5525
  * @param {ContentPlatformApplicationValidator.GetNavigationsParam} arg - Arg object
5487
5526
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5488
5527
  * @param {import("../PlatformAPIClient").Options} - Options
5489
- * @returns {Promise<ContentPlatformModel.NavigationGetResponse>} - Success response
5528
+ * @returns {Promise<ContentPlatformModel.NavigationGetDetails>} - Success response
5490
5529
  * @name getNavigations
5491
5530
  * @summary: Get navigation items
5492
5531
  * @description: Retrieve a list of navigational elements. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getNavigations/).
@@ -5537,7 +5576,7 @@ class Content {
5537
5576
  const response = await PlatformAPIClient.execute(
5538
5577
  this.config,
5539
5578
  "get",
5540
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/navigations`,
5579
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/navigations/`,
5541
5580
  query_params,
5542
5581
  undefined,
5543
5582
  requestHeaders,
@@ -5551,7 +5590,7 @@ class Content {
5551
5590
 
5552
5591
  const {
5553
5592
  error: res_error,
5554
- } = ContentPlatformModel.NavigationGetResponse().validate(responseData, {
5593
+ } = ContentPlatformModel.NavigationGetDetails().validate(responseData, {
5555
5594
  abortEarly: false,
5556
5595
  allowUnknown: true,
5557
5596
  });
@@ -5577,7 +5616,7 @@ class Content {
5577
5616
  * @returns {Promise<ContentPlatformModel.PageSchema>} - Success response
5578
5617
  * @name getPageBySlug
5579
5618
  * @summary: Get page by slug
5580
- * @description: Get detailed information about a specific page using its slug - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPageBySlug/).
5619
+ * @description: Get detailed information about a specific page using its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPageBySlug/).
5581
5620
  */
5582
5621
  async getPageBySlug(
5583
5622
  { slug, requestHeaders } = { requestHeaders: {} },
@@ -5803,9 +5842,9 @@ class Content {
5803
5842
  * @param {ContentPlatformApplicationValidator.GetPagesParam} arg - Arg object
5804
5843
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5805
5844
  * @param {import("../PlatformAPIClient").Options} - Options
5806
- * @returns {Promise<ContentPlatformModel.PageGetResponse>} - Success response
5845
+ * @returns {Promise<ContentPlatformModel.PageGetDetails>} - Success response
5807
5846
  * @name getPages
5808
- * @summary: Get pages.
5847
+ * @summary: Get pages
5809
5848
  * @description: Retrieve a list of available pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPages/).
5810
5849
  */
5811
5850
  async getPages(
@@ -5847,7 +5886,7 @@ class Content {
5847
5886
  const response = await PlatformAPIClient.execute(
5848
5887
  this.config,
5849
5888
  "get",
5850
- `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/pages`,
5889
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/pages/`,
5851
5890
  query_params,
5852
5891
  undefined,
5853
5892
  requestHeaders,
@@ -5861,7 +5900,7 @@ class Content {
5861
5900
 
5862
5901
  const {
5863
5902
  error: res_error,
5864
- } = ContentPlatformModel.PageGetResponse().validate(responseData, {
5903
+ } = ContentPlatformModel.PageGetDetails().validate(responseData, {
5865
5904
  abortEarly: false,
5866
5905
  allowUnknown: true,
5867
5906
  });
@@ -5880,47 +5919,13 @@ class Content {
5880
5919
  return response;
5881
5920
  }
5882
5921
 
5883
- /**
5884
- * @param {Object} arg - Arg object.
5885
- * @param {string} arg.companyId - Numeric ID allotted to a business account
5886
- * on Fynd Platform
5887
- * @param {string} arg.applicationId - Numeric ID allotted to an application
5888
- * created within a business account.
5889
- * @param {number} [arg.pageSize] - The number of items to retrieve in each
5890
- * page. Default value is 10.
5891
- * @returns {Paginator<ContentPlatformModel.PageGetResponse>}
5892
- * @summary: Get pages.
5893
- * @description: Retrieve a list of available pages.
5894
- */
5895
- getPagesPaginator({ companyId, applicationId, pageSize } = {}) {
5896
- const paginator = new Paginator();
5897
- const callback = async () => {
5898
- const pageId = paginator.nextId;
5899
- const pageNo = paginator.pageNo;
5900
- const pageType = "number";
5901
- const data = await this.getPages({
5902
- companyId: companyId,
5903
- applicationId: applicationId,
5904
- pageNo: pageNo,
5905
- pageSize: pageSize,
5906
- });
5907
- paginator.setPaginator({
5908
- hasNext: data.page.has_next ? true : false,
5909
- nextId: data.page.next_id,
5910
- });
5911
- return data;
5912
- };
5913
- paginator.setCallback(callback.bind(this));
5914
- return paginator;
5915
- }
5916
-
5917
5922
  /**
5918
5923
  * @param {ContentPlatformApplicationValidator.GetPathRedirectionRuleParam} arg
5919
5924
  * - Arg object
5920
5925
  *
5921
5926
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5922
5927
  * @param {import("../PlatformAPIClient").Options} - Options
5923
- * @returns {Promise<ContentPlatformModel.DeletPathMappingSchema>} - Success response
5928
+ * @returns {Promise<ContentPlatformModel.PathMappingSchema>} - Success response
5924
5929
  * @name getPathRedirectionRule
5925
5930
  * @summary: Get Path Redirection Rule
5926
5931
  * @description: Use this API to Get detailed information about a specific path redirection rule - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPathRedirectionRule/).
@@ -5976,7 +5981,7 @@ class Content {
5976
5981
 
5977
5982
  const {
5978
5983
  error: res_error,
5979
- } = ContentPlatformModel.DeletPathMappingSchema().validate(responseData, {
5984
+ } = ContentPlatformModel.PathMappingSchema().validate(responseData, {
5980
5985
  abortEarly: false,
5981
5986
  allowUnknown: true,
5982
5987
  });
@@ -6001,7 +6006,7 @@ class Content {
6001
6006
  *
6002
6007
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6003
6008
  * @param {import("../PlatformAPIClient").Options} - Options
6004
- * @returns {Promise<ContentPlatformModel.GetAllPathMappingSchema>} - Success response
6009
+ * @returns {Promise<ContentPlatformModel.PathMappingSchema>} - Success response
6005
6010
  * @name getPathRedirectionRules
6006
6011
  * @summary: List Path Redirection Rules
6007
6012
  * @description: Use this API to List Path Redirection Rules - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPathRedirectionRules/).
@@ -6061,7 +6066,7 @@ class Content {
6061
6066
 
6062
6067
  const {
6063
6068
  error: res_error,
6064
- } = ContentPlatformModel.GetAllPathMappingSchema().validate(responseData, {
6069
+ } = ContentPlatformModel.PathMappingSchema().validate(responseData, {
6065
6070
  abortEarly: false,
6066
6071
  allowUnknown: true,
6067
6072
  });
@@ -6169,14 +6174,14 @@ class Content {
6169
6174
  * @description: Use this API to Get SEO Markup Schema - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getSEOMarkupSchema/).
6170
6175
  */
6171
6176
  async getSEOMarkupSchema(
6172
- { schemaId, requestHeaders } = { requestHeaders: {} },
6177
+ { id, requestHeaders } = { requestHeaders: {} },
6173
6178
  { responseHeaders } = { responseHeaders: false }
6174
6179
  ) {
6175
6180
  const {
6176
6181
  error,
6177
6182
  } = ContentPlatformApplicationValidator.getSEOMarkupSchema().validate(
6178
6183
  {
6179
- schemaId,
6184
+ id,
6180
6185
  },
6181
6186
  { abortEarly: false, allowUnknown: true }
6182
6187
  );
@@ -6189,7 +6194,7 @@ class Content {
6189
6194
  error: warrning,
6190
6195
  } = ContentPlatformApplicationValidator.getSEOMarkupSchema().validate(
6191
6196
  {
6192
- schemaId,
6197
+ id,
6193
6198
  },
6194
6199
  { abortEarly: false, allowUnknown: false }
6195
6200
  );
@@ -6205,7 +6210,7 @@ class Content {
6205
6210
  const response = await PlatformAPIClient.execute(
6206
6211
  this.config,
6207
6212
  "get",
6208
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema/${schemaId}`,
6213
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema/${id}`,
6209
6214
  query_params,
6210
6215
  undefined,
6211
6216
  requestHeaders,
@@ -6409,28 +6414,30 @@ class Content {
6409
6414
  }
6410
6415
 
6411
6416
  /**
6412
- * @param {ContentPlatformApplicationValidator.ImportAppCustomObjectEntriesParam} arg
6417
+ * @param {ContentPlatformApplicationValidator.GetTranslateUILabelsParam} arg
6413
6418
  * - Arg object
6414
6419
  *
6415
6420
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6416
6421
  * @param {import("../PlatformAPIClient").Options} - Options
6417
- * @returns {Promise<ContentPlatformModel.CustomObjectEntryBulkUploadResponse>}
6418
- * - Success response
6419
- *
6420
- * @name importAppCustomObjectEntries
6421
- * @summary: Bulk custom object entries upload
6422
- * @description: Custom object bulk import of bulk entries can be performed using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/importAppCustomObjectEntries/).
6422
+ * @returns {Promise<ContentPlatformModel.TranslateUiLabelsPage>} - Success response
6423
+ * @name getTranslateUILabels
6424
+ * @summary: Get Translate Ui Labels
6425
+ * @description: Retrieves Translate Ui Labels with optional filtering by type, application, and company identifiers. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getTranslateUILabels/).
6423
6426
  */
6424
- async importAppCustomObjectEntries(
6425
- { definitionId, body, requestHeaders } = { requestHeaders: {} },
6427
+ async getTranslateUILabels(
6428
+ { templateThemeId, themeId, locale, type, requestHeaders } = {
6429
+ requestHeaders: {},
6430
+ },
6426
6431
  { responseHeaders } = { responseHeaders: false }
6427
6432
  ) {
6428
6433
  const {
6429
6434
  error,
6430
- } = ContentPlatformApplicationValidator.importAppCustomObjectEntries().validate(
6435
+ } = ContentPlatformApplicationValidator.getTranslateUILabels().validate(
6431
6436
  {
6432
- definitionId,
6433
- body,
6437
+ templateThemeId,
6438
+ themeId,
6439
+ locale,
6440
+ type,
6434
6441
  },
6435
6442
  { abortEarly: false, allowUnknown: true }
6436
6443
  );
@@ -6441,28 +6448,34 @@ class Content {
6441
6448
  // Showing warrnings if extra unknown parameters are found
6442
6449
  const {
6443
6450
  error: warrning,
6444
- } = ContentPlatformApplicationValidator.importAppCustomObjectEntries().validate(
6451
+ } = ContentPlatformApplicationValidator.getTranslateUILabels().validate(
6445
6452
  {
6446
- definitionId,
6447
- body,
6453
+ templateThemeId,
6454
+ themeId,
6455
+ locale,
6456
+ type,
6448
6457
  },
6449
6458
  { abortEarly: false, allowUnknown: false }
6450
6459
  );
6451
6460
  if (warrning) {
6452
6461
  Logger({
6453
6462
  level: "WARN",
6454
- message: `Parameter Validation warrnings for platform > Content > importAppCustomObjectEntries \n ${warrning}`,
6463
+ message: `Parameter Validation warrnings for platform > Content > getTranslateUILabels \n ${warrning}`,
6455
6464
  });
6456
6465
  }
6457
6466
 
6458
6467
  const query_params = {};
6468
+ query_params["template_theme_id"] = templateThemeId;
6469
+ query_params["theme_id"] = themeId;
6470
+ query_params["locale"] = locale;
6471
+ query_params["type"] = type;
6459
6472
 
6460
6473
  const response = await PlatformAPIClient.execute(
6461
6474
  this.config,
6462
- "post",
6463
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/bulk/${definitionId}/upload`,
6475
+ "get",
6476
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/translate-ui-labels`,
6464
6477
  query_params,
6465
- body,
6478
+ undefined,
6466
6479
  requestHeaders,
6467
6480
  { responseHeaders }
6468
6481
  );
@@ -6474,10 +6487,10 @@ class Content {
6474
6487
 
6475
6488
  const {
6476
6489
  error: res_error,
6477
- } = ContentPlatformModel.CustomObjectEntryBulkUploadResponse().validate(
6478
- responseData,
6479
- { abortEarly: false, allowUnknown: true }
6480
- );
6490
+ } = ContentPlatformModel.TranslateUiLabelsPage().validate(responseData, {
6491
+ abortEarly: false,
6492
+ allowUnknown: true,
6493
+ });
6481
6494
 
6482
6495
  if (res_error) {
6483
6496
  if (this.config.options.strictResponseCheck === true) {
@@ -6485,7 +6498,7 @@ class Content {
6485
6498
  } else {
6486
6499
  Logger({
6487
6500
  level: "WARN",
6488
- message: `Response Validation Warnings for platform > Content > importAppCustomObjectEntries \n ${res_error}`,
6501
+ message: `Response Validation Warnings for platform > Content > getTranslateUILabels \n ${res_error}`,
6489
6502
  });
6490
6503
  }
6491
6504
  }
@@ -6494,26 +6507,25 @@ class Content {
6494
6507
  }
6495
6508
 
6496
6509
  /**
6497
- * @param {ContentPlatformApplicationValidator.RemoveInjectableTagParam} arg
6510
+ * @param {ContentPlatformApplicationValidator.GetTranslateUILabelsByIdParam} arg
6498
6511
  * - Arg object
6499
6512
  *
6500
6513
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6501
6514
  * @param {import("../PlatformAPIClient").Options} - Options
6502
- * @returns {Promise<ContentPlatformModel.TagDeleteSuccessResponse>} -
6503
- * Success response
6504
- * @name removeInjectableTag
6505
- * @summary: Remove HTML tag
6506
- * @description: Delete a specific injectable tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/removeInjectableTag/).
6515
+ * @returns {Promise<ContentPlatformModel.TranslateUiLabels>} - Success response
6516
+ * @name getTranslateUILabelsById
6517
+ * @summary: Get Resource Detail
6518
+ * @description: Fetches detailed information for a specific Translate Ui Labels using its unique identifier. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getTranslateUILabelsById/).
6507
6519
  */
6508
- async removeInjectableTag(
6509
- { body, requestHeaders } = { requestHeaders: {} },
6520
+ async getTranslateUILabelsById(
6521
+ { id, requestHeaders } = { requestHeaders: {} },
6510
6522
  { responseHeaders } = { responseHeaders: false }
6511
6523
  ) {
6512
6524
  const {
6513
6525
  error,
6514
- } = ContentPlatformApplicationValidator.removeInjectableTag().validate(
6526
+ } = ContentPlatformApplicationValidator.getTranslateUILabelsById().validate(
6515
6527
  {
6516
- body,
6528
+ id,
6517
6529
  },
6518
6530
  { abortEarly: false, allowUnknown: true }
6519
6531
  );
@@ -6524,16 +6536,16 @@ class Content {
6524
6536
  // Showing warrnings if extra unknown parameters are found
6525
6537
  const {
6526
6538
  error: warrning,
6527
- } = ContentPlatformApplicationValidator.removeInjectableTag().validate(
6539
+ } = ContentPlatformApplicationValidator.getTranslateUILabelsById().validate(
6528
6540
  {
6529
- body,
6541
+ id,
6530
6542
  },
6531
6543
  { abortEarly: false, allowUnknown: false }
6532
6544
  );
6533
6545
  if (warrning) {
6534
6546
  Logger({
6535
6547
  level: "WARN",
6536
- message: `Parameter Validation warrnings for platform > Content > removeInjectableTag \n ${warrning}`,
6548
+ message: `Parameter Validation warrnings for platform > Content > getTranslateUILabelsById \n ${warrning}`,
6537
6549
  });
6538
6550
  }
6539
6551
 
@@ -6541,10 +6553,10 @@ class Content {
6541
6553
 
6542
6554
  const response = await PlatformAPIClient.execute(
6543
6555
  this.config,
6544
- "put",
6545
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/tags/remove/handpicked`,
6556
+ "get",
6557
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/translate-ui-labels/${id}`,
6546
6558
  query_params,
6547
- body,
6559
+ undefined,
6548
6560
  requestHeaders,
6549
6561
  { responseHeaders }
6550
6562
  );
@@ -6556,7 +6568,7 @@ class Content {
6556
6568
 
6557
6569
  const {
6558
6570
  error: res_error,
6559
- } = ContentPlatformModel.TagDeleteSuccessResponse().validate(responseData, {
6571
+ } = ContentPlatformModel.TranslateUiLabels().validate(responseData, {
6560
6572
  abortEarly: false,
6561
6573
  allowUnknown: true,
6562
6574
  });
@@ -6567,7 +6579,7 @@ class Content {
6567
6579
  } else {
6568
6580
  Logger({
6569
6581
  level: "WARN",
6570
- message: `Response Validation Warnings for platform > Content > removeInjectableTag \n ${res_error}`,
6582
+ message: `Response Validation Warnings for platform > Content > getTranslateUILabelsById \n ${res_error}`,
6571
6583
  });
6572
6584
  }
6573
6585
  }
@@ -6576,25 +6588,28 @@ class Content {
6576
6588
  }
6577
6589
 
6578
6590
  /**
6579
- * @param {ContentPlatformApplicationValidator.ResetDataLoaderParam} arg - Arg object
6591
+ * @param {ContentPlatformApplicationValidator.ImportAppCustomObjectEntriesBySlugParam} arg
6592
+ * - Arg object
6593
+ *
6580
6594
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6581
6595
  * @param {import("../PlatformAPIClient").Options} - Options
6582
- * @returns {Promise<ContentPlatformModel.DataLoaderResetResponseSchema>} -
6583
- * Success response
6584
- * @name resetDataLoader
6585
- * @summary: Reset a data loader
6586
- * @description: Clear and reset data loader settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/resetDataLoader/).
6596
+ * @returns {Promise<ContentPlatformModel.CustomObjectEntryBulkUploadDetails>}
6597
+ * - Success response
6598
+ *
6599
+ * @name importAppCustomObjectEntriesBySlug
6600
+ * @summary: Bulk custom object entries upload
6601
+ * @description: Custom object bulk import of bulk entries can be performed using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/importAppCustomObjectEntriesBySlug/).
6587
6602
  */
6588
- async resetDataLoader(
6589
- { service, operationId, requestHeaders } = { requestHeaders: {} },
6603
+ async importAppCustomObjectEntriesBySlug(
6604
+ { slug, body, requestHeaders } = { requestHeaders: {} },
6590
6605
  { responseHeaders } = { responseHeaders: false }
6591
6606
  ) {
6592
6607
  const {
6593
6608
  error,
6594
- } = ContentPlatformApplicationValidator.resetDataLoader().validate(
6609
+ } = ContentPlatformApplicationValidator.importAppCustomObjectEntriesBySlug().validate(
6595
6610
  {
6596
- service,
6597
- operationId,
6611
+ slug,
6612
+ body,
6598
6613
  },
6599
6614
  { abortEarly: false, allowUnknown: true }
6600
6615
  );
@@ -6605,17 +6620,17 @@ class Content {
6605
6620
  // Showing warrnings if extra unknown parameters are found
6606
6621
  const {
6607
6622
  error: warrning,
6608
- } = ContentPlatformApplicationValidator.resetDataLoader().validate(
6623
+ } = ContentPlatformApplicationValidator.importAppCustomObjectEntriesBySlug().validate(
6609
6624
  {
6610
- service,
6611
- operationId,
6625
+ slug,
6626
+ body,
6612
6627
  },
6613
6628
  { abortEarly: false, allowUnknown: false }
6614
6629
  );
6615
6630
  if (warrning) {
6616
6631
  Logger({
6617
6632
  level: "WARN",
6618
- message: `Parameter Validation warrnings for platform > Content > resetDataLoader \n ${warrning}`,
6633
+ message: `Parameter Validation warrnings for platform > Content > importAppCustomObjectEntriesBySlug \n ${warrning}`,
6619
6634
  });
6620
6635
  }
6621
6636
 
@@ -6623,10 +6638,10 @@ class Content {
6623
6638
 
6624
6639
  const response = await PlatformAPIClient.execute(
6625
6640
  this.config,
6626
- "put",
6627
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/data-loader/${service}/${operationId}/reset`,
6641
+ "post",
6642
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}/bulk/upload`,
6628
6643
  query_params,
6629
- undefined,
6644
+ body,
6630
6645
  requestHeaders,
6631
6646
  { responseHeaders }
6632
6647
  );
@@ -6638,7 +6653,7 @@ class Content {
6638
6653
 
6639
6654
  const {
6640
6655
  error: res_error,
6641
- } = ContentPlatformModel.DataLoaderResetResponseSchema().validate(
6656
+ } = ContentPlatformModel.CustomObjectEntryBulkUploadDetails().validate(
6642
6657
  responseData,
6643
6658
  { abortEarly: false, allowUnknown: true }
6644
6659
  );
@@ -6649,7 +6664,7 @@ class Content {
6649
6664
  } else {
6650
6665
  Logger({
6651
6666
  level: "WARN",
6652
- message: `Response Validation Warnings for platform > Content > resetDataLoader \n ${res_error}`,
6667
+ message: `Response Validation Warnings for platform > Content > importAppCustomObjectEntriesBySlug \n ${res_error}`,
6653
6668
  });
6654
6669
  }
6655
6670
  }
@@ -6658,25 +6673,25 @@ class Content {
6658
6673
  }
6659
6674
 
6660
6675
  /**
6661
- * @param {ContentPlatformApplicationValidator.SampleAppCustomObjectBulkEntryParam} arg
6676
+ * @param {ContentPlatformApplicationValidator.RemoveInjectableTagParam} arg
6662
6677
  * - Arg object
6663
6678
  *
6664
6679
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6665
6680
  * @param {import("../PlatformAPIClient").Options} - Options
6666
- * @returns {Promise<string>} - Success response
6667
- * @name sampleAppCustomObjectBulkEntry
6668
- * @summary: Download sample for custom object bulk entry
6669
- * @description: Sample files for custom object bulk import can be obtained from this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/sampleAppCustomObjectBulkEntry/).
6681
+ * @returns {Promise<ContentPlatformModel.TagDeleteSuccessDetails>} - Success response
6682
+ * @name removeInjectableTag
6683
+ * @summary: Remove HTML tag
6684
+ * @description: Delete a specific injectable tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/removeInjectableTag/).
6670
6685
  */
6671
- async sampleAppCustomObjectBulkEntry(
6672
- { definitionId, requestHeaders } = { requestHeaders: {} },
6686
+ async removeInjectableTag(
6687
+ { body, requestHeaders } = { requestHeaders: {} },
6673
6688
  { responseHeaders } = { responseHeaders: false }
6674
6689
  ) {
6675
6690
  const {
6676
6691
  error,
6677
- } = ContentPlatformApplicationValidator.sampleAppCustomObjectBulkEntry().validate(
6692
+ } = ContentPlatformApplicationValidator.removeInjectableTag().validate(
6678
6693
  {
6679
- definitionId,
6694
+ body,
6680
6695
  },
6681
6696
  { abortEarly: false, allowUnknown: true }
6682
6697
  );
@@ -6687,16 +6702,16 @@ class Content {
6687
6702
  // Showing warrnings if extra unknown parameters are found
6688
6703
  const {
6689
6704
  error: warrning,
6690
- } = ContentPlatformApplicationValidator.sampleAppCustomObjectBulkEntry().validate(
6705
+ } = ContentPlatformApplicationValidator.removeInjectableTag().validate(
6691
6706
  {
6692
- definitionId,
6707
+ body,
6693
6708
  },
6694
6709
  { abortEarly: false, allowUnknown: false }
6695
6710
  );
6696
6711
  if (warrning) {
6697
6712
  Logger({
6698
6713
  level: "WARN",
6699
- message: `Parameter Validation warrnings for platform > Content > sampleAppCustomObjectBulkEntry \n ${warrning}`,
6714
+ message: `Parameter Validation warrnings for platform > Content > removeInjectableTag \n ${warrning}`,
6700
6715
  });
6701
6716
  }
6702
6717
 
@@ -6704,10 +6719,10 @@ class Content {
6704
6719
 
6705
6720
  const response = await PlatformAPIClient.execute(
6706
6721
  this.config,
6707
- "get",
6708
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/bulk/${definitionId}/sample`,
6722
+ "put",
6723
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/tags/remove/handpicked`,
6709
6724
  query_params,
6710
- undefined,
6725
+ body,
6711
6726
  requestHeaders,
6712
6727
  { responseHeaders }
6713
6728
  );
@@ -6717,9 +6732,12 @@ class Content {
6717
6732
  responseData = response[0];
6718
6733
  }
6719
6734
 
6720
- const { error: res_error } = Joi.string()
6721
- .allow("")
6722
- .validate(responseData, { abortEarly: false, allowUnknown: true });
6735
+ const {
6736
+ error: res_error,
6737
+ } = ContentPlatformModel.TagDeleteSuccessDetails().validate(responseData, {
6738
+ abortEarly: false,
6739
+ allowUnknown: true,
6740
+ });
6723
6741
 
6724
6742
  if (res_error) {
6725
6743
  if (this.config.options.strictResponseCheck === true) {
@@ -6727,7 +6745,7 @@ class Content {
6727
6745
  } else {
6728
6746
  Logger({
6729
6747
  level: "WARN",
6730
- message: `Response Validation Warnings for platform > Content > sampleAppCustomObjectBulkEntry \n ${res_error}`,
6748
+ message: `Response Validation Warnings for platform > Content > removeInjectableTag \n ${res_error}`,
6731
6749
  });
6732
6750
  }
6733
6751
  }
@@ -6736,24 +6754,25 @@ class Content {
6736
6754
  }
6737
6755
 
6738
6756
  /**
6739
- * @param {ContentPlatformApplicationValidator.SelectDataLoaderParam} arg - Arg object
6757
+ * @param {ContentPlatformApplicationValidator.ResetDataLoaderParam} arg - Arg object
6740
6758
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6741
6759
  * @param {import("../PlatformAPIClient").Options} - Options
6742
- * @returns {Promise<ContentPlatformModel.DataLoaderResponseSchema>} -
6760
+ * @returns {Promise<ContentPlatformModel.DataLoaderResetResponseSchema>} -
6743
6761
  * Success response
6744
- * @name selectDataLoader
6745
- * @summary: Select a data loader
6746
- * @description: Choose and set a data loader for use. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/selectDataLoader/).
6762
+ * @name resetDataLoader
6763
+ * @summary: Reset a data loader
6764
+ * @description: Clear and reset data loader settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/resetDataLoader/).
6747
6765
  */
6748
- async selectDataLoader(
6749
- { dataLoaderId, requestHeaders } = { requestHeaders: {} },
6766
+ async resetDataLoader(
6767
+ { service, operationId, requestHeaders } = { requestHeaders: {} },
6750
6768
  { responseHeaders } = { responseHeaders: false }
6751
6769
  ) {
6752
6770
  const {
6753
6771
  error,
6754
- } = ContentPlatformApplicationValidator.selectDataLoader().validate(
6772
+ } = ContentPlatformApplicationValidator.resetDataLoader().validate(
6755
6773
  {
6756
- dataLoaderId,
6774
+ service,
6775
+ operationId,
6757
6776
  },
6758
6777
  { abortEarly: false, allowUnknown: true }
6759
6778
  );
@@ -6764,16 +6783,17 @@ class Content {
6764
6783
  // Showing warrnings if extra unknown parameters are found
6765
6784
  const {
6766
6785
  error: warrning,
6767
- } = ContentPlatformApplicationValidator.selectDataLoader().validate(
6786
+ } = ContentPlatformApplicationValidator.resetDataLoader().validate(
6768
6787
  {
6769
- dataLoaderId,
6788
+ service,
6789
+ operationId,
6770
6790
  },
6771
6791
  { abortEarly: false, allowUnknown: false }
6772
6792
  );
6773
6793
  if (warrning) {
6774
6794
  Logger({
6775
6795
  level: "WARN",
6776
- message: `Parameter Validation warrnings for platform > Content > selectDataLoader \n ${warrning}`,
6796
+ message: `Parameter Validation warrnings for platform > Content > resetDataLoader \n ${warrning}`,
6777
6797
  });
6778
6798
  }
6779
6799
 
@@ -6782,7 +6802,7 @@ class Content {
6782
6802
  const response = await PlatformAPIClient.execute(
6783
6803
  this.config,
6784
6804
  "put",
6785
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/data-loader/${dataLoaderId}/select`,
6805
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/data-loader/${service}/${operationId}/reset`,
6786
6806
  query_params,
6787
6807
  undefined,
6788
6808
  requestHeaders,
@@ -6796,8 +6816,166 @@ class Content {
6796
6816
 
6797
6817
  const {
6798
6818
  error: res_error,
6799
- } = ContentPlatformModel.DataLoaderResponseSchema().validate(responseData, {
6800
- abortEarly: false,
6819
+ } = ContentPlatformModel.DataLoaderResetResponseSchema().validate(
6820
+ responseData,
6821
+ { abortEarly: false, allowUnknown: true }
6822
+ );
6823
+
6824
+ if (res_error) {
6825
+ if (this.config.options.strictResponseCheck === true) {
6826
+ return Promise.reject(new FDKResponseValidationError(res_error));
6827
+ } else {
6828
+ Logger({
6829
+ level: "WARN",
6830
+ message: `Response Validation Warnings for platform > Content > resetDataLoader \n ${res_error}`,
6831
+ });
6832
+ }
6833
+ }
6834
+
6835
+ return response;
6836
+ }
6837
+
6838
+ /**
6839
+ * @param {ContentPlatformApplicationValidator.SampleAppCustomObjectBulkEntryBySlugParam} arg
6840
+ * - Arg object
6841
+ *
6842
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6843
+ * @param {import("../PlatformAPIClient").Options} - Options
6844
+ * @returns {Promise<string>} - Success response
6845
+ * @name sampleAppCustomObjectBulkEntryBySlug
6846
+ * @summary: Download sample for custom object bulk entry
6847
+ * @description: Sample files for custom object bulk import can be obtained from this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/sampleAppCustomObjectBulkEntryBySlug/).
6848
+ */
6849
+ async sampleAppCustomObjectBulkEntryBySlug(
6850
+ { slug, requestHeaders } = { requestHeaders: {} },
6851
+ { responseHeaders } = { responseHeaders: false }
6852
+ ) {
6853
+ const {
6854
+ error,
6855
+ } = ContentPlatformApplicationValidator.sampleAppCustomObjectBulkEntryBySlug().validate(
6856
+ {
6857
+ slug,
6858
+ },
6859
+ { abortEarly: false, allowUnknown: true }
6860
+ );
6861
+ if (error) {
6862
+ return Promise.reject(new FDKClientValidationError(error));
6863
+ }
6864
+
6865
+ // Showing warrnings if extra unknown parameters are found
6866
+ const {
6867
+ error: warrning,
6868
+ } = ContentPlatformApplicationValidator.sampleAppCustomObjectBulkEntryBySlug().validate(
6869
+ {
6870
+ slug,
6871
+ },
6872
+ { abortEarly: false, allowUnknown: false }
6873
+ );
6874
+ if (warrning) {
6875
+ Logger({
6876
+ level: "WARN",
6877
+ message: `Parameter Validation warrnings for platform > Content > sampleAppCustomObjectBulkEntryBySlug \n ${warrning}`,
6878
+ });
6879
+ }
6880
+
6881
+ const query_params = {};
6882
+
6883
+ const response = await PlatformAPIClient.execute(
6884
+ this.config,
6885
+ "get",
6886
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}/bulk/sample`,
6887
+ query_params,
6888
+ undefined,
6889
+ requestHeaders,
6890
+ { responseHeaders }
6891
+ );
6892
+
6893
+ let responseData = response;
6894
+ if (responseHeaders) {
6895
+ responseData = response[0];
6896
+ }
6897
+
6898
+ const { error: res_error } = Joi.string()
6899
+ .allow("")
6900
+ .validate(responseData, { abortEarly: false, allowUnknown: true });
6901
+
6902
+ if (res_error) {
6903
+ if (this.config.options.strictResponseCheck === true) {
6904
+ return Promise.reject(new FDKResponseValidationError(res_error));
6905
+ } else {
6906
+ Logger({
6907
+ level: "WARN",
6908
+ message: `Response Validation Warnings for platform > Content > sampleAppCustomObjectBulkEntryBySlug \n ${res_error}`,
6909
+ });
6910
+ }
6911
+ }
6912
+
6913
+ return response;
6914
+ }
6915
+
6916
+ /**
6917
+ * @param {ContentPlatformApplicationValidator.SelectDataLoaderParam} arg - Arg object
6918
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6919
+ * @param {import("../PlatformAPIClient").Options} - Options
6920
+ * @returns {Promise<ContentPlatformModel.DataLoaderResponseSchema>} -
6921
+ * Success response
6922
+ * @name selectDataLoader
6923
+ * @summary: Select a data loader
6924
+ * @description: Choose and set a data loader for use. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/selectDataLoader/).
6925
+ */
6926
+ async selectDataLoader(
6927
+ { dataLoaderId, requestHeaders } = { requestHeaders: {} },
6928
+ { responseHeaders } = { responseHeaders: false }
6929
+ ) {
6930
+ const {
6931
+ error,
6932
+ } = ContentPlatformApplicationValidator.selectDataLoader().validate(
6933
+ {
6934
+ dataLoaderId,
6935
+ },
6936
+ { abortEarly: false, allowUnknown: true }
6937
+ );
6938
+ if (error) {
6939
+ return Promise.reject(new FDKClientValidationError(error));
6940
+ }
6941
+
6942
+ // Showing warrnings if extra unknown parameters are found
6943
+ const {
6944
+ error: warrning,
6945
+ } = ContentPlatformApplicationValidator.selectDataLoader().validate(
6946
+ {
6947
+ dataLoaderId,
6948
+ },
6949
+ { abortEarly: false, allowUnknown: false }
6950
+ );
6951
+ if (warrning) {
6952
+ Logger({
6953
+ level: "WARN",
6954
+ message: `Parameter Validation warrnings for platform > Content > selectDataLoader \n ${warrning}`,
6955
+ });
6956
+ }
6957
+
6958
+ const query_params = {};
6959
+
6960
+ const response = await PlatformAPIClient.execute(
6961
+ this.config,
6962
+ "put",
6963
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/data-loader/${dataLoaderId}/select`,
6964
+ query_params,
6965
+ undefined,
6966
+ requestHeaders,
6967
+ { responseHeaders }
6968
+ );
6969
+
6970
+ let responseData = response;
6971
+ if (responseHeaders) {
6972
+ responseData = response[0];
6973
+ }
6974
+
6975
+ const {
6976
+ error: res_error,
6977
+ } = ContentPlatformModel.DataLoaderResponseSchema().validate(responseData, {
6978
+ abortEarly: false,
6801
6979
  allowUnknown: true,
6802
6980
  });
6803
6981
 
@@ -6984,7 +7162,7 @@ class Content {
6984
7162
  }
6985
7163
 
6986
7164
  /**
6987
- * @param {ContentPlatformApplicationValidator.UpdateAppCustomFieldByResourceIdParam} arg
7165
+ * @param {ContentPlatformApplicationValidator.UpdateAppCustomFieldByResourceSlugParam} arg
6988
7166
  * - Arg object
6989
7167
  *
6990
7168
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -6992,20 +7170,20 @@ class Content {
6992
7170
  * @returns {Promise<ContentPlatformModel.CustomFieldsResponseByResourceIdSchema>}
6993
7171
  * - Success response
6994
7172
  *
6995
- * @name updateAppCustomFieldByResourceId
6996
- * @summary: Create custom field entries for gives resource and resource_id
6997
- * @description: Use this API to create the custom field entry for given resource and resource_id in param. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAppCustomFieldByResourceId/).
7173
+ * @name updateAppCustomFieldByResourceSlug
7174
+ * @summary: Create custom field entries for gives resource and resource slug
7175
+ * @description: You can add a custom field using this endpoint to any resource by providing the resource slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAppCustomFieldByResourceSlug/).
6998
7176
  */
6999
- async updateAppCustomFieldByResourceId(
7000
- { resource, resourceId, body, requestHeaders } = { requestHeaders: {} },
7177
+ async updateAppCustomFieldByResourceSlug(
7178
+ { resource, resourceSlug, body, requestHeaders } = { requestHeaders: {} },
7001
7179
  { responseHeaders } = { responseHeaders: false }
7002
7180
  ) {
7003
7181
  const {
7004
7182
  error,
7005
- } = ContentPlatformApplicationValidator.updateAppCustomFieldByResourceId().validate(
7183
+ } = ContentPlatformApplicationValidator.updateAppCustomFieldByResourceSlug().validate(
7006
7184
  {
7007
7185
  resource,
7008
- resourceId,
7186
+ resourceSlug,
7009
7187
  body,
7010
7188
  },
7011
7189
  { abortEarly: false, allowUnknown: true }
@@ -7017,10 +7195,10 @@ class Content {
7017
7195
  // Showing warrnings if extra unknown parameters are found
7018
7196
  const {
7019
7197
  error: warrning,
7020
- } = ContentPlatformApplicationValidator.updateAppCustomFieldByResourceId().validate(
7198
+ } = ContentPlatformApplicationValidator.updateAppCustomFieldByResourceSlug().validate(
7021
7199
  {
7022
7200
  resource,
7023
- resourceId,
7201
+ resourceSlug,
7024
7202
  body,
7025
7203
  },
7026
7204
  { abortEarly: false, allowUnknown: false }
@@ -7028,7 +7206,7 @@ class Content {
7028
7206
  if (warrning) {
7029
7207
  Logger({
7030
7208
  level: "WARN",
7031
- message: `Parameter Validation warrnings for platform > Content > updateAppCustomFieldByResourceId \n ${warrning}`,
7209
+ message: `Parameter Validation warrnings for platform > Content > updateAppCustomFieldByResourceSlug \n ${warrning}`,
7032
7210
  });
7033
7211
  }
7034
7212
 
@@ -7037,7 +7215,7 @@ class Content {
7037
7215
  const response = await PlatformAPIClient.execute(
7038
7216
  this.config,
7039
7217
  "put",
7040
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/${resource}/${resourceId}`,
7218
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/${resourceSlug}`,
7041
7219
  query_params,
7042
7220
  body,
7043
7221
  requestHeaders,
@@ -7062,7 +7240,7 @@ class Content {
7062
7240
  } else {
7063
7241
  Logger({
7064
7242
  level: "WARN",
7065
- message: `Response Validation Warnings for platform > Content > updateAppCustomFieldByResourceId \n ${res_error}`,
7243
+ message: `Response Validation Warnings for platform > Content > updateAppCustomFieldByResourceSlug \n ${res_error}`,
7066
7244
  });
7067
7245
  }
7068
7246
  }
@@ -7071,7 +7249,7 @@ class Content {
7071
7249
  }
7072
7250
 
7073
7251
  /**
7074
- * @param {ContentPlatformApplicationValidator.UpdateAppCustomFieldDefinitionParam} arg
7252
+ * @param {ContentPlatformApplicationValidator.UpdateAppCustomFieldDefinitionBySlugParam} arg
7075
7253
  * - Arg object
7076
7254
  *
7077
7255
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -7079,19 +7257,23 @@ class Content {
7079
7257
  * @returns {Promise<ContentPlatformModel.CustomFieldDefinitionDetailResSchema>}
7080
7258
  * - Success response
7081
7259
  *
7082
- * @name updateAppCustomFieldDefinition
7260
+ * @name updateAppCustomFieldDefinitionBySlug
7083
7261
  * @summary: Update custom field definition
7084
- * @description: Custom fields definition can be update using this api, You can update custom field definition name and description. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAppCustomFieldDefinition/).
7262
+ * @description: Custom fields definition can be update using this api, You can update custom field definition name and description. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAppCustomFieldDefinitionBySlug/).
7085
7263
  */
7086
- async updateAppCustomFieldDefinition(
7087
- { id, body, requestHeaders } = { requestHeaders: {} },
7264
+ async updateAppCustomFieldDefinitionBySlug(
7265
+ { slug, resource, namespace, body, requestHeaders } = {
7266
+ requestHeaders: {},
7267
+ },
7088
7268
  { responseHeaders } = { responseHeaders: false }
7089
7269
  ) {
7090
7270
  const {
7091
7271
  error,
7092
- } = ContentPlatformApplicationValidator.updateAppCustomFieldDefinition().validate(
7272
+ } = ContentPlatformApplicationValidator.updateAppCustomFieldDefinitionBySlug().validate(
7093
7273
  {
7094
- id,
7274
+ slug,
7275
+ resource,
7276
+ namespace,
7095
7277
  body,
7096
7278
  },
7097
7279
  { abortEarly: false, allowUnknown: true }
@@ -7103,9 +7285,11 @@ class Content {
7103
7285
  // Showing warrnings if extra unknown parameters are found
7104
7286
  const {
7105
7287
  error: warrning,
7106
- } = ContentPlatformApplicationValidator.updateAppCustomFieldDefinition().validate(
7288
+ } = ContentPlatformApplicationValidator.updateAppCustomFieldDefinitionBySlug().validate(
7107
7289
  {
7108
- id,
7290
+ slug,
7291
+ resource,
7292
+ namespace,
7109
7293
  body,
7110
7294
  },
7111
7295
  { abortEarly: false, allowUnknown: false }
@@ -7113,7 +7297,7 @@ class Content {
7113
7297
  if (warrning) {
7114
7298
  Logger({
7115
7299
  level: "WARN",
7116
- message: `Parameter Validation warrnings for platform > Content > updateAppCustomFieldDefinition \n ${warrning}`,
7300
+ message: `Parameter Validation warrnings for platform > Content > updateAppCustomFieldDefinitionBySlug \n ${warrning}`,
7117
7301
  });
7118
7302
  }
7119
7303
 
@@ -7122,7 +7306,7 @@ class Content {
7122
7306
  const response = await PlatformAPIClient.execute(
7123
7307
  this.config,
7124
7308
  "put",
7125
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/definitions/${id}`,
7309
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/namespace/${namespace}/definition/${slug}`,
7126
7310
  query_params,
7127
7311
  body,
7128
7312
  requestHeaders,
@@ -7147,7 +7331,7 @@ class Content {
7147
7331
  } else {
7148
7332
  Logger({
7149
7333
  level: "WARN",
7150
- message: `Response Validation Warnings for platform > Content > updateAppCustomFieldDefinition \n ${res_error}`,
7334
+ message: `Response Validation Warnings for platform > Content > updateAppCustomFieldDefinitionBySlug \n ${res_error}`,
7151
7335
  });
7152
7336
  }
7153
7337
  }
@@ -7156,25 +7340,27 @@ class Content {
7156
7340
  }
7157
7341
 
7158
7342
  /**
7159
- * @param {ContentPlatformApplicationValidator.UpdateAppCustomObjectParam} arg
7343
+ * @param {ContentPlatformApplicationValidator.UpdateAppCustomObjectBySlugParam} arg
7160
7344
  * - Arg object
7161
7345
  *
7162
7346
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
7163
7347
  * @param {import("../PlatformAPIClient").Options} - Options
7164
- * @returns {Promise<ContentPlatformModel.CustomObjectSchema>} - Success response
7165
- * @name updateAppCustomObject
7348
+ * @returns {Promise<ContentPlatformModel.CustomObjectBySlugSchema>} -
7349
+ * Success response
7350
+ * @name updateAppCustomObjectBySlug
7166
7351
  * @summary: Update custom object details
7167
- * @description: Custom object entries can be updated using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAppCustomObject/).
7352
+ * @description: Custom object entries can be updated using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAppCustomObjectBySlug/).
7168
7353
  */
7169
- async updateAppCustomObject(
7170
- { id, body, requestHeaders } = { requestHeaders: {} },
7354
+ async updateAppCustomObjectBySlug(
7355
+ { definitionSlug, slug, body, requestHeaders } = { requestHeaders: {} },
7171
7356
  { responseHeaders } = { responseHeaders: false }
7172
7357
  ) {
7173
7358
  const {
7174
7359
  error,
7175
- } = ContentPlatformApplicationValidator.updateAppCustomObject().validate(
7360
+ } = ContentPlatformApplicationValidator.updateAppCustomObjectBySlug().validate(
7176
7361
  {
7177
- id,
7362
+ definitionSlug,
7363
+ slug,
7178
7364
  body,
7179
7365
  },
7180
7366
  { abortEarly: false, allowUnknown: true }
@@ -7186,9 +7372,10 @@ class Content {
7186
7372
  // Showing warrnings if extra unknown parameters are found
7187
7373
  const {
7188
7374
  error: warrning,
7189
- } = ContentPlatformApplicationValidator.updateAppCustomObject().validate(
7375
+ } = ContentPlatformApplicationValidator.updateAppCustomObjectBySlug().validate(
7190
7376
  {
7191
- id,
7377
+ definitionSlug,
7378
+ slug,
7192
7379
  body,
7193
7380
  },
7194
7381
  { abortEarly: false, allowUnknown: false }
@@ -7196,7 +7383,7 @@ class Content {
7196
7383
  if (warrning) {
7197
7384
  Logger({
7198
7385
  level: "WARN",
7199
- message: `Parameter Validation warrnings for platform > Content > updateAppCustomObject \n ${warrning}`,
7386
+ message: `Parameter Validation warrnings for platform > Content > updateAppCustomObjectBySlug \n ${warrning}`,
7200
7387
  });
7201
7388
  }
7202
7389
 
@@ -7205,7 +7392,7 @@ class Content {
7205
7392
  const response = await PlatformAPIClient.execute(
7206
7393
  this.config,
7207
7394
  "put",
7208
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/${id}`,
7395
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries/${slug}`,
7209
7396
  query_params,
7210
7397
  body,
7211
7398
  requestHeaders,
@@ -7219,7 +7406,7 @@ class Content {
7219
7406
 
7220
7407
  const {
7221
7408
  error: res_error,
7222
- } = ContentPlatformModel.CustomObjectSchema().validate(responseData, {
7409
+ } = ContentPlatformModel.CustomObjectBySlugSchema().validate(responseData, {
7223
7410
  abortEarly: false,
7224
7411
  allowUnknown: true,
7225
7412
  });
@@ -7230,7 +7417,7 @@ class Content {
7230
7417
  } else {
7231
7418
  Logger({
7232
7419
  level: "WARN",
7233
- message: `Response Validation Warnings for platform > Content > updateAppCustomObject \n ${res_error}`,
7420
+ message: `Response Validation Warnings for platform > Content > updateAppCustomObjectBySlug \n ${res_error}`,
7234
7421
  });
7235
7422
  }
7236
7423
  }
@@ -7239,26 +7426,27 @@ class Content {
7239
7426
  }
7240
7427
 
7241
7428
  /**
7242
- * @param {ContentPlatformApplicationValidator.UpdateAppCustomObjectDefinitionParam} arg
7429
+ * @param {ContentPlatformApplicationValidator.UpdateAppCustomObjectDefinitionBySlugParam} arg
7243
7430
  * - Arg object
7244
7431
  *
7245
7432
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
7246
7433
  * @param {import("../PlatformAPIClient").Options} - Options
7247
- * @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSchema>} -
7248
- * Success response
7249
- * @name updateAppCustomObjectDefinition
7434
+ * @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSlugSchema>}
7435
+ * - Success response
7436
+ *
7437
+ * @name updateAppCustomObjectDefinitionBySlug
7250
7438
  * @summary: Update custom object definition
7251
- * @description: Use this API to update a custom object definition for your application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAppCustomObjectDefinition/).
7439
+ * @description: Custom object definitions can be updated using this endpoint. You can update the name and description of the custom object and add more custom field definitions to the existing custom object. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAppCustomObjectDefinitionBySlug/).
7252
7440
  */
7253
- async updateAppCustomObjectDefinition(
7254
- { id, body, requestHeaders } = { requestHeaders: {} },
7441
+ async updateAppCustomObjectDefinitionBySlug(
7442
+ { slug, body, requestHeaders } = { requestHeaders: {} },
7255
7443
  { responseHeaders } = { responseHeaders: false }
7256
7444
  ) {
7257
7445
  const {
7258
7446
  error,
7259
- } = ContentPlatformApplicationValidator.updateAppCustomObjectDefinition().validate(
7447
+ } = ContentPlatformApplicationValidator.updateAppCustomObjectDefinitionBySlug().validate(
7260
7448
  {
7261
- id,
7449
+ slug,
7262
7450
  body,
7263
7451
  },
7264
7452
  { abortEarly: false, allowUnknown: true }
@@ -7270,9 +7458,9 @@ class Content {
7270
7458
  // Showing warrnings if extra unknown parameters are found
7271
7459
  const {
7272
7460
  error: warrning,
7273
- } = ContentPlatformApplicationValidator.updateAppCustomObjectDefinition().validate(
7461
+ } = ContentPlatformApplicationValidator.updateAppCustomObjectDefinitionBySlug().validate(
7274
7462
  {
7275
- id,
7463
+ slug,
7276
7464
  body,
7277
7465
  },
7278
7466
  { abortEarly: false, allowUnknown: false }
@@ -7280,7 +7468,7 @@ class Content {
7280
7468
  if (warrning) {
7281
7469
  Logger({
7282
7470
  level: "WARN",
7283
- message: `Parameter Validation warrnings for platform > Content > updateAppCustomObjectDefinition \n ${warrning}`,
7471
+ message: `Parameter Validation warrnings for platform > Content > updateAppCustomObjectDefinitionBySlug \n ${warrning}`,
7284
7472
  });
7285
7473
  }
7286
7474
 
@@ -7289,7 +7477,7 @@ class Content {
7289
7477
  const response = await PlatformAPIClient.execute(
7290
7478
  this.config,
7291
7479
  "put",
7292
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/definitions/${id}`,
7480
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}`,
7293
7481
  query_params,
7294
7482
  body,
7295
7483
  requestHeaders,
@@ -7303,7 +7491,7 @@ class Content {
7303
7491
 
7304
7492
  const {
7305
7493
  error: res_error,
7306
- } = ContentPlatformModel.CustomObjectDefinitionSchema().validate(
7494
+ } = ContentPlatformModel.CustomObjectDefinitionSlugSchema().validate(
7307
7495
  responseData,
7308
7496
  { abortEarly: false, allowUnknown: true }
7309
7497
  );
@@ -7314,7 +7502,173 @@ class Content {
7314
7502
  } else {
7315
7503
  Logger({
7316
7504
  level: "WARN",
7317
- message: `Response Validation Warnings for platform > Content > updateAppCustomObjectDefinition \n ${res_error}`,
7505
+ message: `Response Validation Warnings for platform > Content > updateAppCustomObjectDefinitionBySlug \n ${res_error}`,
7506
+ });
7507
+ }
7508
+ }
7509
+
7510
+ return response;
7511
+ }
7512
+
7513
+ /**
7514
+ * @param {ContentPlatformApplicationValidator.UpdateApplicationLanguageStatusParam} arg
7515
+ * - Arg object
7516
+ *
7517
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
7518
+ * @param {import("../PlatformAPIClient").Options} - Options
7519
+ * @returns {Promise<ContentPlatformModel.ApplicationLanguage>} - Success response
7520
+ * @name updateApplicationLanguageStatus
7521
+ * @summary: Set app language
7522
+ * @description: Update language status and settings for the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateApplicationLanguageStatus/).
7523
+ */
7524
+ async updateApplicationLanguageStatus(
7525
+ { locale, body, requestHeaders } = { requestHeaders: {} },
7526
+ { responseHeaders } = { responseHeaders: false }
7527
+ ) {
7528
+ const {
7529
+ error,
7530
+ } = ContentPlatformApplicationValidator.updateApplicationLanguageStatus().validate(
7531
+ {
7532
+ locale,
7533
+ body,
7534
+ },
7535
+ { abortEarly: false, allowUnknown: true }
7536
+ );
7537
+ if (error) {
7538
+ return Promise.reject(new FDKClientValidationError(error));
7539
+ }
7540
+
7541
+ // Showing warrnings if extra unknown parameters are found
7542
+ const {
7543
+ error: warrning,
7544
+ } = ContentPlatformApplicationValidator.updateApplicationLanguageStatus().validate(
7545
+ {
7546
+ locale,
7547
+ body,
7548
+ },
7549
+ { abortEarly: false, allowUnknown: false }
7550
+ );
7551
+ if (warrning) {
7552
+ Logger({
7553
+ level: "WARN",
7554
+ message: `Parameter Validation warrnings for platform > Content > updateApplicationLanguageStatus \n ${warrning}`,
7555
+ });
7556
+ }
7557
+
7558
+ const query_params = {};
7559
+
7560
+ const response = await PlatformAPIClient.execute(
7561
+ this.config,
7562
+ "put",
7563
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/languages/${locale}`,
7564
+ query_params,
7565
+ body,
7566
+ requestHeaders,
7567
+ { responseHeaders }
7568
+ );
7569
+
7570
+ let responseData = response;
7571
+ if (responseHeaders) {
7572
+ responseData = response[0];
7573
+ }
7574
+
7575
+ const {
7576
+ error: res_error,
7577
+ } = ContentPlatformModel.ApplicationLanguage().validate(responseData, {
7578
+ abortEarly: false,
7579
+ allowUnknown: true,
7580
+ });
7581
+
7582
+ if (res_error) {
7583
+ if (this.config.options.strictResponseCheck === true) {
7584
+ return Promise.reject(new FDKResponseValidationError(res_error));
7585
+ } else {
7586
+ Logger({
7587
+ level: "WARN",
7588
+ message: `Response Validation Warnings for platform > Content > updateApplicationLanguageStatus \n ${res_error}`,
7589
+ });
7590
+ }
7591
+ }
7592
+
7593
+ return response;
7594
+ }
7595
+
7596
+ /**
7597
+ * @param {ContentPlatformApplicationValidator.UpdateApplicationResourceTranslationParam} arg
7598
+ * - Arg object
7599
+ *
7600
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
7601
+ * @param {import("../PlatformAPIClient").Options} - Options
7602
+ * @returns {Promise<ContentPlatformModel.ResourceTranslation>} - Success response
7603
+ * @name updateApplicationResourceTranslation
7604
+ * @summary: Update app translation
7605
+ * @description: Update existing translations for application resources. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateApplicationResourceTranslation/).
7606
+ */
7607
+ async updateApplicationResourceTranslation(
7608
+ { id, body, requestHeaders } = { requestHeaders: {} },
7609
+ { responseHeaders } = { responseHeaders: false }
7610
+ ) {
7611
+ const {
7612
+ error,
7613
+ } = ContentPlatformApplicationValidator.updateApplicationResourceTranslation().validate(
7614
+ {
7615
+ id,
7616
+ body,
7617
+ },
7618
+ { abortEarly: false, allowUnknown: true }
7619
+ );
7620
+ if (error) {
7621
+ return Promise.reject(new FDKClientValidationError(error));
7622
+ }
7623
+
7624
+ // Showing warrnings if extra unknown parameters are found
7625
+ const {
7626
+ error: warrning,
7627
+ } = ContentPlatformApplicationValidator.updateApplicationResourceTranslation().validate(
7628
+ {
7629
+ id,
7630
+ body,
7631
+ },
7632
+ { abortEarly: false, allowUnknown: false }
7633
+ );
7634
+ if (warrning) {
7635
+ Logger({
7636
+ level: "WARN",
7637
+ message: `Parameter Validation warrnings for platform > Content > updateApplicationResourceTranslation \n ${warrning}`,
7638
+ });
7639
+ }
7640
+
7641
+ const query_params = {};
7642
+
7643
+ const response = await PlatformAPIClient.execute(
7644
+ this.config,
7645
+ "put",
7646
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/resource/translations/${id}`,
7647
+ query_params,
7648
+ body,
7649
+ requestHeaders,
7650
+ { responseHeaders }
7651
+ );
7652
+
7653
+ let responseData = response;
7654
+ if (responseHeaders) {
7655
+ responseData = response[0];
7656
+ }
7657
+
7658
+ const {
7659
+ error: res_error,
7660
+ } = ContentPlatformModel.ResourceTranslation().validate(responseData, {
7661
+ abortEarly: false,
7662
+ allowUnknown: true,
7663
+ });
7664
+
7665
+ if (res_error) {
7666
+ if (this.config.options.strictResponseCheck === true) {
7667
+ return Promise.reject(new FDKResponseValidationError(res_error));
7668
+ } else {
7669
+ Logger({
7670
+ level: "WARN",
7671
+ message: `Response Validation Warnings for platform > Content > updateApplicationResourceTranslation \n ${res_error}`,
7318
7672
  });
7319
7673
  }
7320
7674
  }
@@ -7573,8 +7927,8 @@ class Content {
7573
7927
  * @param {import("../PlatformAPIClient").Options} - Options
7574
7928
  * @returns {Promise<ContentPlatformModel.TagsSchema>} - Success response
7575
7929
  * @name updateInjectableTag
7576
- * @summary: Update HTML Tags
7577
- * @description: Use this API to edit all HTML Tags present - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateInjectableTag/).
7930
+ * @summary: Update HTML tag
7931
+ * @description: Modify settings for an injectable tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateInjectableTag/).
7578
7932
  */
7579
7933
  async updateInjectableTag(
7580
7934
  { body, requestHeaders } = { requestHeaders: {} },
@@ -8059,7 +8413,7 @@ class Content {
8059
8413
  *
8060
8414
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
8061
8415
  * @param {import("../PlatformAPIClient").Options} - Options
8062
- * @returns {Promise<ContentPlatformModel.CreatePathMappingSchema>} - Success response
8416
+ * @returns {Promise<ContentPlatformModel.PathMappingSchema>} - Success response
8063
8417
  * @name updatePathRedirectionRules
8064
8418
  * @summary: Update path redirection rule
8065
8419
  * @description: Modify settings for path redirection rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updatePathRedirectionRules/).
@@ -8117,7 +8471,7 @@ class Content {
8117
8471
 
8118
8472
  const {
8119
8473
  error: res_error,
8120
- } = ContentPlatformModel.CreatePathMappingSchema().validate(responseData, {
8474
+ } = ContentPlatformModel.PathMappingSchema().validate(responseData, {
8121
8475
  abortEarly: false,
8122
8476
  allowUnknown: true,
8123
8477
  });
@@ -8297,6 +8651,173 @@ class Content {
8297
8651
 
8298
8652
  return response;
8299
8653
  }
8654
+
8655
+ /**
8656
+ * @param {ContentPlatformApplicationValidator.UpdateTranslateUILabelsParam} arg
8657
+ * - Arg object
8658
+ *
8659
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
8660
+ * @param {import("../PlatformAPIClient").Options} - Options
8661
+ * @returns {Promise<ContentPlatformModel.TranslateUiLabels>} - Success response
8662
+ * @name updateTranslateUILabels
8663
+ * @summary: Update Resource Detail
8664
+ * @description: Modifies existing Translate Ui Labels properties including locale, type, and associated configurations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateTranslateUILabels/).
8665
+ */
8666
+ async updateTranslateUILabels(
8667
+ { id, body, requestHeaders } = { requestHeaders: {} },
8668
+ { responseHeaders } = { responseHeaders: false }
8669
+ ) {
8670
+ const {
8671
+ error,
8672
+ } = ContentPlatformApplicationValidator.updateTranslateUILabels().validate(
8673
+ {
8674
+ id,
8675
+
8676
+ body,
8677
+ },
8678
+ { abortEarly: false, allowUnknown: true }
8679
+ );
8680
+ if (error) {
8681
+ return Promise.reject(new FDKClientValidationError(error));
8682
+ }
8683
+
8684
+ // Showing warrnings if extra unknown parameters are found
8685
+ const {
8686
+ error: warrning,
8687
+ } = ContentPlatformApplicationValidator.updateTranslateUILabels().validate(
8688
+ {
8689
+ id,
8690
+
8691
+ body,
8692
+ },
8693
+ { abortEarly: false, allowUnknown: false }
8694
+ );
8695
+ if (warrning) {
8696
+ Logger({
8697
+ level: "WARN",
8698
+ message: `Parameter Validation warrnings for platform > Content > updateTranslateUILabels \n ${warrning}`,
8699
+ });
8700
+ }
8701
+
8702
+ const query_params = {};
8703
+
8704
+ const response = await PlatformAPIClient.execute(
8705
+ this.config,
8706
+ "put",
8707
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/translate-ui-labels/${id}`,
8708
+ query_params,
8709
+ body,
8710
+ requestHeaders,
8711
+ { responseHeaders }
8712
+ );
8713
+
8714
+ let responseData = response;
8715
+ if (responseHeaders) {
8716
+ responseData = response[0];
8717
+ }
8718
+
8719
+ const {
8720
+ error: res_error,
8721
+ } = ContentPlatformModel.TranslateUiLabels().validate(responseData, {
8722
+ abortEarly: false,
8723
+ allowUnknown: true,
8724
+ });
8725
+
8726
+ if (res_error) {
8727
+ if (this.config.options.strictResponseCheck === true) {
8728
+ return Promise.reject(new FDKResponseValidationError(res_error));
8729
+ } else {
8730
+ Logger({
8731
+ level: "WARN",
8732
+ message: `Response Validation Warnings for platform > Content > updateTranslateUILabels \n ${res_error}`,
8733
+ });
8734
+ }
8735
+ }
8736
+
8737
+ return response;
8738
+ }
8739
+
8740
+ /**
8741
+ * @param {ContentPlatformApplicationValidator.UpsertApplicationResourceTranslationInBulkParam} arg
8742
+ * - Arg object
8743
+ *
8744
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
8745
+ * @param {import("../PlatformAPIClient").Options} - Options
8746
+ * @returns {Promise<ContentPlatformModel.ResourceTranslationBulkUpsert>} -
8747
+ * Success response
8748
+ * @name upsertApplicationResourceTranslationInBulk
8749
+ * @summary: Bulk update translations
8750
+ * @description: Create or update multiple translations in a single request. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/upsertApplicationResourceTranslationInBulk/).
8751
+ */
8752
+ async upsertApplicationResourceTranslationInBulk(
8753
+ { body, requestHeaders } = { requestHeaders: {} },
8754
+ { responseHeaders } = { responseHeaders: false }
8755
+ ) {
8756
+ const {
8757
+ error,
8758
+ } = ContentPlatformApplicationValidator.upsertApplicationResourceTranslationInBulk().validate(
8759
+ {
8760
+ body,
8761
+ },
8762
+ { abortEarly: false, allowUnknown: true }
8763
+ );
8764
+ if (error) {
8765
+ return Promise.reject(new FDKClientValidationError(error));
8766
+ }
8767
+
8768
+ // Showing warrnings if extra unknown parameters are found
8769
+ const {
8770
+ error: warrning,
8771
+ } = ContentPlatformApplicationValidator.upsertApplicationResourceTranslationInBulk().validate(
8772
+ {
8773
+ body,
8774
+ },
8775
+ { abortEarly: false, allowUnknown: false }
8776
+ );
8777
+ if (warrning) {
8778
+ Logger({
8779
+ level: "WARN",
8780
+ message: `Parameter Validation warrnings for platform > Content > upsertApplicationResourceTranslationInBulk \n ${warrning}`,
8781
+ });
8782
+ }
8783
+
8784
+ const query_params = {};
8785
+
8786
+ const response = await PlatformAPIClient.execute(
8787
+ this.config,
8788
+ "patch",
8789
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/resource/translations/bulk`,
8790
+ query_params,
8791
+ body,
8792
+ requestHeaders,
8793
+ { responseHeaders }
8794
+ );
8795
+
8796
+ let responseData = response;
8797
+ if (responseHeaders) {
8798
+ responseData = response[0];
8799
+ }
8800
+
8801
+ const {
8802
+ error: res_error,
8803
+ } = ContentPlatformModel.ResourceTranslationBulkUpsert().validate(
8804
+ responseData,
8805
+ { abortEarly: false, allowUnknown: true }
8806
+ );
8807
+
8808
+ if (res_error) {
8809
+ if (this.config.options.strictResponseCheck === true) {
8810
+ return Promise.reject(new FDKResponseValidationError(res_error));
8811
+ } else {
8812
+ Logger({
8813
+ level: "WARN",
8814
+ message: `Response Validation Warnings for platform > Content > upsertApplicationResourceTranslationInBulk \n ${res_error}`,
8815
+ });
8816
+ }
8817
+ }
8818
+
8819
+ return response;
8820
+ }
8300
8821
  }
8301
8822
 
8302
8823
  module.exports = Content;