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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +93 -113
  6. package/sdk/application/Cart/CartApplicationClient.js +157 -530
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -19
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +65 -55
  16. package/sdk/application/Content/ContentApplicationClient.js +211 -341
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -33
  19. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  20. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  21. package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
  22. package/sdk/application/Lead/LeadApplicationClient.js +24 -55
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +32 -87
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +126 -383
  25. package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
  26. package/sdk/application/Order/OrderApplicationClient.js +89 -293
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
  28. package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
  29. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
  30. package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
  31. package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
  32. package/sdk/application/Share/ShareApplicationClient.js +35 -89
  33. package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
  34. package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
  35. package/sdk/application/User/UserApplicationClient.d.ts +23 -13
  36. package/sdk/application/User/UserApplicationClient.js +49 -407
  37. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  38. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
  39. package/sdk/common/Utility.d.ts +1 -1
  40. package/sdk/common/Utility.js +10 -7
  41. package/sdk/common/Validator.d.ts +1 -0
  42. package/sdk/common/Validator.js +20 -0
  43. package/sdk/common/utils.d.ts +0 -1
  44. package/sdk/common/utils.js +0 -14
  45. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +18 -62
  46. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +40 -372
  47. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +99 -33
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +84 -25
  49. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
  50. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +7 -38
  51. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  52. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  53. package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
  54. package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
  55. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  56. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
  57. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
  58. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
  59. package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
  60. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
  61. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
  62. package/sdk/partner/PartnerClient.d.ts +0 -6
  63. package/sdk/partner/PartnerClient.js +0 -9
  64. package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
  65. package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
  66. package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
  67. package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
  68. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
  69. package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
  70. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  71. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  72. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
  73. package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
  74. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  75. package/sdk/partner/index.d.ts +0 -3
  76. package/sdk/partner/index.js +0 -6
  77. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  78. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  79. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
  80. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  82. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  87. package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -406
  88. package/sdk/platform/Billing/BillingPlatformClient.js +76 -3214
  89. package/sdk/platform/Billing/BillingPlatformModel.d.ts +459 -3798
  90. package/sdk/platform/Billing/BillingPlatformModel.js +338 -2573
  91. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +24 -465
  92. package/sdk/platform/Billing/BillingPlatformValidator.js +14 -490
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +205 -284
  94. package/sdk/platform/Cart/CartPlatformApplicationClient.js +554 -672
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  96. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +132 -108
  97. package/sdk/platform/Cart/CartPlatformModel.d.ts +4865 -3148
  98. package/sdk/platform/Cart/CartPlatformModel.js +2071 -2854
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +419 -1015
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6444
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +226 -1117
  102. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +127 -919
  103. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +574 -372
  104. package/sdk/platform/Catalog/CatalogPlatformClient.js +1315 -1238
  105. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9334 -7634
  106. package/sdk/platform/Catalog/CatalogPlatformModel.js +6980 -9652
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +239 -294
  108. package/sdk/platform/Catalog/CatalogPlatformValidator.js +186 -246
  109. package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
  110. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  111. package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
  112. package/sdk/platform/Common/CommonPlatformModel.js +11 -14
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +236 -376
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +579 -868
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
  117. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
  118. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
  119. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +314 -422
  120. package/sdk/platform/Communication/CommunicationPlatformModel.js +382 -538
  121. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
  122. package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -68
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -84
  125. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
  128. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +118 -333
  130. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
  131. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
  132. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
  133. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
  134. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
  135. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +565 -1282
  136. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +369 -1034
  137. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
  138. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
  139. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -246
  140. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1297 -776
  141. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
  142. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
  143. package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
  144. package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
  145. package/sdk/platform/Content/ContentPlatformModel.d.ts +2374 -877
  146. package/sdk/platform/Content/ContentPlatformModel.js +1304 -930
  147. package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
  148. package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
  149. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
  150. package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
  151. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
  152. package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
  153. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  154. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  155. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
  156. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
  157. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
  158. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
  159. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  160. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  161. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
  162. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
  163. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  164. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  165. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  166. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  167. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  168. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  169. package/sdk/platform/Lead/LeadPlatformClient.d.ts +24 -4
  170. package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
  171. package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
  172. package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
  173. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
  174. package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
  175. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
  176. package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
  177. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
  178. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
  179. package/sdk/platform/Order/OrderPlatformClient.d.ts +421 -418
  180. package/sdk/platform/Order/OrderPlatformClient.js +1194 -1350
  181. package/sdk/platform/Order/OrderPlatformModel.d.ts +9145 -4107
  182. package/sdk/platform/Order/OrderPlatformModel.js +4257 -3197
  183. package/sdk/platform/Order/OrderPlatformValidator.d.ts +641 -442
  184. package/sdk/platform/Order/OrderPlatformValidator.js +341 -311
  185. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  186. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  187. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
  188. package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
  189. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
  190. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +934 -2452
  191. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -306
  192. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -305
  193. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
  194. package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
  195. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1327 -3529
  196. package/sdk/platform/Payment/PaymentPlatformModel.js +1397 -3693
  197. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
  198. package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
  199. package/sdk/platform/PlatformClient.d.ts +0 -2
  200. package/sdk/platform/PlatformClient.js +0 -4
  201. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  202. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  203. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  204. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  205. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +12 -12
  206. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -513
  209. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -103
  210. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -99
  211. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +162 -127
  212. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +775 -435
  213. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6250 -3861
  214. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3178 -3798
  215. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +295 -199
  216. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -133
  217. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
  218. package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
  219. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
  220. package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
  221. package/sdk/platform/Share/SharePlatformModel.d.ts +53 -4
  222. package/sdk/platform/Share/SharePlatformModel.js +45 -3
  223. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +4 -26
  224. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +10 -157
  225. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +10 -21
  226. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +6 -23
  227. package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
  228. package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
  229. package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
  230. package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
  231. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
  232. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
  233. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
  234. package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
  235. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
  236. package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
  237. package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
  238. package/sdk/platform/User/UserPlatformModel.js +253 -210
  239. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  240. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  241. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
  242. package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
  243. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  244. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  245. package/sdk/platform/index.d.ts +0 -1
  246. package/sdk/platform/index.js +0 -2
  247. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  248. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  249. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  250. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  251. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  252. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  253. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
  254. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
  255. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
  256. package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
  257. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
  258. package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
  259. package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
  260. package/sdk/public/Content/ContentPublicClient.js +254 -280
  261. package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
  262. package/sdk/public/Content/ContentPublicModel.js +98 -44
  263. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
  264. package/sdk/public/Content/ContentPublicValidator.js +26 -19
  265. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  266. package/sdk/public/Partner/PartnerPublicClient.js +6 -11
  267. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  268. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  269. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  270. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  271. package/sdk/public/PublicClient.d.ts +2 -2
  272. package/sdk/public/PublicClient.js +2 -2
  273. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  274. package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
  275. package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
  276. package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
  277. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  278. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  279. package/sdk/public/index.d.ts +1 -1
  280. package/sdk/public/index.js +1 -1
  281. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
  282. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
  283. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
  284. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
  285. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
  286. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
  287. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
  288. package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
  289. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
  290. package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
  291. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
  292. package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
  293. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
  294. package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
  295. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
  296. package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
  297. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
  298. package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
  299. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  300. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  301. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
  302. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
  303. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  304. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
  305. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -56
  306. package/sdk/public/Billing/BillingPublicClient.js +0 -397
  307. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -919
  308. package/sdk/public/Billing/BillingPublicModel.js +0 -560
  309. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -43
  310. package/sdk/public/Billing/BillingPublicValidator.js +0 -50
