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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (314) hide show
  1. package/README.md +2 -2
  2. package/application.d.ts +1 -2
  3. package/application.js +2 -3
  4. package/index.d.ts +1 -2
  5. package/index.js +7 -1
  6. package/package.json +2 -3
  7. package/sdk/application/ApplicationClient.d.ts +2 -0
  8. package/sdk/application/ApplicationClient.js +2 -18
  9. package/sdk/application/Cart/CartApplicationClient.d.ts +75 -90
  10. package/sdk/application/Cart/CartApplicationClient.js +111 -1200
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +81 -142
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +41 -1344
  13. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
  14. package/sdk/application/Common/CommonApplicationClient.js +2 -92
  15. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
  16. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -148
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
  18. package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -727
  19. package/sdk/application/Content/ContentApplicationClient.d.ts +52 -95
  20. package/sdk/application/Content/ContentApplicationClient.js +46 -990
  21. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -13
  22. package/sdk/application/FileStorage/FileStorageApplicationClient.js +8 -138
  23. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  24. package/sdk/application/Finance/FinanceApplicationClient.js +105 -0
  25. package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
  26. package/sdk/application/Lead/LeadApplicationClient.js +5 -217
  27. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +42 -39
  28. package/sdk/application/Logistic/LogisticApplicationClient.js +89 -493
  29. package/sdk/application/Order/OrderApplicationClient.d.ts +36 -46
  30. package/sdk/application/Order/OrderApplicationClient.js +52 -507
  31. package/sdk/application/Payment/PaymentApplicationClient.d.ts +93 -213
  32. package/sdk/application/Payment/PaymentApplicationClient.js +49 -2109
  33. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -29
  34. package/sdk/application/Rewards/RewardsApplicationClient.js +8 -312
  35. package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
  36. package/sdk/application/Share/ShareApplicationClient.js +7 -309
  37. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
  38. package/sdk/application/Theme/ThemeApplicationClient.js +8 -176
  39. package/sdk/application/User/UserApplicationClient.d.ts +87 -138
  40. package/sdk/application/User/UserApplicationClient.js +44 -1820
  41. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
  42. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -52
  43. package/sdk/application/index.d.ts +0 -18
  44. package/sdk/application/index.js +0 -33
  45. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  46. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  47. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  49. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  50. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  51. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  52. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  53. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  54. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  55. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  56. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  57. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
  58. package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
  59. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  60. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
  61. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  62. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  63. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  64. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  65. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  66. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  67. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  68. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  69. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  70. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  71. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  72. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  73. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  74. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  75. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  76. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  77. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  78. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  79. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  80. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  82. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  83. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  84. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  85. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  86. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  87. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  88. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  89. package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
  90. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +118 -65
  91. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
  92. package/sdk/platform/Cart/CartPlatformModel.d.ts +5046 -1300
  93. package/sdk/platform/Cart/CartPlatformModel.js +1979 -1217
  94. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
  95. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
  97. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
  98. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
  99. package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
  100. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6506 -1775
  101. package/sdk/platform/Catalog/CatalogPlatformModel.js +3224 -1690
  102. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
  103. package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
  104. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  105. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  106. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  107. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  112. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  113. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  114. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  120. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  124. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  125. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  126. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  127. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  128. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  129. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  130. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  131. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  132. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  133. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  134. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  135. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  136. package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
  137. package/sdk/platform/Content/ContentPlatformModel.js +521 -390
  138. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  139. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  140. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  141. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  142. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  143. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  144. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  145. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  146. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  149. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  150. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  151. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  152. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  153. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  154. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  155. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  156. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  157. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  158. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  159. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  160. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
  161. package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
  162. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
  163. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
  164. package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
  165. package/sdk/platform/Order/OrderPlatformClient.js +416 -198
  166. package/sdk/platform/Order/OrderPlatformModel.d.ts +7602 -1269
  167. package/sdk/platform/Order/OrderPlatformModel.js +3926 -1269
  168. package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
  169. package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
  170. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  171. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  172. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  173. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  174. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  175. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  176. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  177. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  178. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  179. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  180. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
  181. package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
  182. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  183. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  184. package/sdk/platform/PlatformClient.d.ts +0 -2
  185. package/sdk/platform/PlatformClient.js +0 -4
  186. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  187. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  188. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  189. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  190. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  191. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +46 -36
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
  202. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  203. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  204. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  205. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  206. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  208. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  210. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  211. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  212. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  213. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  214. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  215. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  216. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  217. package/sdk/platform/User/UserPlatformModel.js +23 -23
  218. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  219. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  220. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  221. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  222. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  223. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  224. package/sdk/platform/index.d.ts +0 -1
  225. package/sdk/platform/index.js +0 -2
  226. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  227. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -7
  228. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  229. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  230. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  231. package/sdk/public/Content/ContentPublicClient.js +795 -7
  232. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  233. package/sdk/public/Content/ContentPublicModel.js +649 -3
  234. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  235. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  236. package/sdk/public/Partner/PartnerPublicClient.js +4 -2
  237. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  238. package/sdk/public/Webhook/WebhookPublicClient.js +12 -10
  239. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  240. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  241. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  242. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  243. package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
  244. package/sdk/application/Cart/CartApplicationModel.js +0 -2497
  245. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
  246. package/sdk/application/Cart/CartApplicationValidator.js +0 -530
  247. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
  248. package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
  249. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
  250. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
  251. package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
  252. package/sdk/application/Common/CommonApplicationModel.js +0 -308
  253. package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
  254. package/sdk/application/Common/CommonApplicationValidator.js +0 -38
  255. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
  256. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
  257. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
  258. package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
  259. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
  260. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
  261. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
  262. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
  263. package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
  264. package/sdk/application/Content/ContentApplicationModel.js +0 -1589
  265. package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
  266. package/sdk/application/Content/ContentApplicationValidator.js +0 -264
  267. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
  268. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
  269. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
  270. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
  271. package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
  272. package/sdk/application/Lead/LeadApplicationModel.js +0 -480
  273. package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
  274. package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
  275. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
  276. package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
  277. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
  278. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
  279. package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
  280. package/sdk/application/Order/OrderApplicationModel.js +0 -1471
  281. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
  282. package/sdk/application/Order/OrderApplicationValidator.js +0 -197
  283. package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
  284. package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
  285. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
  286. package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
  287. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
  288. package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
  289. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
  290. package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
  291. package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
  292. package/sdk/application/Share/ShareApplicationModel.js +0 -234
  293. package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
  294. package/sdk/application/Share/ShareApplicationValidator.js +0 -91
  295. package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
  296. package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
  297. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
  298. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
  299. package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
  300. package/sdk/application/User/UserApplicationModel.js +0 -1382
  301. package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
  302. package/sdk/application/User/UserApplicationValidator.js +0 -573
  303. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
  304. package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
  305. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
  306. package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
  307. package/sdk/common/Clickstream.d.ts +0 -1
  308. package/sdk/common/Clickstream.js +0 -464
  309. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  310. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  311. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  312. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  313. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  314. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -1,14 +1,6 @@
1
1
  const ApplicationAPIClient = require("../ApplicationAPIClient");
2
- const {
3
- FDKClientValidationError,
4
- FDKResponseValidationError,
5
- } = require("../../common/FDKError");
6
2
  const constructUrl = require("../constructUrl");
7
3
  const Paginator = require("../../common/Paginator");
8
- const ContentApplicationValidator = require("./ContentApplicationValidator");
9
- const ContentApplicationModel = require("./ContentApplicationModel");
10
- const { Logger } = require("./../../common/Logger");
11
- const Joi = require("joi");
12
4
 
