@gofynd/fdk-client-javascript 3.1.0-beta.1 → 3.2.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 (304) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  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 +81 -101
  6. package/sdk/application/Cart/CartApplicationClient.js +173 -511
  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 +61 -61
  16. package/sdk/application/Content/ContentApplicationClient.js +183 -366
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
  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 +28 -117
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +99 -492
  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 +10 -54
  46. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +32 -364
  47. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
  49. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
  50. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -35
  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 +12 -12
  88. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  89. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  90. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  91. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  92. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +172 -251
  94. package/sdk/platform/Cart/CartPlatformApplicationClient.js +577 -648
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +270 -165
  96. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +192 -108
  97. package/sdk/platform/Cart/CartPlatformModel.d.ts +4554 -3154
  98. package/sdk/platform/Cart/CartPlatformModel.js +1935 -2854
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +380 -976
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6464
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +161 -1082
  102. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +80 -884
  103. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +568 -325
  104. package/sdk/platform/Catalog/CatalogPlatformClient.js +1560 -1162
  105. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9772 -7871
  106. package/sdk/platform/Catalog/CatalogPlatformModel.js +6978 -9516
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +231 -240
  108. package/sdk/platform/Catalog/CatalogPlatformValidator.js +180 -188
  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 +240 -376
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +589 -874
  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 +330 -502
  120. package/sdk/platform/Communication/CommunicationPlatformModel.js +376 -610
  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 -100
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -146
  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 -31
  128. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -25
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +117 -332
  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 +562 -1289
  136. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +368 -1037
  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 -248
  140. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1292 -773
  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 +2391 -924
  146. package/sdk/platform/Content/ContentPlatformModel.js +1314 -970
  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 +406 -403
  180. package/sdk/platform/Order/OrderPlatformClient.js +1200 -1343
  181. package/sdk/platform/Order/OrderPlatformModel.d.ts +8665 -4505
  182. package/sdk/platform/Order/OrderPlatformModel.js +4088 -3601
  183. package/sdk/platform/Order/OrderPlatformValidator.d.ts +666 -442
  184. package/sdk/platform/Order/OrderPlatformValidator.js +353 -312
  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 +937 -2452
  191. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +100 -306
  192. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +74 -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 +1307 -3536
  196. package/sdk/platform/Payment/PaymentPlatformModel.js +1389 -3692
  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 -521
  209. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -117
  210. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -105
  211. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +160 -149
  212. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +766 -545
  213. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6196 -3978
  214. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3181 -3895
  215. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +294 -220
  216. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -149
  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 -9
  222. package/sdk/platform/Share/SharePlatformModel.js +45 -5
  223. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +17 -37
  224. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +66 -204
  225. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +25 -26
  226. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +20 -31
  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 -0
  272. package/sdk/public/PublicClient.js +4 -0
  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 -0
  280. package/sdk/public/index.js +2 -0
  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
@@ -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,8 +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",
42
- getWellKnownUrl: "/service/application/content/v1.0/well-known/{slug}",
44
+ getTranslateUILabels:
45
+ "/service/application/content/v1.0/translate-ui-labels",
43
46
  };