@@ -6,22 +6,23 @@ const {
6
6
  const ApplicationAPIClient = require("../ApplicationAPIClient");
7
7
  const constructUrl = require("../constructUrl");
8
8
  const Paginator = require("../../common/Paginator");
9
+ const { validateRequiredParams } = require("../../common/Validator");
9
10
 
10
11
  class Content {
11
12
  constructor(_conf) {
12
13
  this._conf = _conf;
13
14
  this._relativeUrls = {
15
+ fetchResourceTranslations:
16
+ "/service/application/content/v1.0/resource/translations/{type}/{locale}",
17
+ fetchResourceTranslationsWithPayload:
18
+ "/service/application/content/v1.0/resource/translations/{type}/{locale}",
14
19
  getAnnouncements: "/service/application/content/v1.0/announcements",
15
20
  getBlog: "/service/application/content/v1.0/blogs/{slug}",
16
21
  getBlogs: "/service/application/content/v1.0/blogs",
17
- getCustomFieldDefinition:
18
- "/service/application/content/v1.0/metafields/definitions/{id}",
19
- getCustomFieldDefinitions:
20
- "/service/application/content/v1.0/metafields/definitions",
21
- getCustomFields:
22
- "/service/application/content/v1.0/metafields/{resource}",
23
- getCustomObject: "/service/application/content/v1.0/metaobjects/{id}",
24
- getCustomObjects: "/service/application/content/v1.0/metaobjects",
22
+ getCustomFieldsByResourceId:
23
+ "/service/application/content/v2.0/customfields/resource/{resource}/{resource_slug}",
24
+ getCustomObjectBySlug:
25
+ "/service/application/content/v2.0/customobjects/definition/{definition_slug}/entries/{slug}",
25
26
  getDataLoaders: "/service/application/content/v1.0/data-loader",
26
27
  getFaqBySlug: "/service/application/content/v1.0/faq/{slug}",
27
28
  getFaqCategories: "/service/application/content/v1.0/faq/categories",
@@ -38,7 +39,10 @@ class Content {
38
39
  getSEOConfiguration: "/service/application/content/v1.0/seo",
39
40
  getSEOMarkupSchemas: "/service/application/content/v1.0/seo/schema",
40
41
  getSupportInformation: "/service/application/content/v1.0/support",
42
+ getSupportedLanguages: "/service/application/content/v1.0/languages",
41
43
  getTags: "/service/application/content/v1.0/tags",
44
+ getTranslateUILabels:
45
+ "/service/application/content/v1.0/translate-ui-labels",
42
46
  };
43
47
  this._urls = Object.entries(this._relativeUrls).reduce(
44
48
  (urls, [method, relativeUrl]) => {
@@ -59,24 +63,26 @@ class Content {
59
63
  /**
60
64
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
61
65
  * @param {import("../ApplicationAPIClient").Options} - Options
62
- * @returns {Promise<AnnouncementsResponseSchema>} - Success response
63
- * @name getAnnouncements
64
- * @summary: List announcements
65
- * @description: List all current announcements in the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getAnnouncements/).
66
+ * @returns {Promise<ResourceTranslations>} - Success response
67
+ * @name fetchResourceTranslations
68
+ * @summary: Get Resource Translations
69
+ * @description: Fetch translations for specific resource IDs based on type and locale settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/fetchResourceTranslations/).
66
70
  */
67
- async getAnnouncements(
68
- { requestHeaders } = { requestHeaders: {} },
71
+ async fetchResourceTranslations(
72
+ { type, locale, resourceId, requestHeaders } = { requestHeaders: {} },
69
73
  { responseHeaders } = { responseHeaders: false }
70
74
  ) {
71
- let invalidInput = [];
72
- if (invalidInput.length) {
73
- const error = new Error();
74
- error.message = "Missing required field";
75
- error.details = invalidInput;
75
+ const errors = validateRequiredParams(arguments[0], ["type", "locale"]);
76
+ if (errors.length > 0) {
77
+ const error = new FDKClientValidationError({
78
+ message: "Missing required field",
79
+ details: errors,
80
+ });
76
81
  return Promise.reject(new FDKClientValidationError(error));
77
82
  }
78
83
 
79
84
  const query_params = {};
85
+ query_params["resource_id"] = resourceId;
80
86
 
81
87
  const xHeaders = {};
82
88
 
@@ -84,8 +90,8 @@ class Content {
84
90
  this._conf,
85
91
  "get",
86
92
  constructUrl({
87
- url: this._urls["getAnnouncements"],
88
- params: {},
93
+ url: this._urls["fetchResourceTranslations"],
94
+ params: { type, locale },
89
95
  }),
90
96
  query_params,
91
97
  undefined,
@@ -104,44 +110,38 @@ class Content {
104
110
  /**
105
111
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
106
112
  * @param {import("../ApplicationAPIClient").Options} - Options
107
- * @returns {Promise<BlogSchema>} - Success response
108
- * @name getBlog
109
- * @summary: Get a blog
110
- * @description: Get information related to a specific blog such as it's contents, author, publish date, SEO related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlog/).
113
+ * @returns {Promise<ResourceTranslations>} - Success response
114
+ * @name fetchResourceTranslationsWithPayload
115
+ * @summary: Post Resource Translations
116
+ * @description: Submit and retrieve translations for resources using payload data and locale settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/fetchResourceTranslationsWithPayload/).
111
117
  */
112
- async getBlog(
113
- { slug, rootId, requestHeaders } = { requestHeaders: {} },
118
+ async fetchResourceTranslationsWithPayload(
119
+ { type, locale, resourceId, body, requestHeaders } = { requestHeaders: {} },
114
120
  { responseHeaders } = { responseHeaders: false }
115
121
  ) {
116
- let invalidInput = [];
117
-
118
- if (!slug) {
119
- invalidInput.push({
120
- message: `The 'slug' field is required.`,
121
- path: ["slug"],
122
+ const errors = validateRequiredParams(arguments[0], ["type", "locale"]);
123
+ if (errors.length > 0) {
124
+ const error = new FDKClientValidationError({
125
+ message: "Missing required field",
126
+ details: errors,
122
127
  });
123
- }
124
- if (invalidInput.length) {
125
- const error = new Error();
126
- error.message = "Missing required field";
127
- error.details = invalidInput;
128
128
  return Promise.reject(new FDKClientValidationError(error));
129
129
  }
130
130
 
131
131
  const query_params = {};
132
- query_params["root_id"] = rootId;
132
+ query_params["resource_id"] = resourceId;
133
133
 
134
134
  const xHeaders = {};
135
135
 
136
136
  const response = await ApplicationAPIClient.execute(
137
137
  this._conf,
138
- "get",
138
+ "post",
139
139
  constructUrl({
140
- url: this._urls["getBlog"],
141
- params: { slug },
140
+ url: this._urls["fetchResourceTranslationsWithPayload"],
141
+ params: { type, locale },
142
142
  }),
143
143
  query_params,
144
- undefined,
144
+ body,
145
145
  { ...xHeaders, ...requestHeaders },
146
146
  { responseHeaders }
147
147
  );
@@ -157,28 +157,16 @@ class Content {
157
157
  /**
158
158
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
159
159
  * @param {import("../ApplicationAPIClient").Options} - Options
160
- * @returns {Promise<BlogGetResponse>} - Success response
161
- * @name getBlogs
162
- * @summary: List blogs
163
- * @description: List all the blogs against an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlogs/).
160
+ * @returns {Promise<AnnouncementsResponseSchema>} - Success response
161
+ * @name getAnnouncements
162
+ * @summary: List announcements
163
+ * @description: List all current announcements in the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getAnnouncements/).
164
164
  */
165
- async getBlogs(
166
- { pageNo, pageSize, tags, search, requestHeaders } = { requestHeaders: {} },
165
+ async getAnnouncements(
166
+ { requestHeaders } = { requestHeaders: {} },
167
167
  { responseHeaders } = { responseHeaders: false }
168
168
  ) {
169
- let invalidInput = [];
170
- if (invalidInput.length) {
171
- const error = new Error();
172
- error.message = "Missing required field";
173
- error.details = invalidInput;
174
- return Promise.reject(new FDKClientValidationError(error));
175
- }
176
-
177
169
  const query_params = {};
178
- query_params["page_no"] = pageNo;
179
- query_params["page_size"] = pageSize;
180
- query_params["tags"] = tags;
181
- query_params["search"] = search;
182
170
 
183
171
  const xHeaders = {};
184
172
 
@@ -186,7 +174,7 @@ class Content {
186
174
  this._conf,
187
175
  "get",
188
176
  constructUrl({
189
- url: this._urls["getBlogs"],
177
+ url: this._urls["getAnnouncements"],
190
178
  params: {},
191
179
  }),
192
180
  query_params,
@@ -206,31 +194,27 @@ class Content {
206
194
  /**
207
195
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
208
196
  * @param {import("../ApplicationAPIClient").Options} - Options
209
- * @returns {Promise<CustomFieldDefinitionDetailResSchema>} - Success response
210
- * @name getCustomFieldDefinition
211
- * @summary: Get custom fields definition by id
212
- * @description: Use this API to retrieve the definitions of custom fields using definition_id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomFieldDefinition/).
197
+ * @returns {Promise<BlogSchema>} - Success response
198
+ * @name getBlog
199
+ * @summary: Get a blog
200
+ * @description: Get information related to a specific blog such as it's contents, author, publish date, SEO related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlog/).
213
201
  */
214
- async getCustomFieldDefinition(
215
- { id, requestHeaders } = { requestHeaders: {} },
202
+ async getBlog(
203
+ { slug, rootId, preview, requestHeaders } = { requestHeaders: {} },
216
204
  { responseHeaders } = { responseHeaders: false }
217
205
  ) {
218
- let invalidInput = [];
219
-
220
- if (!id) {
221
- invalidInput.push({
222
- message: `The 'id' field is required.`,
223
- path: ["id"],
206
+ const errors = validateRequiredParams(arguments[0], ["slug"]);
207
+ if (errors.length > 0) {
208
+ const error = new FDKClientValidationError({
209
+ message: "Missing required field",
210
+ details: errors,
224
211
  });
225
- }
226
- if (invalidInput.length) {
227
- const error = new Error();
228
- error.message = "Missing required field";
229
- error.details = invalidInput;
230
212
  return Promise.reject(new FDKClientValidationError(error));
231
213
  }
232
214
 
233
215
  const query_params = {};
216
+ query_params["root_id"] = rootId;
217
+ query_params["preview"] = preview;
234
218
 
235
219
  const xHeaders = {};
236
220
 
@@ -238,8 +222,8 @@ class Content {
238
222
  this._conf,
239
223
  "get",
240
224
  constructUrl({
241
- url: this._urls["getCustomFieldDefinition"],
242
- params: { id },
225
+ url: this._urls["getBlog"],
226
+ params: { slug },
243
227
  }),
244
228
  query_params,
245
229
  undefined,
@@ -258,24 +242,20 @@ class Content {
258
242
  /**
259
243
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
260
244
  * @param {import("../ApplicationAPIClient").Options} - Options
261
- * @returns {Promise<CustomFieldDefinitionsSchema>} - Success response
262
- * @name getCustomFieldDefinitions
263
- * @summary: Get custom fields definitions
264
- * @description: Use this API to retrieve the definitions of custom fields. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomFieldDefinitions/).
245
+ * @returns {Promise<BlogGetDetails>} - Success response
246
+ * @name getBlogs
247
+ * @summary: List blogs
248
+ * @description: List all the blogs against an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlogs/).
265
249
  */
266
- async getCustomFieldDefinitions(
267
- { requestHeaders } = { requestHeaders: {} },
250
+ async getBlogs(
251
+ { pageNo, pageSize, tags, search, requestHeaders } = { requestHeaders: {} },
268
252
  { responseHeaders } = { responseHeaders: false }
269
253
  ) {
270
- let invalidInput = [];
271
- if (invalidInput.length) {
272
- const error = new Error();
273
- error.message = "Missing required field";
274
- error.details = invalidInput;
275
- return Promise.reject(new FDKClientValidationError(error));
276
- }
277
-
278
254
  const query_params = {};
255
+ query_params["page_no"] = pageNo;
256
+ query_params["page_size"] = pageSize;
257
+ query_params["tags"] = tags;
258
+ query_params["search"] = search;
279
259
 
280
260
  const xHeaders = {};
281
261
 
@@ -283,7 +263,7 @@ class Content {
283
263
  this._conf,
284
264
  "get",
285
265
  constructUrl({
286
- url: this._urls["getCustomFieldDefinitions"],
266
+ url: this._urls["getBlogs"],
287
267
  params: {},
288
268
  }),
289
269
  query_params,
@@ -304,37 +284,27 @@ class Content {
304
284
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
305
285
  * @param {import("../ApplicationAPIClient").Options} - Options
306
286
  * @returns {Promise<CustomFieldsResponseByResourceIdSchema>} - Success response
307
- * @name getCustomFields
308
- * @summary: Get list of custom fields of given resource
309
- * @description: Use this API to retrieve the custom fields for given resource and resource_ids in param - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomFields/).
287
+ * @name getCustomFieldsByResourceId
288
+ * @summary: Get list of custom fields of given resource and resource slug
289
+ * @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/application/content/getCustomFieldsByResourceId/).
310
290
  */
311
- async getCustomFields(
312
- { resource, resourceIds, requestHeaders } = { requestHeaders: {} },
291
+ async getCustomFieldsByResourceId(
292
+ { resource, resourceSlug, requestHeaders } = { requestHeaders: {} },
313
293
  { responseHeaders } = { responseHeaders: false }
314
294
  ) {
315
- let invalidInput = [];
316
-
317
- if (!resource) {
318
- invalidInput.push({
319
- message: `The 'resource' field is required.`,
320
- path: ["resource"],
321
- });
322
- }
323
- if (!resourceIds) {
324
- invalidInput.push({
325
- message: `The 'resourceIds' field is required.`,
326
- path: ["resourceIds"],
295
+ const errors = validateRequiredParams(arguments[0], [
296
+ "resource",
297
+ "resourceSlug",
298
+ ]);
299
+ if (errors.length > 0) {
300
+ const error = new FDKClientValidationError({
301
+ message: "Missing required field",
302
+ details: errors,
327
303
  });
328
- }
329
- if (invalidInput.length) {
330
- const error = new Error();
331
- error.message = "Missing required field";
332
- error.details = invalidInput;
333
304
  return Promise.reject(new FDKClientValidationError(error));
334
305
  }
335
306
 
336
307
  const query_params = {};
337
- query_params["resource_ids"] = resourceIds;
338
308
 
339
309
  const xHeaders = {};
340
310
 
@@ -342,8 +312,8 @@ class Content {
342
312
  this._conf,
343
313
  "get",
344
314
  constructUrl({
345
- url: this._urls["getCustomFields"],
346
- params: { resource },
315
+ url: this._urls["getCustomFieldsByResourceId"],
316
+ params: { resource, resourceSlug },
347
317
  }),
348
318
  query_params,
349
319
  undefined,
@@ -363,26 +333,23 @@ class Content {
363
333
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
364
334
  * @param {import("../ApplicationAPIClient").Options} - Options
365
335
  * @returns {Promise<CustomObjectByIdSchema>} - Success response
366
- * @name getCustomObject
367
- * @summary: Get custom object
368
- * @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/application/content/getCustomObject/).
336
+ * @name getCustomObjectBySlug
337
+ * @summary: Get custom object details
338
+ * @description: Details of a custom object entry can be obtained using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomObjectBySlug/).
369
339
  */
370
- async getCustomObject(
371
- { id, requestHeaders } = { requestHeaders: {} },
340
+ async getCustomObjectBySlug(
341
+ { definitionSlug, slug, requestHeaders } = { requestHeaders: {} },
372
342
  { responseHeaders } = { responseHeaders: false }
373
343
  ) {
374
- let invalidInput = [];
375
-
376
- if (!id) {
377
- invalidInput.push({
378
- message: `The 'id' field is required.`,
379
- path: ["id"],
344
+ const errors = validateRequiredParams(arguments[0], [
345
+ "definitionSlug",
346
+ "slug",
347
+ ]);
348
+ if (errors.length > 0) {
349
+ const error = new FDKClientValidationError({
350
+ message: "Missing required field",
351
+ details: errors,
380
352
  });
381
- }
382
- if (invalidInput.length) {
383
- const error = new Error();
384
- error.message = "Missing required field";
385
- error.details = invalidInput;
386
353
  return Promise.reject(new FDKClientValidationError(error));
387
354
  }
388
355
 
@@ -394,74 +361,8 @@ class Content {
394
361
  this._conf,
395
362
  "get",
396
363
  constructUrl({
397
- url: this._urls["getCustomObject"],
398
- params: { id },
399
- }),
400
- query_params,
401
- undefined,
402
- { ...xHeaders, ...requestHeaders },
403
- { responseHeaders }
404
- );
405
-
406
- let responseData = response;
407
- if (responseHeaders) {
408
- responseData = response[0];
409
- }
410
-
411
- return response;
412
- }
413
-
414
- /**
415
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
416
- * @param {import("../ApplicationAPIClient").Options} - Options
417
- * @returns {Promise<CustomObjectsSchema>} - Success response
418
- * @name getCustomObjects
419
- * @summary: Get list of custom objects
420
- * @description: Use this API to retrieve the custom objects. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomObjects/).
421
- */
422
- async getCustomObjects(
423
- { pageNo, pageSize, definitionId, type, ids, search, requestHeaders } = {
424
- requestHeaders: {},
425
- },
426
- { responseHeaders } = { responseHeaders: false }
427
- ) {
428
- let invalidInput = [];
429
-
430
- if (!pageNo) {
431
- invalidInput.push({
432
- message: `The 'pageNo' field is required.`,
433
- path: ["pageNo"],
434
- });
435
- }
436
- if (!pageSize) {
437
- invalidInput.push({
438
- message: `The 'pageSize' field is required.`,
439
- path: ["pageSize"],
440
- });
441
- }
442
- if (invalidInput.length) {
443
- const error = new Error();
444
- error.message = "Missing required field";
445
- error.details = invalidInput;
446
- return Promise.reject(new FDKClientValidationError(error));
447
- }
448
-
449
- const query_params = {};
450
- query_params["definition_id"] = definitionId;
451
- query_params["page_no"] = pageNo;
452
- query_params["page_size"] = pageSize;
453
- query_params["type"] = type;
454
- query_params["ids"] = ids;
455
- query_params["search"] = search;
456
-
457
- const xHeaders = {};
458
-
459
- const response = await ApplicationAPIClient.execute(
460
- this._conf,
461
- "get",
462
- constructUrl({
463
- url: this._urls["getCustomObjects"],
464
- params: {},
364
+ url: this._urls["getCustomObjectBySlug"],
365
+ params: { definitionSlug, slug },
465
366
  }),
466
367
  query_params,
467
368
  undefined,
@@ -489,14 +390,6 @@ class Content {
489
390
  { requestHeaders } = { requestHeaders: {} },
490
391
  { responseHeaders } = { responseHeaders: false }
491
392
  ) {
492
- let invalidInput = [];
493
- if (invalidInput.length) {
494
- const error = new Error();
495
- error.message = "Missing required field";
496
- error.details = invalidInput;
497
- return Promise.reject(new FDKClientValidationError(error));
498
- }
499
-
500
393
  const query_params = {};
501
394
 
502
395
  const xHeaders = {};
@@ -534,18 +427,12 @@ class Content {
534
427
  { slug, requestHeaders } = { requestHeaders: {} },
535
428
  { responseHeaders } = { responseHeaders: false }
536
429
  ) {
537
- let invalidInput = [];
538
-
539
- if (!slug) {
540
- invalidInput.push({
541
- message: `The 'slug' field is required.`,
542
- path: ["slug"],
430
+ const errors = validateRequiredParams(arguments[0], ["slug"]);
431
+ if (errors.length > 0) {
432
+ const error = new FDKClientValidationError({
433
+ message: "Missing required field",
434
+ details: errors,
543
435
  });
544
- }
545
- if (invalidInput.length) {
546
- const error = new Error();
547
- error.message = "Missing required field";
548
- error.details = invalidInput;
549
436
  return Promise.reject(new FDKClientValidationError(error));
550
437
  }
551
438
 
@@ -586,14 +473,6 @@ class Content {
586
473
  { requestHeaders } = { requestHeaders: {} },
587
474
  { responseHeaders } = { responseHeaders: false }
588
475
  ) {
589
- let invalidInput = [];
590
- if (invalidInput.length) {
591
- const error = new Error();
592
- error.message = "Missing required field";
593
- error.details = invalidInput;
594
- return Promise.reject(new FDKClientValidationError(error));
595
- }
596
-
597
476
  const query_params = {};
598
477
 
599
478
  const xHeaders = {};
@@ -631,18 +510,12 @@ class Content {
631
510
  { slug, requestHeaders } = { requestHeaders: {} },
632
511
  { responseHeaders } = { responseHeaders: false }
633
512
  ) {
634
- let invalidInput = [];
635
-
636
- if (!slug) {
637
- invalidInput.push({
638
- message: `The 'slug' field is required.`,
639
- path: ["slug"],
513
+ const errors = validateRequiredParams(arguments[0], ["slug"]);
514
+ if (errors.length > 0) {
515
+ const error = new FDKClientValidationError({
516
+ message: "Missing required field",
517
+ details: errors,
640
518
  });
641
- }
642
- if (invalidInput.length) {
643
- const error = new Error();
644
- error.message = "Missing required field";
645
- error.details = invalidInput;
646
519
  return Promise.reject(new FDKClientValidationError(error));
647
520
  }
648
521
 
@@ -683,14 +556,6 @@ class Content {
683
556
  { requestHeaders } = { requestHeaders: {} },
684
557
  { responseHeaders } = { responseHeaders: false }
685
558
  ) {
686
- let invalidInput = [];
687
- if (invalidInput.length) {
688
- const error = new Error();
689
- error.message = "Missing required field";
690
- error.details = invalidInput;
691
- return Promise.reject(new FDKClientValidationError(error));
692
- }
693
-
694
559
  const query_params = {};
695
560
 
696
561
  const xHeaders = {};
@@ -728,18 +593,12 @@ class Content {
728
593
  { slug, requestHeaders } = { requestHeaders: {} },
729
594
  { responseHeaders } = { responseHeaders: false }
730
595
  ) {
731
- let invalidInput = [];
732
-
733
- if (!slug) {
734
- invalidInput.push({
735
- message: `The 'slug' field is required.`,
736
- path: ["slug"],
596
+ const errors = validateRequiredParams(arguments[0], ["slug"]);
597
+ if (errors.length > 0) {
598
+ const error = new FDKClientValidationError({
599
+ message: "Missing required field",
600
+ details: errors,
737
601
  });
738
- }
739
- if (invalidInput.length) {
740
- const error = new Error();
741
- error.message = "Missing required field";
742
- error.details = invalidInput;
743
602
  return Promise.reject(new FDKClientValidationError(error));
744
603
  }
745
604
 
@@ -774,20 +633,12 @@ class Content {
774
633
  * @returns {Promise<LandingPageSchema>} - Success response
775
634
  * @name getLandingPage
776
635
  * @summary: Get a landing page
777
- * @description: Gets the content of the application's landing page. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getLandingPage/).
636
+ * @description: Get content of the application's landing page. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getLandingPage/).
778
637
  */
779
638
  async getLandingPage(
780
639
  { requestHeaders } = { requestHeaders: {} },
781
640
  { responseHeaders } = { responseHeaders: false }
782
641
  ) {
783
- let invalidInput = [];
784
- if (invalidInput.length) {
785
- const error = new Error();
786
- error.message = "Missing required field";
787
- error.details = invalidInput;
788
- return Promise.reject(new FDKClientValidationError(error));
789
- }
790
-
791
642
  const query_params = {};
792
643
 
793
644
  const xHeaders = {};
@@ -825,14 +676,6 @@ class Content {
825
676
  { requestHeaders } = { requestHeaders: {} },
826
677
  { responseHeaders } = { responseHeaders: false }
827
678
  ) {
828
- let invalidInput = [];
829
- if (invalidInput.length) {
830
- const error = new Error();
831
- error.message = "Missing required field";
832
- error.details = invalidInput;
833
- return Promise.reject(new FDKClientValidationError(error));
834
- }
835
-
836
679
  const query_params = {};
837
680
 
838
681
  const xHeaders = {};
@@ -861,7 +704,7 @@ class Content {
861
704
  /**
862
705
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
863
706
  * @param {import("../ApplicationAPIClient").Options} - Options
864
- * @returns {Promise<NavigationGetResponse>} - Success response
707
+ * @returns {Promise<NavigationGetDetails>} - Success response
865
708
  * @name getNavigations
866
709
  * @summary: List navigation items
867
710
  * @description: Get the navigation link items which can be powered to generate menus on application's website or equivalent mobile apps. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getNavigations/).
@@ -870,14 +713,6 @@ class Content {
870
713
  { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
871
714
  { responseHeaders } = { responseHeaders: false }
872
715
  ) {
873
- let invalidInput = [];
874
- if (invalidInput.length) {
875
- const error = new Error();
876
- error.message = "Missing required field";
877
- error.details = invalidInput;
878
- return Promise.reject(new FDKClientValidationError(error));
879
- }
880
-
881
716
  const query_params = {};
882
717
  query_params["page_no"] = pageNo;
883
718
  query_params["page_size"] = pageSize;
@@ -910,25 +745,19 @@ class Content {
910
745
  * @param {import("../ApplicationAPIClient").Options} - Options
911
746
  * @returns {Promise<PageSchema>} - Success response
912
747
  * @name getPage
913
- * @summary: Get page by slug
914
- * @description: Get detailed information about a specific page using its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getPage/).
748
+ * @summary: Get a page
749
+ * @description: Get detailed information for a specific page within the theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getPage/).
915
750
  */
916
751
  async getPage(
917
752
  { slug, rootId, requestHeaders } = { requestHeaders: {} },
918
753
  { responseHeaders } = { responseHeaders: false }
919
754
  ) {
920
- let invalidInput = [];
921
-
922
- if (!slug) {
923
- invalidInput.push({
924
- message: `The 'slug' field is required.`,
925
- path: ["slug"],
755
+ const errors = validateRequiredParams(arguments[0], ["slug"]);
756
+ if (errors.length > 0) {
757
+ const error = new FDKClientValidationError({
758
+ message: "Missing required field",
759
+ details: errors,
926
760
  });
927
- }
928
- if (invalidInput.length) {
929
- const error = new Error();
930
- error.message = "Missing required field";
931
- error.details = invalidInput;
932
761
  return Promise.reject(new FDKClientValidationError(error));
933
762
  }
934
763
 
@@ -961,23 +790,15 @@ class Content {
961
790
  /**
962
791
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
963
792
  * @param {import("../ApplicationAPIClient").Options} - Options
964
- * @returns {Promise<PageGetResponse>} - Success response
793
+ * @returns {Promise<PageGetDetails>} - Success response
965
794
  * @name getPages
966
795
  * @summary: Lists pages
967
- * @description: Lists all Custom Pages - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getPages/).
796
+ * @description: Lists all Custom Pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getPages/).
968
797
  */
969
798
  async getPages(
970
799
  { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
971
800
  { responseHeaders } = { responseHeaders: false }
972
801
  ) {
973
- let invalidInput = [];
974
- if (invalidInput.length) {
975
- const error = new Error();
976
- error.message = "Missing required field";
977
- error.details = invalidInput;
978
- return Promise.reject(new FDKClientValidationError(error));
979
- }
980
-
981
802
  const query_params = {};
982
803
  query_params["page_no"] = pageNo;
983
804
  query_params["page_size"] = pageSize;
@@ -1017,14 +838,6 @@ class Content {
1017
838
  { requestHeaders } = { requestHeaders: {} },
1018
839
  { responseHeaders } = { responseHeaders: false }
1019
840
  ) {
1020
- let invalidInput = [];
1021
- if (invalidInput.length) {
1022
- const error = new Error();
1023
- error.message = "Missing required field";
1024
- error.details = invalidInput;
1025
- return Promise.reject(new FDKClientValidationError(error));
1026
- }
1027
-
1028
841
  const query_params = {};
1029
842
 
1030
843
  const xHeaders = {};
@@ -1062,14 +875,6 @@ class Content {
1062
875
  { pageType, active, requestHeaders } = { requestHeaders: {} },
1063
876
  { responseHeaders } = { responseHeaders: false }
1064
877
  ) {
1065
- let invalidInput = [];
1066
- if (invalidInput.length) {
1067
- const error = new Error();
1068
- error.message = "Missing required field";
1069
- error.details = invalidInput;
1070
- return Promise.reject(new FDKClientValidationError(error));
1071
- }
1072
-
1073
878
  const query_params = {};
1074
879
  query_params["page_type"] = pageType;
1075
880
  query_params["active"] = active;
@@ -1109,14 +914,43 @@ class Content {
1109
914
  { requestHeaders } = { requestHeaders: {} },
1110
915
  { responseHeaders } = { responseHeaders: false }
1111
916
  ) {
1112
- let invalidInput = [];
1113
- if (invalidInput.length) {
1114
- const error = new Error();
1115
- error.message = "Missing required field";
1116
- error.details = invalidInput;
1117
- return Promise.reject(new FDKClientValidationError(error));
917
+ const query_params = {};
918
+
919
+ const xHeaders = {};
920
+
921
+ const response = await ApplicationAPIClient.execute(
922
+ this._conf,
923
+ "get",
924
+ constructUrl({
925
+ url: this._urls["getSupportInformation"],
926
+ params: {},
927
+ }),
928
+ query_params,
929
+ undefined,
930
+ { ...xHeaders, ...requestHeaders },
931
+ { responseHeaders }
932
+ );
933
+
934
+ let responseData = response;
935
+ if (responseHeaders) {
936
+ responseData = response[0];
1118
937
  }
1119
938
 
939
+ return response;
940
+ }
941
+
942
+ /**
943
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
944
+ * @param {import("../ApplicationAPIClient").Options} - Options
945
+ * @returns {Promise<Object>} - Success response
946
+ * @name getSupportedLanguages
947
+ * @summary: List App Languages
948
+ * @description: Retrieve available languages and their configurations for the specified application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSupportedLanguages/).
949
+ */
950
+ async getSupportedLanguages(
951
+ { requestHeaders } = { requestHeaders: {} },
952
+ { responseHeaders } = { responseHeaders: false }
953
+ ) {
1120
954
  const query_params = {};
1121
955
 
1122
956
  const xHeaders = {};
@@ -1125,7 +959,7 @@ class Content {
1125
959
  this._conf,
1126
960
  "get",
1127
961
  constructUrl({
1128
- url: this._urls["getSupportInformation"],
962
+ url: this._urls["getSupportedLanguages"],
1129
963
  params: {},
1130
964
  }),
1131
965
  query_params,
@@ -1154,15 +988,51 @@ class Content {
1154
988
  { requestHeaders } = { requestHeaders: {} },
1155
989
  { responseHeaders } = { responseHeaders: false }
1156
990
  ) {
1157
- let invalidInput = [];
1158
- if (invalidInput.length) {
1159
- const error = new Error();
1160
- error.message = "Missing required field";
1161
- error.details = invalidInput;
1162
- return Promise.reject(new FDKClientValidationError(error));
991
+ const query_params = {};
992
+
993
+ const xHeaders = {};
994
+
995
+ const response = await ApplicationAPIClient.execute(
996
+ this._conf,
997
+ "get",
998
+ constructUrl({
999
+ url: this._urls["getTags"],
1000
+ params: {},
1001
+ }),
1002
+ query_params,
1003
+ undefined,
1004
+ { ...xHeaders, ...requestHeaders },
1005
+ { responseHeaders }
1006
+ );
1007
+
1008
+ let responseData = response;
1009
+ if (responseHeaders) {
1010
+ responseData = response[0];
1163
1011
  }
1164
1012
 
1013
+ return response;
1014
+ }
1015
+
1016
+ /**
1017
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1018
+ * @param {import("../ApplicationAPIClient").Options} - Options
1019
+ * @returns {Promise<TranslateUiLabelsPage>} - Success response
1020
+ * @name getTranslateUILabels
1021
+ * @summary: Get Translate Ui Labels
1022
+ * @description: Retrieve Translate Ui Labels with filtering options for type, template, and locale settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getTranslateUILabels/).
1023
+ */
1024
+ async getTranslateUILabels(
1025
+ { template, templateThemeId, themeId, locale, type, requestHeaders } = {
1026
+ requestHeaders: {},
1027
+ },
1028
+ { responseHeaders } = { responseHeaders: false }
1029
+ ) {
1165
1030
  const query_params = {};
1031
+ query_params["template"] = template;
1032
+ query_params["template_theme_id"] = templateThemeId;
1033
+ query_params["theme_id"] = themeId;
1034
+ query_params["locale"] = locale;
1035
+ query_params["type"] = type;
1166
1036
 
1167
1037
  const xHeaders = {};
1168
1038
 
@@ -1170,7 +1040,7 @@ class Content {
1170
1040
  this._conf,
1171
1041
  "get",
1172
1042
  constructUrl({
1173
- url: this._urls["getTags"],
1043
+ url: this._urls["getTranslateUILabels"],
1174
1044
  params: {},
1175
1045
  }),
1176
1046
  query_params,