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

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 (241) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +48 -68
  6. package/sdk/application/Cart/CartApplicationClient.js +304 -114
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +437 -30
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  10. package/sdk/application/Common/CommonApplicationClient.js +22 -1
  11. package/sdk/application/Communication/CommunicationApplicationClient.js +29 -0
  12. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.js +157 -10
  14. package/sdk/application/Content/ContentApplicationClient.d.ts +30 -19
  15. package/sdk/application/Content/ContentApplicationClient.js +297 -28
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.js +50 -7
  18. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
  19. package/sdk/application/Lead/LeadApplicationClient.js +74 -1
  20. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
  21. package/sdk/application/Logistic/LogisticApplicationClient.js +159 -87
  22. package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
  23. package/sdk/application/Order/OrderApplicationClient.js +195 -47
  24. package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
  25. package/sdk/application/Payment/PaymentApplicationClient.js +473 -46
  26. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  27. package/sdk/application/Rewards/RewardsApplicationClient.js +75 -7
  28. package/sdk/application/Share/ShareApplicationClient.js +96 -0
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  30. package/sdk/application/Theme/ThemeApplicationClient.js +66 -4
  31. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  32. package/sdk/application/User/UserApplicationClient.js +418 -6
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +16 -3
  35. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
  37. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
  38. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
  39. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
  40. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
  41. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  42. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  43. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  44. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  45. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
  46. package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
  47. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +167 -1200
  48. package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
  49. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
  50. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
  51. package/sdk/partner/OAuthClient.js +1 -0
  52. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
  53. package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
  54. package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
  55. package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
  56. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  57. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
  58. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
  59. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
  60. package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
  61. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
  62. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
  63. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
  64. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
  65. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
  66. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
  67. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  68. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  69. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
  70. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
  71. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  72. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  73. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  74. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  75. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  76. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  77. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  78. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  79. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
  80. package/sdk/platform/Cart/CartPlatformApplicationClient.js +115 -419
  81. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -118
  82. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
  83. package/sdk/platform/Cart/CartPlatformModel.d.ts +1298 -5037
  84. package/sdk/platform/Cart/CartPlatformModel.js +1217 -1976
  85. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
  86. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
  87. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
  88. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
  89. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
  90. package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
  91. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6385
  92. package/sdk/platform/Catalog/CatalogPlatformModel.js +1680 -3217
  93. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
  94. package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
  95. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
  96. package/sdk/platform/Common/CommonPlatformClient.js +2 -3
  97. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  98. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  99. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
  100. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
  101. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  102. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  103. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
  104. package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
  105. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
  106. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
  107. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  108. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
  109. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  110. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  111. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
  112. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
  113. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  114. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  115. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
  116. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
  117. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +131 -283
  118. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -219
  119. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
  120. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
  121. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
  122. package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
  123. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
  124. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
  125. package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
  126. package/sdk/platform/Content/ContentPlatformClient.js +336 -523
  127. package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
  128. package/sdk/platform/Content/ContentPlatformModel.js +390 -521
  129. package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
  130. package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
  131. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
  132. package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
  133. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  134. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  135. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  137. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +36 -94
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
  141. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  142. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
  144. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
  145. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  146. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  147. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  148. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  149. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
  150. package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
  151. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  152. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  153. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  154. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  155. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  156. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  157. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -17
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
  159. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
  161. package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
  162. package/sdk/platform/Order/OrderPlatformClient.js +198 -416
  163. package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
  164. package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
  165. package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
  166. package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
  167. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  168. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  169. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  170. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  171. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +105 -93
  172. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
  173. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  174. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  175. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  176. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  177. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +319 -333
  178. package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
  179. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  180. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  181. package/sdk/platform/PlatformClient.d.ts +2 -0
  182. package/sdk/platform/PlatformClient.js +4 -0
  183. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  184. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  185. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  186. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  187. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  188. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +36 -46
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +46 -42
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +28 -26
  199. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  200. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  201. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
  202. package/sdk/platform/Share/SharePlatformModel.js +4 -27
  203. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  204. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
  205. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
  206. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
  207. package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
  208. package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
  209. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  210. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  211. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  212. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  213. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  214. package/sdk/platform/User/UserPlatformModel.js +23 -23
  215. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  216. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  217. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
  218. package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
  219. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  220. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  221. package/sdk/platform/index.d.ts +1 -0
  222. package/sdk/platform/index.js +2 -0
  223. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
  224. package/sdk/public/Configuration/ConfigurationPublicClient.js +21 -6
  225. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  226. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  227. package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
  228. package/sdk/public/Content/ContentPublicClient.js +20 -791
  229. package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
  230. package/sdk/public/Content/ContentPublicModel.js +3 -649
  231. package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
  232. package/sdk/public/Content/ContentPublicValidator.js +2 -88
  233. package/sdk/public/Partner/PartnerPublicClient.js +15 -0
  234. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  235. package/sdk/public/Webhook/WebhookPublicClient.js +48 -8
  236. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  237. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  238. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  239. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  240. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  241. package/sdk/application/Finance/FinanceApplicationClient.js +0 -105
@@ -1,3 +1,8 @@
1
+ const {
2
+ FDKClientValidationError,
3
+ FDKResponseValidationError,
4
+ } = require("../../common/FDKError");
5
+
1
6
  const ApplicationAPIClient = require("../ApplicationAPIClient");
2
7
  const constructUrl = require("../constructUrl");
3
8
  const Paginator = require("../../common/Paginator");
