@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.10

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