@gofynd/fdk-client-javascript 1.4.15-beta.2 → 1.4.15-beta.3

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 (314) hide show
  1. package/README.md +2 -2
  2. package/application.d.ts +1 -2
  3. package/application.js +2 -3
  4. package/index.d.ts +1 -2
  5. package/index.js +7 -1
  6. package/package.json +2 -3
  7. package/sdk/application/ApplicationClient.d.ts +2 -0
  8. package/sdk/application/ApplicationClient.js +2 -18
  9. package/sdk/application/Cart/CartApplicationClient.d.ts +75 -90
  10. package/sdk/application/Cart/CartApplicationClient.js +111 -1200
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +81 -142
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +41 -1344
  13. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
  14. package/sdk/application/Common/CommonApplicationClient.js +2 -92
  15. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
  16. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -148
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
  18. package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -727
  19. package/sdk/application/Content/ContentApplicationClient.d.ts +52 -95
  20. package/sdk/application/Content/ContentApplicationClient.js +46 -990
  21. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -13
  22. package/sdk/application/FileStorage/FileStorageApplicationClient.js +8 -138
  23. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  24. package/sdk/application/Finance/FinanceApplicationClient.js +105 -0
  25. package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
  26. package/sdk/application/Lead/LeadApplicationClient.js +5 -217
  27. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +42 -39
  28. package/sdk/application/Logistic/LogisticApplicationClient.js +89 -493
  29. package/sdk/application/Order/OrderApplicationClient.d.ts +36 -46
  30. package/sdk/application/Order/OrderApplicationClient.js +52 -507
  31. package/sdk/application/Payment/PaymentApplicationClient.d.ts +93 -213
  32. package/sdk/application/Payment/PaymentApplicationClient.js +49 -2109
  33. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -29
  34. package/sdk/application/Rewards/RewardsApplicationClient.js +8 -312
  35. package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
  36. package/sdk/application/Share/ShareApplicationClient.js +7 -309
  37. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
  38. package/sdk/application/Theme/ThemeApplicationClient.js +8 -176
  39. package/sdk/application/User/UserApplicationClient.d.ts +87 -138
  40. package/sdk/application/User/UserApplicationClient.js +44 -1820
  41. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
  42. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -52
  43. package/sdk/application/index.d.ts +0 -18
  44. package/sdk/application/index.js +0 -33
  45. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  46. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  47. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  49. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  50. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  51. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  52. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  53. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  54. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  55. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  56. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  57. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
  58. package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
  59. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  60. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
  61. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  62. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  63. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  64. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  65. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  66. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  67. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  68. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  69. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  70. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  71. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  72. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  73. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  74. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  75. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  76. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  77. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  78. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  79. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  80. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  82. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  83. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  84. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  85. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  86. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  87. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  88. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  89. package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
  90. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +118 -65
  91. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
  92. package/sdk/platform/Cart/CartPlatformModel.d.ts +5046 -1300
  93. package/sdk/platform/Cart/CartPlatformModel.js +1979 -1217
  94. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
  95. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
  97. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
  98. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
  99. package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
  100. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6506 -1775
  101. package/sdk/platform/Catalog/CatalogPlatformModel.js +3224 -1690
  102. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
  103. package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
  104. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  105. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  106. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  107. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  112. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  113. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  114. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  120. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  124. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  125. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  126. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  127. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  128. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  129. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  130. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  131. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  132. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  133. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  134. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  135. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  136. package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
  137. package/sdk/platform/Content/ContentPlatformModel.js +521 -390
  138. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  139. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  140. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  141. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  142. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  143. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  144. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  145. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  146. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  149. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  150. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  151. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  152. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  153. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  154. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  155. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  156. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  157. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  158. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  159. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  160. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
  161. package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
  162. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
  163. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
  164. package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
  165. package/sdk/platform/Order/OrderPlatformClient.js +416 -198
  166. package/sdk/platform/Order/OrderPlatformModel.d.ts +7602 -1269
  167. package/sdk/platform/Order/OrderPlatformModel.js +3926 -1269
  168. package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
  169. package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
  170. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  171. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  172. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  173. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  174. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  175. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  176. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  177. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  178. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  179. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  180. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
  181. package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
  182. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  183. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  184. package/sdk/platform/PlatformClient.d.ts +0 -2
  185. package/sdk/platform/PlatformClient.js +0 -4
  186. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  187. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  188. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  189. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  190. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  191. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +46 -36
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
  202. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  203. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  204. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  205. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  206. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  208. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  210. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  211. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  212. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  213. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  214. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  215. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  216. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  217. package/sdk/platform/User/UserPlatformModel.js +23 -23
  218. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  219. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  220. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  221. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  222. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  223. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  224. package/sdk/platform/index.d.ts +0 -1
  225. package/sdk/platform/index.js +0 -2
  226. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  227. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -7
  228. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  229. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  230. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  231. package/sdk/public/Content/ContentPublicClient.js +795 -7
  232. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  233. package/sdk/public/Content/ContentPublicModel.js +649 -3
  234. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  235. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  236. package/sdk/public/Partner/PartnerPublicClient.js +4 -2
  237. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  238. package/sdk/public/Webhook/WebhookPublicClient.js +12 -10
  239. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  240. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  241. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  242. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  243. package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
  244. package/sdk/application/Cart/CartApplicationModel.js +0 -2497
  245. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
  246. package/sdk/application/Cart/CartApplicationValidator.js +0 -530
  247. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
  248. package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
  249. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
  250. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
  251. package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
  252. package/sdk/application/Common/CommonApplicationModel.js +0 -308
  253. package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
  254. package/sdk/application/Common/CommonApplicationValidator.js +0 -38
  255. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
  256. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
  257. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
  258. package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
  259. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
  260. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
  261. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
  262. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
  263. package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
  264. package/sdk/application/Content/ContentApplicationModel.js +0 -1589
  265. package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
  266. package/sdk/application/Content/ContentApplicationValidator.js +0 -264
  267. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
  268. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
  269. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
  270. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
  271. package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
  272. package/sdk/application/Lead/LeadApplicationModel.js +0 -480
  273. package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
  274. package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
  275. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
  276. package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
  277. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
  278. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
  279. package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
  280. package/sdk/application/Order/OrderApplicationModel.js +0 -1471
  281. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
  282. package/sdk/application/Order/OrderApplicationValidator.js +0 -197
  283. package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
  284. package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
  285. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
  286. package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
  287. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
  288. package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
  289. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
  290. package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
  291. package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
  292. package/sdk/application/Share/ShareApplicationModel.js +0 -234
  293. package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
  294. package/sdk/application/Share/ShareApplicationValidator.js +0 -91
  295. package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
  296. package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
  297. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
  298. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
  299. package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
  300. package/sdk/application/User/UserApplicationModel.js +0 -1382
  301. package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
  302. package/sdk/application/User/UserApplicationValidator.js +0 -573
  303. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
  304. package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
  305. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
  306. package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
  307. package/sdk/common/Clickstream.d.ts +0 -1
  308. package/sdk/common/Clickstream.js +0 -464
  309. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  310. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  311. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  312. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  313. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  314. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -416,93 +416,6 @@ class Content {
416
416
  return response;
417
417
  }
418
418
 