@@ -76,7 +81,7 @@ class Catalog {
76
81
  /**
77
82
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
78
83
  * @param {import("../ApplicationAPIClient").Options} - Options
79
- * @returns {Promise<FollowPostResponseSchema>} - Success response
84
+ * @returns {Promise<FollowPostResponse>} - Success response
80
85
  * @name followById
81
86
  * @summary: Create item, brand, product
82
87
  * @description: Add a product, brand, or item to the user's followed list by collection Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/followById/).
@@ -85,6 +90,27 @@ class Catalog {
85
90
  { collectionType, collectionId, requestHeaders } = { requestHeaders: {} },
86
91
  { responseHeaders } = { responseHeaders: false }
87
92
  ) {
93
+ let invalidInput = [];
94
+
95
+ if (!collectionType) {
96
+ invalidInput.push({
97
+ message: `The 'collectionType' field is required.`,
98
+ path: ["collectionType"],
99
+ });
100
+ }
101
+ if (!collectionId) {
102
+ invalidInput.push({
103
+ message: `The 'collectionId' field is required.`,
104
+ path: ["collectionId"],
105
+ });
106
+ }
107
+ if (invalidInput.length) {
108
+ const error = new Error();
109
+ error.message = "Missing required field";
110
+ error.details = invalidInput;
111
+ return Promise.reject(new FDKClientValidationError(error));
112
+ }
113
+
88
114
  const query_params = {};
89
115
 
90
116
  const xHeaders = {};
@@ -113,7 +139,7 @@ class Catalog {
113
139
  /**
114
140
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
115
141
  * @param {import("../ApplicationAPIClient").Options} - Options
116
- * @returns {Promise<BrandDetailResponseSchema>} - Success response
142
+ * @returns {Promise<BrandDetailResponse>} - Success response
117
143
  * @name getBrandDetailBySlug
118
144
  * @summary: Get a brand
119
145
  * @description: Get metadata of a brand such as name, information, logo, banner, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getBrandDetailBySlug/).
@@ -122,6 +148,21 @@ class Catalog {
122
148
  { slug, requestHeaders } = { requestHeaders: {} },
123
149
  { responseHeaders } = { responseHeaders: false }
124
150
  ) {
151
+ let invalidInput = [];
152
+
153
+ if (!slug) {
154
+ invalidInput.push({
155
+ message: `The 'slug' field is required.`,
156
+ path: ["slug"],
157
+ });
158
+ }
159
+ if (invalidInput.length) {
160
+ const error = new Error();
161
+ error.message = "Missing required field";
162
+ error.details = invalidInput;
163
+ return Promise.reject(new FDKClientValidationError(error));
164
+ }
165
+
125
166
  const query_params = {};
126
167
 
127
168
  const xHeaders = {};
@@ -150,7 +191,7 @@ class Catalog {
150
191
  /**
151
192
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
152
193
  * @param {import("../ApplicationAPIClient").Options} - Options
153
- * @returns {Promise<BrandListingResponseSchema>} - Success response
194
+ * @returns {Promise<BrandListingResponse>} - Success response
154
195
  * @name getBrands
155
196
  * @summary: List brands
156
197
  * @description: Get a list of all the available brands. Filtering can be applied to the department. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getBrands/).
@@ -159,6 +200,14 @@ class Catalog {
159
200
  { department, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
160
201
  { responseHeaders } = { responseHeaders: false }
161
202
  ) {
203
+ let invalidInput = [];
204
+ if (invalidInput.length) {
205
+ const error = new Error();
206
+ error.message = "Missing required field";
207
+ error.details = invalidInput;
208
+ return Promise.reject(new FDKClientValidationError(error));
209
+ }
210
+
162
211
  const query_params = {};
163
212
  query_params["department"] = department;
164
213
  query_params["page_no"] = pageNo;
@@ -194,7 +243,7 @@ class Catalog {
194
243
  * of available departments below. Also, you can get available departments
195
244
  * from the endpoint /service/application/catalog/v1.0/departments/.
196
245
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
197
- * @returns {Paginator<BrandListingResponseSchema>}
246
+ * @returns {Paginator<BrandListingResponse>}
198
247
  * @summary: List brands
199
248
  * @description: Get a list of all the available brands. Filtering can be applied to the department.
200
249
  */
@@ -222,7 +271,7 @@ class Catalog {
222
271
  /**
223
272
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
224
273
  * @param {import("../ApplicationAPIClient").Options} - Options
225
- * @returns {Promise<CategoryListingResponseSchema>} - Success response
274
+ * @returns {Promise<CategoryListingResponse>} - Success response
226
275
  * @name getCategories
227
276
  * @summary: List product categories
228
277
  * @description: List all available product categories. Also, users can filter the categories by department. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getCategories/).
@@ -231,6 +280,14 @@ class Catalog {
231
280
  { department, requestHeaders } = { requestHeaders: {} },
232
281
  { responseHeaders } = { responseHeaders: false }
233
282
  ) {
283
+ let invalidInput = [];
284
+ if (invalidInput.length) {
285
+ const error = new Error();
286
+ error.message = "Missing required field";
287
+ error.details = invalidInput;
288
+ return Promise.reject(new FDKClientValidationError(error));
289
+ }
290
+
234
291
  const query_params = {};
235
292
  query_params["department"] = department;
236
293
 
@@ -260,7 +317,7 @@ class Catalog {
260
317
  /**
261
318
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
262
319
  * @param {import("../ApplicationAPIClient").Options} - Options
263
- * @returns {Promise<CategoryMetaResponseSchema>} - Success response
320
+ * @returns {Promise<CategoryMetaResponse>} - Success response
264
321
  * @name getCategoryDetailBySlug
265
322
  * @summary: Get category by slug
266
323
  * @description: Get detailed information about a specific product category using its slug and get metadata of a category such as name, information, logo, banner, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getCategoryDetailBySlug/).
@@ -269,6 +326,21 @@ class Catalog {
269
326
  { slug, requestHeaders } = { requestHeaders: {} },
270
327
  { responseHeaders } = { responseHeaders: false }
271
328
  ) {
329
+ let invalidInput = [];
330
+
331
+ if (!slug) {
332
+ invalidInput.push({
333
+ message: `The 'slug' field is required.`,
334
+ path: ["slug"],
335
+ });
336
+ }
337
+ if (invalidInput.length) {
338
+ const error = new Error();
339
+ error.message = "Missing required field";
340
+ error.details = invalidInput;
341
+ return Promise.reject(new FDKClientValidationError(error));
342
+ }
343
+
272
344
  const query_params = {};
273
345
 
274
346
  const xHeaders = {};
@@ -297,7 +369,7 @@ class Catalog {
297
369
  /**
298
370
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
299
371
  * @param {import("../ApplicationAPIClient").Options} - Options
300
- * @returns {Promise<CollectionDetailResponseSchema>} - Success response
372
+ * @returns {Promise<CollectionDetailResponse>} - Success response
301
373
  * @name getCollectionDetailBySlug
302
374
  * @summary: Get a collection
303
375
  * @description: Get detailed information about a specific collection using its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getCollectionDetailBySlug/).
@@ -306,6 +378,21 @@ class Catalog {
306
378
  { slug, requestHeaders } = { requestHeaders: {} },
307
379
  { responseHeaders } = { responseHeaders: false }
308
380
  ) {
381
+ let invalidInput = [];
382
+
383
+ if (!slug) {
384
+ invalidInput.push({
385
+ message: `The 'slug' field is required.`,
386
+ path: ["slug"],
387
+ });
388
+ }
389
+ if (invalidInput.length) {
390
+ const error = new Error();
391
+ error.message = "Missing required field";
392
+ error.details = invalidInput;
393
+ return Promise.reject(new FDKClientValidationError(error));
394
+ }
395
+
309
396
  const query_params = {};
310
397
 
311
398
  const xHeaders = {};
@@ -334,7 +421,7 @@ class Catalog {
334
421
  /**
335
422
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
336
423
  * @param {import("../ApplicationAPIClient").Options} - Options
337
- * @returns {Promise<ProductListingResponseSchema>} - Success response
424
+ * @returns {Promise<ProductListingResponse>} - Success response
338
425
  * @name getCollectionItemsBySlug
339
426
  * @summary: Lists items of collection
340
427
  * @description: Fetch items within a particular collection identified by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getCollectionItemsBySlug/).
@@ -354,6 +441,21 @@ class Catalog {
354
441
  } = { requestHeaders: {} },
355
442
  { responseHeaders } = { responseHeaders: false }
356
443
  ) {
444
+ let invalidInput = [];
445
+
446
+ if (!slug) {
447
+ invalidInput.push({
448
+ message: `The 'slug' field is required.`,
449
+ path: ["slug"],
450
+ });
451
+ }
452
+ if (invalidInput.length) {
453
+ const error = new Error();
454
+ error.message = "Missing required field";
455
+ error.details = invalidInput;
456
+ return Promise.reject(new FDKClientValidationError(error));
457
+ }
458
+
357
459
  const query_params = {};
358
460
  query_params["f"] = f;
359
461
  query_params["q"] = q;
@@ -404,7 +506,7 @@ class Catalog {
404
506
  * should be sorted, e.g. popularity, price, latest and discount, in
405
507
  * either ascending or descending order. See the supported values below.
406
508
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
407
- * @returns {Paginator<ProductListingResponseSchema>}
509
+ * @returns {Paginator<ProductListingResponse>}
408
510
  * @summary: Lists items of collection
409
511
  * @description: Fetch items within a particular collection identified by its slug.
410
512
  */
@@ -445,7 +547,7 @@ class Catalog {
445
547
  /**
446
548
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
447
549
  * @param {import("../ApplicationAPIClient").Options} - Options
448
- * @returns {Promise<GetCollectionListingResponseSchema>} - Success response
550
+ * @returns {Promise<GetCollectionListingResponse>} - Success response
449
551
  * @name getCollections
450
552
  * @summary: List collections
451
553
  * @description: List of curated product collections with filtering options based on tags and collection names. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getCollections/).
@@ -454,6 +556,14 @@ class Catalog {
454
556
  { pageNo, pageSize, tag, q, requestHeaders } = { requestHeaders: {} },
455
557
  { responseHeaders } = { responseHeaders: false }
456
558
  ) {
559
+ let invalidInput = [];
560
+ if (invalidInput.length) {
561
+ const error = new Error();
562
+ error.message = "Missing required field";
563
+ error.details = invalidInput;
564
+ return Promise.reject(new FDKClientValidationError(error));
565
+ }
566
+
457
567
  const query_params = {};
458
568
  query_params["page_no"] = pageNo;
459
569
  query_params["page_size"] = pageSize;
@@ -488,7 +598,7 @@ class Catalog {
488
598
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
489
599
  * @param {string[]} [arg.tag] - List of tags to filter collections.
490
600
  * @param {string} [arg.q] - Name of the collection to filter collection.
491
- * @returns {Paginator<GetCollectionListingResponseSchema>}
601
+ * @returns {Paginator<GetCollectionListingResponse>}
492
602
  * @summary: List collections
493
603
  * @description: List of curated product collections with filtering options based on tags and collection names.
494
604
  */
@@ -517,8 +627,7 @@ class Catalog {
517
627
  /**
518
628
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
519
629
  * @param {import("../ApplicationAPIClient").Options} - Options
520
- * @returns {Promise<ProductFrequentlyComparedSimilarResponseSchema>} -
521
- * Success response
630
+ * @returns {Promise<ProductFrequentlyComparedSimilarResponse>} - Success response
522
631
  * @name getComparedFrequentlyProductBySlug
523
632
  * @summary: List frequent products
524
633
  * @description: Get products that are often compared to the product specified by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getComparedFrequentlyProductBySlug/).
@@ -527,6 +636,21 @@ class Catalog {
527
636
  { slug, requestHeaders } = { requestHeaders: {} },
528
637
  { responseHeaders } = { responseHeaders: false }
529
638
  ) {
639
+ let invalidInput = [];
640
+
641
+ if (!slug) {
642
+ invalidInput.push({
643
+ message: `The 'slug' field is required.`,
644
+ path: ["slug"],
645
+ });
646
+ }
647
+ if (invalidInput.length) {
648
+ const error = new Error();
649
+ error.message = "Missing required field";
650
+ error.details = invalidInput;
651
+ return Promise.reject(new FDKClientValidationError(error));
652
+ }
653
+
530
654
  const query_params = {};
531
655
 
532
656
  const xHeaders = {};
@@ -555,7 +679,7 @@ class Catalog {
555
679
  /**
556
680
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
557
681
  * @param {import("../ApplicationAPIClient").Options} - Options
558
- * @returns {Promise<DepartmentResponseSchema>} - Success response
682
+ * @returns {Promise<DepartmentResponse>} - Success response
559
683
  * @name getDepartments
560
684
  * @summary: List departments
561
685
  * @description: List all departments associated with available products. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getDepartments/).
@@ -564,6 +688,14 @@ class Catalog {
564
688
  { requestHeaders } = { requestHeaders: {} },
565
689
  { responseHeaders } = { responseHeaders: false }
566
690
  ) {
691
+ let invalidInput = [];
692
+ if (invalidInput.length) {
693
+ const error = new Error();
694
+ error.message = "Missing required field";
695
+ error.details = invalidInput;
696
+ return Promise.reject(new FDKClientValidationError(error));
697
+ }
698
+
567
699
  const query_params = {};
568
700
 
569
701
  const xHeaders = {};
@@ -592,7 +724,7 @@ class Catalog {
592
724
  /**
593
725
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
594
726
  * @param {import("../ApplicationAPIClient").Options} - Options
595
- * @returns {Promise<FollowIdsResponseSchema>} - Success response
727
+ * @returns {Promise<FollowIdsResponse>} - Success response
596
728
  * @name getFollowIds
597
729
  * @summary: List Ids of followed item, brand, product
598
730
  * @description: Get the IDs of all items the user is currently following, such as Products, Brands, and Collections. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getFollowIds/).
@@ -601,6 +733,14 @@ class Catalog {
601
733
  { collectionType, requestHeaders } = { requestHeaders: {} },
602
734
  { responseHeaders } = { responseHeaders: false }
603
735
  ) {
736
+ let invalidInput = [];
737
+ if (invalidInput.length) {
738
+ const error = new Error();
739
+ error.message = "Missing required field";
740
+ error.details = invalidInput;
741
+ return Promise.reject(new FDKClientValidationError(error));
742
+ }
743
+
604
744
  const query_params = {};
605
745
  query_params["collection_type"] = collectionType;
606
746
 
@@ -630,7 +770,7 @@ class Catalog {
630
770
  /**
631
771
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
632
772
  * @param {import("../ApplicationAPIClient").Options} - Options
633
- * @returns {Promise<GetFollowListingResponseSchema>} - Success response
773
+ * @returns {Promise<GetFollowListingResponse>} - Success response
634
774
  * @name getFollowedListing
635
775
  * @summary: List followed products, brands
636
776
  * @description: Get a list of products or brands the user is following. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getFollowedListing/).
@@ -641,6 +781,21 @@ class Catalog {
641
781
  },
642
782
  { responseHeaders } = { responseHeaders: false }
643
783
  ) {
784
+ let invalidInput = [];
785
+
786
+ if (!collectionType) {
787
+ invalidInput.push({
788
+ message: `The 'collectionType' field is required.`,
789
+ path: ["collectionType"],
790
+ });
791
+ }
792
+ if (invalidInput.length) {
793
+ const error = new Error();
794
+ error.message = "Missing required field";
795
+ error.details = invalidInput;
796
+ return Promise.reject(new FDKClientValidationError(error));
797
+ }
798
+
644
799
  const query_params = {};
645
800
  query_params["page_id"] = pageId;
646
801
  query_params["page_size"] = pageSize;
@@ -673,7 +828,7 @@ class Catalog {
673
828
  * @param {string} arg.collectionType - Type of collection followed, i.e.
674
829
  * products, brands, or collections.
675
830
  * @param {number} [arg.pageSize] - Page ID to retrieve next set of results.
676
- * @returns {Paginator<GetFollowListingResponseSchema>}
831
+ * @returns {Paginator<GetFollowListingResponse>}
677
832
  * @summary: List followed products, brands
678
833
  * @description: Get a list of products or brands the user is following.
679
834
  */
@@ -701,7 +856,7 @@ class Catalog {
701
856
  /**
702
857
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
703
858
  * @param {import("../ApplicationAPIClient").Options} - Options
704
- * @returns {Promise<FollowerCountResponseSchema>} - Success response
859
+ * @returns {Promise<FollowerCountResponse>} - Success response
705
860
  * @name getFollowerCountById
706
861
  * @summary: Get follower count
707
862
  * @description: Get the total number of followers for a specific item by its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getFollowerCountById/).
@@ -710,6 +865,27 @@ class Catalog {
710
865
  { collectionType, collectionId, requestHeaders } = { requestHeaders: {} },
711
866
  { responseHeaders } = { responseHeaders: false }
712
867
  ) {
868
+ let invalidInput = [];
869
+
870
+ if (!collectionType) {
871
+ invalidInput.push({
872
+ message: `The 'collectionType' field is required.`,
873
+ path: ["collectionType"],
874
+ });
875
+ }
876
+ if (!collectionId) {
877
+ invalidInput.push({
878
+ message: `The 'collectionId' field is required.`,
879
+ path: ["collectionId"],
880
+ });
881
+ }
882
+ if (invalidInput.length) {
883
+ const error = new Error();
884
+ error.message = "Missing required field";
885
+ error.details = invalidInput;
886
+ return Promise.reject(new FDKClientValidationError(error));
887
+ }
888
+
713
889
  const query_params = {};
714
890
 
715
891
  const xHeaders = {};
@@ -738,7 +914,7 @@ class Catalog {
738
914
  /**
739
915
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
740
916
  * @param {import("../ApplicationAPIClient").Options} - Options
741
- * @returns {Promise<HomeListingResponseSchema>} - Success response
917
+ * @returns {Promise<HomeListingResponse>} - Success response
742
918
  * @name getHomeProducts
743
919
  * @summary: List homepage-featured products
744
920
  * @description: List all the products associated with a brand, collection or category in a random order. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getHomeProducts/).
@@ -747,6 +923,14 @@ class Catalog {
747
923
  { sortOn, pageId, pageSize, requestHeaders } = { requestHeaders: {} },
748
924
  { responseHeaders } = { responseHeaders: false }
749
925
  ) {
926
+ let invalidInput = [];
927
+ if (invalidInput.length) {
928
+ const error = new Error();
929
+ error.message = "Missing required field";
930
+ error.details = invalidInput;
931
+ return Promise.reject(new FDKClientValidationError(error));
932
+ }
933
+
750
934
  const query_params = {};
751
935
  query_params["sort_on"] = sortOn;
752
936
  query_params["page_id"] = pageId;
@@ -781,7 +965,7 @@ class Catalog {
781
965
  * should be sorted, e.g. popularity, price, latest and discount, in
782
966
  * either ascending or descending order.
783
967
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
784
- * @returns {Paginator<HomeListingResponseSchema>}
968
+ * @returns {Paginator<HomeListingResponse>}
785
969
  * @summary: List homepage-featured products
786
970
  * @description: List all the products associated with a brand, collection or category in a random order.
787
971
  */
@@ -827,6 +1011,14 @@ class Catalog {
827
1011
  } = { requestHeaders: {} },
828
1012
  { responseHeaders } = { responseHeaders: false }
829
1013
  ) {
1014
+ let invalidInput = [];
1015
+ if (invalidInput.length) {
1016
+ const error = new Error();
1017
+ error.message = "Missing required field";
1018
+ error.details = invalidInput;
1019
+ return Promise.reject(new FDKClientValidationError(error));
1020
+ }
1021
+
830
1022
  const query_params = {};
831
1023
  query_params["page_no"] = pageNo;
832
1024
  query_params["page_size"] = pageSize;
@@ -918,6 +1110,21 @@ class Catalog {
918
1110
  { locationId, requestHeaders } = { requestHeaders: {} },
919
1111
  { responseHeaders } = { responseHeaders: false }
920
1112
  ) {
1113
+ let invalidInput = [];
1114
+
1115
+ if (!locationId) {
1116
+ invalidInput.push({
1117
+ message: `The 'locationId' field is required.`,
1118
+ path: ["locationId"],
1119
+ });
1120
+ }
1121
+ if (invalidInput.length) {
1122
+ const error = new Error();
1123
+ error.message = "Missing required field";
1124
+ error.details = invalidInput;
1125
+ return Promise.reject(new FDKClientValidationError(error));
1126
+ }
1127
+
921
1128
  const query_params = {};
922
1129
 
923
1130
  const xHeaders = {};
@@ -955,6 +1162,14 @@ class Catalog {
955
1162
  { slug, id, requestHeaders } = { requestHeaders: {} },
956
1163
  { responseHeaders } = { responseHeaders: false }
957
1164
  ) {
1165
+ let invalidInput = [];
1166
+ if (invalidInput.length) {
1167
+ const error = new Error();
1168
+ error.message = "Missing required field";
1169
+ error.details = invalidInput;
1170
+ return Promise.reject(new FDKClientValidationError(error));
1171
+ }
1172
+
958
1173
  const query_params = {};
959
1174
  query_params["slug"] = slug;
960
1175
  query_params["id"] = id;
@@ -985,7 +1200,7 @@ class Catalog {
985
1200
  /**
986
1201
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
987
1202
  * @param {import("../ApplicationAPIClient").Options} - Options
988
- * @returns {Promise<ProductsComparisonResponseSchema>} - Success response
1203
+ * @returns {Promise<ProductsComparisonResponse>} - Success response
989
1204
  * @name getProductComparisonBySlugs
990
1205
  * @summary: List products for comparison
991
1206
  * @description: Get all the products that have the same category. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductComparisonBySlugs/).
@@ -994,6 +1209,21 @@ class Catalog {
994
1209
  { slug, requestHeaders } = { requestHeaders: {} },
995
1210
  { responseHeaders } = { responseHeaders: false }
996
1211
  ) {
1212
+ let invalidInput = [];
1213
+
1214
+ if (!slug) {
1215
+ invalidInput.push({
1216
+ message: `The 'slug' field is required.`,
1217
+ path: ["slug"],
1218
+ });
1219
+ }
1220
+ if (invalidInput.length) {
1221
+ const error = new Error();
1222
+ error.message = "Missing required field";
1223
+ error.details = invalidInput;
1224
+ return Promise.reject(new FDKClientValidationError(error));
1225
+ }
1226
+
997
1227
  const query_params = {};
998
1228
  query_params["slug"] = slug;
999
1229
 
@@ -1032,6 +1262,21 @@ class Catalog {
1032
1262
  { slug, requestHeaders } = { requestHeaders: {} },
1033
1263
  { responseHeaders } = { responseHeaders: false }
1034
1264
  ) {
1265
+ let invalidInput = [];
1266
+
1267
+ if (!slug) {
1268
+ invalidInput.push({
1269
+ message: `The 'slug' field is required.`,
1270
+ path: ["slug"],
1271
+ });
1272
+ }
1273
+ if (invalidInput.length) {
1274
+ const error = new Error();
1275
+ error.message = "Missing required field";
1276
+ error.details = invalidInput;
1277
+ return Promise.reject(new FDKClientValidationError(error));
1278
+ }
1279
+
1035
1280
  const query_params = {};
1036
1281
 
1037
1282
  const xHeaders = {};
@@ -1069,6 +1314,27 @@ class Catalog {
1069
1314
  { slug, size, storeId, moq, requestHeaders } = { requestHeaders: {} },
1070
1315
  { responseHeaders } = { responseHeaders: false }
1071
1316
  ) {
1317
+ let invalidInput = [];
1318
+
1319
+ if (!slug) {
1320
+ invalidInput.push({
1321
+ message: `The 'slug' field is required.`,
1322
+ path: ["slug"],
1323
+ });
1324
+ }
1325
+ if (!size) {
1326
+ invalidInput.push({
1327
+ message: `The 'size' field is required.`,
1328
+ path: ["size"],
1329
+ });
1330
+ }
1331
+ if (invalidInput.length) {
1332
+ const error = new Error();
1333
+ error.message = "Missing required field";
1334
+ error.details = invalidInput;
1335
+ return Promise.reject(new FDKClientValidationError(error));
1336
+ }
1337
+
1072
1338
  const query_params = {};
1073
1339
  query_params["store_id"] = storeId;
1074
1340
  query_params["moq"] = moq;
@@ -1110,6 +1376,27 @@ class Catalog {
1110
1376
  },
1111
1377
  { responseHeaders } = { responseHeaders: false }
1112
1378
  ) {
1379
+ let invalidInput = [];
1380
+
1381
+ if (!slug) {
1382
+ invalidInput.push({
1383
+ message: `The 'slug' field is required.`,
1384
+ path: ["slug"],
1385
+ });
1386
+ }
1387
+ if (!size) {
1388
+ invalidInput.push({
1389
+ message: `The 'size' field is required.`,
1390
+ path: ["size"],
1391
+ });
1392
+ }
1393
+ if (invalidInput.length) {
1394
+ const error = new Error();
1395
+ error.message = "Missing required field";
1396
+ error.details = invalidInput;
1397
+ return Promise.reject(new FDKClientValidationError(error));
1398
+ }
1399
+
1113
1400
  const query_params = {};
1114
1401
  query_params["strategy"] = strategy;
1115
1402
  query_params["page_no"] = pageNo;
@@ -1188,6 +1475,21 @@ class Catalog {
1188
1475
  { slug, storeId, requestHeaders } = { requestHeaders: {} },
1189
1476
  { responseHeaders } = { responseHeaders: false }
1190
1477
  ) {
1478
+ let invalidInput = [];
1479
+
1480
+ if (!slug) {
1481
+ invalidInput.push({
1482
+ message: `The 'slug' field is required.`,
1483
+ path: ["slug"],
1484
+ });
1485
+ }
1486
+ if (invalidInput.length) {
1487
+ const error = new Error();
1488
+ error.message = "Missing required field";
1489
+ error.details = invalidInput;
1490
+ return Promise.reject(new FDKClientValidationError(error));
1491
+ }
1492
+
1191
1493
  const query_params = {};
1192
1494
  query_params["store_id"] = storeId;
1193
1495
 
@@ -1217,7 +1519,7 @@ class Catalog {
1217
1519
  /**
1218
1520
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1219
1521
  * @param {import("../ApplicationAPIClient").Options} - Options
1220
- * @returns {Promise<ProductStockStatusResponseSchema>} - Success response
1522
+ * @returns {Promise<ProductStockStatusResponse>} - Success response
1221
1523
  * @name getProductStockByIds
1222
1524
  * @summary: Get product stocks
1223
1525
  * @description: Get the current stock status for products identified by their IDs, such as SKU, ALU, EAN, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductStockByIds/).
@@ -1226,6 +1528,14 @@ class Catalog {
1226
1528
  { itemId, alu, skuCode, ean, upc, requestHeaders } = { requestHeaders: {} },
1227
1529
  { responseHeaders } = { responseHeaders: false }
1228
1530
  ) {
1531
+ let invalidInput = [];
1532
+ if (invalidInput.length) {
1533
+ const error = new Error();
1534
+ error.message = "Missing required field";
1535
+ error.details = invalidInput;
1536
+ return Promise.reject(new FDKClientValidationError(error));
1537
+ }
1538
+
1229
1539
  const query_params = {};
1230
1540
  query_params["item_id"] = itemId;
1231
1541
  query_params["alu"] = alu;
@@ -1268,6 +1578,21 @@ class Catalog {
1268
1578
  { timestamp, pageSize, pageId, requestHeaders } = { requestHeaders: {} },
1269
1579
  { responseHeaders } = { responseHeaders: false }
1270
1580
  ) {
1581
+ let invalidInput = [];
1582
+
1583
+ if (!timestamp) {
1584
+ invalidInput.push({
1585
+ message: `The 'timestamp' field is required.`,
1586
+ path: ["timestamp"],
1587
+ });
1588
+ }
1589
+ if (invalidInput.length) {
1590
+ const error = new Error();
1591
+ error.message = "Missing required field";
1592
+ error.details = invalidInput;
1593
+ return Promise.reject(new FDKClientValidationError(error));
1594
+ }
1595
+
1271
1596
  const query_params = {};
1272
1597
  query_params["timestamp"] = timestamp;
1273
1598
  query_params["page_size"] = pageSize;
@@ -1328,7 +1653,7 @@ class Catalog {
1328
1653
  /**
1329
1654
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1330
1655
  * @param {import("../ApplicationAPIClient").Options} - Options
1331
- * @returns {Promise<ProductVariantsResponseSchema>} - Success response
1656
+ * @returns {Promise<ProductVariantsResponse>} - Success response
1332
1657
  * @name getProductVariantsBySlug
1333
1658
  * @summary: List product variants
1334
1659
  * @description: Get all available variants of a specific product identified by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductVariantsBySlug/).
@@ -1337,6 +1662,21 @@ class Catalog {
1337
1662
  { slug, requestHeaders } = { requestHeaders: {} },
1338
1663
  { responseHeaders } = { responseHeaders: false }
1339
1664
  ) {
1665
+ let invalidInput = [];
1666
+
1667
+ if (!slug) {
1668
+ invalidInput.push({
1669
+ message: `The 'slug' field is required.`,
1670
+ path: ["slug"],
1671
+ });
1672
+ }
1673
+ if (invalidInput.length) {
1674
+ const error = new Error();
1675
+ error.message = "Missing required field";
1676
+ error.details = invalidInput;
1677
+ return Promise.reject(new FDKClientValidationError(error));
1678
+ }
1679
+
1340
1680
  const query_params = {};
1341
1681
 
1342
1682
  const xHeaders = {};
@@ -1365,7 +1705,7 @@ class Catalog {
1365
1705
  /**
1366
1706
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1367
1707
  * @param {import("../ApplicationAPIClient").Options} - Options
1368
- * @returns {Promise<ProductListingResponseSchema>} - Success response
1708
+ * @returns {Promise<ProductListingResponse>} - Success response
1369
1709
  * @name getProducts
1370
1710
  * @summary: List products
1371
1711
  * @description: List all products available in the catalog. It supports filtering based on product name, brand, department, category, collection, and more, while also offering sorting options based on factors like price, ratings, discounts, and other relevant criteria. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProducts/).
@@ -1384,6 +1724,14 @@ class Catalog {
1384
1724
  } = { requestHeaders: {} },
1385
1725
  { responseHeaders } = { responseHeaders: false }
1386
1726
  ) {
1727
+ let invalidInput = [];
1728
+ if (invalidInput.length) {
1729
+ const error = new Error();
1730
+ error.message = "Missing required field";
1731
+ error.details = invalidInput;
1732
+ return Promise.reject(new FDKClientValidationError(error));
1733
+ }
1734
+
1387
1735
  const query_params = {};
1388
1736
  query_params["q"] = q;
1389
1737
  query_params["f"] = f;
@@ -1431,7 +1779,7 @@ class Catalog {
1431
1779
  * should be sorted, e.g. popularity, price, latest and discount, in
1432
1780
  * either ascending or descending order. See the supported values below.
1433
1781
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
1434
- * @returns {Paginator<ProductListingResponseSchema>}
1782
+ * @returns {Paginator<ProductListingResponse>}
1435
1783
  * @summary: List products
1436
1784
  * @description: List all products available in the catalog. It supports filtering based on product name, brand, department, category, collection, and more, while also offering sorting options based on factors like price, ratings, discounts, and other relevant criteria.
1437
1785
  */
@@ -1464,7 +1812,7 @@ class Catalog {
1464
1812
  /**
1465
1813
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1466
1814
  * @param {import("../ApplicationAPIClient").Options} - Options
1467
- * @returns {Promise<AutoCompleteResponseSchema>} - Success response
1815
+ * @returns {Promise<AutoCompleteResponse>} - Success response
1468
1816
  * @name getSearchResults
1469
1817
  * @summary: List product, brand, category
1470
1818
  * @description: Get products, brands, or categories based on a search query, which can be a partial or full name match. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getSearchResults/).
@@ -1473,6 +1821,21 @@ class Catalog {
1473
1821
  { q, requestHeaders } = { requestHeaders: {} },
1474
1822
  { responseHeaders } = { responseHeaders: false }
1475
1823
  ) {
1824
+ let invalidInput = [];
1825
+
1826
+ if (!q) {
1827
+ invalidInput.push({
1828
+ message: `The 'q' field is required.`,
1829
+ path: ["q"],
1830
+ });
1831
+ }
1832
+ if (invalidInput.length) {
1833
+ const error = new Error();
1834
+ error.message = "Missing required field";
1835
+ error.details = invalidInput;
1836
+ return Promise.reject(new FDKClientValidationError(error));
1837
+ }
1838
+
1476
1839
  const query_params = {};
1477
1840
  query_params["q"] = q;
1478
1841
 
@@ -1502,7 +1865,7 @@ class Catalog {
1502
1865
  /**
1503
1866
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1504
1867
  * @param {import("../ApplicationAPIClient").Options} - Options
1505
- * @returns {Promise<ProductCompareResponseSchema>} - Success response
1868
+ * @returns {Promise<ProductCompareResponse>} - Success response
1506
1869
  * @name getSimilarComparisonProductBySlug
1507
1870
  * @summary: List similar products
1508
1871
  * @description: Get all products within the same category as the one specified by the provided slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getSimilarComparisonProductBySlug/).
@@ -1511,6 +1874,21 @@ class Catalog {
1511
1874
  { slug, requestHeaders } = { requestHeaders: {} },
1512
1875
  { responseHeaders } = { responseHeaders: false }
1513
1876
  ) {
1877
+ let invalidInput = [];
1878
+
1879
+ if (!slug) {
1880
+ invalidInput.push({
1881
+ message: `The 'slug' field is required.`,
1882
+ path: ["slug"],
1883
+ });
1884
+ }
1885
+ if (invalidInput.length) {
1886
+ const error = new Error();
1887
+ error.message = "Missing required field";
1888
+ error.details = invalidInput;
1889
+ return Promise.reject(new FDKClientValidationError(error));
1890
+ }
1891
+
1514
1892
  const query_params = {};
1515
1893
 
1516
1894
  const xHeaders = {};
@@ -1539,7 +1917,7 @@ class Catalog {
1539
1917
  /**
1540
1918
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1541
1919
  * @param {import("../ApplicationAPIClient").Options} - Options
1542
- * @returns {Promise<StoreListingResponseSchema>} - Success response
1920
+ * @returns {Promise<StoreListingResponse>} - Success response
1543
1921
  * @name getStores
1544
1922
  * @summary: List available stores
1545
1923
  * @description: List all stores associated with the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getStores/).
@@ -1558,6 +1936,14 @@ class Catalog {
1558
1936
  } = { requestHeaders: {} },
1559
1937
  { responseHeaders } = { responseHeaders: false }
1560
1938
  ) {
1939
+ let invalidInput = [];
1940
+ if (invalidInput.length) {
1941
+ const error = new Error();
1942
+ error.message = "Missing required field";
1943
+ error.details = invalidInput;
1944
+ return Promise.reject(new FDKClientValidationError(error));
1945
+ }
1946
+
1561
1947
  const query_params = {};
1562
1948
  query_params["page_no"] = pageNo;
1563
1949
  query_params["page_size"] = pageSize;
@@ -1603,7 +1989,7 @@ class Catalog {
1603
1989
  * @param {number} [arg.longitude] - Longitude of the location from where
1604
1990
  * one wants to retrieve the nearest stores, e.g. 19.1174114.
1605
1991
  * @param {string} [arg.tags] - Search stores based on tags.
1606
- * @returns {Paginator<StoreListingResponseSchema>}
1992
+ * @returns {Paginator<StoreListingResponse>}
1607
1993
  * @summary: List available stores
1608
1994
  * @description: List all stores associated with the sales channel.
1609
1995
  */
@@ -1644,7 +2030,7 @@ class Catalog {
1644
2030
  /**
1645
2031
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1646
2032
  * @param {import("../ApplicationAPIClient").Options} - Options
1647
- * @returns {Promise<FollowPostResponseSchema>} - Success response
2033
+ * @returns {Promise<FollowPostResponse>} - Success response
1648
2034
  * @name unfollowById
1649
2035
  * @summary: Delete item, brand, product
1650
2036
  * @description: Remove a followed item, brand, or product using its collection ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/unfollowById/).
@@ -1653,6 +2039,27 @@ class Catalog {
1653
2039
  { collectionType, collectionId, requestHeaders } = { requestHeaders: {} },
1654
2040
  { responseHeaders } = { responseHeaders: false }
1655
2041
  ) {
2042
+ let invalidInput = [];
2043
+
2044
+ if (!collectionType) {
2045
+ invalidInput.push({
2046
+ message: `The 'collectionType' field is required.`,
2047
+ path: ["collectionType"],
2048
+ });
2049
+ }
2050
+ if (!collectionId) {
2051
+ invalidInput.push({
2052
+ message: `The 'collectionId' field is required.`,
2053
+ path: ["collectionId"],
2054
+ });
2055
+ }
2056
+ if (invalidInput.length) {
2057
+ const error = new Error();
2058
+ error.message = "Missing required field";
2059
+ error.details = invalidInput;
2060
+ return Promise.reject(new FDKClientValidationError(error));
2061
+ }
2062
+
1656
2063
  const query_params = {};
1657
2064
 
1658
2065
  const xHeaders = {};