44
47
  this._urls = Object.entries(this._relativeUrls).reduce(
45
48
  (urls, [method, relativeUrl]) => {
@@ -60,24 +63,26 @@ class Content {
60
63
  /**
61
64
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
62
65
  * @param {import("../ApplicationAPIClient").Options} - Options
63
- * @returns {Promise<AnnouncementsResponseSchema>} - Success response
64
- * @name getAnnouncements
65
- * @summary: List announcements
66
- * @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/).
67
70
  */
68
- async getAnnouncements(
69
- { requestHeaders } = { requestHeaders: {} },
71
+ async fetchResourceTranslations(
72
+ { type, locale, resourceId, requestHeaders } = { requestHeaders: {} },
70
73
  { responseHeaders } = { responseHeaders: false }
71
74
  ) {
72
- let invalidInput = [];
73
- if (invalidInput.length) {
74
- const error = new Error();
75
- error.message = "Missing required field";
76
- 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
+ });
77
81
  return Promise.reject(new FDKClientValidationError(error));
78
82
  }
79
83
 
80
84
  const query_params = {};
85
+ query_params["resource_id"] = resourceId;
81
86
 
82
87
  const xHeaders = {};
83
88
 
@@ -85,8 +90,8 @@ class Content {
85
90
  this._conf,
86
91
  "get",
87
92
  constructUrl({
88
- url: this._urls["getAnnouncements"],
89
- params: {},
93
+ url: this._urls["fetchResourceTranslations"],
94
+ params: { type, locale },
90
95
  }),
91
96
  query_params,
92
97
  undefined,
@@ -105,44 +110,38 @@ class Content {
105
110
  /**
106
111
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
107
112
  * @param {import("../ApplicationAPIClient").Options} - Options
108
- * @returns {Promise<BlogSchema>} - Success response
109
- * @name getBlog
110
- * @summary: Get a blog
111
- * @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/).
112
117
  */
113
- async getBlog(
114
- { slug, rootId, requestHeaders } = { requestHeaders: {} },
118
+ async fetchResourceTranslationsWithPayload(
119
+ { type, locale, resourceId, body, requestHeaders } = { requestHeaders: {} },
115
120
  { responseHeaders } = { responseHeaders: false }
116
121
  ) {
117
- let invalidInput = [];
118
-
119
- if (!slug) {
120
- invalidInput.push({
121
- message: `The 'slug' field is required.`,
122
- 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,
123
127
  });
124
- }
125
- if (invalidInput.length) {
126
- const error = new Error();
127
- error.message = "Missing required field";
128
- error.details = invalidInput;
129
128
  return Promise.reject(new FDKClientValidationError(error));
130
129
  }
131
130
 
132
131
  const query_params = {};
133
- query_params["root_id"] = rootId;
132
+ query_params["resource_id"] = resourceId;
134
133
 
135
134
  const xHeaders = {};
136
135
 
137
136
  const response = await ApplicationAPIClient.execute(
138
137
  this._conf,
139
- "get",
138
+ "post",
140
139
  constructUrl({
141
- url: this._urls["getBlog"],
142
- params: { slug },
140
+ url: this._urls["fetchResourceTranslationsWithPayload"],
141
+ params: { type, locale },
143
142
  }),
144
143
  query_params,
145
- undefined,
144
+ body,
146
145
  { ...xHeaders, ...requestHeaders },
147
146
  { responseHeaders }
148
147
  );
@@ -158,28 +157,16 @@ class Content {
158
157
  /**
159
158
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
160
159
  * @param {import("../ApplicationAPIClient").Options} - Options
161
- * @returns {Promise<BlogGetResponse>} - Success response
162
- * @name getBlogs
163
- * @summary: List blogs
164
- * @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/).
165
164
  */
166
- async getBlogs(
167
- { pageNo, pageSize, tags, search, requestHeaders } = { requestHeaders: {} },
165
+ async getAnnouncements(
166
+ { requestHeaders } = { requestHeaders: {} },
168
167
  { responseHeaders } = { responseHeaders: false }
169
168
  ) {
170
- let invalidInput = [];
171
- if (invalidInput.length) {
172
- const error = new Error();
173
- error.message = "Missing required field";
174
- error.details = invalidInput;
175
- return Promise.reject(new FDKClientValidationError(error));
176
- }
177
-
178
169
  const query_params = {};
179
- query_params["page_no"] = pageNo;
180
- query_params["page_size"] = pageSize;
181
- query_params["tags"] = tags;
182
- query_params["search"] = search;
183
170
 
184
171
  const xHeaders = {};
185
172
 
@@ -187,7 +174,7 @@ class Content {
187
174
  this._conf,
188
175
  "get",
189
176
  constructUrl({
190
- url: this._urls["getBlogs"],
177
+ url: this._urls["getAnnouncements"],
191
178
  params: {},
192
179
  }),
193
180
  query_params,
@@ -207,31 +194,27 @@ class Content {
207
194
  /**
208
195
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
209
196
  * @param {import("../ApplicationAPIClient").Options} - Options
210
- * @returns {Promise<CustomFieldDefinitionDetailResSchema>} - Success response
211
- * @name getCustomFieldDefinition
212
- * @summary: Get custom fields definition by id
213
- * @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/).
214
201
  */
215
- async getCustomFieldDefinition(
216
- { id, requestHeaders } = { requestHeaders: {} },
202
+ async getBlog(
203
+ { slug, rootId, preview, requestHeaders } = { requestHeaders: {} },
217
204
  { responseHeaders } = { responseHeaders: false }
218
205
  ) {
219
- let invalidInput = [];
220
-
221
- if (!id) {
222
- invalidInput.push({
223
- message: `The 'id' field is required.`,
224
- 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,
225
211
  });
226
- }
227
- if (invalidInput.length) {
228
- const error = new Error();
229
- error.message = "Missing required field";
230
- error.details = invalidInput;
231
212
  return Promise.reject(new FDKClientValidationError(error));
232
213
  }
233
214
 
234
215
  const query_params = {};
216
+ query_params["root_id"] = rootId;
217
+ query_params["preview"] = preview;
235
218
 
236
219
  const xHeaders = {};
237
220
 
@@ -239,8 +222,8 @@ class Content {
239
222
  this._conf,
240
223
  "get",
241
224
  constructUrl({
242
- url: this._urls["getCustomFieldDefinition"],
243
- params: { id },
225
+ url: this._urls["getBlog"],
226
+ params: { slug },
244
227
  }),
245
228
  query_params,
246
229
  undefined,
@@ -259,24 +242,20 @@ class Content {
259
242
  /**
260
243
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
261
244
  * @param {import("../ApplicationAPIClient").Options} - Options
262
- * @returns {Promise<CustomFieldDefinitionsSchema>} - Success response
263
- * @name getCustomFieldDefinitions
264
- * @summary: Get custom fields definitions
265
- * @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/).
266
249
  */
267
- async getCustomFieldDefinitions(
268
- { requestHeaders } = { requestHeaders: {} },
250
+ async getBlogs(
251
+ { pageNo, pageSize, tags, search, requestHeaders } = { requestHeaders: {} },
269
252
  { responseHeaders } = { responseHeaders: false }
270
253
  ) {
271
- let invalidInput = [];
272
- if (invalidInput.length) {
273
- const error = new Error();
274
- error.message = "Missing required field";
275
- error.details = invalidInput;
276
- return Promise.reject(new FDKClientValidationError(error));
277
- }
278
-
279
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;
280
259
 
281
260
  const xHeaders = {};
282
261
 
@@ -284,7 +263,7 @@ class Content {
284
263
  this._conf,
285
264
  "get",
286
265
  constructUrl({
287
- url: this._urls["getCustomFieldDefinitions"],
266
+ url: this._urls["getBlogs"],
288
267
  params: {},
289
268
  }),
290
269
  query_params,
@@ -305,37 +284,27 @@ class Content {
305
284
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
306
285
  * @param {import("../ApplicationAPIClient").Options} - Options
307
286
  * @returns {Promise<CustomFieldsResponseByResourceIdSchema>} - Success response
308
- * @name getCustomFields
309
- * @summary: Get list of custom fields of given resource
310
- * @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/).
311
290
  */
312
- async getCustomFields(
313
- { resource, resourceIds, requestHeaders } = { requestHeaders: {} },
291
+ async getCustomFieldsByResourceId(
292
+ { resource, resourceSlug, requestHeaders } = { requestHeaders: {} },
314
293
  { responseHeaders } = { responseHeaders: false }
315
294
  ) {
316
- let invalidInput = [];
317
-
318
- if (!resource) {
319
- invalidInput.push({
320
- message: `The 'resource' field is required.`,
321
- path: ["resource"],
322
- });
323
- }
324
- if (!resourceIds) {
325
- invalidInput.push({
326
- message: `The 'resourceIds' field is required.`,
327
- 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,
328
303
  });
329
- }
330
- if (invalidInput.length) {
331
- const error = new Error();
332
- error.message = "Missing required field";
333
- error.details = invalidInput;
334
304
  return Promise.reject(new FDKClientValidationError(error));
335
305
  }
336
306
 
337
307
  const query_params = {};
338
- query_params["resource_ids"] = resourceIds;
339
308
 
340
309
  const xHeaders = {};
341
310
 
@@ -343,8 +312,8 @@ class Content {
343
312
  this._conf,
344
313
  "get",
345
314
  constructUrl({
346
- url: this._urls["getCustomFields"],
347
- params: { resource },
315
+ url: this._urls["getCustomFieldsByResourceId"],
316
+ params: { resource, resourceSlug },
348
317
  }),
349
318
  query_params,
350
319
  undefined,
@@ -364,96 +333,27 @@ class Content {
364
333
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
365
334
  * @param {import("../ApplicationAPIClient").Options} - Options
366
335
  * @returns {Promise<CustomObjectByIdSchema>} - Success response
367
- * @name getCustomObject
368
- * @summary: Get custom object
369
- * @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/).
370
- */
371
- async getCustomObject(
372
- { id, requestHeaders } = { requestHeaders: {} },
373
- { responseHeaders } = { responseHeaders: false }
374
- ) {
375
- let invalidInput = [];
376
-
377
- if (!id) {
378
- invalidInput.push({
379
- message: `The 'id' field is required.`,
380
- path: ["id"],
381
- });
382
- }
383
- if (invalidInput.length) {
384
- const error = new Error();
385
- error.message = "Missing required field";
386
- error.details = invalidInput;
387
- return Promise.reject(new FDKClientValidationError(error));
388
- }
389
-
390
- const query_params = {};
391
-
392
- const xHeaders = {};
393
-
394
- const response = await ApplicationAPIClient.execute(
395
- this._conf,
396
- "get",
397
- constructUrl({
398
- url: this._urls["getCustomObject"],
399
- params: { id },
400
- }),
401
- query_params,
402
- undefined,
403
- { ...xHeaders, ...requestHeaders },
404
- { responseHeaders }
405
- );
406
-
407
- let responseData = response;
408
- if (responseHeaders) {
409
- responseData = response[0];
410
- }
411
-
412
- return response;
413
- }
414
-
415
- /**
416
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
417
- * @param {import("../ApplicationAPIClient").Options} - Options
418
- * @returns {Promise<CustomObjectsSchema>} - Success response
419
- * @name getCustomObjects
420
- * @summary: Get list of custom objects
421
- * @description: Use this API to retrieve the custom objects. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomObjects/).
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/).
422
339
  */
423
- async getCustomObjects(
424
- { pageNo, pageSize, definitionId, type, ids, search, requestHeaders } = {
425
- requestHeaders: {},
426
- },
340
+ async getCustomObjectBySlug(
341
+ { definitionSlug, slug, requestHeaders } = { requestHeaders: {} },
427
342
  { responseHeaders } = { responseHeaders: false }
428
343
  ) {
429
- let invalidInput = [];
430
-
431
- if (!pageNo) {
432
- invalidInput.push({
433
- message: `The 'pageNo' field is required.`,
434
- path: ["pageNo"],
435
- });
436
- }
437
- if (!pageSize) {
438
- invalidInput.push({
439
- message: `The 'pageSize' field is required.`,
440
- path: ["pageSize"],
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,
441
352
  });
442
- }
443
- if (invalidInput.length) {
444
- const error = new Error();
445
- error.message = "Missing required field";
446
- error.details = invalidInput;
447
353
  return Promise.reject(new FDKClientValidationError(error));
448
354
  }
449
355
 
450
356
  const query_params = {};
451
- query_params["definition_id"] = definitionId;
452
- query_params["page_no"] = pageNo;
453
- query_params["page_size"] = pageSize;
454
- query_params["type"] = type;
455
- query_params["ids"] = ids;
456
- query_params["search"] = search;
457
357
 
458
358
  const xHeaders = {};
459
359
 
@@ -461,8 +361,8 @@ class Content {
461
361
  this._conf,
462
362
  "get",
463
363
  constructUrl({
464
- url: this._urls["getCustomObjects"],
465
- params: {},
364
+ url: this._urls["getCustomObjectBySlug"],
365
+ params: { definitionSlug, slug },
466
366
  }),
467
367
  query_params,
468
368
  undefined,
@@ -490,14 +390,6 @@ class Content {
490
390
  { requestHeaders } = { requestHeaders: {} },
491
391
  { responseHeaders } = { responseHeaders: false }
492
392
  ) {
493
- let invalidInput = [];
494
- if (invalidInput.length) {
495
- const error = new Error();
496
- error.message = "Missing required field";
497
- error.details = invalidInput;
498
- return Promise.reject(new FDKClientValidationError(error));
499
- }
500
-
501
393
  const query_params = {};
502
394
 
503
395
  const xHeaders = {};
@@ -535,18 +427,12 @@ class Content {
535
427
  { slug, requestHeaders } = { requestHeaders: {} },
536
428
  { responseHeaders } = { responseHeaders: false }
537
429
  ) {
538
- let invalidInput = [];
539
-
540
- if (!slug) {
541
- invalidInput.push({
542
- message: `The 'slug' field is required.`,
543
- 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,
544
435
  });
545
- }
546
- if (invalidInput.length) {
547
- const error = new Error();
548
- error.message = "Missing required field";
549
- error.details = invalidInput;
550
436
  return Promise.reject(new FDKClientValidationError(error));
551
437
  }
552
438
 
@@ -587,14 +473,6 @@ class Content {
587
473
  { requestHeaders } = { requestHeaders: {} },
588
474
  { responseHeaders } = { responseHeaders: false }
589
475
  ) {
590
- let invalidInput = [];
591
- if (invalidInput.length) {
592
- const error = new Error();
593
- error.message = "Missing required field";
594
- error.details = invalidInput;
595
- return Promise.reject(new FDKClientValidationError(error));
596
- }
597
-
598
476
  const query_params = {};
599
477
 
600
478
  const xHeaders = {};
@@ -632,18 +510,12 @@ class Content {
632
510
  { slug, requestHeaders } = { requestHeaders: {} },
633
511
  { responseHeaders } = { responseHeaders: false }
634
512
  ) {
635
- let invalidInput = [];
636
-
637
- if (!slug) {
638
- invalidInput.push({
639
- message: `The 'slug' field is required.`,
640
- 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,
641
518
  });
642
- }
643
- if (invalidInput.length) {
644
- const error = new Error();
645
- error.message = "Missing required field";
646
- error.details = invalidInput;
647
519
  return Promise.reject(new FDKClientValidationError(error));
648
520
  }
649
521
 
@@ -684,14 +556,6 @@ class Content {
684
556
  { requestHeaders } = { requestHeaders: {} },
685
557
  { responseHeaders } = { responseHeaders: false }
686
558
  ) {
687
- let invalidInput = [];
688
- if (invalidInput.length) {
689
- const error = new Error();
690
- error.message = "Missing required field";
691
- error.details = invalidInput;
692
- return Promise.reject(new FDKClientValidationError(error));
693
- }
694
-
695
559
  const query_params = {};
696
560
 
697
561
  const xHeaders = {};
@@ -729,18 +593,12 @@ class Content {
729
593
  { slug, requestHeaders } = { requestHeaders: {} },
730
594
  { responseHeaders } = { responseHeaders: false }
731
595
  ) {
732
- let invalidInput = [];
733
-
734
- if (!slug) {
735
- invalidInput.push({
736
- message: `The 'slug' field is required.`,
737
- 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,
738
601
  });
739
- }
740
- if (invalidInput.length) {
741
- const error = new Error();
742
- error.message = "Missing required field";
743
- error.details = invalidInput;
744
602
  return Promise.reject(new FDKClientValidationError(error));
745
603
  }
746
604
 
@@ -775,20 +633,12 @@ class Content {
775
633
  * @returns {Promise<LandingPageSchema>} - Success response
776
634
  * @name getLandingPage
777
635
  * @summary: Get a landing page
778
- * @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/).
779
637
  */
780
638
  async getLandingPage(
781
639
  { requestHeaders } = { requestHeaders: {} },
782
640
  { responseHeaders } = { responseHeaders: false }
783
641
  ) {
784
- let invalidInput = [];
785
- if (invalidInput.length) {
786
- const error = new Error();
787
- error.message = "Missing required field";
788
- error.details = invalidInput;
789
- return Promise.reject(new FDKClientValidationError(error));
790
- }
791
-
792
642
  const query_params = {};
793
643
 
794
644
  const xHeaders = {};
@@ -826,14 +676,6 @@ class Content {
826
676
  { requestHeaders } = { requestHeaders: {} },
827
677
  { responseHeaders } = { responseHeaders: false }
828
678
  ) {
829
- let invalidInput = [];
830
- if (invalidInput.length) {
831
- const error = new Error();
832
- error.message = "Missing required field";
833
- error.details = invalidInput;
834
- return Promise.reject(new FDKClientValidationError(error));
835
- }
836
-
837
679
  const query_params = {};
838
680
 
839
681
  const xHeaders = {};
@@ -862,7 +704,7 @@ class Content {
862
704
  /**
863
705
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
864
706
  * @param {import("../ApplicationAPIClient").Options} - Options
865
- * @returns {Promise<NavigationGetResponse>} - Success response
707
+ * @returns {Promise<NavigationGetDetails>} - Success response
866
708
  * @name getNavigations
867
709
  * @summary: List navigation items
868
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/).
@@ -871,14 +713,6 @@ class Content {
871
713
  { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
872
714
  { responseHeaders } = { responseHeaders: false }
873
715
  ) {
874
- let invalidInput = [];
875
- if (invalidInput.length) {
876
- const error = new Error();
877
- error.message = "Missing required field";
878
- error.details = invalidInput;
879
- return Promise.reject(new FDKClientValidationError(error));
880
- }
881
-
882
716
  const query_params = {};
883
717
  query_params["page_no"] = pageNo;
884
718
  query_params["page_size"] = pageSize;
@@ -911,25 +745,19 @@ class Content {
911
745
  * @param {import("../ApplicationAPIClient").Options} - Options
912
746
  * @returns {Promise<PageSchema>} - Success response
913
747
  * @name getPage
914
- * @summary: Get page by slug
915
- * @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/).
916
750
  */
917
751
  async getPage(
918
752
  { slug, rootId, requestHeaders } = { requestHeaders: {} },
919
753
  { responseHeaders } = { responseHeaders: false }
920
754
  ) {
921
- let invalidInput = [];
922
-
923
- if (!slug) {
924
- invalidInput.push({
925
- message: `The 'slug' field is required.`,
926
- 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,
927
760
  });
928
- }
929
- if (invalidInput.length) {
930
- const error = new Error();
931
- error.message = "Missing required field";
932
- error.details = invalidInput;
933
761
  return Promise.reject(new FDKClientValidationError(error));
934
762
  }
935
763
 
@@ -962,23 +790,15 @@ class Content {
962
790
  /**
963
791
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
964
792
  * @param {import("../ApplicationAPIClient").Options} - Options
965
- * @returns {Promise<PageGetResponse>} - Success response
793
+ * @returns {Promise<PageGetDetails>} - Success response
966
794
  * @name getPages
967
795
  * @summary: Lists pages
968
- * @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/).
969
797
  */
970
798
  async getPages(
971
799
  { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
972
800
  { responseHeaders } = { responseHeaders: false }
973
801
  ) {
974
- let invalidInput = [];
975
- if (invalidInput.length) {
976
- const error = new Error();
977
- error.message = "Missing required field";
978
- error.details = invalidInput;
979
- return Promise.reject(new FDKClientValidationError(error));
980
- }
981
-
982
802
  const query_params = {};
983
803
  query_params["page_no"] = pageNo;
984
804
  query_params["page_size"] = pageSize;
@@ -1018,14 +838,6 @@ class Content {
1018
838
  { requestHeaders } = { requestHeaders: {} },
1019
839
  { responseHeaders } = { responseHeaders: false }
1020
840
  ) {
1021
- let invalidInput = [];
1022
- if (invalidInput.length) {
1023
- const error = new Error();
1024
- error.message = "Missing required field";
1025
- error.details = invalidInput;
1026
- return Promise.reject(new FDKClientValidationError(error));
1027
- }
1028
-
1029
841
  const query_params = {};
1030
842
 
1031
843
  const xHeaders = {};
@@ -1063,14 +875,6 @@ class Content {
1063
875
  { pageType, active, requestHeaders } = { requestHeaders: {} },
1064
876
  { responseHeaders } = { responseHeaders: false }
1065
877
  ) {
1066
- let invalidInput = [];
1067
- if (invalidInput.length) {
1068
- const error = new Error();
1069
- error.message = "Missing required field";
1070
- error.details = invalidInput;
1071
- return Promise.reject(new FDKClientValidationError(error));
1072
- }
1073
-
1074
878
  const query_params = {};
1075
879
  query_params["page_type"] = pageType;
1076
880
  query_params["active"] = active;
@@ -1110,14 +914,43 @@ class Content {
1110
914
  { requestHeaders } = { requestHeaders: {} },
1111
915
  { responseHeaders } = { responseHeaders: false }
1112
916
  ) {
1113
- let invalidInput = [];
1114
- if (invalidInput.length) {
1115
- const error = new Error();
1116
- error.message = "Missing required field";
1117
- error.details = invalidInput;
1118
- 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];
1119
937
  }
1120
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
+ ) {
1121
954
  const query_params = {};
1122
955
 
1123
956
  const xHeaders = {};
@@ -1126,7 +959,7 @@ class Content {
1126
959
  this._conf,
1127
960
  "get",
1128
961
  constructUrl({
1129
- url: this._urls["getSupportInformation"],
962
+ url: this._urls["getSupportedLanguages"],
1130
963
  params: {},
1131
964
  }),
1132
965
  query_params,
@@ -1155,14 +988,6 @@ class Content {
1155
988
  { requestHeaders } = { requestHeaders: {} },
1156
989
  { responseHeaders } = { responseHeaders: false }
1157
990
  ) {
1158
- let invalidInput = [];
1159
- if (invalidInput.length) {
1160
- const error = new Error();
1161
- error.message = "Missing required field";
1162
- error.details = invalidInput;
1163
- return Promise.reject(new FDKClientValidationError(error));
1164
- }
1165
-
1166
991
  const query_params = {};
1167
992
 
1168
993
  const xHeaders = {};
@@ -1191,31 +1016,23 @@ class Content {
1191
1016
  /**
1192
1017
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1193
1018
  * @param {import("../ApplicationAPIClient").Options} - Options
1194
- * @returns {Promise<WellKnownResponse>} - Success response
1195
- * @name getWellKnownUrl
1196
- * @summary: Get a specific well-known URL
1197
- * @description: Retrieves the details of a specific well-known URL by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getWellKnownUrl/).
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/).
1198
1023
  */
1199
- async getWellKnownUrl(
1200
- { slug, requestHeaders } = { requestHeaders: {} },
1024
+ async getTranslateUILabels(
1025
+ { template, templateThemeId, themeId, locale, type, requestHeaders } = {
1026
+ requestHeaders: {},
1027
+ },
1201
1028
  { responseHeaders } = { responseHeaders: false }
1202
1029
  ) {
1203
- let invalidInput = [];
1204
-
1205
- if (!slug) {
1206
- invalidInput.push({
1207
- message: `The 'slug' field is required.`,
1208
- path: ["slug"],
1209
- });
1210
- }
1211
- if (invalidInput.length) {
1212
- const error = new Error();
1213
- error.message = "Missing required field";
1214
- error.details = invalidInput;
1215
- return Promise.reject(new FDKClientValidationError(error));
1216
- }
1217
-
1218
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;
1219
1036
 
1220
1037
  const xHeaders = {};
1221
1038
 
@@ -1223,8 +1040,8 @@ class Content {
1223
1040
  this._conf,
1224
1041
  "get",
1225
1042
  constructUrl({
1226
- url: this._urls["getWellKnownUrl"],
1227
- params: { slug },
1043
+ url: this._urls["getTranslateUILabels"],
1044
+ params: {},
1228
1045
  }),
1229
1046
  query_params,
1230
1047
  undefined,