419
- /**
420
- * @param {ContentPlatformApplicationValidator.CreateAppCustomFieldByResourceIdParam} arg
421
- * - Arg object
422
- *
423
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
424
- * @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/).
431
- */
432
- async createAppCustomFieldByResourceId(
433
- { resource, resourceId, body, requestHeaders } = { requestHeaders: {} },
434
- { responseHeaders } = { responseHeaders: false }
435
- ) {
436
- const {
437
- error,
438
- } = ContentPlatformApplicationValidator.createAppCustomFieldByResourceId().validate(
439
- {
440
- resource,
441
- resourceId,
442
- body,
443
- },
444
- { abortEarly: false, allowUnknown: true }
445
- );
446
- if (error) {
447
- return Promise.reject(new FDKClientValidationError(error));
448
- }
449
-
450
- // Showing warrnings if extra unknown parameters are found
451
- const {
452
- error: warrning,
453
- } = ContentPlatformApplicationValidator.createAppCustomFieldByResourceId().validate(
454
- {
455
- resource,
456
- resourceId,
457
- body,
458
- },
459
- { abortEarly: false, allowUnknown: false }
460
- );
461
- if (warrning) {
462
- Logger({
463
- level: "WARN",
464
- message: `Parameter Validation warrnings for platform > Content > createAppCustomFieldByResourceId \n ${warrning}`,
465
- });
466
- }
467
-
468
- const query_params = {};
469
-
470
- const response = await PlatformAPIClient.execute(
471
- this.config,
472
- "put",
473
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/${resource}/${resourceId}`,
474
- query_params,
475
- body,
476
- requestHeaders,
477
- { responseHeaders }
478
- );
479
-
480
- let responseData = response;
481
- if (responseHeaders) {
482
- responseData = response[0];
483
- }
484
-
485
- const {
486
- error: res_error,
487
- } = ContentPlatformModel.CustomFieldsResponseByResourceIdSchema().validate(
488
- responseData,
489
- { abortEarly: false, allowUnknown: true }
490
- );
491
-
492
- if (res_error) {
493
- if (this.config.options.strictResponseCheck === true) {
494
- return Promise.reject(new FDKResponseValidationError(res_error));
495
- } else {
496
- Logger({
497
- level: "WARN",
498
- message: `Response Validation Warnings for platform > Content > createAppCustomFieldByResourceId \n ${res_error}`,
499
- });
500
- }
501
- }
502
-
503
- return response;
504
- }
505
-
506
419
  /**
507
420
  * @param {ContentPlatformApplicationValidator.CreateAppCustomFieldDefinitionParam} arg
508
421
  * - Arg object
@@ -513,17 +426,18 @@ class Content {
513
426
  * - Success response
514
427
  *
515
428
  * @name createAppCustomFieldDefinition
516
- * @summary: Create custom field definition
429
+ * @summary: Create custom field definition for a given resource type
517
430
  * @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
431
  */
519
432
  async createAppCustomFieldDefinition(
520
- { body, requestHeaders } = { requestHeaders: {} },
433
+ { resource, body, requestHeaders } = { requestHeaders: {} },
521
434
  { responseHeaders } = { responseHeaders: false }
522
435
  ) {
523
436
  const {
524
437
  error,
525
438
  } = ContentPlatformApplicationValidator.createAppCustomFieldDefinition().validate(
526
439
  {
440
+ resource,
527
441
  body,
528
442
  },
529
443
  { abortEarly: false, allowUnknown: true }
@@ -537,6 +451,7 @@ class Content {
537
451
  error: warrning,
538
452
  } = ContentPlatformApplicationValidator.createAppCustomFieldDefinition().validate(
539
453
  {
454
+ resource,
540
455
  body,
541
456
  },
542
457
  { abortEarly: false, allowUnknown: false }
@@ -553,7 +468,7 @@ class Content {
553
468
  const response = await PlatformAPIClient.execute(
554
469
  this.config,
555
470
  "post",
556
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/definitions`,
471
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/definition`,
557
472
  query_params,
558
473
  body,
559
474
  requestHeaders,
@@ -587,24 +502,25 @@ class Content {
587
502
  }
588
503
 
589
504
  /**
590
- * @param {ContentPlatformApplicationValidator.CreateAppCustomObjectParam} arg
505
+ * @param {ContentPlatformApplicationValidator.CreateAppCustomObjectBySlugParam} arg
591
506
  * - Arg object
592
507
  *
593
508
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
594
509
  * @param {import("../PlatformAPIClient").Options} - Options
595
510
  * @returns {Promise<ContentPlatformModel.CustomObjectSchema>} - Success response
596
- * @name createAppCustomObject
511
+ * @name createAppCustomObjectBySlug
597
512
  * @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/).
513
+ * @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
514
  */
600
- async createAppCustomObject(
601
- { body, requestHeaders } = { requestHeaders: {} },
515
+ async createAppCustomObjectBySlug(
516
+ { definitionSlug, body, requestHeaders } = { requestHeaders: {} },
602
517
  { responseHeaders } = { responseHeaders: false }
603
518
  ) {
604
519
  const {
605
520
  error,
606
- } = ContentPlatformApplicationValidator.createAppCustomObject().validate(
521
+ } = ContentPlatformApplicationValidator.createAppCustomObjectBySlug().validate(
607
522
  {
523
+ definitionSlug,
608
524
  body,
609
525
  },
610
526
  { abortEarly: false, allowUnknown: true }
@@ -616,8 +532,9 @@ class Content {
616
532
  // Showing warrnings if extra unknown parameters are found
617
533
  const {
618
534
  error: warrning,
619
- } = ContentPlatformApplicationValidator.createAppCustomObject().validate(
535
+ } = ContentPlatformApplicationValidator.createAppCustomObjectBySlug().validate(
620
536
  {
537
+ definitionSlug,
621
538
  body,
622
539
  },
623
540
  { abortEarly: false, allowUnknown: false }
@@ -625,7 +542,7 @@ class Content {
625
542
  if (warrning) {
626
543
  Logger({
627
544
  level: "WARN",
628
- message: `Parameter Validation warrnings for platform > Content > createAppCustomObject \n ${warrning}`,
545
+ message: `Parameter Validation warrnings for platform > Content > createAppCustomObjectBySlug \n ${warrning}`,
629
546
  });
630
547
  }
631
548
 
@@ -634,7 +551,7 @@ class Content {
634
551
  const response = await PlatformAPIClient.execute(
635
552
  this.config,
636
553
  "post",
637
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects`,
554
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries`,
638
555
  query_params,
639
556
  body,
640
557
  requestHeaders,
@@ -659,7 +576,7 @@ class Content {
659
576
  } else {
660
577
  Logger({
661
578
  level: "WARN",
662
- message: `Response Validation Warnings for platform > Content > createAppCustomObject \n ${res_error}`,
579
+ message: `Response Validation Warnings for platform > Content > createAppCustomObjectBySlug \n ${res_error}`,
663
580
  });
664
581
  }
665
582
  }
@@ -673,8 +590,9 @@ class Content {
673
590
  *
674
591
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
675
592
  * @param {import("../PlatformAPIClient").Options} - Options
676
- * @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSchema>} -
677
- * Success response
593
+ * @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSlugSchema>}
594
+ * - Success response
595
+ *
678
596
  * @name createAppCustomObjectDefinition
679
597
  * @summary: Create custom object definition
680
598
  * @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 +634,7 @@ class Content {
716
634
  const response = await PlatformAPIClient.execute(
717
635
  this.config,
718
636
  "post",
719
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/definitions`,
637
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition`,
720
638
  query_params,
721
639
  body,
722
640
  requestHeaders,
@@ -730,7 +648,7 @@ class Content {
730
648
 
731
649
  const {
732
650
  error: res_error,
733
- } = ContentPlatformModel.CustomObjectDefinitionSchema().validate(
651
+ } = ContentPlatformModel.CustomObjectDefinitionSlugSchema().validate(
734
652
  responseData,
735
653
  { abortEarly: false, allowUnknown: true }
736
654
  );
@@ -1468,25 +1386,27 @@ class Content {
1468
1386
  }
1469
1387
 
1470
1388
  /**
1471
- * @param {ContentPlatformApplicationValidator.DeleteAppCustomFieldDefinitionParam} arg
1389
+ * @param {ContentPlatformApplicationValidator.DeleteAppCustomFieldDefinitionBySlugParam} arg
1472
1390
  * - Arg object
1473
1391
  *
1474
1392
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1475
1393
  * @param {import("../PlatformAPIClient").Options} - Options
1476
1394
  * @returns {Promise<ContentPlatformModel.CustomDataDeleteSchema>} - Success response
1477
- * @name deleteAppCustomFieldDefinition
1395
+ * @name deleteAppCustomFieldDefinitionBySlug
1478
1396
  * @summary: Delete custom fields definition
1479
- * @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/).
1397
+ * @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/).
1480
1398
  */
1481
- async deleteAppCustomFieldDefinition(
1482
- { definitionId, requestHeaders } = { requestHeaders: {} },
1399
+ async deleteAppCustomFieldDefinitionBySlug(
1400
+ { slug, resource, namespace, requestHeaders } = { requestHeaders: {} },
1483
1401
  { responseHeaders } = { responseHeaders: false }
1484
1402
  ) {
1485
1403
  const {
1486
1404
  error,
1487
- } = ContentPlatformApplicationValidator.deleteAppCustomFieldDefinition().validate(
1405
+ } = ContentPlatformApplicationValidator.deleteAppCustomFieldDefinitionBySlug().validate(
1488
1406
  {
1489
- definitionId,
1407
+ slug,
1408
+ resource,
1409
+ namespace,
1490
1410
  },
1491
1411
  { abortEarly: false, allowUnknown: true }
1492
1412
  );
@@ -1497,16 +1417,18 @@ class Content {
1497
1417
  // Showing warrnings if extra unknown parameters are found
1498
1418
  const {
1499
1419
  error: warrning,
1500
- } = ContentPlatformApplicationValidator.deleteAppCustomFieldDefinition().validate(
1420
+ } = ContentPlatformApplicationValidator.deleteAppCustomFieldDefinitionBySlug().validate(
1501
1421
  {
1502
- definitionId,
1422
+ slug,
1423
+ resource,
1424
+ namespace,
1503
1425
  },
1504
1426
  { abortEarly: false, allowUnknown: false }
1505
1427
  );
1506
1428
  if (warrning) {
1507
1429
  Logger({
1508
1430
  level: "WARN",
1509
- message: `Parameter Validation warrnings for platform > Content > deleteAppCustomFieldDefinition \n ${warrning}`,
1431
+ message: `Parameter Validation warrnings for platform > Content > deleteAppCustomFieldDefinitionBySlug \n ${warrning}`,
1510
1432
  });
1511
1433
  }
1512
1434
 
@@ -1515,7 +1437,7 @@ class Content {
1515
1437
  const response = await PlatformAPIClient.execute(
1516
1438
  this.config,
1517
1439
  "delete",
1518
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/definitions/${definitionId}`,
1440
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/namespace/${namespace}/definition/${slug}`,
1519
1441
  query_params,
1520
1442
  undefined,
1521
1443
  requestHeaders,
@@ -1540,7 +1462,7 @@ class Content {
1540
1462
  } else {
1541
1463
  Logger({
1542
1464
  level: "WARN",
1543
- message: `Response Validation Warnings for platform > Content > deleteAppCustomFieldDefinition \n ${res_error}`,
1465
+ message: `Response Validation Warnings for platform > Content > deleteAppCustomFieldDefinitionBySlug \n ${res_error}`,
1544
1466
  });
1545
1467
  }
1546
1468
  }
@@ -1549,25 +1471,26 @@ class Content {
1549
1471
  }
1550
1472
 
1551
1473
  /**
1552
- * @param {ContentPlatformApplicationValidator.DeleteAppCustomObjectParam} arg
1474
+ * @param {ContentPlatformApplicationValidator.DeleteAppCustomObjectBySlugParam} arg
1553
1475
  * - Arg object
1554
1476
  *
1555
1477
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1556
1478
  * @param {import("../PlatformAPIClient").Options} - Options
1557
1479
  * @returns {Promise<ContentPlatformModel.CustomDataDeleteSchema>} - Success response
1558
- * @name deleteAppCustomObject
1480
+ * @name deleteAppCustomObjectBySlug
1559
1481
  * @summary: Delete custom object
1560
- * @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/).
1482
+ * @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/).
1561
1483
  */
1562
- async deleteAppCustomObject(
1563
- { metaobjectId, requestHeaders } = { requestHeaders: {} },
1484
+ async deleteAppCustomObjectBySlug(
1485
+ { definitionSlug, slug, requestHeaders } = { requestHeaders: {} },
1564
1486
  { responseHeaders } = { responseHeaders: false }
1565
1487
  ) {
1566
1488
  const {
1567
1489
  error,
1568
- } = ContentPlatformApplicationValidator.deleteAppCustomObject().validate(
1490
+ } = ContentPlatformApplicationValidator.deleteAppCustomObjectBySlug().validate(
1569
1491
  {
1570
- metaobjectId,
1492
+ definitionSlug,
1493
+ slug,
1571
1494
  },
1572
1495
  { abortEarly: false, allowUnknown: true }
1573
1496
  );
@@ -1578,16 +1501,17 @@ class Content {
1578
1501
  // Showing warrnings if extra unknown parameters are found
1579
1502
  const {
1580
1503
  error: warrning,
1581
- } = ContentPlatformApplicationValidator.deleteAppCustomObject().validate(
1504
+ } = ContentPlatformApplicationValidator.deleteAppCustomObjectBySlug().validate(
1582
1505
  {
1583
- metaobjectId,
1506
+ definitionSlug,
1507
+ slug,
1584
1508
  },
1585
1509
  { abortEarly: false, allowUnknown: false }
1586
1510
  );
1587
1511
  if (warrning) {
1588
1512
  Logger({
1589
1513
  level: "WARN",
1590
- message: `Parameter Validation warrnings for platform > Content > deleteAppCustomObject \n ${warrning}`,
1514
+ message: `Parameter Validation warrnings for platform > Content > deleteAppCustomObjectBySlug \n ${warrning}`,
1591
1515
  });
1592
1516
  }
1593
1517
 
@@ -1596,7 +1520,7 @@ class Content {
1596
1520
  const response = await PlatformAPIClient.execute(
1597
1521
  this.config,
1598
1522
  "delete",
1599
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/${metaobjectId}`,
1523
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries/${slug}`,
1600
1524
  query_params,
1601
1525
  undefined,
1602
1526
  requestHeaders,
@@ -1621,7 +1545,7 @@ class Content {
1621
1545
  } else {
1622
1546
  Logger({
1623
1547
  level: "WARN",
1624
- message: `Response Validation Warnings for platform > Content > deleteAppCustomObject \n ${res_error}`,
1548
+ message: `Response Validation Warnings for platform > Content > deleteAppCustomObjectBySlug \n ${res_error}`,
1625
1549
  });
1626
1550
  }
1627
1551
  }
@@ -1630,7 +1554,7 @@ class Content {
1630
1554
  }
1631
1555
 
1632
1556
  /**
1633
- * @param {ContentPlatformApplicationValidator.DeleteAppCustomObjectDefinitionParam} arg
1557
+ * @param {ContentPlatformApplicationValidator.DeleteAppCustomObjectDefinitionBySlugParam} arg
1634
1558
  * - Arg object
1635
1559
  *
1636
1560
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -1638,19 +1562,19 @@ class Content {
1638
1562
  * @returns {Promise<ContentPlatformModel.CustomObjectDefinitionDeleteResponseSchema>}
1639
1563
  * - Success response
1640
1564
  *
1641
- * @name deleteAppCustomObjectDefinition
1565
+ * @name deleteAppCustomObjectDefinitionBySlug
1642
1566
  * @summary: Delete custom object definition
1643
- * @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/).
1567
+ * @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/).
1644
1568
  */
1645
- async deleteAppCustomObjectDefinition(
1646
- { definitionId, requestHeaders } = { requestHeaders: {} },
1569
+ async deleteAppCustomObjectDefinitionBySlug(
1570
+ { slug, requestHeaders } = { requestHeaders: {} },
1647
1571
  { responseHeaders } = { responseHeaders: false }
1648
1572
  ) {
1649
1573
  const {
1650
1574
  error,
1651
- } = ContentPlatformApplicationValidator.deleteAppCustomObjectDefinition().validate(
1575
+ } = ContentPlatformApplicationValidator.deleteAppCustomObjectDefinitionBySlug().validate(
1652
1576
  {
1653
- definitionId,
1577
+ slug,
1654
1578
  },
1655
1579
  { abortEarly: false, allowUnknown: true }
1656
1580
  );
@@ -1661,16 +1585,16 @@ class Content {
1661
1585
  // Showing warrnings if extra unknown parameters are found
1662
1586
  const {
1663
1587
  error: warrning,
1664
- } = ContentPlatformApplicationValidator.deleteAppCustomObjectDefinition().validate(
1588
+ } = ContentPlatformApplicationValidator.deleteAppCustomObjectDefinitionBySlug().validate(
1665
1589
  {
1666
- definitionId,
1590
+ slug,
1667
1591
  },
1668
1592
  { abortEarly: false, allowUnknown: false }
1669
1593
  );
1670
1594
  if (warrning) {
1671
1595
  Logger({
1672
1596
  level: "WARN",
1673
- message: `Parameter Validation warrnings for platform > Content > deleteAppCustomObjectDefinition \n ${warrning}`,
1597
+ message: `Parameter Validation warrnings for platform > Content > deleteAppCustomObjectDefinitionBySlug \n ${warrning}`,
1674
1598
  });
1675
1599
  }
1676
1600
 
@@ -1679,7 +1603,7 @@ class Content {
1679
1603
  const response = await PlatformAPIClient.execute(
1680
1604
  this.config,
1681
1605
  "delete",
1682
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/definitions/${definitionId}`,
1606
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}`,
1683
1607
  query_params,
1684
1608
  undefined,
1685
1609
  requestHeaders,
@@ -1704,7 +1628,7 @@ class Content {
1704
1628
  } else {
1705
1629
  Logger({
1706
1630
  level: "WARN",
1707
- message: `Response Validation Warnings for platform > Content > deleteAppCustomObjectDefinition \n ${res_error}`,
1631
+ message: `Response Validation Warnings for platform > Content > deleteAppCustomObjectDefinitionBySlug \n ${res_error}`,
1708
1632
  });
1709
1633
  }
1710
1634
  }
@@ -2754,7 +2678,7 @@ class Content {
2754
2678
  }
2755
2679
 
2756
2680
  /**
2757
- * @param {ContentPlatformApplicationValidator.ExportAppCustomObjectEntriesParam} arg
2681
+ * @param {ContentPlatformApplicationValidator.ExportAppCustomObjectEntriesBySlugParam} arg
2758
2682
  * - Arg object
2759
2683
  *
2760
2684
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -2762,19 +2686,19 @@ class Content {
2762
2686
  * @returns {Promise<ContentPlatformModel.CustomObjectBulkEntryInitiateDownload>}
2763
2687
  * - Success response
2764
2688
  *
2765
- * @name exportAppCustomObjectEntries
2689
+ * @name exportAppCustomObjectEntriesBySlug
2766
2690
  * @summary: Initiate download for bulk custom object entries
2767
- * @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/).
2691
+ * @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/).
2768
2692
  */
2769
- async exportAppCustomObjectEntries(
2770
- { definitionId, requestHeaders } = { requestHeaders: {} },
2693
+ async exportAppCustomObjectEntriesBySlug(
2694
+ { slug, requestHeaders } = { requestHeaders: {} },
2771
2695
  { responseHeaders } = { responseHeaders: false }
2772
2696
  ) {
2773
2697
  const {
2774
2698
  error,
2775
- } = ContentPlatformApplicationValidator.exportAppCustomObjectEntries().validate(
2699
+ } = ContentPlatformApplicationValidator.exportAppCustomObjectEntriesBySlug().validate(
2776
2700
  {
2777
- definitionId,
2701
+ slug,
2778
2702
  },
2779
2703
  { abortEarly: false, allowUnknown: true }
2780
2704
  );
@@ -2785,16 +2709,16 @@ class Content {
2785
2709
  // Showing warrnings if extra unknown parameters are found
2786
2710
  const {
2787
2711
  error: warrning,
2788
- } = ContentPlatformApplicationValidator.exportAppCustomObjectEntries().validate(
2712
+ } = ContentPlatformApplicationValidator.exportAppCustomObjectEntriesBySlug().validate(
2789
2713
  {
2790
- definitionId,
2714
+ slug,
2791
2715
  },
2792
2716
  { abortEarly: false, allowUnknown: false }
2793
2717
  );
2794
2718
  if (warrning) {
2795
2719
  Logger({
2796
2720
  level: "WARN",
2797
- message: `Parameter Validation warrnings for platform > Content > exportAppCustomObjectEntries \n ${warrning}`,
2721
+ message: `Parameter Validation warrnings for platform > Content > exportAppCustomObjectEntriesBySlug \n ${warrning}`,
2798
2722
  });
2799
2723
  }
2800
2724
 
@@ -2803,7 +2727,7 @@ class Content {
2803
2727
  const response = await PlatformAPIClient.execute(
2804
2728
  this.config,
2805
2729
  "get",
2806
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/bulk/${definitionId}/download`,
2730
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}/bulk/download`,
2807
2731
  query_params,
2808
2732
  undefined,
2809
2733
  requestHeaders,
@@ -2828,7 +2752,7 @@ class Content {
2828
2752
  } else {
2829
2753
  Logger({
2830
2754
  level: "WARN",
2831
- message: `Response Validation Warnings for platform > Content > exportAppCustomObjectEntries \n ${res_error}`,
2755
+ message: `Response Validation Warnings for platform > Content > exportAppCustomObjectEntriesBySlug \n ${res_error}`,
2832
2756
  });
2833
2757
  }
2834
2758
  }
@@ -3085,27 +3009,41 @@ class Content {
3085
3009
  }
3086
3010
 
3087
3011
  /**
3088
- * @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionParam} arg
3012
+ * @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionByResourceParam} arg
3089
3013
  * - Arg object
3090
3014
  *
3091
3015
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3092
3016
  * @param {import("../PlatformAPIClient").Options} - Options
3093
- * @returns {Promise<ContentPlatformModel.CustomFieldDefinitionDetailResSchema>}
3094
- * - Success response
3095
- *
3096
- * @name getAppCustomFieldDefinition
3097
- * @summary: Get custom fields definition
3098
- * @description: Custom field definitions can be fetch using definition id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldDefinition/).
3017
+ * @returns {Promise<ContentPlatformModel.CustomFieldDefinitionsSchema>} -
3018
+ * Success response
3019
+ * @name getAppCustomFieldDefinitionByResource
3020
+ * @summary: Get custom fields definitions for a given resource type
3021
+ * @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/).
3099
3022
  */
3100
- async getAppCustomFieldDefinition(
3101
- { definitionId, requestHeaders } = { requestHeaders: {} },
3023
+ async getAppCustomFieldDefinitionByResource(
3024
+ {
3025
+ pageNo,
3026
+ pageSize,
3027
+ resource,
3028
+ types,
3029
+ search,
3030
+ slugs,
3031
+ namespaces,
3032
+ requestHeaders,
3033
+ } = { requestHeaders: {} },
3102
3034
  { responseHeaders } = { responseHeaders: false }
3103
3035
  ) {
3104
3036
  const {
3105
3037
  error,
3106
- } = ContentPlatformApplicationValidator.getAppCustomFieldDefinition().validate(
3038
+ } = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionByResource().validate(
3107
3039
  {
3108
- definitionId,
3040
+ pageNo,
3041
+ pageSize,
3042
+ resource,
3043
+ types,
3044
+ search,
3045
+ slugs,
3046
+ namespaces,
3109
3047
  },
3110
3048
  { abortEarly: false, allowUnknown: true }
3111
3049
  );
@@ -3116,25 +3054,37 @@ class Content {
3116
3054
  // Showing warrnings if extra unknown parameters are found
3117
3055
  const {
3118
3056
  error: warrning,
3119
- } = ContentPlatformApplicationValidator.getAppCustomFieldDefinition().validate(
3057
+ } = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionByResource().validate(
3120
3058
  {
3121
- definitionId,
3059
+ pageNo,
3060
+ pageSize,
3061
+ resource,
3062
+ types,
3063
+ search,
3064
+ slugs,
3065
+ namespaces,
3122
3066
  },
3123
3067
  { abortEarly: false, allowUnknown: false }
3124
3068
  );
3125
3069
  if (warrning) {
3126
3070
  Logger({
3127
3071
  level: "WARN",
3128
- message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinition \n ${warrning}`,
3072
+ message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinitionByResource \n ${warrning}`,
3129
3073
  });
3130
3074
  }
3131
3075
 
3132
3076
  const query_params = {};
3077
+ query_params["page_no"] = pageNo;
3078
+ query_params["page_size"] = pageSize;
3079
+ query_params["types"] = types;
3080
+ query_params["search"] = search;
3081
+ query_params["slugs"] = slugs;
3082
+ query_params["namespaces"] = namespaces;
3133
3083
 
3134
3084
  const response = await PlatformAPIClient.execute(
3135
3085
  this.config,
3136
3086
  "get",
3137
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/definitions/${definitionId}`,
3087
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/definition`,
3138
3088
  query_params,
3139
3089
  undefined,
3140
3090
  requestHeaders,
@@ -3148,7 +3098,7 @@ class Content {
3148
3098
 
3149
3099
  const {
3150
3100
  error: res_error,
3151
- } = ContentPlatformModel.CustomFieldDefinitionDetailResSchema().validate(
3101
+ } = ContentPlatformModel.CustomFieldDefinitionsSchema().validate(
3152
3102
  responseData,
3153
3103
  { abortEarly: false, allowUnknown: true }
3154
3104
  );
@@ -3159,7 +3109,7 @@ class Content {
3159
3109
  } else {
3160
3110
  Logger({
3161
3111
  level: "WARN",
3162
- message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinition \n ${res_error}`,
3112
+ message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinitionByResource \n ${res_error}`,
3163
3113
  });
3164
3114
  }
3165
3115
  }
@@ -3168,32 +3118,29 @@ class Content {
3168
3118
  }
3169
3119
 
3170
3120
  /**
3171
- * @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionsParam} arg
3121
+ * @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionBySlugParam} arg
3172
3122
  * - Arg object
3173
3123
  *
3174
3124
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3175
3125
  * @param {import("../PlatformAPIClient").Options} - Options
3176
- * @returns {Promise<ContentPlatformModel.CustomFieldDefinitionsSchema>} -
3177
- * Success response
3178
- * @name getAppCustomFieldDefinitions
3179
- * @summary: Get custom fields definitions
3180
- * @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/).
3126
+ * @returns {Promise<ContentPlatformModel.MetaFieldDefinitionDetailResSchema>}
3127
+ * - Success response
3128
+ *
3129
+ * @name getAppCustomFieldDefinitionBySlug
3130
+ * @summary: Get custom fields definition by resource, slug and namespace
3131
+ * @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/).
3181
3132
  */
3182
- async getAppCustomFieldDefinitions(
3183
- { pageNo, pageSize, resource, type, search, requestHeaders } = {
3184
- requestHeaders: {},
3185
- },
3133
+ async getAppCustomFieldDefinitionBySlug(
3134
+ { slug, resource, namespace, requestHeaders } = { requestHeaders: {} },
3186
3135
  { responseHeaders } = { responseHeaders: false }
3187
3136
  ) {
3188
3137
  const {
3189
3138
  error,
3190
- } = ContentPlatformApplicationValidator.getAppCustomFieldDefinitions().validate(
3139
+ } = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionBySlug().validate(
3191
3140
  {
3192
- pageNo,
3193
- pageSize,
3141
+ slug,
3194
3142
  resource,
3195
- type,
3196
- search,
3143
+ namespace,
3197
3144
  },
3198
3145
  { abortEarly: false, allowUnknown: true }
3199
3146
  );
@@ -3204,34 +3151,27 @@ class Content {
3204
3151
  // Showing warrnings if extra unknown parameters are found
3205
3152
  const {
3206
3153
  error: warrning,
3207
- } = ContentPlatformApplicationValidator.getAppCustomFieldDefinitions().validate(
3154
+ } = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionBySlug().validate(
3208
3155
  {
3209
- pageNo,
3210
- pageSize,
3156
+ slug,
3211
3157
  resource,
3212
- type,
3213
- search,
3158
+ namespace,
3214
3159
  },
3215
3160
  { abortEarly: false, allowUnknown: false }
3216
3161
  );
3217
3162
  if (warrning) {
3218
3163
  Logger({
3219
3164
  level: "WARN",
3220
- message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinitions \n ${warrning}`,
3165
+ message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinitionBySlug \n ${warrning}`,
3221
3166
  });
3222
3167
  }
3223
3168
 
3224
3169
  const query_params = {};
3225
- query_params["page_no"] = pageNo;
3226
- query_params["page_size"] = pageSize;
3227
- query_params["resource"] = resource;
3228
- query_params["type"] = type;
3229
- query_params["search"] = search;
3230
3170
 
3231
3171
  const response = await PlatformAPIClient.execute(
3232
3172
  this.config,
3233
3173
  "get",
3234
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/definitions`,
3174
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/namespace/${namespace}/definition/${slug}`,
3235
3175
  query_params,
3236
3176
  undefined,
3237
3177
  requestHeaders,
@@ -3245,7 +3185,7 @@ class Content {
3245
3185
 
3246
3186
  const {
3247
3187
  error: res_error,
3248
- } = ContentPlatformModel.CustomFieldDefinitionsSchema().validate(
3188
+ } = ContentPlatformModel.MetaFieldDefinitionDetailResSchema().validate(
3249
3189
  responseData,
3250
3190
  { abortEarly: false, allowUnknown: true }
3251
3191
  );
@@ -3256,7 +3196,7 @@ class Content {
3256
3196
  } else {
3257
3197
  Logger({
3258
3198
  level: "WARN",
3259
- message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinitions \n ${res_error}`,
3199
+ message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinitionBySlug \n ${res_error}`,
3260
3200
  });
3261
3201
  }
3262
3202
  }
@@ -3265,24 +3205,42 @@ class Content {
3265
3205
  }
3266
3206
 
3267
3207
  /**
3268
- * @param {ContentPlatformApplicationValidator.GetAppCustomFieldTypesParam} arg
3208
+ * @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionsParam} arg
3269
3209
  * - Arg object
3270
3210
  *
3271
3211
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3272
3212
  * @param {import("../PlatformAPIClient").Options} - Options
3273
- * @returns {Promise<ContentPlatformModel.CustomObjectByIdSchema>} - Success response
3274
- * @name getAppCustomFieldTypes
3275
- * @summary: Get custom field types
3276
- * @description: Each custom field and custom field definition has a type, which defines the type of information that it can store. The custom field types have built-in validation. This api will give list of supported custom fields types - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldTypes/).
3213
+ * @returns {Promise<ContentPlatformModel.CustomFieldDefinitionsSchema>} -
3214
+ * Success response
3215
+ * @name getAppCustomFieldDefinitions
3216
+ * @summary: Get custom fields definitions
3217
+ * @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/).
3277
3218
  */
3278
- async getAppCustomFieldTypes(
3279
- { requestHeaders } = { requestHeaders: {} },
3219
+ async getAppCustomFieldDefinitions(
3220
+ {
3221
+ pageNo,
3222
+ pageSize,
3223
+ resources,
3224
+ types,
3225
+ search,
3226
+ slugs,
3227
+ namespaces,
3228
+ requestHeaders,
3229
+ } = { requestHeaders: {} },
3280
3230
  { responseHeaders } = { responseHeaders: false }
3281
3231
  ) {
3282
3232
  const {
3283
3233
  error,
3284
- } = ContentPlatformApplicationValidator.getAppCustomFieldTypes().validate(
3285
- {},
3234
+ } = ContentPlatformApplicationValidator.getAppCustomFieldDefinitions().validate(
3235
+ {
3236
+ pageNo,
3237
+ pageSize,
3238
+ resources,
3239
+ types,
3240
+ search,
3241
+ slugs,
3242
+ namespaces,
3243
+ },
3286
3244
  { abortEarly: false, allowUnknown: true }
3287
3245
  );
3288
3246
  if (error) {
@@ -3292,23 +3250,38 @@ class Content {
3292
3250
  // Showing warrnings if extra unknown parameters are found
3293
3251
  const {
3294
3252
  error: warrning,
3295
- } = ContentPlatformApplicationValidator.getAppCustomFieldTypes().validate(
3296
- {},
3253
+ } = ContentPlatformApplicationValidator.getAppCustomFieldDefinitions().validate(
3254
+ {
3255
+ pageNo,
3256
+ pageSize,
3257
+ resources,
3258
+ types,
3259
+ search,
3260
+ slugs,
3261
+ namespaces,
3262
+ },
3297
3263
  { abortEarly: false, allowUnknown: false }
3298
3264
  );
3299
3265
  if (warrning) {
3300
3266
  Logger({
3301
3267
  level: "WARN",
3302
- message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldTypes \n ${warrning}`,
3268
+ message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinitions \n ${warrning}`,
3303
3269
  });
3304
3270
  }
3305
3271
 
3306
3272
  const query_params = {};
3273
+ query_params["page_no"] = pageNo;
3274
+ query_params["page_size"] = pageSize;
3275
+ query_params["resources"] = resources;
3276
+ query_params["types"] = types;
3277
+ query_params["search"] = search;
3278
+ query_params["slugs"] = slugs;
3279
+ query_params["namespaces"] = namespaces;
3307
3280
 
3308
3281
  const response = await PlatformAPIClient.execute(
3309
3282
  this.config,
3310
3283
  "get",
3311
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/types`,
3284
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/definition`,
3312
3285
  query_params,
3313
3286
  undefined,
3314
3287
  requestHeaders,
@@ -3322,10 +3295,10 @@ class Content {
3322
3295
 
3323
3296
  const {
3324
3297
  error: res_error,
3325
- } = ContentPlatformModel.CustomObjectByIdSchema().validate(responseData, {
3326
- abortEarly: false,
3327
- allowUnknown: true,
3328
- });
3298
+ } = ContentPlatformModel.CustomFieldDefinitionsSchema().validate(
3299
+ responseData,
3300
+ { abortEarly: false, allowUnknown: true }
3301
+ );
3329
3302
 
3330
3303
  if (res_error) {
3331
3304
  if (this.config.options.strictResponseCheck === true) {
@@ -3333,7 +3306,7 @@ class Content {
3333
3306
  } else {
3334
3307
  Logger({
3335
3308
  level: "WARN",
3336
- message: `Response Validation Warnings for platform > Content > getAppCustomFieldTypes \n ${res_error}`,
3309
+ message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinitions \n ${res_error}`,
3337
3310
  });