13
5
  class Content {
14
6
  constructor(_conf) {
@@ -16,11 +8,11 @@ class Content {
16
8
  this._relativeUrls = {
17
9
  getAnnouncements: "/service/application/content/v1.0/announcements",
18
10
  getBlog: "/service/application/content/v1.0/blogs/{slug}",
19
- getBlogs: "/service/application/content/v1.0/blogs/",
20
- getCustomFields:
21
- "/service/application/content/v1.0/metafields/{resource}/{resource_id}",
22
- getCustomObject:
23
- "/service/application/content/v1.0/metaobjects/{metaobject_id}",
11
+ getBlogs: "/service/application/content/v1.0/blogs",
12
+ getCustomFieldsByResourceId:
13
+ "/service/application/content/v2.0/customfields/resource/{resource}/{resource_slug}",
14
+ getCustomObjectBySlug:
15
+ "/service/application/content/v2.0/customobjects/definition/{definition_slug}/entries/{slug}",
24
16
  getDataLoaders: "/service/application/content/v1.0/data-loader",
25
17
  getFaqBySlug: "/service/application/content/v1.0/faq/{slug}",
26
18
  getFaqCategories: "/service/application/content/v1.0/faq/categories",
@@ -31,13 +23,13 @@ class Content {
31
23
  "/service/application/content/v1.0/faq/category/{slug}/faqs",
32
24
  getLandingPage: "/service/application/content/v1.0/landing-page",
33
25
  getLegalInformation: "/service/application/content/v1.0/legal",
34
- getNavigations: "/service/application/content/v1.0/navigations/",
26
+ getNavigations: "/service/application/content/v1.0/navigations",
35
27
  getPage: "/service/application/content/v2.0/pages/{slug}",
36
- getPages: "/service/application/content/v2.0/pages/",
28
+ getPages: "/service/application/content/v2.0/pages",
37
29
  getSEOConfiguration: "/service/application/content/v1.0/seo",
38
30
  getSEOMarkupSchemas: "/service/application/content/v1.0/seo/schema",
39
31
  getSlideshow: "/service/application/content/v1.0/slideshow/{slug}",
40
- getSlideshows: "/service/application/content/v1.0/slideshow/",
32
+ getSlideshows: "/service/application/content/v1.0/slideshow",
41
33
  getSupportInformation: "/service/application/content/v1.0/support",
42
34
  getTags: "/service/application/content/v1.0/tags",
43
35
  };
@@ -58,12 +50,9 @@ class Content {
58
50
  }
59
51
 
60
52
  /**
61
- * @param {ContentApplicationValidator.GetAnnouncementsParam} arg - Arg object.
62
53
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
63
54
  * @param {import("../ApplicationAPIClient").Options} - Options
64
- * @returns {Promise<ContentApplicationModel.AnnouncementsResponseSchema>}
65
- * - Success response
66
- *
55
+ * @returns {Promise<AnnouncementsResponseSchema>} - Success response
67
56
  * @name getAnnouncements
68
57
  * @summary: List announcements
69
58
  * @description: List all current announcements in the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getAnnouncements/).
@@ -72,28 +61,6 @@ class Content {
72
61
  { requestHeaders } = { requestHeaders: {} },
73
62
  { responseHeaders } = { responseHeaders: false }
74
63
  ) {
75
- const { error } = ContentApplicationValidator.getAnnouncements().validate(
76
- {},
77
- { abortEarly: false, allowUnknown: true }
78
- );
79
- if (error) {
80
- return Promise.reject(new FDKClientValidationError(error));
81
- }
82
-
83
- // Showing warrnings if extra unknown parameters are found
84
- const {
85
- error: warrning,
86
- } = ContentApplicationValidator.getAnnouncements().validate(
87
- {},
88
- { abortEarly: false, allowUnknown: false }
89
- );
90
- if (warrning) {
91
- Logger({
92
- level: "WARN",
93
- message: `Parameter Validation warrnings for application > Content > getAnnouncements \n ${warrning}`,
94
- });
95
- }
96
-
97
64
  const query_params = {};
98
65
 
99
66
  const xHeaders = {};
@@ -116,62 +83,24 @@ class Content {
116
83
  responseData = response[0];
117
84
  }
118
85
 
119
- const {
120
- error: res_error,
121
- } = ContentApplicationModel.AnnouncementsResponseSchema().validate(
122
- responseData,
123
- { abortEarly: false, allowUnknown: true }
124
- );
125
-
126
- if (res_error) {
127
- if (this._conf.options.strictResponseCheck === true) {
128
- return Promise.reject(new FDKResponseValidationError(res_error));
129
- } else {
130
- Logger({
131
- level: "WARN",
132
- message: `Response Validation Warnings for application > Content > getAnnouncements \n ${res_error}`,
133
- });
134
- }
135
- }
136
-
137
86
  return response;
138
87
  }
139
88
 
140
89
  /**
141
- * @param {ContentApplicationValidator.GetBlogParam} arg - Arg object.
142
90
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
143
91
  * @param {import("../ApplicationAPIClient").Options} - Options
144
- * @returns {Promise<ContentApplicationModel.BlogSchema>} - Success response
92
+ * @returns {Promise<BlogSchema>} - Success response
145
93
  * @name getBlog
146
94
  * @summary: Get a blog
147
95
  * @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/).
148
96
  */
149
97
  async getBlog(
150
- { slug, rootId, requestHeaders } = { requestHeaders: {} },
98
+ { slug, rootId, preview, requestHeaders } = { requestHeaders: {} },
151
99
  { responseHeaders } = { responseHeaders: false }
152
100
  ) {
153
- const { error } = ContentApplicationValidator.getBlog().validate(
154
- { slug, rootId },
155
- { abortEarly: false, allowUnknown: true }
156
- );
157
- if (error) {
158
- return Promise.reject(new FDKClientValidationError(error));
159
- }
160
-
161
- // Showing warrnings if extra unknown parameters are found
162
- const { error: warrning } = ContentApplicationValidator.getBlog().validate(
163
- { slug, rootId },
164
- { abortEarly: false, allowUnknown: false }
165
- );
166
- if (warrning) {
167
- Logger({
168
- level: "WARN",
169
- message: `Parameter Validation warrnings for application > Content > getBlog \n ${warrning}`,
170
- });
171
- }
172
-
173
101
  const query_params = {};
174
102
  query_params["root_id"] = rootId;
103
+ query_params["preview"] = preview;
175
104
 
176
105
  const xHeaders = {};
177
106
 
@@ -193,32 +122,13 @@ class Content {
193
122
  responseData = response[0];
194
123
  }
195
124
 
196
- const {
197
- error: res_error,
198
- } = ContentApplicationModel.BlogSchema().validate(responseData, {
199
- abortEarly: false,
200
- allowUnknown: true,
201
- });
202
-
203
- if (res_error) {
204
- if (this._conf.options.strictResponseCheck === true) {
205
- return Promise.reject(new FDKResponseValidationError(res_error));
206
- } else {
207
- Logger({
208
- level: "WARN",
209
- message: `Response Validation Warnings for application > Content > getBlog \n ${res_error}`,
210
- });
211
- }
212
- }
213
-
214
125
  return response;
215
126
  }
216
127
 
217
128
  /**
218
- * @param {ContentApplicationValidator.GetBlogsParam} arg - Arg object.
219
129
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
220
130
  * @param {import("../ApplicationAPIClient").Options} - Options
221
- * @returns {Promise<ContentApplicationModel.BlogGetResponse>} - Success response
131
+ * @returns {Promise<BlogGetDetails>} - Success response
222
132
  * @name getBlogs
223
133
  * @summary: List blogs
224
134
  * @description: List all the blogs against an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlogs/).
@@ -227,26 +137,6 @@ class Content {
227
137
  { pageNo, pageSize, tags, search, requestHeaders } = { requestHeaders: {} },
228
138
  { responseHeaders } = { responseHeaders: false }
229
139
  ) {
230
- const { error } = ContentApplicationValidator.getBlogs().validate(
231
- { pageNo, pageSize, tags, search },
232
- { abortEarly: false, allowUnknown: true }
233
- );
234
- if (error) {
235
- return Promise.reject(new FDKClientValidationError(error));
236
- }
237
-
238
- // Showing warrnings if extra unknown parameters are found
239
- const { error: warrning } = ContentApplicationValidator.getBlogs().validate(
240
- { pageNo, pageSize, tags, search },
241
- { abortEarly: false, allowUnknown: false }
242
- );
243
- if (warrning) {
244
- Logger({
245
- level: "WARN",
246
- message: `Parameter Validation warrnings for application > Content > getBlogs \n ${warrning}`,
247
- });
248
- }
249
-
250
140
  const query_params = {};
251
141
  query_params["page_no"] = pageNo;
252
142
  query_params["page_size"] = pageSize;
@@ -273,64 +163,21 @@ class Content {
273
163
  responseData = response[0];
274
164
  }
275
165
 
276
- const {
277
- error: res_error,
278
- } = ContentApplicationModel.BlogGetResponse().validate(responseData, {
279
- abortEarly: false,
280
- allowUnknown: true,
281
- });
282
-
283
- if (res_error) {
284
- if (this._conf.options.strictResponseCheck === true) {
285
- return Promise.reject(new FDKResponseValidationError(res_error));
286
- } else {
287
- Logger({
288
- level: "WARN",
289
- message: `Response Validation Warnings for application > Content > getBlogs \n ${res_error}`,
290
- });
291
- }
292
- }
293
-
294
166
  return response;
295
167
  }
296
168
 
297
169
  /**
298
- * @param {ContentApplicationValidator.GetCustomFieldsParam} arg - Arg object.
299
170
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
300
171
  * @param {import("../ApplicationAPIClient").Options} - Options
301
- * @returns {Promise<ContentApplicationModel.CustomFieldsResponseByResourceIdSchema>}
302
- * - Success response
303
- *
304
- * @name getCustomFields
305
- * @summary: Get list of custom fields
306
- * @description: List custom fields attached to a particular resource by using the resource. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomFields/).
172
+ * @returns {Promise<CustomFieldsResponseByResourceIdSchema>} - Success response
173
+ * @name getCustomFieldsByResourceId
174
+ * @summary: Get list of custom fields of given resource and resource slug
175
+ * @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/).
307
176
  */
308
- async getCustomFields(
309
- { resource, resourceId, requestHeaders } = { requestHeaders: {} },
177
+ async getCustomFieldsByResourceId(
178
+ { resource, resourceSlug, requestHeaders } = { requestHeaders: {} },
310
179
  { responseHeaders } = { responseHeaders: false }
311
180
  ) {
312
- const { error } = ContentApplicationValidator.getCustomFields().validate(
313
- { resource, resourceId },
314
- { abortEarly: false, allowUnknown: true }
315
- );
316
- if (error) {
317
- return Promise.reject(new FDKClientValidationError(error));
318
- }
319
-
320
- // Showing warrnings if extra unknown parameters are found
321
- const {
322
- error: warrning,
323
- } = ContentApplicationValidator.getCustomFields().validate(
324
- { resource, resourceId },
325
- { abortEarly: false, allowUnknown: false }
326
- );
327
- if (warrning) {
328
- Logger({
329
- level: "WARN",
330
- message: `Parameter Validation warrnings for application > Content > getCustomFields \n ${warrning}`,
331
- });
332
- }
333
-
334
181
  const query_params = {};
335
182
 
336
183
  const xHeaders = {};
@@ -339,8 +186,8 @@ class Content {
339
186
  this._conf,
340
187
  "get",
341
188
  constructUrl({
342
- url: this._urls["getCustomFields"],
343
- params: { resource, resourceId },
189
+ url: this._urls["getCustomFieldsByResourceId"],
190
+ params: { resource, resourceSlug },
344
191
  }),
345
192
  query_params,
346
193
  undefined,
@@ -353,63 +200,21 @@ class Content {
353
200
  responseData = response[0];
354
201
  }
355
202
 
356
- const {
357
- error: res_error,
358
- } = ContentApplicationModel.CustomFieldsResponseByResourceIdSchema().validate(
359
- responseData,
360
- { abortEarly: false, allowUnknown: true }
361
- );
362
-
363
- if (res_error) {
364
- if (this._conf.options.strictResponseCheck === true) {
365
- return Promise.reject(new FDKResponseValidationError(res_error));
366
- } else {
367
- Logger({
368
- level: "WARN",
369
- message: `Response Validation Warnings for application > Content > getCustomFields \n ${res_error}`,
370
- });
371
- }
372
- }
373
-
374
203
  return response;
375
204
  }
376
205
 
377
206
  /**
378
- * @param {ContentApplicationValidator.GetCustomObjectParam} arg - Arg object.
379
207
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
380
208
  * @param {import("../ApplicationAPIClient").Options} - Options
381
- * @returns {Promise<ContentApplicationModel.CustomObjectByIdSchema>} -
382
- * Success response
383
- * @name getCustomObject
384
- * @summary: Get custom object
385
- * @description: Get 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/).
209
+ * @returns {Promise<CustomObjectByIdSchema>} - Success response
210
+ * @name getCustomObjectBySlug
211
+ * @summary: Get custom object details
212
+ * @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/).
386
213
  */
387
- async getCustomObject(
388
- { metaobjectId, requestHeaders } = { requestHeaders: {} },
214
+ async getCustomObjectBySlug(
215
+ { definitionSlug, slug, requestHeaders } = { requestHeaders: {} },
389
216
  { responseHeaders } = { responseHeaders: false }
390
217
  ) {
391
- const { error } = ContentApplicationValidator.getCustomObject().validate(
392
- { metaobjectId },
393
- { abortEarly: false, allowUnknown: true }
394
- );
395
- if (error) {
396
- return Promise.reject(new FDKClientValidationError(error));
397
- }
398
-
399
- // Showing warrnings if extra unknown parameters are found
400
- const {
401
- error: warrning,
402
- } = ContentApplicationValidator.getCustomObject().validate(
403
- { metaobjectId },
404
- { abortEarly: false, allowUnknown: false }
405
- );
406
- if (warrning) {
407
- Logger({
408
- level: "WARN",
409
- message: `Parameter Validation warrnings for application > Content > getCustomObject \n ${warrning}`,
410
- });
411
- }
412
-
413
218
  const query_params = {};
414
219
 
415
220
  const xHeaders = {};
@@ -418,8 +223,8 @@ class Content {
418
223
  this._conf,
419
224
  "get",
420
225
  constructUrl({
421
- url: this._urls["getCustomObject"],
422
- params: { metaobjectId },
226
+ url: this._urls["getCustomObjectBySlug"],
227
+ params: { definitionSlug, slug },
423
228
  }),
424
229
  query_params,
425
230
  undefined,
@@ -432,32 +237,13 @@ class Content {
432
237
  responseData = response[0];
433
238
  }
434
239
 
435
- const {
436
- error: res_error,
437
- } = ContentApplicationModel.CustomObjectByIdSchema().validate(
438
- responseData,
439
- { abortEarly: false, allowUnknown: true }
440
- );
441
-
442
- if (res_error) {
443
- if (this._conf.options.strictResponseCheck === true) {
444
- return Promise.reject(new FDKResponseValidationError(res_error));
445
- } else {
446
- Logger({
447
- level: "WARN",
448
- message: `Response Validation Warnings for application > Content > getCustomObject \n ${res_error}`,
449
- });
450
- }
451
- }
452
-
453
240
  return response;
454
241
  }
455
242
 
456
243
  /**
457
- * @param {ContentApplicationValidator.GetDataLoadersParam} arg - Arg object.
458
244
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
459
245
  * @param {import("../ApplicationAPIClient").Options} - Options
460
- * @returns {Promise<ContentApplicationModel.DataLoadersSchema>} - Success response
246
+ * @returns {Promise<DataLoadersSchema>} - Success response
461
247
  * @name getDataLoaders
462
248
  * @summary: List Dataloaders
463
249
  * @description: List all the data loaders that are enabled for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getDataLoaders/).
@@ -466,28 +252,6 @@ class Content {
466
252
  { requestHeaders } = { requestHeaders: {} },
467
253
  { responseHeaders } = { responseHeaders: false }
468
254
  ) {
469
- const { error } = ContentApplicationValidator.getDataLoaders().validate(
470
- {},
471
- { abortEarly: false, allowUnknown: true }
472
- );
473
- if (error) {
474
- return Promise.reject(new FDKClientValidationError(error));
475
- }
476
-
477
- // Showing warrnings if extra unknown parameters are found
478
- const {
479
- error: warrning,
480
- } = ContentApplicationValidator.getDataLoaders().validate(
481
- {},
482
- { abortEarly: false, allowUnknown: false }
483
- );
484
- if (warrning) {
485
- Logger({
486
- level: "WARN",
487
- message: `Parameter Validation warrnings for application > Content > getDataLoaders \n ${warrning}`,
488
- });
489
- }
490
-
491
255
  const query_params = {};
492
256
 
493
257
  const xHeaders = {};
@@ -510,32 +274,13 @@ class Content {
510
274
  responseData = response[0];
511
275
  }
512
276
 
513
- const {
514
- error: res_error,
515
- } = ContentApplicationModel.DataLoadersSchema().validate(responseData, {
516
- abortEarly: false,
517
- allowUnknown: true,
518
- });
519
-
520
- if (res_error) {
521
- if (this._conf.options.strictResponseCheck === true) {
522
- return Promise.reject(new FDKResponseValidationError(res_error));
523
- } else {
524
- Logger({
525
- level: "WARN",
526
- message: `Response Validation Warnings for application > Content > getDataLoaders \n ${res_error}`,
527
- });
528
- }
529
- }
530
-
531
277
  return response;
532
278
  }
533
279
 
534
280
  /**
535
- * @param {ContentApplicationValidator.GetFaqBySlugParam} arg - Arg object.
536
281
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
537
282
  * @param {import("../ApplicationAPIClient").Options} - Options
538
- * @returns {Promise<ContentApplicationModel.FaqSchema>} - Success response
283
+ * @returns {Promise<FaqSchema>} - Success response
539
284
  * @name getFaqBySlug
540
285
  * @summary: Get FAQ
541
286
  * @description: Get a specific FAQ using its slug identifier. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getFaqBySlug/).
@@ -544,28 +289,6 @@ class Content {
544
289
  { slug, requestHeaders } = { requestHeaders: {} },
545
290
  { responseHeaders } = { responseHeaders: false }
546
291
  ) {
547
- const { error } = ContentApplicationValidator.getFaqBySlug().validate(
548
- { slug },
549
- { abortEarly: false, allowUnknown: true }
550
- );
551
- if (error) {
552
- return Promise.reject(new FDKClientValidationError(error));
553
- }
554
-
555
- // Showing warrnings if extra unknown parameters are found
556
- const {
557
- error: warrning,
558
- } = ContentApplicationValidator.getFaqBySlug().validate(
559
- { slug },
560
- { abortEarly: false, allowUnknown: false }
561
- );
562
- if (warrning) {
563
- Logger({
564
- level: "WARN",
565
- message: `Parameter Validation warrnings for application > Content > getFaqBySlug \n ${warrning}`,
566
- });
567
- }
568
-
569
292
  const query_params = {};
570
293
 
571
294
  const xHeaders = {};
@@ -588,33 +311,13 @@ class Content {
588
311
  responseData = response[0];
589
312
  }
590
313
 
591
- const {
592
- error: res_error,
593
- } = ContentApplicationModel.FaqSchema().validate(responseData, {
594
- abortEarly: false,
595
- allowUnknown: true,
596
- });
597
-
598
- if (res_error) {
599
- if (this._conf.options.strictResponseCheck === true) {
600
- return Promise.reject(new FDKResponseValidationError(res_error));
601
- } else {
602
- Logger({
603
- level: "WARN",
604
- message: `Response Validation Warnings for application > Content > getFaqBySlug \n ${res_error}`,
605
- });
606
- }
607
- }
608
-
609
314
  return response;
610
315
  }
611
316
 
612
317
  /**
613
- * @param {ContentApplicationValidator.GetFaqCategoriesParam} arg - Arg object.
614
318
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
615
319
  * @param {import("../ApplicationAPIClient").Options} - Options
616
- * @returns {Promise<ContentApplicationModel.GetFaqCategoriesSchema>} -
617
- * Success response
320
+ * @returns {Promise<GetFaqCategoriesSchema>} - Success response
618
321
  * @name getFaqCategories
619
322
  * @summary: List FAQ Categories
620
323
  * @description: List categories for organizing FAQs. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getFaqCategories/).
@@ -623,28 +326,6 @@ class Content {
623
326
  { requestHeaders } = { requestHeaders: {} },
624
327
  { responseHeaders } = { responseHeaders: false }
625
328
  ) {
626
- const { error } = ContentApplicationValidator.getFaqCategories().validate(
627
- {},
628
- { abortEarly: false, allowUnknown: true }
629
- );
630
- if (error) {
631
- return Promise.reject(new FDKClientValidationError(error));
632
- }
633
-
634
- // Showing warrnings if extra unknown parameters are found
635
- const {
636
- error: warrning,
637
- } = ContentApplicationValidator.getFaqCategories().validate(
638
- {},
639
- { abortEarly: false, allowUnknown: false }
640
- );
641
- if (warrning) {
642
- Logger({
643
- level: "WARN",
644
- message: `Parameter Validation warrnings for application > Content > getFaqCategories \n ${warrning}`,
645
- });
646
- }
647
-
648
329
  const query_params = {};
649
330
 
650
331
  const xHeaders = {};
@@ -667,33 +348,13 @@ class Content {
667
348
  responseData = response[0];
668
349
  }
669
350
 
670
- const {
671
- error: res_error,
672
- } = ContentApplicationModel.GetFaqCategoriesSchema().validate(
673
- responseData,
674
- { abortEarly: false, allowUnknown: true }
675
- );
676
-
677
- if (res_error) {
678
- if (this._conf.options.strictResponseCheck === true) {
679
- return Promise.reject(new FDKResponseValidationError(res_error));
680
- } else {
681
- Logger({
682
- level: "WARN",
683
- message: `Response Validation Warnings for application > Content > getFaqCategories \n ${res_error}`,
684
- });
685
- }
686
- }
687
-
688
351
  return response;
689
352
  }
690
353
 
691
354
  /**
692
- * @param {ContentApplicationValidator.GetFaqCategoryBySlugParam} arg - Arg object.
693
355
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
694
356
  * @param {import("../ApplicationAPIClient").Options} - Options
695
- * @returns {Promise<ContentApplicationModel.GetFaqCategoryBySlugSchema>} -
696
- * Success response
357
+ * @returns {Promise<GetFaqCategoryBySlugSchema>} - Success response
697
358
  * @name getFaqCategoryBySlug
698
359
  * @summary: Get a FAQ category
699
360
  * @description: Get a specific FAQ category using its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getFaqCategoryBySlug/).
@@ -702,30 +363,6 @@ class Content {
702
363
  { slug, requestHeaders } = { requestHeaders: {} },
703
364
  { responseHeaders } = { responseHeaders: false }
704
365
  ) {
705
- const {
706
- error,
707
- } = ContentApplicationValidator.getFaqCategoryBySlug().validate(
708
- { slug },
709
- { abortEarly: false, allowUnknown: true }
710
- );
711
- if (error) {
712
- return Promise.reject(new FDKClientValidationError(error));
713
- }
714
-
715
- // Showing warrnings if extra unknown parameters are found
716
- const {
717
- error: warrning,
718
- } = ContentApplicationValidator.getFaqCategoryBySlug().validate(
719
- { slug },
720
- { abortEarly: false, allowUnknown: false }
721
- );
722
- if (warrning) {
723
- Logger({
724
- level: "WARN",
725
- message: `Parameter Validation warrnings for application > Content > getFaqCategoryBySlug \n ${warrning}`,
726
- });
727
- }
728
-
729
366
  const query_params = {};
730
367
 
731
368
  const xHeaders = {};
@@ -748,32 +385,13 @@ class Content {
748
385
  responseData = response[0];
749
386
  }
750
387
 
751
- const {
752
- error: res_error,
753
- } = ContentApplicationModel.GetFaqCategoryBySlugSchema().validate(
754
- responseData,
755
- { abortEarly: false, allowUnknown: true }
756
- );
757
-
758
- if (res_error) {
759
- if (this._conf.options.strictResponseCheck === true) {
760
- return Promise.reject(new FDKResponseValidationError(res_error));
761
- } else {
762
- Logger({
763
- level: "WARN",
764
- message: `Response Validation Warnings for application > Content > getFaqCategoryBySlug \n ${res_error}`,
765
- });
766
- }
767
- }
768
-
769
388
  return response;
770
389
  }
771
390
 
772
391
  /**
773
- * @param {ContentApplicationValidator.GetFaqsParam} arg - Arg object.
774
392
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
775
393
  * @param {import("../ApplicationAPIClient").Options} - Options
776
- * @returns {Promise<ContentApplicationModel.FaqResponseSchema>} - Success response
394
+ * @returns {Promise<FaqResponseSchema>} - Success response
777
395
  * @name getFaqs
778
396
  * @summary: List FAQs
779
397
  * @description: List frequently asked questions and answers. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getFaqs/).
@@ -782,26 +400,6 @@ class Content {
782
400
  { requestHeaders } = { requestHeaders: {} },
783
401
  { responseHeaders } = { responseHeaders: false }
784
402
  ) {
785
- const { error } = ContentApplicationValidator.getFaqs().validate(
786
- {},
787
- { abortEarly: false, allowUnknown: true }
788
- );
789
- if (error) {
790
- return Promise.reject(new FDKClientValidationError(error));
791
- }
792
-
793
- // Showing warrnings if extra unknown parameters are found
794
- const { error: warrning } = ContentApplicationValidator.getFaqs().validate(
795
- {},
796
- { abortEarly: false, allowUnknown: false }
797
- );
798
- if (warrning) {
799
- Logger({
800
- level: "WARN",
801
- message: `Parameter Validation warrnings for application > Content > getFaqs \n ${warrning}`,
802
- });
803
- }
804
-
805
403
  const query_params = {};
806
404
 
807
405
  const xHeaders = {};
@@ -824,32 +422,13 @@ class Content {
824
422
  responseData = response[0];
825
423
  }
826
424
 
827
- const {
828
- error: res_error,
829
- } = ContentApplicationModel.FaqResponseSchema().validate(responseData, {
830
- abortEarly: false,
831
- allowUnknown: true,
832
- });
833
-
834
- if (res_error) {
835
- if (this._conf.options.strictResponseCheck === true) {
836
- return Promise.reject(new FDKResponseValidationError(res_error));
837
- } else {
838
- Logger({
839
- level: "WARN",
840
- message: `Response Validation Warnings for application > Content > getFaqs \n ${res_error}`,
841
- });
842
- }
843
- }
844
-
845
425
  return response;
846
426
  }
847
427
 
848
428
  /**
849
- * @param {ContentApplicationValidator.GetFaqsByCategorySlugParam} arg - Arg object.
850
429
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
851
430
  * @param {import("../ApplicationAPIClient").Options} - Options
852
- * @returns {Promise<ContentApplicationModel.GetFaqSchema>} - Success response
431
+ * @returns {Promise<GetFaqSchema>} - Success response
853
432
  * @name getFaqsByCategorySlug
854
433
  * @summary: List FAQs by category
855
434
  * @description: Get FAQs belonging to a specific category slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getFaqsByCategorySlug/).
@@ -858,30 +437,6 @@ class Content {
858
437
  { slug, requestHeaders } = { requestHeaders: {} },
859
438
  { responseHeaders } = { responseHeaders: false }
860
439
  ) {
861
- const {
862
- error,
863
- } = ContentApplicationValidator.getFaqsByCategorySlug().validate(
864
- { slug },
865
- { abortEarly: false, allowUnknown: true }
866
- );
867
- if (error) {
868
- return Promise.reject(new FDKClientValidationError(error));
869
- }
870
-
871
- // Showing warrnings if extra unknown parameters are found
872
- const {
873
- error: warrning,
874
- } = ContentApplicationValidator.getFaqsByCategorySlug().validate(
875
- { slug },
876
- { abortEarly: false, allowUnknown: false }
877
- );
878
- if (warrning) {
879
- Logger({
880
- level: "WARN",
881
- message: `Parameter Validation warrnings for application > Content > getFaqsByCategorySlug \n ${warrning}`,
882
- });
883
- }
884
-
885
440
  const query_params = {};
886
441
 
887
442
  const xHeaders = {};
@@ -904,32 +459,13 @@ class Content {
904
459
  responseData = response[0];
905
460
  }
906
461
 
907
- const {
908
- error: res_error,
909
- } = ContentApplicationModel.GetFaqSchema().validate(responseData, {
910
- abortEarly: false,
911
- allowUnknown: true,
912
- });
913
-
914
- if (res_error) {
915
- if (this._conf.options.strictResponseCheck === true) {
916
- return Promise.reject(new FDKResponseValidationError(res_error));
917
- } else {
918
- Logger({
919
- level: "WARN",
920
- message: `Response Validation Warnings for application > Content > getFaqsByCategorySlug \n ${res_error}`,
921
- });
922
- }
923
- }
924
-
925
462
  return response;
926
463
  }
927
464
 
928
465
  /**
929
- * @param {ContentApplicationValidator.GetLandingPageParam} arg - Arg object.
930
466
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
931
467
  * @param {import("../ApplicationAPIClient").Options} - Options
932
- * @returns {Promise<ContentApplicationModel.LandingPageSchema>} - Success response
468
+ * @returns {Promise<LandingPageSchema>} - Success response
933
469
  * @name getLandingPage
934
470
  * @summary: Get a landing page
935
471
  * @description: Get content of the application's landing page. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getLandingPage/).
@@ -938,28 +474,6 @@ class Content {
938
474
  { requestHeaders } = { requestHeaders: {} },
939
475
  { responseHeaders } = { responseHeaders: false }
940
476
  ) {
941
- const { error } = ContentApplicationValidator.getLandingPage().validate(
942
- {},
943
- { abortEarly: false, allowUnknown: true }
944
- );
945
- if (error) {
946
- return Promise.reject(new FDKClientValidationError(error));
947
- }
948
-
949
- // Showing warrnings if extra unknown parameters are found
950
- const {
951
- error: warrning,
952
- } = ContentApplicationValidator.getLandingPage().validate(
953
- {},
954
- { abortEarly: false, allowUnknown: false }
955
- );
956
- if (warrning) {
957
- Logger({
958
- level: "WARN",
959
- message: `Parameter Validation warrnings for application > Content > getLandingPage \n ${warrning}`,
960
- });
961
- }
962
-
963
477
  const query_params = {};
964
478
 
965
479
  const xHeaders = {};
@@ -982,32 +496,13 @@ class Content {
982
496
  responseData = response[0];
983
497
  }
984
498
 
985
- const {
986
- error: res_error,
987
- } = ContentApplicationModel.LandingPageSchema().validate(responseData, {
988
- abortEarly: false,
989
- allowUnknown: true,
990
- });
991
-
992
- if (res_error) {
993
- if (this._conf.options.strictResponseCheck === true) {
994
- return Promise.reject(new FDKResponseValidationError(res_error));
995
- } else {
996
- Logger({
997
- level: "WARN",
998
- message: `Response Validation Warnings for application > Content > getLandingPage \n ${res_error}`,
999
- });
1000
- }
1001
- }
1002
-
1003
499
  return response;
1004
500
  }
1005
501
 
1006
502
  /**
1007
- * @param {ContentApplicationValidator.GetLegalInformationParam} arg - Arg object.
1008
503
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1009
504
  * @param {import("../ApplicationAPIClient").Options} - Options
1010
- * @returns {Promise<ContentApplicationModel.ApplicationLegal>} - Success response
505
+ * @returns {Promise<ApplicationLegal>} - Success response
1011
506
  * @name getLegalInformation
1012
507
  * @summary: Get legal information
1013
508
  * @description: Get legal policies for an application which includes Terms and conditions, return policy, shipping policy and privacy policy. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getLegalInformation/).
@@ -1016,30 +511,6 @@ class Content {
1016
511
  { requestHeaders } = { requestHeaders: {} },
1017
512
  { responseHeaders } = { responseHeaders: false }
1018
513
  ) {
1019
- const {
1020
- error,
1021
- } = ContentApplicationValidator.getLegalInformation().validate(
1022
- {},
1023
- { abortEarly: false, allowUnknown: true }
1024
- );
1025
- if (error) {
1026
- return Promise.reject(new FDKClientValidationError(error));
1027
- }
1028
-
1029
- // Showing warrnings if extra unknown parameters are found
1030
- const {
1031
- error: warrning,
1032
- } = ContentApplicationValidator.getLegalInformation().validate(
1033
- {},
1034
- { abortEarly: false, allowUnknown: false }
1035
- );
1036
- if (warrning) {
1037
- Logger({
1038
- level: "WARN",
1039
- message: `Parameter Validation warrnings for application > Content > getLegalInformation \n ${warrning}`,
1040
- });
1041
- }
1042
-
1043
514
  const query_params = {};
1044
515
 
1045
516
  const xHeaders = {};
@@ -1062,33 +533,13 @@ class Content {
1062
533
  responseData = response[0];
1063
534
  }
1064
535
 
1065
- const {
1066
- error: res_error,
1067
- } = ContentApplicationModel.ApplicationLegal().validate(responseData, {
1068
- abortEarly: false,
1069
- allowUnknown: true,
1070
- });
1071
-
1072
- if (res_error) {
1073
- if (this._conf.options.strictResponseCheck === true) {
1074
- return Promise.reject(new FDKResponseValidationError(res_error));
1075
- } else {
1076
- Logger({
1077
- level: "WARN",
1078
- message: `Response Validation Warnings for application > Content > getLegalInformation \n ${res_error}`,
1079
- });
1080
- }
1081
- }
1082
-
1083
536
  return response;
1084
537
  }
1085
538
 
1086
539
  /**
1087
- * @param {ContentApplicationValidator.GetNavigationsParam} arg - Arg object.
1088
540
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1089
541
  * @param {import("../ApplicationAPIClient").Options} - Options
1090
- * @returns {Promise<ContentApplicationModel.NavigationGetResponse>} -
1091
- * Success response
542
+ * @returns {Promise<NavigationGetDetails>} - Success response
1092
543
  * @name getNavigations
1093
544
  * @summary: List navigation items
1094
545
  * @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/).
@@ -1097,28 +548,6 @@ class Content {
1097
548
  { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
1098
549
  { responseHeaders } = { responseHeaders: false }
1099
550
  ) {
1100
- const { error } = ContentApplicationValidator.getNavigations().validate(
1101
- { pageNo, pageSize },
1102
- { abortEarly: false, allowUnknown: true }
1103
- );
1104
- if (error) {
1105
- return Promise.reject(new FDKClientValidationError(error));
1106
- }
1107
-
1108
- // Showing warrnings if extra unknown parameters are found
1109
- const {
1110
- error: warrning,
1111
- } = ContentApplicationValidator.getNavigations().validate(
1112
- { pageNo, pageSize },
1113
- { abortEarly: false, allowUnknown: false }
1114
- );
1115
- if (warrning) {
1116
- Logger({
1117
- level: "WARN",
1118
- message: `Parameter Validation warrnings for application > Content > getNavigations \n ${warrning}`,
1119
- });
1120
- }
1121
-
1122
551
  const query_params = {};
1123
552
  query_params["page_no"] = pageNo;
1124
553
  query_params["page_size"] = pageSize;
@@ -1143,32 +572,13 @@ class Content {
1143
572
  responseData = response[0];
1144
573
  }
1145
574
 
1146
- const {
1147
- error: res_error,
1148
- } = ContentApplicationModel.NavigationGetResponse().validate(responseData, {
1149
- abortEarly: false,
1150
- allowUnknown: true,
1151
- });
1152
-
1153
- if (res_error) {
1154
- if (this._conf.options.strictResponseCheck === true) {
1155
- return Promise.reject(new FDKResponseValidationError(res_error));
1156
- } else {
1157
- Logger({
1158
- level: "WARN",
1159
- message: `Response Validation Warnings for application > Content > getNavigations \n ${res_error}`,
1160
- });
1161
- }
1162
- }
1163
-
1164
575
  return response;
1165
576
  }
1166
577
 
1167
578
  /**
1168
- * @param {ContentApplicationValidator.GetPageParam} arg - Arg object.
1169
579
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1170
580
  * @param {import("../ApplicationAPIClient").Options} - Options
1171
- * @returns {Promise<ContentApplicationModel.PageSchema>} - Success response
581
+ * @returns {Promise<PageSchema>} - Success response
1172
582
  * @name getPage
1173
583
  * @summary: Get a page
1174
584
  * @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/).
@@ -1177,26 +587,6 @@ class Content {
1177
587
  { slug, rootId, requestHeaders } = { requestHeaders: {} },
1178
588
  { responseHeaders } = { responseHeaders: false }
1179
589
  ) {
1180
- const { error } = ContentApplicationValidator.getPage().validate(
1181
- { slug, rootId },
1182
- { abortEarly: false, allowUnknown: true }
1183
- );
1184
- if (error) {
1185
- return Promise.reject(new FDKClientValidationError(error));
1186
- }
1187
-
1188
- // Showing warrnings if extra unknown parameters are found
1189
- const { error: warrning } = ContentApplicationValidator.getPage().validate(
1190
- { slug, rootId },
1191
- { abortEarly: false, allowUnknown: false }
1192
- );
1193
- if (warrning) {
1194
- Logger({
1195
- level: "WARN",
1196
- message: `Parameter Validation warrnings for application > Content > getPage \n ${warrning}`,
1197
- });
1198
- }
1199
-
1200
590
  const query_params = {};
1201
591
  query_params["root_id"] = rootId;
1202
592
 
@@ -1220,32 +610,13 @@ class Content {
1220
610
  responseData = response[0];
1221
611
  }
1222
612
 
1223
- const {
1224
- error: res_error,
1225
- } = ContentApplicationModel.PageSchema().validate(responseData, {
1226
- abortEarly: false,
1227
- allowUnknown: true,
1228
- });
1229
-
1230
- if (res_error) {
1231
- if (this._conf.options.strictResponseCheck === true) {
1232
- return Promise.reject(new FDKResponseValidationError(res_error));
1233
- } else {
1234
- Logger({
1235
- level: "WARN",
1236
- message: `Response Validation Warnings for application > Content > getPage \n ${res_error}`,
1237
- });
1238
- }
1239
- }
1240
-
1241
613
  return response;
1242
614
  }
1243
615
 
1244
616
  /**
1245
- * @param {ContentApplicationValidator.GetPagesParam} arg - Arg object.
1246
617
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1247
618
  * @param {import("../ApplicationAPIClient").Options} - Options
1248
- * @returns {Promise<ContentApplicationModel.PageGetResponse>} - Success response
619
+ * @returns {Promise<PageGetDetails>} - Success response
1249
620
  * @name getPages
1250
621
  * @summary: Lists pages
1251
622
  * @description: Lists all Custom Pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getPages/).
@@ -1254,26 +625,6 @@ class Content {
1254
625
  { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
1255
626
  { responseHeaders } = { responseHeaders: false }
1256
627
  ) {
1257
- const { error } = ContentApplicationValidator.getPages().validate(
1258
- { pageNo, pageSize },
1259
- { abortEarly: false, allowUnknown: true }
1260
- );
1261
- if (error) {
1262
- return Promise.reject(new FDKClientValidationError(error));
1263
- }
1264
-
1265
- // Showing warrnings if extra unknown parameters are found
1266
- const { error: warrning } = ContentApplicationValidator.getPages().validate(
1267
- { pageNo, pageSize },
1268
- { abortEarly: false, allowUnknown: false }
1269
- );
1270
- if (warrning) {
1271
- Logger({
1272
- level: "WARN",
1273
- message: `Parameter Validation warrnings for application > Content > getPages \n ${warrning}`,
1274
- });
1275
- }
1276
-
1277
628
  const query_params = {};
1278
629
  query_params["page_no"] = pageNo;
1279
630
  query_params["page_size"] = pageSize;
@@ -1298,32 +649,13 @@ class Content {
1298
649
  responseData = response[0];
1299
650
  }
1300
651
 
1301
- const {
1302
- error: res_error,
1303
- } = ContentApplicationModel.PageGetResponse().validate(responseData, {
1304
- abortEarly: false,
1305
- allowUnknown: true,
1306
- });
1307
-
1308
- if (res_error) {
1309
- if (this._conf.options.strictResponseCheck === true) {
1310
- return Promise.reject(new FDKResponseValidationError(res_error));
1311
- } else {
1312
- Logger({
1313
- level: "WARN",
1314
- message: `Response Validation Warnings for application > Content > getPages \n ${res_error}`,
1315
- });
1316
- }
1317
- }
1318
-
1319
652
  return response;
1320
653
  }
1321
654
 
1322
655
  /**
1323
- * @param {ContentApplicationValidator.GetSEOConfigurationParam} arg - Arg object.
1324
656
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1325
657
  * @param {import("../ApplicationAPIClient").Options} - Options
1326
- * @returns {Promise<ContentApplicationModel.SeoComponent>} - Success response
658
+ * @returns {Promise<SeoComponent>} - Success response
1327
659
  * @name getSEOConfiguration
1328
660
  * @summary: Get SEO settings
1329
661
  * @description: Get search engine optimization configurations of an application. Details include the title, description and an image. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSEOConfiguration/).
@@ -1332,30 +664,6 @@ class Content {
1332
664
  { requestHeaders } = { requestHeaders: {} },
1333
665
  { responseHeaders } = { responseHeaders: false }
1334
666
  ) {
1335
- const {
1336
- error,
1337
- } = ContentApplicationValidator.getSEOConfiguration().validate(
1338
- {},
1339
- { abortEarly: false, allowUnknown: true }
1340
- );
1341
- if (error) {
1342
- return Promise.reject(new FDKClientValidationError(error));
1343
- }
1344
-
1345
- // Showing warrnings if extra unknown parameters are found
1346
- const {
1347
- error: warrning,
1348
- } = ContentApplicationValidator.getSEOConfiguration().validate(
1349
- {},
1350
- { abortEarly: false, allowUnknown: false }
1351
- );
1352
- if (warrning) {
1353
- Logger({
1354
- level: "WARN",
1355
- message: `Parameter Validation warrnings for application > Content > getSEOConfiguration \n ${warrning}`,
1356
- });
1357
- }
1358
-
1359
667
  const query_params = {};
1360
668
 
1361
669
  const xHeaders = {};
@@ -1378,32 +686,13 @@ class Content {
1378
686
  responseData = response[0];
1379
687
  }
1380
688
 
1381
- const {
1382
- error: res_error,
1383
- } = ContentApplicationModel.SeoComponent().validate(responseData, {
1384
- abortEarly: false,
1385
- allowUnknown: true,
1386
- });
1387
-
1388
- if (res_error) {
1389
- if (this._conf.options.strictResponseCheck === true) {
1390
- return Promise.reject(new FDKResponseValidationError(res_error));
1391
- } else {
1392
- Logger({
1393
- level: "WARN",
1394
- message: `Response Validation Warnings for application > Content > getSEOConfiguration \n ${res_error}`,
1395
- });
1396
- }
1397
- }
1398
-
1399
689
  return response;
1400
690
  }
1401
691
 
1402
692
  /**
1403
- * @param {ContentApplicationValidator.GetSEOMarkupSchemasParam} arg - Arg object.
1404
693
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1405
694
  * @param {import("../ApplicationAPIClient").Options} - Options
1406
- * @returns {Promise<ContentApplicationModel.SeoSchemaComponent>} - Success response
695
+ * @returns {Promise<SeoSchemaComponent>} - Success response
1407
696
  * @name getSEOMarkupSchemas
1408
697
  * @summary: List SEO Markup schemas
1409
698
  * @description: Get all SEO Markup schema Templates setup for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSEOMarkupSchemas/).
@@ -1412,30 +701,6 @@ class Content {
1412
701
  { pageType, active, requestHeaders } = { requestHeaders: {} },
1413
702
  { responseHeaders } = { responseHeaders: false }
1414
703
  ) {
1415
- const {
1416
- error,
1417
- } = ContentApplicationValidator.getSEOMarkupSchemas().validate(
1418
- { pageType, active },
1419
- { abortEarly: false, allowUnknown: true }
1420
- );
1421
- if (error) {
1422
- return Promise.reject(new FDKClientValidationError(error));
1423
- }
1424
-
1425
- // Showing warrnings if extra unknown parameters are found
1426
- const {
1427
- error: warrning,
1428
- } = ContentApplicationValidator.getSEOMarkupSchemas().validate(
1429
- { pageType, active },
1430
- { abortEarly: false, allowUnknown: false }
1431
- );
1432
- if (warrning) {
1433
- Logger({
1434
- level: "WARN",
1435
- message: `Parameter Validation warrnings for application > Content > getSEOMarkupSchemas \n ${warrning}`,
1436
- });
1437
- }
1438
-
1439
704
  const query_params = {};
1440
705
  query_params["page_type"] = pageType;
1441
706
  query_params["active"] = active;
@@ -1460,32 +725,13 @@ class Content {
1460
725
  responseData = response[0];
1461
726
  }
1462
727
 
1463
- const {
1464
- error: res_error,
1465
- } = ContentApplicationModel.SeoSchemaComponent().validate(responseData, {
1466
- abortEarly: false,
1467
- allowUnknown: true,
1468
- });
1469
-
1470
- if (res_error) {
1471
- if (this._conf.options.strictResponseCheck === true) {
1472
- return Promise.reject(new FDKResponseValidationError(res_error));
1473
- } else {
1474
- Logger({
1475
- level: "WARN",
1476
- message: `Response Validation Warnings for application > Content > getSEOMarkupSchemas \n ${res_error}`,
1477
- });
1478
- }
1479
- }
1480
-
1481
728
  return response;
1482
729
  }
1483
730
 
1484
731
  /**
1485
- * @param {ContentApplicationValidator.GetSlideshowParam} arg - Arg object.
1486
732
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1487
733
  * @param {import("../ApplicationAPIClient").Options} - Options
1488
- * @returns {Promise<ContentApplicationModel.SlideshowSchema>} - Success response
734
+ * @returns {Promise<SlideshowSchema>} - Success response
1489
735
  * @name getSlideshow
1490
736
  * @summary: Get a Slideshow
1491
737
  * @description: Get a slideshow using its `slug`. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSlideshow/).
@@ -1494,28 +740,6 @@ class Content {
1494
740
  { slug, requestHeaders } = { requestHeaders: {} },
1495
741
  { responseHeaders } = { responseHeaders: false }
1496
742
  ) {
1497
- const { error } = ContentApplicationValidator.getSlideshow().validate(
1498
- { slug },
1499
- { abortEarly: false, allowUnknown: true }
1500
- );
1501
- if (error) {
1502
- return Promise.reject(new FDKClientValidationError(error));
1503
- }
1504
-
1505
- // Showing warrnings if extra unknown parameters are found
1506
- const {
1507
- error: warrning,
1508
- } = ContentApplicationValidator.getSlideshow().validate(
1509
- { slug },
1510
- { abortEarly: false, allowUnknown: false }
1511
- );
1512
- if (warrning) {
1513
- Logger({
1514
- level: "WARN",
1515
- message: `Parameter Validation warrnings for application > Content > getSlideshow \n ${warrning}`,
1516
- });
1517
- }
1518
-
1519
743
  const query_params = {};
1520
744
 
1521
745
  const xHeaders = {};
@@ -1538,32 +762,13 @@ class Content {
1538
762
  responseData = response[0];
1539
763
  }
1540
764
 
1541
- const {
1542
- error: res_error,
1543
- } = ContentApplicationModel.SlideshowSchema().validate(responseData, {
1544
- abortEarly: false,
1545
- allowUnknown: true,
1546
- });
1547
-
1548
- if (res_error) {
1549
- if (this._conf.options.strictResponseCheck === true) {
1550
- return Promise.reject(new FDKResponseValidationError(res_error));
1551
- } else {
1552
- Logger({
1553
- level: "WARN",
1554
- message: `Response Validation Warnings for application > Content > getSlideshow \n ${res_error}`,
1555
- });
1556
- }
1557
- }
1558
-
1559
765
  return response;
1560
766
  }
1561
767
 
1562
768
  /**
1563
- * @param {ContentApplicationValidator.GetSlideshowsParam} arg - Arg object.
1564
769
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1565
770
  * @param {import("../ApplicationAPIClient").Options} - Options
1566
- * @returns {Promise<ContentApplicationModel.SlideshowGetResponse>} - Success response
771
+ * @returns {Promise<SlideshowGetDetails>} - Success response
1567
772
  * @name getSlideshows
1568
773
  * @summary: List Slideshows
1569
774
  * @description: List slideshows along with their details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSlideshows/).
@@ -1572,28 +777,6 @@ class Content {
1572
777
  { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
1573
778
  { responseHeaders } = { responseHeaders: false }
1574
779
  ) {
1575
- const { error } = ContentApplicationValidator.getSlideshows().validate(
1576
- { pageNo, pageSize },
1577
- { abortEarly: false, allowUnknown: true }
1578
- );
1579
- if (error) {
1580
- return Promise.reject(new FDKClientValidationError(error));
1581
- }
1582
-
1583
- // Showing warrnings if extra unknown parameters are found
1584
- const {
1585
- error: warrning,
1586
- } = ContentApplicationValidator.getSlideshows().validate(
1587
- { pageNo, pageSize },
1588
- { abortEarly: false, allowUnknown: false }
1589
- );
1590
- if (warrning) {
1591
- Logger({
1592
- level: "WARN",
1593
- message: `Parameter Validation warrnings for application > Content > getSlideshows \n ${warrning}`,
1594
- });
1595
- }
1596
-
1597
780
  const query_params = {};
1598
781
  query_params["page_no"] = pageNo;
1599
782
  query_params["page_size"] = pageSize;
@@ -1618,59 +801,13 @@ class Content {
1618
801
  responseData = response[0];
1619
802
  }
1620
803
 
1621
- const {
1622
- error: res_error,
1623
- } = ContentApplicationModel.SlideshowGetResponse().validate(responseData, {
1624
- abortEarly: false,
1625
- allowUnknown: true,
1626
- });
1627
-
1628
- if (res_error) {
1629
- if (this._conf.options.strictResponseCheck === true) {
1630
- return Promise.reject(new FDKResponseValidationError(res_error));
1631
- } else {
1632
- Logger({
1633
- level: "WARN",
1634
- message: `Response Validation Warnings for application > Content > getSlideshows \n ${res_error}`,
1635
- });
1636
- }
1637
- }
1638
-
1639
804
  return response;
1640
805
  }
1641
806
 
1642
807
  /**
1643
- * @param {Object} arg - Arg object.
1644
- * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
1645
- * @returns {Paginator<ContentApplicationModel.SlideshowGetResponse>}
1646
- * @summary: List Slideshows
1647
- * @description: List slideshows along with their details.
1648
- */
1649
- getSlideshowsPaginator({ pageSize } = {}) {
1650
- const paginator = new Paginator();
1651
- const callback = async () => {
1652
- const pageId = paginator.nextId;
1653
- const pageNo = paginator.pageNo;
1654
- const pageType = "number";
1655
- const data = await this.getSlideshows({
1656
- pageNo: pageNo,
1657
- pageSize: pageSize,
1658
- });
1659
- paginator.setPaginator({
1660
- hasNext: data.page.has_next ? true : false,
1661
- nextId: data.page.next_id,
1662
- });
1663
- return data;
1664
- };
1665
- paginator.setCallback(callback.bind(this));
1666
- return paginator;
1667
- }
1668
-
1669
- /**
1670
- * @param {ContentApplicationValidator.GetSupportInformationParam} arg - Arg object.
1671
808
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1672
809
  * @param {import("../ApplicationAPIClient").Options} - Options
1673
- * @returns {Promise<ContentApplicationModel.Support>} - Success response
810
+ * @returns {Promise<Support>} - Success response
1674
811
  * @name getSupportInformation
1675
812
  * @summary: Get customer support information
1676
813
  * @description: Get customer support contact details. Contact Details can be either a phone number or an email-id or both. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSupportInformation/).
@@ -1679,30 +816,6 @@ class Content {
1679
816
  { requestHeaders } = { requestHeaders: {} },
1680
817
  { responseHeaders } = { responseHeaders: false }
1681
818
  ) {
1682
- const {
1683
- error,
1684
- } = ContentApplicationValidator.getSupportInformation().validate(
1685
- {},
1686
- { abortEarly: false, allowUnknown: true }
1687
- );
1688
- if (error) {
1689
- return Promise.reject(new FDKClientValidationError(error));
1690
- }
1691
-
1692
- // Showing warrnings if extra unknown parameters are found
1693
- const {
1694
- error: warrning,
1695
- } = ContentApplicationValidator.getSupportInformation().validate(
1696
- {},
1697
- { abortEarly: false, allowUnknown: false }
1698
- );
1699
- if (warrning) {
1700
- Logger({
1701
- level: "WARN",
1702
- message: `Parameter Validation warrnings for application > Content > getSupportInformation \n ${warrning}`,
1703
- });
1704
- }
1705
-
1706
819
  const query_params = {};
1707
820
 
1708
821
  const xHeaders = {};
@@ -1725,32 +838,13 @@ class Content {
1725
838
  responseData = response[0];
1726
839
  }
1727
840
 
1728
- const {
1729
- error: res_error,
1730
- } = ContentApplicationModel.Support().validate(responseData, {
1731
- abortEarly: false,
1732
- allowUnknown: true,
1733
- });
1734
-
1735
- if (res_error) {
1736
- if (this._conf.options.strictResponseCheck === true) {
1737
- return Promise.reject(new FDKResponseValidationError(res_error));
1738
- } else {
1739
- Logger({
1740
- level: "WARN",
1741
- message: `Response Validation Warnings for application > Content > getSupportInformation \n ${res_error}`,
1742
- });
1743
- }
1744
- }
1745
-
1746
841
  return response;
1747
842
  }
1748
843
 
1749
844
  /**
1750
- * @param {ContentApplicationValidator.GetTagsParam} arg - Arg object.
1751
845
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1752
846
  * @param {import("../ApplicationAPIClient").Options} - Options
1753
- * @returns {Promise<ContentApplicationModel.TagsSchema>} - Success response
847
+ * @returns {Promise<TagsSchema>} - Success response
1754
848
  * @name getTags
1755
849
  * @summary: Get HTML tags
1756
850
  * @description: Lists HTML tags to power additional functionalities within an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getTags/).
@@ -1759,26 +853,6 @@ class Content {
1759
853
  { requestHeaders } = { requestHeaders: {} },
1760
854
  { responseHeaders } = { responseHeaders: false }
1761
855
  ) {
1762
- const { error } = ContentApplicationValidator.getTags().validate(
1763
- {},
1764
- { abortEarly: false, allowUnknown: true }
1765
- );
1766
- if (error) {
1767
- return Promise.reject(new FDKClientValidationError(error));
1768
- }
1769
-
1770
- // Showing warrnings if extra unknown parameters are found
1771
- const { error: warrning } = ContentApplicationValidator.getTags().validate(
1772
- {},
1773
- { abortEarly: false, allowUnknown: false }
1774
- );
1775
- if (warrning) {
1776
- Logger({
1777
- level: "WARN",
1778
- message: `Parameter Validation warrnings for application > Content > getTags \n ${warrning}`,
1779
- });
1780
- }
1781
-
1782
856
  const query_params = {};
1783
857
 
1784
858
  const xHeaders = {};
@@ -1801,24 +875,6 @@ class Content {
1801
875
  responseData = response[0];
1802
876
  }
1803
877
 
1804
- const {
1805
- error: res_error,
1806
- } = ContentApplicationModel.TagsSchema().validate(responseData, {
1807
- abortEarly: false,
1808
- allowUnknown: true,
1809
- });
1810
-
1811
- if (res_error) {
1812
- if (this._conf.options.strictResponseCheck === true) {
1813
- return Promise.reject(new FDKResponseValidationError(res_error));
1814
- } else {
1815
- Logger({
1816
- level: "WARN",
1817
- message: `Response Validation Warnings for application > Content > getTags \n ${res_error}`,
1818
- });
1819
- }
1820
- }
1821
-
1822
878
  return response;
1823
879
  }
1824
880
  }