3338
3311
  }
3339
3312
  }
@@ -3342,27 +3315,24 @@ class Content {
3342
3315
  }
3343
3316
 
3344
3317
  /**
3345
- * @param {ContentPlatformApplicationValidator.GetAppCustomFieldsParam} arg
3318
+ * @param {ContentPlatformApplicationValidator.GetAppCustomFieldTypesParam} arg
3346
3319
  * - Arg object
3347
3320
  *
3348
3321
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3349
3322
  * @param {import("../PlatformAPIClient").Options} - Options
3350
- * @returns {Promise<ContentPlatformModel.CustomFieldsResponseSchema>} -
3351
- * Success response
3352
- * @name getAppCustomFields
3353
- * @summary: Get list of custom fields of gives resource
3354
- * @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/).
3323
+ * @returns {Promise<ContentPlatformModel.MetafieldTypesSchema>} - Success response
3324
+ * @name getAppCustomFieldTypes
3325
+ * @summary: Get custom field types
3326
+ * @description: Each custom field and custom field definition has a type, which defines the type of information that it can store. The custom field types have built-in validation. This api will give list of supported custom fields types - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldTypes/).
3355
3327
  */
3356
- async getAppCustomFields(
3357
- { resource, requestHeaders } = { requestHeaders: {} },
3328
+ async getAppCustomFieldTypes(
3329
+ { requestHeaders } = { requestHeaders: {} },
3358
3330
  { responseHeaders } = { responseHeaders: false }
3359
3331
  ) {
3360
3332
  const {
3361
3333
  error,
3362
- } = ContentPlatformApplicationValidator.getAppCustomFields().validate(
3363
- {
3364
- resource,
3365
- },
3334
+ } = ContentPlatformApplicationValidator.getAppCustomFieldTypes().validate(
3335
+ {},
3366
3336
  { abortEarly: false, allowUnknown: true }
3367
3337
  );
3368
3338
  if (error) {
@@ -3372,16 +3342,14 @@ class Content {
3372
3342
  // Showing warrnings if extra unknown parameters are found
3373
3343
  const {
3374
3344
  error: warrning,
3375
- } = ContentPlatformApplicationValidator.getAppCustomFields().validate(
3376
- {
3377
- resource,
3378
- },
3345
+ } = ContentPlatformApplicationValidator.getAppCustomFieldTypes().validate(
3346
+ {},
3379
3347
  { abortEarly: false, allowUnknown: false }
3380
3348
  );
3381
3349
  if (warrning) {
3382
3350
  Logger({
3383
3351
  level: "WARN",
3384
- message: `Parameter Validation warrnings for platform > Content > getAppCustomFields \n ${warrning}`,
3352
+ message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldTypes \n ${warrning}`,
3385
3353
  });
3386
3354
  }
3387
3355
 
@@ -3390,7 +3358,7 @@ class Content {
3390
3358
  const response = await PlatformAPIClient.execute(
3391
3359
  this.config,
3392
3360
  "get",
3393
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/${resource}`,
3361
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/types`,
3394
3362
  query_params,
3395
3363
  undefined,
3396
3364
  requestHeaders,
@@ -3404,10 +3372,10 @@ class Content {
3404
3372
 
3405
3373
  const {
3406
3374
  error: res_error,
3407
- } = ContentPlatformModel.CustomFieldsResponseSchema().validate(
3408
- responseData,
3409
- { abortEarly: false, allowUnknown: true }
3410
- );
3375
+ } = ContentPlatformModel.MetafieldTypesSchema().validate(responseData, {
3376
+ abortEarly: false,
3377
+ allowUnknown: true,
3378
+ });
3411
3379
 
3412
3380
  if (res_error) {
3413
3381
  if (this.config.options.strictResponseCheck === true) {
@@ -3415,7 +3383,7 @@ class Content {
3415
3383
  } else {
3416
3384
  Logger({
3417
3385
  level: "WARN",
3418
- message: `Response Validation Warnings for platform > Content > getAppCustomFields \n ${res_error}`,
3386
+ message: `Response Validation Warnings for platform > Content > getAppCustomFieldTypes \n ${res_error}`,
3419
3387
  });
3420
3388
  }
3421
3389
  }
@@ -3424,7 +3392,7 @@ class Content {
3424
3392
  }
3425
3393
 
3426
3394
  /**
3427
- * @param {ContentPlatformApplicationValidator.GetAppCustomFieldsByResourceIdParam} arg
3395
+ * @param {ContentPlatformApplicationValidator.GetAppCustomFieldsByResourceSlugParam} arg
3428
3396
  * - Arg object
3429
3397
  *
3430
3398
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -3432,20 +3400,20 @@ class Content {
3432
3400
  * @returns {Promise<ContentPlatformModel.CustomFieldsResponseByResourceIdSchema>}
3433
3401
  * - Success response
3434
3402
  *
3435
- * @name getAppCustomFieldsByResourceId
3436
- * @summary: Get list of custom fields of given resource and resource id
3437
- * @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/).
3403
+ * @name getAppCustomFieldsByResourceSlug
3404
+ * @summary: Get list of custom fields of given resource and resource slug
3405
+ * @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/).
3438
3406
  */
3439
- async getAppCustomFieldsByResourceId(
3440
- { resource, resourceId, requestHeaders } = { requestHeaders: {} },
3407
+ async getAppCustomFieldsByResourceSlug(
3408
+ { resource, resourceSlug, requestHeaders } = { requestHeaders: {} },
3441
3409
  { responseHeaders } = { responseHeaders: false }
3442
3410
  ) {
3443
3411
  const {
3444
3412
  error,
3445
- } = ContentPlatformApplicationValidator.getAppCustomFieldsByResourceId().validate(
3413
+ } = ContentPlatformApplicationValidator.getAppCustomFieldsByResourceSlug().validate(
3446
3414
  {
3447
3415
  resource,
3448
- resourceId,
3416
+ resourceSlug,
3449
3417
  },
3450
3418
  { abortEarly: false, allowUnknown: true }
3451
3419
  );
@@ -3456,17 +3424,17 @@ class Content {
3456
3424
  // Showing warrnings if extra unknown parameters are found
3457
3425
  const {
3458
3426
  error: warrning,
3459
- } = ContentPlatformApplicationValidator.getAppCustomFieldsByResourceId().validate(
3427
+ } = ContentPlatformApplicationValidator.getAppCustomFieldsByResourceSlug().validate(
3460
3428
  {
3461
3429
  resource,
3462
- resourceId,
3430
+ resourceSlug,
3463
3431
  },
3464
3432
  { abortEarly: false, allowUnknown: false }
3465
3433
  );
3466
3434
  if (warrning) {
3467
3435
  Logger({
3468
3436
  level: "WARN",
3469
- message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldsByResourceId \n ${warrning}`,
3437
+ message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldsByResourceSlug \n ${warrning}`,
3470
3438
  });
3471
3439
  }
3472
3440
 
@@ -3475,7 +3443,7 @@ class Content {
3475
3443
  const response = await PlatformAPIClient.execute(
3476
3444
  this.config,
3477
3445
  "get",
3478
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/${resource}/${resourceId}`,
3446
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/${resourceSlug}`,
3479
3447
  query_params,
3480
3448
  undefined,
3481
3449
  requestHeaders,
@@ -3500,7 +3468,7 @@ class Content {
3500
3468
  } else {
3501
3469
  Logger({
3502
3470
  level: "WARN",
3503
- message: `Response Validation Warnings for platform > Content > getAppCustomFieldsByResourceId \n ${res_error}`,
3471
+ message: `Response Validation Warnings for platform > Content > getAppCustomFieldsByResourceSlug \n ${res_error}`,
3504
3472
  });
3505
3473
  }
3506
3474
  }
@@ -3509,25 +3477,27 @@ class Content {
3509
3477
  }
3510
3478
 
3511
3479
  /**
3512
- * @param {ContentPlatformApplicationValidator.GetAppCustomObjectParam} arg
3480
+ * @param {ContentPlatformApplicationValidator.GetAppCustomObjectBySlugParam} arg
3513
3481
  * - Arg object
3514
3482
  *
3515
3483
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3516
3484
  * @param {import("../PlatformAPIClient").Options} - Options
3517
- * @returns {Promise<ContentPlatformModel.CustomObjectByIdSchema>} - Success response
3518
- * @name getAppCustomObject
3485
+ * @returns {Promise<ContentPlatformModel.CustomObjectBySlugSchema>} -
3486
+ * Success response
3487
+ * @name getAppCustomObjectBySlug
3519
3488
  * @summary: Get custom object details
3520
- * @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/).
3489
+ * @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/).
3521
3490
  */
3522
- async getAppCustomObject(
3523
- { metaobjectId, requestHeaders } = { requestHeaders: {} },
3491
+ async getAppCustomObjectBySlug(
3492
+ { definitionSlug, slug, requestHeaders } = { requestHeaders: {} },
3524
3493
  { responseHeaders } = { responseHeaders: false }
3525
3494
  ) {
3526
3495
  const {
3527
3496
  error,
3528
- } = ContentPlatformApplicationValidator.getAppCustomObject().validate(
3497
+ } = ContentPlatformApplicationValidator.getAppCustomObjectBySlug().validate(
3529
3498
  {
3530
- metaobjectId,
3499
+ definitionSlug,
3500
+ slug,
3531
3501
  },
3532
3502
  { abortEarly: false, allowUnknown: true }
3533
3503
  );
@@ -3538,16 +3508,17 @@ class Content {
3538
3508
  // Showing warrnings if extra unknown parameters are found
3539
3509
  const {
3540
3510
  error: warrning,
3541
- } = ContentPlatformApplicationValidator.getAppCustomObject().validate(
3511
+ } = ContentPlatformApplicationValidator.getAppCustomObjectBySlug().validate(
3542
3512
  {
3543
- metaobjectId,
3513
+ definitionSlug,
3514
+ slug,
3544
3515
  },
3545
3516
  { abortEarly: false, allowUnknown: false }
3546
3517
  );
3547
3518
  if (warrning) {
3548
3519
  Logger({
3549
3520
  level: "WARN",
3550
- message: `Parameter Validation warrnings for platform > Content > getAppCustomObject \n ${warrning}`,
3521
+ message: `Parameter Validation warrnings for platform > Content > getAppCustomObjectBySlug \n ${warrning}`,
3551
3522
  });
3552
3523
  }
3553
3524
 
@@ -3556,7 +3527,7 @@ class Content {
3556
3527
  const response = await PlatformAPIClient.execute(
3557
3528
  this.config,
3558
3529
  "get",
3559
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/${metaobjectId}`,
3530
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries/${slug}`,
3560
3531
  query_params,
3561
3532
  undefined,
3562
3533
  requestHeaders,
@@ -3570,7 +3541,7 @@ class Content {
3570
3541
 
3571
3542
  const {
3572
3543
  error: res_error,
3573
- } = ContentPlatformModel.CustomObjectByIdSchema().validate(responseData, {
3544
+ } = ContentPlatformModel.CustomObjectBySlugSchema().validate(responseData, {
3574
3545
  abortEarly: false,
3575
3546
  allowUnknown: true,
3576
3547
  });
@@ -3581,7 +3552,7 @@ class Content {
3581
3552
  } else {
3582
3553
  Logger({
3583
3554
  level: "WARN",
3584
- message: `Response Validation Warnings for platform > Content > getAppCustomObject \n ${res_error}`,
3555
+ message: `Response Validation Warnings for platform > Content > getAppCustomObjectBySlug \n ${res_error}`,
3585
3556
  });
3586
3557
  }
3587
3558
  }
@@ -3590,26 +3561,27 @@ class Content {
3590
3561
  }
3591
3562
 
3592
3563
  /**
3593
- * @param {ContentPlatformApplicationValidator.GetAppCustomObjectDefinitionParam} arg
3564
+ * @param {ContentPlatformApplicationValidator.GetAppCustomObjectDefinitionBySlugParam} arg
3594
3565
  * - Arg object
3595
3566
  *
3596
3567
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3597
3568
  * @param {import("../PlatformAPIClient").Options} - Options
3598
- * @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSchema>} -
3599
- * Success response
3600
- * @name getAppCustomObjectDefinition
3569
+ * @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSlugSchema>}
3570
+ * - Success response
3571
+ *
3572
+ * @name getAppCustomObjectDefinitionBySlug
3601
3573
  * @summary: Get custom object definition
3602
- * @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/).
3574
+ * @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/).
3603
3575
  */
3604
- async getAppCustomObjectDefinition(
3605
- { definitionId, requestHeaders } = { requestHeaders: {} },
3576
+ async getAppCustomObjectDefinitionBySlug(
3577
+ { slug, requestHeaders } = { requestHeaders: {} },
3606
3578
  { responseHeaders } = { responseHeaders: false }
3607
3579
  ) {
3608
3580
  const {
3609
3581
  error,
3610
- } = ContentPlatformApplicationValidator.getAppCustomObjectDefinition().validate(
3582
+ } = ContentPlatformApplicationValidator.getAppCustomObjectDefinitionBySlug().validate(
3611
3583
  {
3612
- definitionId,
3584
+ slug,
3613
3585
  },
3614
3586
  { abortEarly: false, allowUnknown: true }
3615
3587
  );
@@ -3620,16 +3592,16 @@ class Content {
3620
3592
  // Showing warrnings if extra unknown parameters are found
3621
3593
  const {
3622
3594
  error: warrning,
3623
- } = ContentPlatformApplicationValidator.getAppCustomObjectDefinition().validate(
3595
+ } = ContentPlatformApplicationValidator.getAppCustomObjectDefinitionBySlug().validate(
3624
3596
  {
3625
- definitionId,
3597
+ slug,
3626
3598
  },
3627
3599
  { abortEarly: false, allowUnknown: false }
3628
3600
  );
3629
3601
  if (warrning) {
3630
3602
  Logger({
3631
3603
  level: "WARN",
3632
- message: `Parameter Validation warrnings for platform > Content > getAppCustomObjectDefinition \n ${warrning}`,
3604
+ message: `Parameter Validation warrnings for platform > Content > getAppCustomObjectDefinitionBySlug \n ${warrning}`,
3633
3605
  });
3634
3606
  }
3635
3607
 
@@ -3638,7 +3610,7 @@ class Content {
3638
3610
  const response = await PlatformAPIClient.execute(
3639
3611
  this.config,
3640
3612
  "get",
3641
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/definitions/${definitionId}`,
3613
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}`,
3642
3614
  query_params,
3643
3615
  undefined,
3644
3616
  requestHeaders,
@@ -3652,7 +3624,7 @@ class Content {
3652
3624
 
3653
3625
  const {
3654
3626
  error: res_error,
3655
- } = ContentPlatformModel.CustomObjectDefinitionSchema().validate(
3627
+ } = ContentPlatformModel.CustomObjectDefinitionSlugSchema().validate(
3656
3628
  responseData,
3657
3629
  { abortEarly: false, allowUnknown: true }
3658
3630
  );
@@ -3663,7 +3635,7 @@ class Content {
3663
3635
  } else {
3664
3636
  Logger({
3665
3637
  level: "WARN",
3666
- message: `Response Validation Warnings for platform > Content > getAppCustomObjectDefinition \n ${res_error}`,
3638
+ message: `Response Validation Warnings for platform > Content > getAppCustomObjectDefinitionBySlug \n ${res_error}`,
3667
3639
  });
3668
3640
  }
3669
3641
  }
@@ -3727,7 +3699,7 @@ class Content {
3727
3699
  const response = await PlatformAPIClient.execute(
3728
3700
  this.config,
3729
3701
  "get",
3730
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/definitions`,
3702
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition`,
3731
3703
  query_params,
3732
3704
  undefined,
3733
3705
  requestHeaders,
@@ -3761,27 +3733,29 @@ class Content {
3761
3733
  }
3762
3734
 
3763
3735
  /**
3764
- * @param {ContentPlatformApplicationValidator.GetAppCustomObjectsParam} arg
3736
+ * @param {ContentPlatformApplicationValidator.GetAppCustomObjectsBySlugParam} arg
3765
3737
  * - Arg object
3766
3738
  *
3767
3739
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3768
3740
  * @param {import("../PlatformAPIClient").Options} - Options
3769
3741
  * @returns {Promise<ContentPlatformModel.CustomObjectsSchema>} - Success response
3770
- * @name getAppCustomObjects
3742
+ * @name getAppCustomObjectsBySlug
3771
3743
  * @summary: Get list of custom objects
3772
- * @description: Custom object entries can fetch using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomObjects/).
3744
+ * @description: Custom object entries can fetch using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomObjectsBySlug/).
3773
3745
  */
3774
- async getAppCustomObjects(
3775
- { pageNo, pageSize, definitionId, requestHeaders } = { requestHeaders: {} },
3746
+ async getAppCustomObjectsBySlug(
3747
+ { pageNo, pageSize, definitionSlug, requestHeaders } = {
3748
+ requestHeaders: {},
3749
+ },
3776
3750
  { responseHeaders } = { responseHeaders: false }
3777
3751
  ) {
3778
3752
  const {
3779
3753
  error,
3780
- } = ContentPlatformApplicationValidator.getAppCustomObjects().validate(
3754
+ } = ContentPlatformApplicationValidator.getAppCustomObjectsBySlug().validate(
3781
3755
  {
3782
3756
  pageNo,
3783
3757
  pageSize,
3784
- definitionId,
3758
+ definitionSlug,
3785
3759
  },
3786
3760
  { abortEarly: false, allowUnknown: true }
3787
3761
  );
@@ -3792,30 +3766,29 @@ class Content {
3792
3766
  // Showing warrnings if extra unknown parameters are found
3793
3767
  const {
3794
3768
  error: warrning,
3795
- } = ContentPlatformApplicationValidator.getAppCustomObjects().validate(
3769
+ } = ContentPlatformApplicationValidator.getAppCustomObjectsBySlug().validate(
3796
3770
  {
3797
3771
  pageNo,
3798
3772
  pageSize,
3799
- definitionId,
3773
+ definitionSlug,
3800
3774
  },
3801
3775
  { abortEarly: false, allowUnknown: false }
3802
3776
  );
3803
3777
  if (warrning) {
3804
3778
  Logger({
3805
3779
  level: "WARN",
3806
- message: `Parameter Validation warrnings for platform > Content > getAppCustomObjects \n ${warrning}`,
3780
+ message: `Parameter Validation warrnings for platform > Content > getAppCustomObjectsBySlug \n ${warrning}`,
3807
3781
  });
3808
3782
  }
3809
3783
 
3810
3784
  const query_params = {};
3811
- query_params["definition_id"] = definitionId;
3812
3785
  query_params["page_no"] = pageNo;
3813
3786
  query_params["page_size"] = pageSize;
3814
3787
 
3815
3788
  const response = await PlatformAPIClient.execute(
3816
3789
  this.config,
3817
3790
  "get",
3818
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects`,
3791
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries`,
3819
3792
  query_params,
3820
3793
  undefined,
3821
3794
  requestHeaders,
@@ -3840,7 +3813,7 @@ class Content {
3840
3813
  } else {
3841
3814
  Logger({
3842
3815
  level: "WARN",
3843
- message: `Response Validation Warnings for platform > Content > getAppCustomObjects \n ${res_error}`,
3816
+ message: `Response Validation Warnings for platform > Content > getAppCustomObjectsBySlug \n ${res_error}`,
3844
3817
  });
3845
3818
  }
3846
3819
  }
@@ -4090,7 +4063,7 @@ class Content {
4090
4063
  * @param {ContentPlatformApplicationValidator.GetBlogsParam} arg - Arg object
4091
4064
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4092
4065
  * @param {import("../PlatformAPIClient").Options} - Options
4093
- * @returns {Promise<ContentPlatformModel.BlogGetResponse>} - Success response
4066
+ * @returns {Promise<ContentPlatformModel.BlogGetDetails>} - Success response
4094
4067
  * @name getBlogs
4095
4068
  * @summary: List blogs
4096
4069
  * @description: List all blogs - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getBlogs/).
@@ -4165,7 +4138,7 @@ class Content {
4165
4138
 
4166
4139
  const {
4167
4140
  error: res_error,
4168
- } = ContentPlatformModel.BlogGetResponse().validate(responseData, {
4141
+ } = ContentPlatformModel.BlogGetDetails().validate(responseData, {
4169
4142
  abortEarly: false,
4170
4143
  allowUnknown: true,
4171
4144
  });
@@ -4347,7 +4320,7 @@ class Content {
4347
4320
  *
4348
4321
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4349
4322
  * @param {import("../PlatformAPIClient").Options} - Options
4350
- * @returns {Promise<ContentPlatformModel.DefaultNavigationResponse>} -
4323
+ * @returns {Promise<ContentPlatformModel.DefaultNavigationDetails>} -
4351
4324
  * Success response
4352
4325
  * @name getDefaultNavigations
4353
4326
  * @summary: Get default navigations
@@ -4400,10 +4373,10 @@ class Content {
4400
4373
 
4401
4374
  const {
4402
4375
  error: res_error,
4403
- } = ContentPlatformModel.DefaultNavigationResponse().validate(
4404
- responseData,
4405
- { abortEarly: false, allowUnknown: true }
4406
- );
4376
+ } = ContentPlatformModel.DefaultNavigationDetails().validate(responseData, {
4377
+ abortEarly: false,
4378
+ allowUnknown: true,
4379
+ });
4407
4380
 
4408
4381
  if (res_error) {
4409
4382
  if (this.config.options.strictResponseCheck === true) {
@@ -4904,7 +4877,7 @@ class Content {
4904
4877
  * @param {ContentPlatformApplicationValidator.GetLandingPagesParam} arg - Arg object
4905
4878
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4906
4879
  * @param {import("../PlatformAPIClient").Options} - Options
4907
- * @returns {Promise<ContentPlatformModel.LandingPageGetResponse>} - Success response
4880
+ * @returns {Promise<ContentPlatformModel.LandingPageGetDetails>} - Success response
4908
4881
  * @name getLandingPages
4909
4882
  * @summary: Get landing pages
4910
4883
  * @description: Lists a list landing pages as per device types - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getLandingPages/).
@@ -4964,7 +4937,7 @@ class Content {
4964
4937
 
4965
4938
  const {
4966
4939
  error: res_error,
4967
- } = ContentPlatformModel.LandingPageGetResponse().validate(responseData, {
4940
+ } = ContentPlatformModel.LandingPageGetDetails().validate(responseData, {
4968
4941
  abortEarly: false,
4969
4942
  allowUnknown: true,
4970
4943
  });
@@ -5148,7 +5121,7 @@ class Content {
5148
5121
  * @param {ContentPlatformApplicationValidator.GetNavigationsParam} arg - Arg object
5149
5122
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5150
5123
  * @param {import("../PlatformAPIClient").Options} - Options
5151
- * @returns {Promise<ContentPlatformModel.NavigationGetResponse>} - Success response
5124
+ * @returns {Promise<ContentPlatformModel.NavigationGetDetails>} - Success response
5152
5125
  * @name getNavigations
5153
5126
  * @summary: Get navigation items
5154
5127
  * @description: Retrieve a list of navigational elements. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getNavigations/).
@@ -5213,7 +5186,7 @@ class Content {
5213
5186
 
5214
5187
  const {
5215
5188
  error: res_error,
5216
- } = ContentPlatformModel.NavigationGetResponse().validate(responseData, {
5189
+ } = ContentPlatformModel.NavigationGetDetails().validate(responseData, {
5217
5190
  abortEarly: false,
5218
5191
  allowUnknown: true,
5219
5192
  });
@@ -5465,7 +5438,7 @@ class Content {
5465
5438
  * @param {ContentPlatformApplicationValidator.GetPagesParam} arg - Arg object
5466
5439
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5467
5440
  * @param {import("../PlatformAPIClient").Options} - Options
5468
- * @returns {Promise<ContentPlatformModel.PageGetResponse>} - Success response
5441
+ * @returns {Promise<ContentPlatformModel.PageGetDetails>} - Success response
5469
5442
  * @name getPages
5470
5443
  * @summary: Get pages
5471
5444
  * @description: Retrieve a list of available pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPages/).
@@ -5523,7 +5496,7 @@ class Content {
5523
5496
 
5524
5497
  const {
5525
5498
  error: res_error,
5526
- } = ContentPlatformModel.PageGetResponse().validate(responseData, {
5499
+ } = ContentPlatformModel.PageGetDetails().validate(responseData, {
5527
5500
  abortEarly: false,
5528
5501
  allowUnknown: true,
5529
5502
  });
@@ -6047,7 +6020,7 @@ class Content {
6047
6020
  * @param {ContentPlatformApplicationValidator.GetSlideshowsParam} arg - Arg object
6048
6021
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6049
6022
  * @param {import("../PlatformAPIClient").Options} - Options
6050
- * @returns {Promise<ContentPlatformModel.SlideshowGetResponse>} - Success response
6023
+ * @returns {Promise<ContentPlatformModel.SlideshowGetDetails>} - Success response
6051
6024
  * @name getSlideshows
6052
6025
  * @summary: List Slideshows
6053
6026
  * @description: Use this API to list all Slideshows - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getSlideshows/).
@@ -6112,7 +6085,7 @@ class Content {
6112
6085
 
6113
6086
  const {
6114
6087
  error: res_error,
6115
- } = ContentPlatformModel.SlideshowGetResponse().validate(responseData, {
6088
+ } = ContentPlatformModel.SlideshowGetDetails().validate(responseData, {
6116
6089
  abortEarly: false,
6117
6090
  allowUnknown: true,
6118
6091
  });
@@ -6131,48 +6104,6 @@ class Content {
6131
6104
  return response;
6132
6105
  }
6133
6106
 
6134
- /**
6135
- * @param {Object} arg - Arg object.
6136
- * @param {string} arg.companyId - Numeric ID allotted to a business account
6137
- * on Fynd Platform
6138
- * @param {string} arg.applicationId - Numeric ID allotted to an application
6139
- * created within a business account.
6140
- * @param {string} arg.devicePlatform - Filter slideshows by platform.
6141
- * Acceptable values are: web, android, ios and all
6142
- * @param {number} [arg.pageSize] - The number of items to retrieve in each
6143
- * page. Default value is 10.
6144
- * @returns {Paginator<ContentPlatformModel.SlideshowGetResponse>}
6145
- * @summary: List Slideshows
6146
- * @description: Use this API to list all Slideshows
6147
- */
6148
- getSlideshowsPaginator({
6149
- companyId,
6150
- applicationId,
6151
- devicePlatform,
6152
- pageSize,
6153
- } = {}) {
6154
- const paginator = new Paginator();
6155
- const callback = async () => {
6156
- const pageId = paginator.nextId;
6157
- const pageNo = paginator.pageNo;
6158
- const pageType = "number";
6159
- const data = await this.getSlideshows({
6160
- companyId: companyId,
6161
- applicationId: applicationId,
6162
- devicePlatform: devicePlatform,
6163
- pageNo: pageNo,
6164
- pageSize: pageSize,
6165
- });
6166
- paginator.setPaginator({
6167
- hasNext: data.page.has_next ? true : false,
6168
- nextId: data.page.next_id,
6169
- });
6170
- return data;
6171
- };
6172
- paginator.setCallback(callback.bind(this));
6173
- return paginator;
6174
- }
6175
-
6176
6107
  /**
6177
6108
  * @param {ContentPlatformApplicationValidator.GetSupportInformationParam} arg
6178
6109
  * - Arg object
@@ -6251,27 +6182,27 @@ class Content {
6251
6182
  }
6252
6183
 
6253
6184
  /**
6254
- * @param {ContentPlatformApplicationValidator.ImportAppCustomObjectEntriesParam} arg
6185
+ * @param {ContentPlatformApplicationValidator.ImportAppCustomObjectEntriesBySlugParam} arg
6255
6186
  * - Arg object
6256
6187
  *
6257
6188
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6258
6189
  * @param {import("../PlatformAPIClient").Options} - Options
6259
- * @returns {Promise<ContentPlatformModel.CustomObjectEntryBulkUploadResponse>}
6190
+ * @returns {Promise<ContentPlatformModel.CustomObjectEntryBulkUploadDetails>}
6260
6191
  * - Success response
6261
6192
  *
6262
- * @name importAppCustomObjectEntries
6193
+ * @name importAppCustomObjectEntriesBySlug
6263
6194
  * @summary: Bulk custom object entries upload
6264
- * @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/).
6195
+ * @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/).
6265
6196
  */
6266
- async importAppCustomObjectEntries(
6267
- { definitionId, body, requestHeaders } = { requestHeaders: {} },
6197
+ async importAppCustomObjectEntriesBySlug(
6198
+ { slug, body, requestHeaders } = { requestHeaders: {} },
6268
6199
  { responseHeaders } = { responseHeaders: false }
6269
6200
  ) {
6270
6201
  const {
6271
6202
  error,
6272
- } = ContentPlatformApplicationValidator.importAppCustomObjectEntries().validate(
6203
+ } = ContentPlatformApplicationValidator.importAppCustomObjectEntriesBySlug().validate(
6273
6204
  {
6274
- definitionId,
6205
+ slug,
6275
6206
  body,
6276
6207
  },
6277
6208
  { abortEarly: false, allowUnknown: true }
@@ -6283,9 +6214,9 @@ class Content {
6283
6214
  // Showing warrnings if extra unknown parameters are found
6284
6215
  const {
6285
6216
  error: warrning,
6286
- } = ContentPlatformApplicationValidator.importAppCustomObjectEntries().validate(
6217
+ } = ContentPlatformApplicationValidator.importAppCustomObjectEntriesBySlug().validate(
6287
6218
  {
6288
- definitionId,
6219
+ slug,
6289
6220
  body,
6290
6221
  },
6291
6222
  { abortEarly: false, allowUnknown: false }
@@ -6293,7 +6224,7 @@ class Content {
6293
6224
  if (warrning) {
6294
6225
  Logger({
6295
6226
  level: "WARN",
6296
- message: `Parameter Validation warrnings for platform > Content > importAppCustomObjectEntries \n ${warrning}`,
6227
+ message: `Parameter Validation warrnings for platform > Content > importAppCustomObjectEntriesBySlug \n ${warrning}`,
6297
6228
  });
6298
6229
  }
6299
6230
 
@@ -6302,7 +6233,7 @@ class Content {
6302
6233
  const response = await PlatformAPIClient.execute(
6303
6234
  this.config,
6304
6235
  "post",
6305
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/bulk/${definitionId}/upload`,
6236
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}/bulk/upload`,
6306
6237
  query_params,
6307
6238
  body,
6308
6239
  requestHeaders,
@@ -6316,7 +6247,7 @@ class Content {
6316
6247
 
6317
6248
  const {
6318
6249
  error: res_error,
6319
- } = ContentPlatformModel.CustomObjectEntryBulkUploadResponse().validate(
6250
+ } = ContentPlatformModel.CustomObjectEntryBulkUploadDetails().validate(
6320
6251
  responseData,
6321
6252
  { abortEarly: false, allowUnknown: true }
6322
6253
  );
@@ -6327,7 +6258,7 @@ class Content {
6327
6258
  } else {
6328
6259
  Logger({
6329
6260
  level: "WARN",
6330
- message: `Response Validation Warnings for platform > Content > importAppCustomObjectEntries \n ${res_error}`,
6261
+ message: `Response Validation Warnings for platform > Content > importAppCustomObjectEntriesBySlug \n ${res_error}`,
6331
6262
  });
6332
6263
  }
6333
6264
  }
@@ -6341,8 +6272,7 @@ class Content {
6341
6272
  *
6342
6273
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6343
6274
  * @param {import("../PlatformAPIClient").Options} - Options
6344
- * @returns {Promise<ContentPlatformModel.TagDeleteSuccessResponse>} -
6345
- * Success response
6275
+ * @returns {Promise<ContentPlatformModel.TagDeleteSuccessDetails>} - Success response
6346
6276
  * @name removeInjectableTag
6347
6277
  * @summary: Remove HTML tag
6348
6278
  * @description: Delete a specific injectable tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/removeInjectableTag/).
@@ -6398,7 +6328,7 @@ class Content {
6398
6328
 
6399
6329
  const {
6400
6330
  error: res_error,
6401
- } = ContentPlatformModel.TagDeleteSuccessResponse().validate(responseData, {
6331
+ } = ContentPlatformModel.TagDeleteSuccessDetails().validate(responseData, {
6402
6332
  abortEarly: false,
6403
6333
  allowUnknown: true,
6404
6334
  });
@@ -6500,25 +6430,25 @@ class Content {
6500
6430
  }
6501
6431
 
6502
6432
  /**
6503
- * @param {ContentPlatformApplicationValidator.SampleAppCustomObjectBulkEntryParam} arg
6433
+ * @param {ContentPlatformApplicationValidator.SampleAppCustomObjectBulkEntryBySlugParam} arg
6504
6434
  * - Arg object
6505
6435
  *
6506
6436
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6507
6437
  * @param {import("../PlatformAPIClient").Options} - Options
6508
6438
  * @returns {Promise<string>} - Success response
6509
- * @name sampleAppCustomObjectBulkEntry
6439
+ * @name sampleAppCustomObjectBulkEntryBySlug
6510
6440
  * @summary: Download sample for custom object bulk entry
6511
- * @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/).
6441
+ * @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/).
6512
6442
  */
6513
- async sampleAppCustomObjectBulkEntry(
6514
- { definitionId, requestHeaders } = { requestHeaders: {} },
6443
+ async sampleAppCustomObjectBulkEntryBySlug(
6444
+ { slug, requestHeaders } = { requestHeaders: {} },
6515
6445
  { responseHeaders } = { responseHeaders: false }
6516
6446
  ) {
6517
6447
  const {
6518
6448
  error,
6519
- } = ContentPlatformApplicationValidator.sampleAppCustomObjectBulkEntry().validate(
6449
+ } = ContentPlatformApplicationValidator.sampleAppCustomObjectBulkEntryBySlug().validate(
6520
6450
  {
6521
- definitionId,
6451
+ slug,
6522
6452
  },
6523
6453
  { abortEarly: false, allowUnknown: true }
6524
6454
  );
@@ -6529,16 +6459,16 @@ class Content {
6529
6459
  // Showing warrnings if extra unknown parameters are found
6530
6460
  const {
6531
6461
  error: warrning,
6532
- } = ContentPlatformApplicationValidator.sampleAppCustomObjectBulkEntry().validate(
6462
+ } = ContentPlatformApplicationValidator.sampleAppCustomObjectBulkEntryBySlug().validate(
6533
6463
  {
6534
- definitionId,
6464
+ slug,
6535
6465
  },
6536
6466
  { abortEarly: false, allowUnknown: false }
6537
6467
  );
6538
6468
  if (warrning) {
6539
6469
  Logger({
6540
6470
  level: "WARN",
6541
- message: `Parameter Validation warrnings for platform > Content > sampleAppCustomObjectBulkEntry \n ${warrning}`,
6471
+ message: `Parameter Validation warrnings for platform > Content > sampleAppCustomObjectBulkEntryBySlug \n ${warrning}`,
6542
6472
  });
6543
6473
  }
6544
6474
 
@@ -6547,7 +6477,7 @@ class Content {
6547
6477
  const response = await PlatformAPIClient.execute(
6548
6478
  this.config,
6549
6479
  "get",
6550
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/bulk/${definitionId}/sample`,
6480
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}/bulk/sample`,
6551
6481
  query_params,
6552
6482
  undefined,
6553
6483
  requestHeaders,
@@ -6569,7 +6499,7 @@ class Content {
6569
6499
  } else {
6570
6500
  Logger({
6571
6501
  level: "WARN",
6572
- message: `Response Validation Warnings for platform > Content > sampleAppCustomObjectBulkEntry \n ${res_error}`,
6502
+ message: `Response Validation Warnings for platform > Content > sampleAppCustomObjectBulkEntryBySlug \n ${res_error}`,
6573
6503
  });
6574
6504
  }
6575
6505
  }
@@ -6826,7 +6756,94 @@ class Content {
6826
6756
  }
6827
6757
 
6828
6758
  /**
6829
- * @param {ContentPlatformApplicationValidator.UpdateAppCustomFieldDefinitionParam} arg
6759
+ * @param {ContentPlatformApplicationValidator.UpdateAppCustomFieldByResourceSlugParam} arg
6760
+ * - Arg object
6761
+ *
6762
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6763
+ * @param {import("../PlatformAPIClient").Options} - Options
6764
+ * @returns {Promise<ContentPlatformModel.CustomFieldsResponseByResourceIdSchema>}
6765
+ * - Success response
6766
+ *
6767
+ * @name updateAppCustomFieldByResourceSlug
6768
+ * @summary: Create custom field entries for gives resource and resource slug
6769
+ * @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/).
6770
+ */
6771
+ async updateAppCustomFieldByResourceSlug(
6772
+ { resource, resourceSlug, body, requestHeaders } = { requestHeaders: {} },
6773
+ { responseHeaders } = { responseHeaders: false }
6774
+ ) {
6775
+ const {
6776
+ error,
6777
+ } = ContentPlatformApplicationValidator.updateAppCustomFieldByResourceSlug().validate(
6778
+ {
6779
+ resource,
6780
+ resourceSlug,
6781
+ body,
6782
+ },
6783
+ { abortEarly: false, allowUnknown: true }
6784
+ );
6785
+ if (error) {
6786
+ return Promise.reject(new FDKClientValidationError(error));
6787
+ }
6788
+
6789
+ // Showing warrnings if extra unknown parameters are found
6790
+ const {
6791
+ error: warrning,
6792
+ } = ContentPlatformApplicationValidator.updateAppCustomFieldByResourceSlug().validate(
6793
+ {
6794
+ resource,
6795
+ resourceSlug,
6796
+ body,
6797
+ },
6798
+ { abortEarly: false, allowUnknown: false }
6799
+ );
6800
+ if (warrning) {
6801
+ Logger({
6802
+ level: "WARN",
6803
+ message: `Parameter Validation warrnings for platform > Content > updateAppCustomFieldByResourceSlug \n ${warrning}`,
6804
+ });
6805
+ }
6806
+
6807
+ const query_params = {};
6808
+
6809
+ const response = await PlatformAPIClient.execute(
6810
+ this.config,
6811
+ "put",
6812
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/${resourceSlug}`,
6813
+ query_params,
6814
+ body,
6815
+ requestHeaders,
6816
+ { responseHeaders }
6817
+ );
6818
+
6819
+ let responseData = response;
6820
+ if (responseHeaders) {
6821
+ responseData = response[0];
6822
+ }
6823
+
6824
+ const {
6825
+ error: res_error,
6826
+ } = ContentPlatformModel.CustomFieldsResponseByResourceIdSchema().validate(
6827
+ responseData,
6828
+ { abortEarly: false, allowUnknown: true }
6829
+ );
6830
+
6831
+ if (res_error) {
6832
+ if (this.config.options.strictResponseCheck === true) {
6833
+ return Promise.reject(new FDKResponseValidationError(res_error));
6834
+ } else {
6835
+ Logger({
6836
+ level: "WARN",
6837
+ message: `Response Validation Warnings for platform > Content > updateAppCustomFieldByResourceSlug \n ${res_error}`,
6838
+ });
6839
+ }
6840
+ }
6841
+
6842
+ return response;
6843
+ }
6844
+
6845
+ /**
6846
+ * @param {ContentPlatformApplicationValidator.UpdateAppCustomFieldDefinitionBySlugParam} arg
6830
6847
  * - Arg object
6831
6848
  *
6832
6849
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -6834,19 +6851,23 @@ class Content {
6834
6851
  * @returns {Promise<ContentPlatformModel.CustomFieldDefinitionDetailResSchema>}
6835
6852
  * - Success response
6836
6853
  *
6837
- * @name updateAppCustomFieldDefinition
6854
+ * @name updateAppCustomFieldDefinitionBySlug
6838
6855
  * @summary: Update custom field definition
6839
- * @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/).
6856
+ * @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/).
6840
6857
  */
6841
- async updateAppCustomFieldDefinition(
6842
- { definitionId, body, requestHeaders } = { requestHeaders: {} },
6858
+ async updateAppCustomFieldDefinitionBySlug(
6859
+ { slug, resource, namespace, body, requestHeaders } = {
6860
+ requestHeaders: {},
6861
+ },
6843
6862
  { responseHeaders } = { responseHeaders: false }
6844
6863
  ) {
6845
6864
  const {
6846
6865
  error,
6847
- } = ContentPlatformApplicationValidator.updateAppCustomFieldDefinition().validate(
6866
+ } = ContentPlatformApplicationValidator.updateAppCustomFieldDefinitionBySlug().validate(
6848
6867
  {
6849
- definitionId,
6868
+ slug,
6869
+ resource,
6870
+ namespace,
6850
6871
  body,
6851
6872
  },
6852
6873
  { abortEarly: false, allowUnknown: true }
@@ -6858,9 +6879,11 @@ class Content {
6858
6879
  // Showing warrnings if extra unknown parameters are found
6859
6880
  const {
6860
6881
  error: warrning,
6861
- } = ContentPlatformApplicationValidator.updateAppCustomFieldDefinition().validate(
6882
+ } = ContentPlatformApplicationValidator.updateAppCustomFieldDefinitionBySlug().validate(
6862
6883
  {
6863
- definitionId,
6884
+ slug,
6885
+ resource,
6886
+ namespace,
6864
6887
  body,
6865
6888
  },
6866
6889
  { abortEarly: false, allowUnknown: false }
@@ -6868,7 +6891,7 @@ class Content {
6868
6891
  if (warrning) {
6869
6892
  Logger({
6870
6893
  level: "WARN",
6871
- message: `Parameter Validation warrnings for platform > Content > updateAppCustomFieldDefinition \n ${warrning}`,
6894
+ message: `Parameter Validation warrnings for platform > Content > updateAppCustomFieldDefinitionBySlug \n ${warrning}`,
6872
6895
  });
6873
6896
  }
6874
6897
 
@@ -6877,7 +6900,7 @@ class Content {
6877
6900
  const response = await PlatformAPIClient.execute(
6878
6901
  this.config,
6879
6902
  "put",
6880
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/definitions/${definitionId}`,
6903
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/namespace/${namespace}/definition/${slug}`,
6881
6904
  query_params,
6882
6905
  body,
6883
6906
  requestHeaders,
@@ -6902,7 +6925,7 @@ class Content {
6902
6925
  } else {
6903
6926
  Logger({
6904
6927
  level: "WARN",
6905
- message: `Response Validation Warnings for platform > Content > updateAppCustomFieldDefinition \n ${res_error}`,
6928
+ message: `Response Validation Warnings for platform > Content > updateAppCustomFieldDefinitionBySlug \n ${res_error}`,
6906
6929
  });
6907
6930
  }
6908
6931
  }
@@ -6911,25 +6934,27 @@ class Content {
6911
6934
  }
6912
6935
 
6913
6936
  /**
6914
- * @param {ContentPlatformApplicationValidator.UpdateAppCustomObjectParam} arg
6937
+ * @param {ContentPlatformApplicationValidator.UpdateAppCustomObjectBySlugParam} arg
6915
6938
  * - Arg object
6916
6939
  *
6917
6940
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6918
6941
  * @param {import("../PlatformAPIClient").Options} - Options
6919
- * @returns {Promise<ContentPlatformModel.CustomObjectByIdSchema>} - Success response
6920
- * @name updateAppCustomObject
6942
+ * @returns {Promise<ContentPlatformModel.CustomObjectBySlugSchema>} -
6943
+ * Success response
6944
+ * @name updateAppCustomObjectBySlug
6921
6945
  * @summary: Update custom object details
6922
- * @description: Custom object entries can be updated using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAppCustomObject/).
6946
+ * @description: Custom object entries can be updated using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAppCustomObjectBySlug/).
6923
6947
  */
6924
- async updateAppCustomObject(
6925
- { metaobjectId, body, requestHeaders } = { requestHeaders: {} },
6948
+ async updateAppCustomObjectBySlug(
6949
+ { definitionSlug, slug, body, requestHeaders } = { requestHeaders: {} },
6926
6950
  { responseHeaders } = { responseHeaders: false }
6927
6951
  ) {
6928
6952
  const {
6929
6953
  error,
6930
- } = ContentPlatformApplicationValidator.updateAppCustomObject().validate(
6954
+ } = ContentPlatformApplicationValidator.updateAppCustomObjectBySlug().validate(
6931
6955
  {
6932
- metaobjectId,
6956
+ definitionSlug,
6957
+ slug,
6933
6958
  body,
6934
6959
  },
6935
6960
  { abortEarly: false, allowUnknown: true }
@@ -6941,9 +6966,10 @@ class Content {
6941
6966
  // Showing warrnings if extra unknown parameters are found
6942
6967
  const {
6943
6968
  error: warrning,
6944
- } = ContentPlatformApplicationValidator.updateAppCustomObject().validate(
6969
+ } = ContentPlatformApplicationValidator.updateAppCustomObjectBySlug().validate(
6945
6970
  {
6946
- metaobjectId,
6971
+ definitionSlug,
6972
+ slug,
6947
6973
  body,
6948
6974
  },
6949
6975
  { abortEarly: false, allowUnknown: false }
@@ -6951,7 +6977,7 @@ class Content {
6951
6977
  if (warrning) {
6952
6978
  Logger({
6953
6979
  level: "WARN",
6954
- message: `Parameter Validation warrnings for platform > Content > updateAppCustomObject \n ${warrning}`,
6980
+ message: `Parameter Validation warrnings for platform > Content > updateAppCustomObjectBySlug \n ${warrning}`,
6955
6981
  });
6956
6982
  }
6957
6983
 
@@ -6960,7 +6986,7 @@ class Content {
6960
6986
  const response = await PlatformAPIClient.execute(
6961
6987
  this.config,
6962
6988
  "put",
6963
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/${metaobjectId}`,
6989
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries/${slug}`,
6964
6990
  query_params,
6965
6991
  body,
6966
6992
  requestHeaders,
@@ -6974,7 +7000,7 @@ class Content {
6974
7000
 
6975
7001
  const {
6976
7002
  error: res_error,
6977
- } = ContentPlatformModel.CustomObjectByIdSchema().validate(responseData, {
7003
+ } = ContentPlatformModel.CustomObjectBySlugSchema().validate(responseData, {
6978
7004
  abortEarly: false,
6979
7005
  allowUnknown: true,
6980
7006
  });
@@ -6985,7 +7011,7 @@ class Content {
6985
7011
  } else {
6986
7012
  Logger({
6987
7013
  level: "WARN",
6988
- message: `Response Validation Warnings for platform > Content > updateAppCustomObject \n ${res_error}`,
7014
+ message: `Response Validation Warnings for platform > Content > updateAppCustomObjectBySlug \n ${res_error}`,
6989
7015
  });
6990
7016
  }
6991
7017
  }
@@ -6994,26 +7020,27 @@ class Content {
6994
7020
  }
6995
7021
 
6996
7022
  /**
6997
- * @param {ContentPlatformApplicationValidator.UpdateAppCustomObjectDefinitionParam} arg
7023
+ * @param {ContentPlatformApplicationValidator.UpdateAppCustomObjectDefinitionBySlugParam} arg
6998
7024
  * - Arg object
6999
7025
  *
7000
7026
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
7001
7027
  * @param {import("../PlatformAPIClient").Options} - Options
7002
- * @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSchema>} -
7003
- * Success response
7004
- * @name updateAppCustomObjectDefinition
7028
+ * @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSlugSchema>}
7029
+ * - Success response
7030
+ *
7031
+ * @name updateAppCustomObjectDefinitionBySlug
7005
7032
  * @summary: Update custom object definition
7006
- * @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/updateAppCustomObjectDefinition/).
7033
+ * @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/).
7007
7034
  */
7008
- async updateAppCustomObjectDefinition(
7009
- { definitionId, body, requestHeaders } = { requestHeaders: {} },
7035
+ async updateAppCustomObjectDefinitionBySlug(
7036
+ { slug, body, requestHeaders } = { requestHeaders: {} },
7010
7037
  { responseHeaders } = { responseHeaders: false }
7011
7038
  ) {
7012
7039
  const {
7013
7040
  error,
7014
- } = ContentPlatformApplicationValidator.updateAppCustomObjectDefinition().validate(
7041
+ } = ContentPlatformApplicationValidator.updateAppCustomObjectDefinitionBySlug().validate(
7015
7042
  {
7016
- definitionId,
7043
+ slug,
7017
7044
  body,
7018
7045
  },
7019
7046
  { abortEarly: false, allowUnknown: true }
@@ -7025,9 +7052,9 @@ class Content {
7025
7052
  // Showing warrnings if extra unknown parameters are found
7026
7053
  const {
7027
7054
  error: warrning,
7028
- } = ContentPlatformApplicationValidator.updateAppCustomObjectDefinition().validate(
7055
+ } = ContentPlatformApplicationValidator.updateAppCustomObjectDefinitionBySlug().validate(
7029
7056
  {
7030
- definitionId,
7057
+ slug,
7031
7058
  body,
7032
7059
  },
7033
7060
  { abortEarly: false, allowUnknown: false }
@@ -7035,7 +7062,7 @@ class Content {
7035
7062
  if (warrning) {
7036
7063
  Logger({
7037
7064
  level: "WARN",
7038
- message: `Parameter Validation warrnings for platform > Content > updateAppCustomObjectDefinition \n ${warrning}`,
7065
+ message: `Parameter Validation warrnings for platform > Content > updateAppCustomObjectDefinitionBySlug \n ${warrning}`,
7039
7066
  });
7040
7067
  }
7041
7068
 
@@ -7044,7 +7071,7 @@ class Content {
7044
7071
  const response = await PlatformAPIClient.execute(
7045
7072
  this.config,
7046
7073
  "put",
7047
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metaobjects/definitions/${definitionId}`,
7074
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}`,
7048
7075
  query_params,
7049
7076
  body,
7050
7077
  requestHeaders,
@@ -7058,7 +7085,7 @@ class Content {
7058
7085
 
7059
7086
  const {
7060
7087
  error: res_error,
7061
- } = ContentPlatformModel.CustomObjectDefinitionSchema().validate(
7088
+ } = ContentPlatformModel.CustomObjectDefinitionSlugSchema().validate(
7062
7089
  responseData,
7063
7090
  { abortEarly: false, allowUnknown: true }
7064
7091
  );
@@ -7069,7 +7096,7 @@ class Content {
7069
7096
  } else {
7070
7097
  Logger({
7071
7098
  level: "WARN",
7072
- message: `Response Validation Warnings for platform > Content > updateAppCustomObjectDefinition \n ${res_error}`,
7099
+ message: `Response Validation Warnings for platform > Content > updateAppCustomObjectDefinitionBySlug \n ${res_error}`,
7073
7100
  });
7074
7101
  }
7075
7102
  }