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

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 (118) 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.js +0 -18
  8. package/sdk/application/Cart/CartApplicationClient.d.ts +55 -90
  9. package/sdk/application/Cart/CartApplicationClient.js +27 -1203
  10. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -142
  11. package/sdk/application/Catalog/CatalogApplicationClient.js +40 -1344
  12. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
  13. package/sdk/application/Common/CommonApplicationClient.js +2 -92
  14. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
  15. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -148
  16. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -727
  18. package/sdk/application/Content/ContentApplicationClient.d.ts +46 -78
  19. package/sdk/application/Content/ContentApplicationClient.js +23 -941
  20. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -11
  21. package/sdk/application/FileStorage/FileStorageApplicationClient.js +4 -134
  22. package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
  23. package/sdk/application/Lead/LeadApplicationClient.js +5 -217
  24. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -39
  25. package/sdk/application/Logistic/LogisticApplicationClient.js +11 -496
  26. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -42
  27. package/sdk/application/Order/OrderApplicationClient.js +11 -505
  28. package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -212
  29. package/sdk/application/Payment/PaymentApplicationClient.js +46 -2106
  30. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -28
  31. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -311
  32. package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
  33. package/sdk/application/Share/ShareApplicationClient.js +7 -309
  34. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
  35. package/sdk/application/Theme/ThemeApplicationClient.js +4 -174
  36. package/sdk/application/User/UserApplicationClient.d.ts +85 -136
  37. package/sdk/application/User/UserApplicationClient.js +42 -1818
  38. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +2 -5
  39. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -50
  40. package/sdk/application/index.d.ts +0 -18
  41. package/sdk/application/index.js +0 -33
  42. package/sdk/partner/OAuthClient.js +1 -0
  43. package/sdk/platform/Cart/CartPlatformModel.d.ts +7 -0
  44. package/sdk/platform/Cart/CartPlatformModel.js +3 -0
  45. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +0 -7
  46. package/sdk/platform/Catalog/CatalogPlatformModel.js +0 -3
  47. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +7 -0
  48. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +3 -0
  49. package/sdk/public/Configuration/ConfigurationPublicClient.js +4 -2
  50. package/sdk/public/Content/ContentPublicClient.js +4 -2
  51. package/sdk/public/Partner/PartnerPublicClient.js +4 -2
  52. package/sdk/public/Webhook/WebhookPublicClient.js +4 -2
  53. package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
  54. package/sdk/application/Cart/CartApplicationModel.js +0 -2497
  55. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
  56. package/sdk/application/Cart/CartApplicationValidator.js +0 -530
  57. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
  58. package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
  59. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
  60. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
  61. package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
  62. package/sdk/application/Common/CommonApplicationModel.js +0 -308
  63. package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
  64. package/sdk/application/Common/CommonApplicationValidator.js +0 -38
  65. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
  66. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
  67. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
  68. package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
  69. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
  70. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
  71. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
  72. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
  73. package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
  74. package/sdk/application/Content/ContentApplicationModel.js +0 -1589
  75. package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
  76. package/sdk/application/Content/ContentApplicationValidator.js +0 -264
  77. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
  78. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
  79. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
  80. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
  81. package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
  82. package/sdk/application/Lead/LeadApplicationModel.js +0 -480
  83. package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
  84. package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
  85. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
  86. package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
  87. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
  88. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
  89. package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
  90. package/sdk/application/Order/OrderApplicationModel.js +0 -1471
  91. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
  92. package/sdk/application/Order/OrderApplicationValidator.js +0 -197
  93. package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
  94. package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
  95. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
  96. package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
  97. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
  98. package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
  99. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
  100. package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
  101. package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
  102. package/sdk/application/Share/ShareApplicationModel.js +0 -234
  103. package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
  104. package/sdk/application/Share/ShareApplicationValidator.js +0 -91
  105. package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
  106. package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
  107. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
  108. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
  109. package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
  110. package/sdk/application/User/UserApplicationModel.js +0 -1382
  111. package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
  112. package/sdk/application/User/UserApplicationValidator.js +0 -573
  113. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
  114. package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
  115. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
  116. package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
  117. package/sdk/common/Clickstream.d.ts +0 -1
  118. package/sdk/common/Clickstream.js +0 -464
@@ -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 CatalogApplicationValidator = require("./CatalogApplicationValidator");
9
- const CatalogApplicationModel = require("./CatalogApplicationModel");
10
- const { Logger } = require("./../../common/Logger");
11
- const Joi = require("joi");
12
4
 
13
5
  class Catalog {
14
6
  constructor(_conf) {
@@ -82,10 +74,9 @@ class Catalog {
82
74
  }
83
75
 
84
76
  /**
85
- * @param {CatalogApplicationValidator.FollowByIdParam} arg - Arg object.
86
77
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
87
78
  * @param {import("../ApplicationAPIClient").Options} - Options
88
- * @returns {Promise<CatalogApplicationModel.FollowPostResponse>} - Success response
79
+ * @returns {Promise<FollowPostResponse>} - Success response
89
80
  * @name followById
90
81
  * @summary: Create item, brand, product
91
82
  * @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/).
@@ -94,28 +85,6 @@ class Catalog {
94
85
  { collectionType, collectionId, requestHeaders } = { requestHeaders: {} },
95
86
  { responseHeaders } = { responseHeaders: false }
96
87
  ) {
97
- const { error } = CatalogApplicationValidator.followById().validate(
98
- { collectionType, collectionId },
99
- { abortEarly: false, allowUnknown: true }
100
- );
101
- if (error) {
102
- return Promise.reject(new FDKClientValidationError(error));
103
- }
104
-
105
- // Showing warrnings if extra unknown parameters are found
106
- const {
107
- error: warrning,
108
- } = CatalogApplicationValidator.followById().validate(
109
- { collectionType, collectionId },
110
- { abortEarly: false, allowUnknown: false }
111
- );
112
- if (warrning) {
113
- Logger({
114
- level: "WARN",
115
- message: `Parameter Validation warrnings for application > Catalog > followById \n ${warrning}`,
116
- });
117
- }
118
-
119
88
  const query_params = {};
120
89
 
121
90
  const xHeaders = {};
@@ -138,32 +107,13 @@ class Catalog {
138
107
  responseData = response[0];
139
108
  }
140
109
 
141
- const {
142
- error: res_error,
143
- } = CatalogApplicationModel.FollowPostResponse().validate(responseData, {
144
- abortEarly: false,
145
- allowUnknown: true,
146
- });
147
-
148
- if (res_error) {
149
- if (this._conf.options.strictResponseCheck === true) {
150
- return Promise.reject(new FDKResponseValidationError(res_error));
151
- } else {
152
- Logger({
153
- level: "WARN",
154
- message: `Response Validation Warnings for application > Catalog > followById \n ${res_error}`,
155
- });
156
- }
157
- }
158
-
159
110
  return response;
160
111
  }
161
112
 
162
113
  /**
163
- * @param {CatalogApplicationValidator.GetBrandDetailBySlugParam} arg - Arg object.
164
114
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
165
115
  * @param {import("../ApplicationAPIClient").Options} - Options
166
- * @returns {Promise<CatalogApplicationModel.BrandDetailResponse>} - Success response
116
+ * @returns {Promise<BrandDetailResponse>} - Success response
167
117
  * @name getBrandDetailBySlug
168
118
  * @summary: Get a brand
169
119
  * @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/).
@@ -172,30 +122,6 @@ class Catalog {
172
122
  { slug, requestHeaders } = { requestHeaders: {} },
173
123
  { responseHeaders } = { responseHeaders: false }
174
124
  ) {
175
- const {
176
- error,
177
- } = CatalogApplicationValidator.getBrandDetailBySlug().validate(
178
- { slug },
179
- { abortEarly: false, allowUnknown: true }
180
- );
181
- if (error) {
182
- return Promise.reject(new FDKClientValidationError(error));
183
- }
184
-
185
- // Showing warrnings if extra unknown parameters are found
186
- const {
187
- error: warrning,
188
- } = CatalogApplicationValidator.getBrandDetailBySlug().validate(
189
- { slug },
190
- { abortEarly: false, allowUnknown: false }
191
- );
192
- if (warrning) {
193
- Logger({
194
- level: "WARN",
195
- message: `Parameter Validation warrnings for application > Catalog > getBrandDetailBySlug \n ${warrning}`,
196
- });
197
- }
198
-
199
125
  const query_params = {};
200
126
 
201
127
  const xHeaders = {};
@@ -218,32 +144,13 @@ class Catalog {
218
144
  responseData = response[0];
219
145
  }
220
146
 
221
- const {
222
- error: res_error,
223
- } = CatalogApplicationModel.BrandDetailResponse().validate(responseData, {
224
- abortEarly: false,
225
- allowUnknown: true,
226
- });
227
-
228
- if (res_error) {
229
- if (this._conf.options.strictResponseCheck === true) {
230
- return Promise.reject(new FDKResponseValidationError(res_error));
231
- } else {
232
- Logger({
233
- level: "WARN",
234
- message: `Response Validation Warnings for application > Catalog > getBrandDetailBySlug \n ${res_error}`,
235
- });
236
- }
237
- }
238
-
239
147
  return response;
240
148
  }
241
149
 
242
150
  /**
243
- * @param {CatalogApplicationValidator.GetBrandsParam} arg - Arg object.
244
151
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
245
152
  * @param {import("../ApplicationAPIClient").Options} - Options
246
- * @returns {Promise<CatalogApplicationModel.BrandListingResponse>} - Success response
153
+ * @returns {Promise<BrandListingResponse>} - Success response
247
154
  * @name getBrands
248
155
  * @summary: List brands
249
156
  * @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/).
@@ -252,28 +159,6 @@ class Catalog {
252
159
  { department, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
253
160
  { responseHeaders } = { responseHeaders: false }
254
161
  ) {
255
- const { error } = CatalogApplicationValidator.getBrands().validate(
256
- { department, pageNo, pageSize },
257
- { abortEarly: false, allowUnknown: true }
258
- );
259
- if (error) {
260
- return Promise.reject(new FDKClientValidationError(error));
261
- }
262
-
263
- // Showing warrnings if extra unknown parameters are found
264
- const {
265
- error: warrning,
266
- } = CatalogApplicationValidator.getBrands().validate(
267
- { department, pageNo, pageSize },
268
- { abortEarly: false, allowUnknown: false }
269
- );
270
- if (warrning) {
271
- Logger({
272
- level: "WARN",
273
- message: `Parameter Validation warrnings for application > Catalog > getBrands \n ${warrning}`,
274
- });
275
- }
276
-
277
162
  const query_params = {};
278
163
  query_params["department"] = department;
279
164
  query_params["page_no"] = pageNo;
@@ -299,24 +184,6 @@ class Catalog {
299
184
  responseData = response[0];
300
185
  }
301
186
 
302
- const {
303
- error: res_error,
304
- } = CatalogApplicationModel.BrandListingResponse().validate(responseData, {
305
- abortEarly: false,
306
- allowUnknown: true,
307
- });
308
-
309
- if (res_error) {
310
- if (this._conf.options.strictResponseCheck === true) {
311
- return Promise.reject(new FDKResponseValidationError(res_error));
312
- } else {
313
- Logger({
314
- level: "WARN",
315
- message: `Response Validation Warnings for application > Catalog > getBrands \n ${res_error}`,
316
- });
317
- }
318
- }
319
-
320
187
  return response;
321
188
  }
322
189
 
@@ -327,7 +194,7 @@ class Catalog {
327
194
  * of available departments below. Also, you can get available departments
328
195
  * from the endpoint /service/application/catalog/v1.0/departments/.
329
196
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
330
- * @returns {Paginator<CatalogApplicationModel.BrandListingResponse>}
197
+ * @returns {Paginator<BrandListingResponse>}
331
198
  * @summary: List brands
332
199
  * @description: Get a list of all the available brands. Filtering can be applied to the department.
333
200
  */
@@ -353,11 +220,9 @@ class Catalog {
353
220
  }
354
221
 
355
222
  /**
356
- * @param {CatalogApplicationValidator.GetCategoriesParam} arg - Arg object.
357
223
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
358
224
  * @param {import("../ApplicationAPIClient").Options} - Options
359
- * @returns {Promise<CatalogApplicationModel.CategoryListingResponse>} -
360
- * Success response
225
+ * @returns {Promise<CategoryListingResponse>} - Success response
361
226
  * @name getCategories
362
227
  * @summary: List product categories
363
228
  * @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/).
@@ -366,28 +231,6 @@ class Catalog {
366
231
  { department, requestHeaders } = { requestHeaders: {} },
367
232
  { responseHeaders } = { responseHeaders: false }
368
233
  ) {
369
- const { error } = CatalogApplicationValidator.getCategories().validate(
370
- { department },
371
- { abortEarly: false, allowUnknown: true }
372
- );
373
- if (error) {
374
- return Promise.reject(new FDKClientValidationError(error));
375
- }
376
-
377
- // Showing warrnings if extra unknown parameters are found
378
- const {
379
- error: warrning,
380
- } = CatalogApplicationValidator.getCategories().validate(
381
- { department },
382
- { abortEarly: false, allowUnknown: false }
383
- );
384
- if (warrning) {
385
- Logger({
386
- level: "WARN",
387
- message: `Parameter Validation warrnings for application > Catalog > getCategories \n ${warrning}`,
388
- });
389
- }
390
-
391
234
  const query_params = {};
392
235
  query_params["department"] = department;
393
236
 
@@ -411,32 +254,13 @@ class Catalog {
411
254
  responseData = response[0];
412
255
  }
413
256
 
414
- const {
415
- error: res_error,
416
- } = CatalogApplicationModel.CategoryListingResponse().validate(
417
- responseData,
418
- { abortEarly: false, allowUnknown: true }
419
- );
420
-
421
- if (res_error) {
422
- if (this._conf.options.strictResponseCheck === true) {
423
- return Promise.reject(new FDKResponseValidationError(res_error));
424
- } else {
425
- Logger({
426
- level: "WARN",
427
- message: `Response Validation Warnings for application > Catalog > getCategories \n ${res_error}`,
428
- });
429
- }
430
- }
431
-
432
257
  return response;
433
258
  }
434
259
 
435
260
  /**
436
- * @param {CatalogApplicationValidator.GetCategoryDetailBySlugParam} arg - Arg object.
437
261
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
438
262
  * @param {import("../ApplicationAPIClient").Options} - Options
439
- * @returns {Promise<CatalogApplicationModel.CategoryMetaResponse>} - Success response
263
+ * @returns {Promise<CategoryMetaResponse>} - Success response
440
264
  * @name getCategoryDetailBySlug
441
265
  * @summary: Get category by slug
442
266
  * @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/).
@@ -445,30 +269,6 @@ class Catalog {
445
269
  { slug, requestHeaders } = { requestHeaders: {} },
446
270
  { responseHeaders } = { responseHeaders: false }
447
271
  ) {
448
- const {
449
- error,
450
- } = CatalogApplicationValidator.getCategoryDetailBySlug().validate(
451
- { slug },
452
- { abortEarly: false, allowUnknown: true }
453
- );
454
- if (error) {
455
- return Promise.reject(new FDKClientValidationError(error));
456
- }
457
-
458
- // Showing warrnings if extra unknown parameters are found
459
- const {
460
- error: warrning,
461
- } = CatalogApplicationValidator.getCategoryDetailBySlug().validate(
462
- { slug },
463
- { abortEarly: false, allowUnknown: false }
464
- );
465
- if (warrning) {
466
- Logger({
467
- level: "WARN",
468
- message: `Parameter Validation warrnings for application > Catalog > getCategoryDetailBySlug \n ${warrning}`,
469
- });
470
- }
471
-
472
272
  const query_params = {};
473
273
 
474
274
  const xHeaders = {};
@@ -491,35 +291,13 @@ class Catalog {
491
291
  responseData = response[0];
492
292
  }
493
293
 
494
- const {
495
- error: res_error,
496
- } = CatalogApplicationModel.CategoryMetaResponse().validate(responseData, {
497
- abortEarly: false,
498
- allowUnknown: true,
499
- });
500
-
501
- if (res_error) {
502
- if (this._conf.options.strictResponseCheck === true) {
503
- return Promise.reject(new FDKResponseValidationError(res_error));
504
- } else {
505
- Logger({
506
- level: "WARN",
507
- message: `Response Validation Warnings for application > Catalog > getCategoryDetailBySlug \n ${res_error}`,
508
- });
509
- }
510
- }
511
-
512
294
  return response;
513
295
  }
514
296
 
515
297
  /**
516
- * @param {CatalogApplicationValidator.GetCollectionDetailBySlugParam} arg
517
- * - Arg object.
518
- *
519
298
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
520
299
  * @param {import("../ApplicationAPIClient").Options} - Options
521
- * @returns {Promise<CatalogApplicationModel.CollectionDetailResponse>} -
522
- * Success response
300
+ * @returns {Promise<CollectionDetailResponse>} - Success response
523
301
  * @name getCollectionDetailBySlug
524
302
  * @summary: Get a collection
525
303
  * @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/).
@@ -528,30 +306,6 @@ class Catalog {
528
306
  { slug, requestHeaders } = { requestHeaders: {} },
529
307
  { responseHeaders } = { responseHeaders: false }
530
308
  ) {
531
- const {
532
- error,
533
- } = CatalogApplicationValidator.getCollectionDetailBySlug().validate(
534
- { slug },
535
- { abortEarly: false, allowUnknown: true }
536
- );
537
- if (error) {
538
- return Promise.reject(new FDKClientValidationError(error));
539
- }
540
-
541
- // Showing warrnings if extra unknown parameters are found
542
- const {
543
- error: warrning,
544
- } = CatalogApplicationValidator.getCollectionDetailBySlug().validate(
545
- { slug },
546
- { abortEarly: false, allowUnknown: false }
547
- );
548
- if (warrning) {
549
- Logger({
550
- level: "WARN",
551
- message: `Parameter Validation warrnings for application > Catalog > getCollectionDetailBySlug \n ${warrning}`,
552
- });
553
- }
554
-
555
309
  const query_params = {};
556
310
 
557
311
  const xHeaders = {};
@@ -574,34 +328,13 @@ class Catalog {
574
328
  responseData = response[0];
575
329
  }
576
330
 
577
- const {
578
- error: res_error,
579
- } = CatalogApplicationModel.CollectionDetailResponse().validate(
580
- responseData,
581
- { abortEarly: false, allowUnknown: true }
582
- );
583
-
584
- if (res_error) {
585
- if (this._conf.options.strictResponseCheck === true) {
586
- return Promise.reject(new FDKResponseValidationError(res_error));
587
- } else {
588
- Logger({
589
- level: "WARN",
590
- message: `Response Validation Warnings for application > Catalog > getCollectionDetailBySlug \n ${res_error}`,
591
- });
592
- }
593
- }
594
-
595
331
  return response;
596
332
  }
597
333
 
598
334
  /**
599
- * @param {CatalogApplicationValidator.GetCollectionItemsBySlugParam} arg -
600
- * Arg object.
601
335
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
602
336
  * @param {import("../ApplicationAPIClient").Options} - Options
603
- * @returns {Promise<CatalogApplicationModel.ProductListingResponse>} -
604
- * Success response
337
+ * @returns {Promise<ProductListingResponse>} - Success response
605
338
  * @name getCollectionItemsBySlug
606
339
  * @summary: Lists items of collection
607
340
  * @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/).
@@ -621,30 +354,6 @@ class Catalog {
621
354
  } = { requestHeaders: {} },
622
355
  { responseHeaders } = { responseHeaders: false }
623
356
  ) {
624
- const {
625
- error,
626
- } = CatalogApplicationValidator.getCollectionItemsBySlug().validate(
627
- { slug, f, q, filters, sortOn, pageId, pageSize, pageNo, pageType },
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
- } = CatalogApplicationValidator.getCollectionItemsBySlug().validate(
638
- { slug, f, q, filters, sortOn, pageId, pageSize, pageNo, pageType },
639
- { abortEarly: false, allowUnknown: false }
640
- );
641
- if (warrning) {
642
- Logger({
643
- level: "WARN",
644
- message: `Parameter Validation warrnings for application > Catalog > getCollectionItemsBySlug \n ${warrning}`,
645
- });
646
- }
647
-
648
357
  const query_params = {};
649
358
  query_params["f"] = f;
650
359
  query_params["q"] = q;
@@ -675,24 +384,6 @@ class Catalog {
675
384
  responseData = response[0];
676
385
  }
677
386
 
678
- const {
679
- error: res_error,
680
- } = CatalogApplicationModel.ProductListingResponse().validate(
681
- responseData,
682
- { abortEarly: false, allowUnknown: true }
683
- );
684
-
685
- if (res_error) {
686
- if (this._conf.options.strictResponseCheck === true) {
687
- return Promise.reject(new FDKResponseValidationError(res_error));
688
- } else {
689
- Logger({
690
- level: "WARN",
691
- message: `Response Validation Warnings for application > Catalog > getCollectionItemsBySlug \n ${res_error}`,
692
- });
693
- }
694
- }
695
-
696
387
  return response;
697
388
  }
698
389
 
@@ -713,7 +404,7 @@ class Catalog {
713
404
  * should be sorted, e.g. popularity, price, latest and discount, in
714
405
  * either ascending or descending order. See the supported values below.
715
406
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
716
- * @returns {Paginator<CatalogApplicationModel.ProductListingResponse>}
407
+ * @returns {Paginator<ProductListingResponse>}
717
408
  * @summary: Lists items of collection
718
409
  * @description: Fetch items within a particular collection identified by its slug.
719
410
  */
@@ -752,12 +443,9 @@ class Catalog {
752
443
  }
753
444
 
754
445
  /**
755
- * @param {CatalogApplicationValidator.GetCollectionsParam} arg - Arg object.
756
446
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
757
447
  * @param {import("../ApplicationAPIClient").Options} - Options
758
- * @returns {Promise<CatalogApplicationModel.GetCollectionListingResponse>}
759
- * - Success response
760
- *
448
+ * @returns {Promise<GetCollectionListingResponse>} - Success response
761
449
  * @name getCollections
762
450
  * @summary: List collections
763
451
  * @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/).
@@ -766,28 +454,6 @@ class Catalog {
766
454
  { pageNo, pageSize, tag, q, requestHeaders } = { requestHeaders: {} },
767
455
  { responseHeaders } = { responseHeaders: false }
768
456
  ) {
769
- const { error } = CatalogApplicationValidator.getCollections().validate(
770
- { pageNo, pageSize, tag, q },
771
- { abortEarly: false, allowUnknown: true }
772
- );
773
- if (error) {
774
- return Promise.reject(new FDKClientValidationError(error));
775
- }
776
-
777
- // Showing warrnings if extra unknown parameters are found
778
- const {
779
- error: warrning,
780
- } = CatalogApplicationValidator.getCollections().validate(
781
- { pageNo, pageSize, tag, q },
782
- { abortEarly: false, allowUnknown: false }
783
- );
784
- if (warrning) {
785
- Logger({
786
- level: "WARN",
787
- message: `Parameter Validation warrnings for application > Catalog > getCollections \n ${warrning}`,
788
- });
789
- }
790
-
791
457
  const query_params = {};
792
458
  query_params["page_no"] = pageNo;
793
459
  query_params["page_size"] = pageSize;
@@ -814,24 +480,6 @@ class Catalog {
814
480
  responseData = response[0];
815
481
  }
816
482
 
817
- const {
818
- error: res_error,
819
- } = CatalogApplicationModel.GetCollectionListingResponse().validate(
820
- responseData,
821
- { abortEarly: false, allowUnknown: true }
822
- );
823
-
824
- if (res_error) {
825
- if (this._conf.options.strictResponseCheck === true) {
826
- return Promise.reject(new FDKResponseValidationError(res_error));
827
- } else {
828
- Logger({
829
- level: "WARN",
830
- message: `Response Validation Warnings for application > Catalog > getCollections \n ${res_error}`,
831
- });
832
- }
833
- }
834
-
835
483
  return response;
836
484
  }
837
485
 
@@ -840,7 +488,7 @@ class Catalog {
840
488
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
841
489
  * @param {string[]} [arg.tag] - List of tags to filter collections.
842
490
  * @param {string} [arg.q] - Name of the collection to filter collection.
843
- * @returns {Paginator<CatalogApplicationModel.GetCollectionListingResponse>}
491
+ * @returns {Paginator<GetCollectionListingResponse>}
844
492
  * @summary: List collections
845
493
  * @description: List of curated product collections with filtering options based on tags and collection names.
846
494
  */
@@ -867,14 +515,9 @@ class Catalog {
867
515
  }
868
516
 
869
517
  /**
870
- * @param {CatalogApplicationValidator.GetComparedFrequentlyProductBySlugParam} arg
871
- * - Arg object.
872
- *
873
518
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
874
519
  * @param {import("../ApplicationAPIClient").Options} - Options
875
- * @returns {Promise<CatalogApplicationModel.ProductFrequentlyComparedSimilarResponse>}
876
- * - Success response
877
- *
520
+ * @returns {Promise<ProductFrequentlyComparedSimilarResponse>} - Success response
878
521
  * @name getComparedFrequentlyProductBySlug
879
522
  * @summary: List frequent products
880
523
  * @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/).
@@ -883,30 +526,6 @@ class Catalog {
883
526
  { slug, requestHeaders } = { requestHeaders: {} },
884
527
  { responseHeaders } = { responseHeaders: false }
885
528
  ) {
886
- const {
887
- error,
888
- } = CatalogApplicationValidator.getComparedFrequentlyProductBySlug().validate(
889
- { slug },
890
- { abortEarly: false, allowUnknown: true }
891
- );
892
- if (error) {
893
- return Promise.reject(new FDKClientValidationError(error));
894
- }
895
-
896
- // Showing warrnings if extra unknown parameters are found
897
- const {
898
- error: warrning,
899
- } = CatalogApplicationValidator.getComparedFrequentlyProductBySlug().validate(
900
- { slug },
901
- { abortEarly: false, allowUnknown: false }
902
- );
903
- if (warrning) {
904
- Logger({
905
- level: "WARN",
906
- message: `Parameter Validation warrnings for application > Catalog > getComparedFrequentlyProductBySlug \n ${warrning}`,
907
- });
908
- }
909
-
910
529
  const query_params = {};
911
530
 
912
531
  const xHeaders = {};
@@ -929,32 +548,13 @@ class Catalog {
929
548
  responseData = response[0];
930
549
  }
931
550
 
932
- const {
933
- error: res_error,
934
- } = CatalogApplicationModel.ProductFrequentlyComparedSimilarResponse().validate(
935
- responseData,
936
- { abortEarly: false, allowUnknown: true }
937
- );
938
-
939
- if (res_error) {
940
- if (this._conf.options.strictResponseCheck === true) {
941
- return Promise.reject(new FDKResponseValidationError(res_error));
942
- } else {
943
- Logger({
944
- level: "WARN",
945
- message: `Response Validation Warnings for application > Catalog > getComparedFrequentlyProductBySlug \n ${res_error}`,
946
- });
947
- }
948
- }
949
-
950
551
  return response;
951
552
  }
952
553
 
953
554
  /**
954
- * @param {CatalogApplicationValidator.GetDepartmentsParam} arg - Arg object.
955
555
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
956
556
  * @param {import("../ApplicationAPIClient").Options} - Options
957
- * @returns {Promise<CatalogApplicationModel.DepartmentResponse>} - Success response
557
+ * @returns {Promise<DepartmentResponse>} - Success response
958
558
  * @name getDepartments
959
559
  * @summary: List departments
960
560
  * @description: List all departments associated with available products. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getDepartments/).
@@ -963,28 +563,6 @@ class Catalog {
963
563
  { requestHeaders } = { requestHeaders: {} },
964
564
  { responseHeaders } = { responseHeaders: false }
965
565
  ) {
966
- const { error } = CatalogApplicationValidator.getDepartments().validate(
967
- {},
968
- { abortEarly: false, allowUnknown: true }
969
- );
970
- if (error) {
971
- return Promise.reject(new FDKClientValidationError(error));
972
- }
973
-
974
- // Showing warrnings if extra unknown parameters are found
975
- const {
976
- error: warrning,
977
- } = CatalogApplicationValidator.getDepartments().validate(
978
- {},
979
- { abortEarly: false, allowUnknown: false }
980
- );
981
- if (warrning) {
982
- Logger({
983
- level: "WARN",
984
- message: `Parameter Validation warrnings for application > Catalog > getDepartments \n ${warrning}`,
985
- });
986
- }
987
-
988
566
  const query_params = {};
989
567
 
990
568
  const xHeaders = {};
@@ -1007,32 +585,13 @@ class Catalog {
1007
585
  responseData = response[0];
1008
586
  }
1009
587
 
1010
- const {
1011
- error: res_error,
1012
- } = CatalogApplicationModel.DepartmentResponse().validate(responseData, {
1013
- abortEarly: false,
1014
- allowUnknown: true,
1015
- });
1016
-
1017
- if (res_error) {
1018
- if (this._conf.options.strictResponseCheck === true) {
1019
- return Promise.reject(new FDKResponseValidationError(res_error));
1020
- } else {
1021
- Logger({
1022
- level: "WARN",
1023
- message: `Response Validation Warnings for application > Catalog > getDepartments \n ${res_error}`,
1024
- });
1025
- }
1026
- }
1027
-
1028
588
  return response;
1029
589
  }
1030
590
 
1031
591
  /**
1032
- * @param {CatalogApplicationValidator.GetFollowIdsParam} arg - Arg object.
1033
592
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1034
593
  * @param {import("../ApplicationAPIClient").Options} - Options
1035
- * @returns {Promise<CatalogApplicationModel.FollowIdsResponse>} - Success response
594
+ * @returns {Promise<FollowIdsResponse>} - Success response
1036
595
  * @name getFollowIds
1037
596
  * @summary: List Ids of followed item, brand, product
1038
597
  * @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/).
@@ -1041,28 +600,6 @@ class Catalog {
1041
600
  { collectionType, requestHeaders } = { requestHeaders: {} },
1042
601
  { responseHeaders } = { responseHeaders: false }
1043
602
  ) {
1044
- const { error } = CatalogApplicationValidator.getFollowIds().validate(
1045
- { collectionType },
1046
- { abortEarly: false, allowUnknown: true }
1047
- );
1048
- if (error) {
1049
- return Promise.reject(new FDKClientValidationError(error));
1050
- }
1051
-
1052
- // Showing warrnings if extra unknown parameters are found
1053
- const {
1054
- error: warrning,
1055
- } = CatalogApplicationValidator.getFollowIds().validate(
1056
- { collectionType },
1057
- { abortEarly: false, allowUnknown: false }
1058
- );
1059
- if (warrning) {
1060
- Logger({
1061
- level: "WARN",
1062
- message: `Parameter Validation warrnings for application > Catalog > getFollowIds \n ${warrning}`,
1063
- });
1064
- }
1065
-
1066
603
  const query_params = {};
1067
604
  query_params["collection_type"] = collectionType;
1068
605
 
@@ -1086,33 +623,13 @@ class Catalog {
1086
623
  responseData = response[0];
1087
624
  }
1088
625
 
1089
- const {
1090
- error: res_error,
1091
- } = CatalogApplicationModel.FollowIdsResponse().validate(responseData, {
1092
- abortEarly: false,
1093
- allowUnknown: true,
1094
- });
1095
-
1096
- if (res_error) {
1097
- if (this._conf.options.strictResponseCheck === true) {
1098
- return Promise.reject(new FDKResponseValidationError(res_error));
1099
- } else {
1100
- Logger({
1101
- level: "WARN",
1102
- message: `Response Validation Warnings for application > Catalog > getFollowIds \n ${res_error}`,
1103
- });
1104
- }
1105
- }
1106
-
1107
626
  return response;
1108
627
  }
1109
628
 
1110
629
  /**
1111
- * @param {CatalogApplicationValidator.GetFollowedListingParam} arg - Arg object.
1112
630
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1113
631
  * @param {import("../ApplicationAPIClient").Options} - Options
1114
- * @returns {Promise<CatalogApplicationModel.GetFollowListingResponse>} -
1115
- * Success response
632
+ * @returns {Promise<GetFollowListingResponse>} - Success response
1116
633
  * @name getFollowedListing
1117
634
  * @summary: List followed products, brands
1118
635
  * @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/).
@@ -1123,28 +640,6 @@ class Catalog {
1123
640
  },
1124
641
  { responseHeaders } = { responseHeaders: false }
1125
642
  ) {
1126
- const { error } = CatalogApplicationValidator.getFollowedListing().validate(
1127
- { collectionType, pageId, pageSize },
1128
- { abortEarly: false, allowUnknown: true }
1129
- );
1130
- if (error) {
1131
- return Promise.reject(new FDKClientValidationError(error));
1132
- }
1133
-
1134
- // Showing warrnings if extra unknown parameters are found
1135
- const {
1136
- error: warrning,
1137
- } = CatalogApplicationValidator.getFollowedListing().validate(
1138
- { collectionType, pageId, pageSize },
1139
- { abortEarly: false, allowUnknown: false }
1140
- );
1141
- if (warrning) {
1142
- Logger({
1143
- level: "WARN",
1144
- message: `Parameter Validation warrnings for application > Catalog > getFollowedListing \n ${warrning}`,
1145
- });
1146
- }
1147
-
1148
643
  const query_params = {};
1149
644
  query_params["page_id"] = pageId;
1150
645
  query_params["page_size"] = pageSize;
@@ -1169,24 +664,6 @@ class Catalog {
1169
664
  responseData = response[0];
1170
665
  }
1171
666
 
1172
- const {
1173
- error: res_error,
1174
- } = CatalogApplicationModel.GetFollowListingResponse().validate(
1175
- responseData,
1176
- { abortEarly: false, allowUnknown: true }
1177
- );
1178
-
1179
- if (res_error) {
1180
- if (this._conf.options.strictResponseCheck === true) {
1181
- return Promise.reject(new FDKResponseValidationError(res_error));
1182
- } else {
1183
- Logger({
1184
- level: "WARN",
1185
- message: `Response Validation Warnings for application > Catalog > getFollowedListing \n ${res_error}`,
1186
- });
1187
- }
1188
- }
1189
-
1190
667
  return response;
1191
668
  }
1192
669
 
@@ -1195,7 +672,7 @@ class Catalog {
1195
672
  * @param {string} arg.collectionType - Type of collection followed, i.e.
1196
673
  * products, brands, or collections.
1197
674
  * @param {number} [arg.pageSize] - Page ID to retrieve next set of results.
1198
- * @returns {Paginator<CatalogApplicationModel.GetFollowListingResponse>}
675
+ * @returns {Paginator<GetFollowListingResponse>}
1199
676
  * @summary: List followed products, brands
1200
677
  * @description: Get a list of products or brands the user is following.
1201
678
  */
@@ -1221,11 +698,9 @@ class Catalog {
1221
698
  }
1222
699
 
1223
700
  /**
1224
- * @param {CatalogApplicationValidator.GetFollowerCountByIdParam} arg - Arg object.
1225
701
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1226
702
  * @param {import("../ApplicationAPIClient").Options} - Options
1227
- * @returns {Promise<CatalogApplicationModel.FollowerCountResponse>} -
1228
- * Success response
703
+ * @returns {Promise<FollowerCountResponse>} - Success response
1229
704
  * @name getFollowerCountById
1230
705
  * @summary: Get follower count
1231
706
  * @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/).
@@ -1234,30 +709,6 @@ class Catalog {
1234
709
  { collectionType, collectionId, requestHeaders } = { requestHeaders: {} },
1235
710
  { responseHeaders } = { responseHeaders: false }
1236
711
  ) {
1237
- const {
1238
- error,
1239
- } = CatalogApplicationValidator.getFollowerCountById().validate(
1240
- { collectionType, collectionId },
1241
- { abortEarly: false, allowUnknown: true }
1242
- );
1243
- if (error) {
1244
- return Promise.reject(new FDKClientValidationError(error));
1245
- }
1246
-
1247
- // Showing warrnings if extra unknown parameters are found
1248
- const {
1249
- error: warrning,
1250
- } = CatalogApplicationValidator.getFollowerCountById().validate(
1251
- { collectionType, collectionId },
1252
- { abortEarly: false, allowUnknown: false }
1253
- );
1254
- if (warrning) {
1255
- Logger({
1256
- level: "WARN",
1257
- message: `Parameter Validation warrnings for application > Catalog > getFollowerCountById \n ${warrning}`,
1258
- });
1259
- }
1260
-
1261
712
  const query_params = {};
1262
713
 
1263
714
  const xHeaders = {};
@@ -1280,32 +731,13 @@ class Catalog {
1280
731
  responseData = response[0];
1281
732
  }
1282
733
 
1283
- const {
1284
- error: res_error,
1285
- } = CatalogApplicationModel.FollowerCountResponse().validate(responseData, {
1286
- abortEarly: false,
1287
- allowUnknown: true,
1288
- });
1289
-
1290
- if (res_error) {
1291
- if (this._conf.options.strictResponseCheck === true) {
1292
- return Promise.reject(new FDKResponseValidationError(res_error));
1293
- } else {
1294
- Logger({
1295
- level: "WARN",
1296
- message: `Response Validation Warnings for application > Catalog > getFollowerCountById \n ${res_error}`,
1297
- });
1298
- }
1299
- }
1300
-
1301
734
  return response;
1302
735
  }
1303
736
 
1304
737
  /**
1305
- * @param {CatalogApplicationValidator.GetHomeProductsParam} arg - Arg object.
1306
738
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1307
739
  * @param {import("../ApplicationAPIClient").Options} - Options
1308
- * @returns {Promise<CatalogApplicationModel.HomeListingResponse>} - Success response
740
+ * @returns {Promise<HomeListingResponse>} - Success response
1309
741
  * @name getHomeProducts
1310
742
  * @summary: List homepage-featured products
1311
743
  * @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/).
@@ -1314,28 +746,6 @@ class Catalog {
1314
746
  { sortOn, pageId, pageSize, requestHeaders } = { requestHeaders: {} },
1315
747
  { responseHeaders } = { responseHeaders: false }
1316
748
  ) {
1317
- const { error } = CatalogApplicationValidator.getHomeProducts().validate(
1318
- { sortOn, pageId, pageSize },
1319
- { abortEarly: false, allowUnknown: true }
1320
- );
1321
- if (error) {
1322
- return Promise.reject(new FDKClientValidationError(error));
1323
- }
1324
-
1325
- // Showing warrnings if extra unknown parameters are found
1326
- const {
1327
- error: warrning,
1328
- } = CatalogApplicationValidator.getHomeProducts().validate(
1329
- { sortOn, pageId, pageSize },
1330
- { abortEarly: false, allowUnknown: false }
1331
- );
1332
- if (warrning) {
1333
- Logger({
1334
- level: "WARN",
1335
- message: `Parameter Validation warrnings for application > Catalog > getHomeProducts \n ${warrning}`,
1336
- });
1337
- }
1338
-
1339
749
  const query_params = {};
1340
750
  query_params["sort_on"] = sortOn;
1341
751
  query_params["page_id"] = pageId;
@@ -1361,24 +771,6 @@ class Catalog {
1361
771
  responseData = response[0];
1362
772
  }
1363
773
 
1364
- const {
1365
- error: res_error,
1366
- } = CatalogApplicationModel.HomeListingResponse().validate(responseData, {
1367
- abortEarly: false,
1368
- allowUnknown: true,
1369
- });
1370
-
1371
- if (res_error) {
1372
- if (this._conf.options.strictResponseCheck === true) {
1373
- return Promise.reject(new FDKResponseValidationError(res_error));
1374
- } else {
1375
- Logger({
1376
- level: "WARN",
1377
- message: `Response Validation Warnings for application > Catalog > getHomeProducts \n ${res_error}`,
1378
- });
1379
- }
1380
- }
1381
-
1382
774
  return response;
1383
775
  }
1384
776
 
@@ -1388,7 +780,7 @@ class Catalog {
1388
780
  * should be sorted, e.g. popularity, price, latest and discount, in
1389
781
  * either ascending or descending order.
1390
782
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
1391
- * @returns {Paginator<CatalogApplicationModel.HomeListingResponse>}
783
+ * @returns {Paginator<HomeListingResponse>}
1392
784
  * @summary: List homepage-featured products
1393
785
  * @description: List all the products associated with a brand, collection or category in a random order.
1394
786
  */
@@ -1414,11 +806,9 @@ class Catalog {
1414
806
  }
1415
807
 
1416
808
  /**
1417
- * @param {CatalogApplicationValidator.GetInStockLocationsParam} arg - Arg object.
1418
809
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1419
810
  * @param {import("../ApplicationAPIClient").Options} - Options
1420
- * @returns {Promise<CatalogApplicationModel.ApplicationStoreListing>} -
1421
- * Success response
811
+ * @returns {Promise<ApplicationStoreListing>} - Success response
1422
812
  * @name getInStockLocations
1423
813
  * @summary: List stores with inventory
1424
814
  * @description: List stores where specified products are currently in stock. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getInStockLocations/).
@@ -1436,30 +826,6 @@ class Catalog {
1436
826
  } = { requestHeaders: {} },
1437
827
  { responseHeaders } = { responseHeaders: false }
1438
828
  ) {
1439
- const {
1440
- error,
1441
- } = CatalogApplicationValidator.getInStockLocations().validate(
1442
- { pageNo, pageSize, q, city, range, latitude, longitude },
1443
- { abortEarly: false, allowUnknown: true }
1444
- );
1445
- if (error) {
1446
- return Promise.reject(new FDKClientValidationError(error));
1447
- }
1448
-
1449
- // Showing warrnings if extra unknown parameters are found
1450
- const {
1451
- error: warrning,
1452
- } = CatalogApplicationValidator.getInStockLocations().validate(
1453
- { pageNo, pageSize, q, city, range, latitude, longitude },
1454
- { abortEarly: false, allowUnknown: false }
1455
- );
1456
- if (warrning) {
1457
- Logger({
1458
- level: "WARN",
1459
- message: `Parameter Validation warrnings for application > Catalog > getInStockLocations \n ${warrning}`,
1460
- });
1461
- }
1462
-
1463
829
  const query_params = {};
1464
830
  query_params["page_no"] = pageNo;
1465
831
  query_params["page_size"] = pageSize;
@@ -1489,24 +855,6 @@ class Catalog {
1489
855
  responseData = response[0];
1490
856
  }
1491
857
 
1492
- const {
1493
- error: res_error,
1494
- } = CatalogApplicationModel.ApplicationStoreListing().validate(
1495
- responseData,
1496
- { abortEarly: false, allowUnknown: true }
1497
- );
1498
-
1499
- if (res_error) {
1500
- if (this._conf.options.strictResponseCheck === true) {
1501
- return Promise.reject(new FDKResponseValidationError(res_error));
1502
- } else {
1503
- Logger({
1504
- level: "WARN",
1505
- message: `Response Validation Warnings for application > Catalog > getInStockLocations \n ${res_error}`,
1506
- });
1507
- }
1508
- }
1509
-
1510
858
  return response;
1511
859
  }
1512
860
 
@@ -1521,7 +869,7 @@ class Catalog {
1521
869
  * wants to retrieve the nearest stores, e.g. 72.8691788.
1522
870
  * @param {number} [arg.longitude] - Longitude of the location from where
1523
871
  * one wants to retrieve the nearest stores, e.g. 19.1174114.
1524
- * @returns {Paginator<CatalogApplicationModel.ApplicationStoreListing>}
872
+ * @returns {Paginator<ApplicationStoreListing>}
1525
873
  * @summary: List stores with inventory
1526
874
  * @description: List stores where specified products are currently in stock.
1527
875
  */
@@ -1558,10 +906,9 @@ class Catalog {
1558
906
  }
1559
907
 
1560
908
  /**
1561
- * @param {CatalogApplicationValidator.GetLocationDetailsByIdParam} arg - Arg object.
1562
909
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1563
910
  * @param {import("../ApplicationAPIClient").Options} - Options
1564
- * @returns {Promise<CatalogApplicationModel.StoreDetails>} - Success response
911
+ * @returns {Promise<StoreDetails>} - Success response
1565
912
  * @name getLocationDetailsById
1566
913
  * @summary: Get selling location
1567
914
  * @description: Get details about a store based on its location Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getLocationDetailsById/).
@@ -1570,30 +917,6 @@ class Catalog {
1570
917
  { locationId, requestHeaders } = { requestHeaders: {} },
1571
918
  { responseHeaders } = { responseHeaders: false }
1572
919
  ) {
1573
- const {
1574
- error,
1575
- } = CatalogApplicationValidator.getLocationDetailsById().validate(
1576
- { locationId },
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
- } = CatalogApplicationValidator.getLocationDetailsById().validate(
1587
- { locationId },
1588
- { abortEarly: false, allowUnknown: false }
1589
- );
1590
- if (warrning) {
1591
- Logger({
1592
- level: "WARN",
1593
- message: `Parameter Validation warrnings for application > Catalog > getLocationDetailsById \n ${warrning}`,
1594
- });
1595
- }
1596
-
1597
920
  const query_params = {};
1598
921
 
1599
922
  const xHeaders = {};
@@ -1616,32 +939,13 @@ class Catalog {
1616
939
  responseData = response[0];
1617
940
  }
1618
941
 
1619
- const {
1620
- error: res_error,
1621
- } = CatalogApplicationModel.StoreDetails().validate(responseData, {
1622
- abortEarly: false,
1623
- allowUnknown: true,
1624
- });
1625
-
1626
- if (res_error) {
1627
- if (this._conf.options.strictResponseCheck === true) {
1628
- return Promise.reject(new FDKResponseValidationError(res_error));
1629
- } else {
1630
- Logger({
1631
- level: "WARN",
1632
- message: `Response Validation Warnings for application > Catalog > getLocationDetailsById \n ${res_error}`,
1633
- });
1634
- }
1635
- }
1636
-
1637
942
  return response;
1638
943
  }
1639
944
 
1640
945
  /**
1641
- * @param {CatalogApplicationValidator.GetProductBundlesBySlugParam} arg - Arg object.
1642
946
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1643
947
  * @param {import("../ApplicationAPIClient").Options} - Options
1644
- * @returns {Promise<CatalogApplicationModel.ProductBundle>} - Success response
948
+ * @returns {Promise<ProductBundle>} - Success response
1645
949
  * @name getProductBundlesBySlug
1646
950
  * @summary: List product bundles
1647
951
  * @description: Get products bundles to the one specified by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductBundlesBySlug/).
@@ -1650,30 +954,6 @@ class Catalog {
1650
954
  { slug, id, requestHeaders } = { requestHeaders: {} },
1651
955
  { responseHeaders } = { responseHeaders: false }
1652
956
  ) {
1653
- const {
1654
- error,
1655
- } = CatalogApplicationValidator.getProductBundlesBySlug().validate(
1656
- { slug, id },
1657
- { abortEarly: false, allowUnknown: true }
1658
- );
1659
- if (error) {
1660
- return Promise.reject(new FDKClientValidationError(error));
1661
- }
1662
-
1663
- // Showing warrnings if extra unknown parameters are found
1664
- const {
1665
- error: warrning,
1666
- } = CatalogApplicationValidator.getProductBundlesBySlug().validate(
1667
- { slug, id },
1668
- { abortEarly: false, allowUnknown: false }
1669
- );
1670
- if (warrning) {
1671
- Logger({
1672
- level: "WARN",
1673
- message: `Parameter Validation warrnings for application > Catalog > getProductBundlesBySlug \n ${warrning}`,
1674
- });
1675
- }
1676
-
1677
957
  const query_params = {};
1678
958
  query_params["slug"] = slug;
1679
959
  query_params["id"] = id;
@@ -1698,35 +978,13 @@ class Catalog {
1698
978
  responseData = response[0];
1699
979
  }
1700
980
 
1701
- const {
1702
- error: res_error,
1703
- } = CatalogApplicationModel.ProductBundle().validate(responseData, {
1704
- abortEarly: false,
1705
- allowUnknown: true,
1706
- });
1707
-
1708
- if (res_error) {
1709
- if (this._conf.options.strictResponseCheck === true) {
1710
- return Promise.reject(new FDKResponseValidationError(res_error));
1711
- } else {
1712
- Logger({
1713
- level: "WARN",
1714
- message: `Response Validation Warnings for application > Catalog > getProductBundlesBySlug \n ${res_error}`,
1715
- });
1716
- }
1717
- }
1718
-
1719
981
  return response;
1720
982
  }
1721
983
 
1722
984
  /**
1723
- * @param {CatalogApplicationValidator.GetProductComparisonBySlugsParam} arg
1724
- * - Arg object.
1725
- *
1726
985
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1727
986
  * @param {import("../ApplicationAPIClient").Options} - Options
1728
- * @returns {Promise<CatalogApplicationModel.ProductsComparisonResponse>} -
1729
- * Success response
987
+ * @returns {Promise<ProductsComparisonResponse>} - Success response
1730
988
  * @name getProductComparisonBySlugs
1731
989
  * @summary: List products for comparison
1732
990
  * @description: Get all the products that have the same category. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductComparisonBySlugs/).
@@ -1735,30 +993,6 @@ class Catalog {
1735
993
  { slug, requestHeaders } = { requestHeaders: {} },
1736
994
  { responseHeaders } = { responseHeaders: false }
1737
995
  ) {
1738
- const {
1739
- error,
1740
- } = CatalogApplicationValidator.getProductComparisonBySlugs().validate(
1741
- { slug },
1742
- { abortEarly: false, allowUnknown: true }
1743
- );
1744
- if (error) {
1745
- return Promise.reject(new FDKClientValidationError(error));
1746
- }
1747
-
1748
- // Showing warrnings if extra unknown parameters are found
1749
- const {
1750
- error: warrning,
1751
- } = CatalogApplicationValidator.getProductComparisonBySlugs().validate(
1752
- { slug },
1753
- { abortEarly: false, allowUnknown: false }
1754
- );
1755
- if (warrning) {
1756
- Logger({
1757
- level: "WARN",
1758
- message: `Parameter Validation warrnings for application > Catalog > getProductComparisonBySlugs \n ${warrning}`,
1759
- });
1760
- }
1761
-
1762
996
  const query_params = {};
1763
997
  query_params["slug"] = slug;
1764
998
 
@@ -1782,32 +1016,13 @@ class Catalog {
1782
1016
  responseData = response[0];
1783
1017
  }
1784
1018
 
1785
- const {
1786
- error: res_error,
1787
- } = CatalogApplicationModel.ProductsComparisonResponse().validate(
1788
- responseData,
1789
- { abortEarly: false, allowUnknown: true }
1790
- );
1791
-
1792
- if (res_error) {
1793
- if (this._conf.options.strictResponseCheck === true) {
1794
- return Promise.reject(new FDKResponseValidationError(res_error));
1795
- } else {
1796
- Logger({
1797
- level: "WARN",
1798
- message: `Response Validation Warnings for application > Catalog > getProductComparisonBySlugs \n ${res_error}`,
1799
- });
1800
- }
1801
- }
1802
-
1803
1019
  return response;
1804
1020
  }
1805
1021
 
1806
1022
  /**
1807
- * @param {CatalogApplicationValidator.GetProductDetailBySlugParam} arg - Arg object.
1808
1023
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1809
1024
  * @param {import("../ApplicationAPIClient").Options} - Options
1810
- * @returns {Promise<CatalogApplicationModel.ProductDetail>} - Success response
1025
+ * @returns {Promise<ProductDetail>} - Success response
1811
1026
  * @name getProductDetailBySlug
1812
1027
  * @summary: Get a product
1813
1028
  * @description: Get product details such as price, attributes, HSN code, SKU code, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductDetailBySlug/).
@@ -1816,30 +1031,6 @@ class Catalog {
1816
1031
  { slug, requestHeaders } = { requestHeaders: {} },
1817
1032
  { responseHeaders } = { responseHeaders: false }
1818
1033
  ) {
1819
- const {
1820
- error,
1821
- } = CatalogApplicationValidator.getProductDetailBySlug().validate(
1822
- { slug },
1823
- { abortEarly: false, allowUnknown: true }
1824
- );
1825
- if (error) {
1826
- return Promise.reject(new FDKClientValidationError(error));
1827
- }
1828
-
1829
- // Showing warrnings if extra unknown parameters are found
1830
- const {
1831
- error: warrning,
1832
- } = CatalogApplicationValidator.getProductDetailBySlug().validate(
1833
- { slug },
1834
- { abortEarly: false, allowUnknown: false }
1835
- );
1836
- if (warrning) {
1837
- Logger({
1838
- level: "WARN",
1839
- message: `Parameter Validation warrnings for application > Catalog > getProductDetailBySlug \n ${warrning}`,
1840
- });
1841
- }
1842
-
1843
1034
  const query_params = {};
1844
1035
 
1845
1036
  const xHeaders = {};
@@ -1862,33 +1053,13 @@ class Catalog {
1862
1053
  responseData = response[0];
1863
1054
  }
1864
1055
 
1865
- const {
1866
- error: res_error,
1867
- } = CatalogApplicationModel.ProductDetail().validate(responseData, {
1868
- abortEarly: false,
1869
- allowUnknown: true,
1870
- });
1871
-
1872
- if (res_error) {
1873
- if (this._conf.options.strictResponseCheck === true) {
1874
- return Promise.reject(new FDKResponseValidationError(res_error));
1875
- } else {
1876
- Logger({
1877
- level: "WARN",
1878
- message: `Response Validation Warnings for application > Catalog > getProductDetailBySlug \n ${res_error}`,
1879
- });
1880
- }
1881
- }
1882
-
1883
1056
  return response;
1884
1057
  }
1885
1058
 
1886
1059
  /**
1887
- * @param {CatalogApplicationValidator.GetProductPriceBySlugParam} arg - Arg object.
1888
1060
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1889
1061
  * @param {import("../ApplicationAPIClient").Options} - Options
1890
- * @returns {Promise<CatalogApplicationModel.ProductSizePriceResponseV3>} -
1891
- * Success response
1062
+ * @returns {Promise<ProductSizePriceResponseV3>} - Success response
1892
1063
  * @name getProductPriceBySlug
1893
1064
  * @summary: Get product price
1894
1065
  * @description: Get the price of a product size at all the selling locations near to a PIN Code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductPriceBySlug/).
@@ -1897,30 +1068,6 @@ class Catalog {
1897
1068
  { slug, size, storeId, moq, requestHeaders } = { requestHeaders: {} },
1898
1069
  { responseHeaders } = { responseHeaders: false }
1899
1070
  ) {
1900
- const {
1901
- error,
1902
- } = CatalogApplicationValidator.getProductPriceBySlug().validate(
1903
- { slug, size, storeId, moq },
1904
- { abortEarly: false, allowUnknown: true }
1905
- );
1906
- if (error) {
1907
- return Promise.reject(new FDKClientValidationError(error));
1908
- }
1909
-
1910
- // Showing warrnings if extra unknown parameters are found
1911
- const {
1912
- error: warrning,
1913
- } = CatalogApplicationValidator.getProductPriceBySlug().validate(
1914
- { slug, size, storeId, moq },
1915
- { abortEarly: false, allowUnknown: false }
1916
- );
1917
- if (warrning) {
1918
- Logger({
1919
- level: "WARN",
1920
- message: `Parameter Validation warrnings for application > Catalog > getProductPriceBySlug \n ${warrning}`,
1921
- });
1922
- }
1923
-
1924
1071
  const query_params = {};
1925
1072
  query_params["store_id"] = storeId;
1926
1073
  query_params["moq"] = moq;
@@ -1945,34 +1092,13 @@ class Catalog {
1945
1092
  responseData = response[0];
1946
1093
  }
1947
1094
 
1948
- const {
1949
- error: res_error,
1950
- } = CatalogApplicationModel.ProductSizePriceResponseV3().validate(
1951
- responseData,
1952
- { abortEarly: false, allowUnknown: true }
1953
- );
1954
-
1955
- if (res_error) {
1956
- if (this._conf.options.strictResponseCheck === true) {
1957
- return Promise.reject(new FDKResponseValidationError(res_error));
1958
- } else {
1959
- Logger({
1960
- level: "WARN",
1961
- message: `Response Validation Warnings for application > Catalog > getProductPriceBySlug \n ${res_error}`,
1962
- });
1963
- }
1964
- }
1965
-
1966
1095
  return response;
1967
1096
  }
1968
1097
 
1969
1098
  /**
1970
- * @param {CatalogApplicationValidator.GetProductSellersBySlugParam} arg - Arg object.
1971
1099
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1972
1100
  * @param {import("../ApplicationAPIClient").Options} - Options
1973
- * @returns {Promise<CatalogApplicationModel.ProductSizeSellersResponseV3>}
1974
- * - Success response
1975
- *
1101
+ * @returns {Promise<ProductSizeSellersResponseV3>} - Success response
1976
1102
  * @name getProductSellersBySlug
1977
1103
  * @summary: List sellers
1978
1104
  * @description: List all sellers offering a specific product identified by its slug and size. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductSellersBySlug/).
@@ -1983,30 +1109,6 @@ class Catalog {
1983
1109
  },
1984
1110
  { responseHeaders } = { responseHeaders: false }
1985
1111
  ) {
1986
- const {
1987
- error,
1988
- } = CatalogApplicationValidator.getProductSellersBySlug().validate(
1989
- { slug, size, strategy, pageNo, pageSize },
1990
- { abortEarly: false, allowUnknown: true }
1991
- );
1992
- if (error) {
1993
- return Promise.reject(new FDKClientValidationError(error));
1994
- }
1995
-
1996
- // Showing warrnings if extra unknown parameters are found
1997
- const {
1998
- error: warrning,
1999
- } = CatalogApplicationValidator.getProductSellersBySlug().validate(
2000
- { slug, size, strategy, pageNo, pageSize },
2001
- { abortEarly: false, allowUnknown: false }
2002
- );
2003
- if (warrning) {
2004
- Logger({
2005
- level: "WARN",
2006
- message: `Parameter Validation warrnings for application > Catalog > getProductSellersBySlug \n ${warrning}`,
2007
- });
2008
- }
2009
-
2010
1112
  const query_params = {};
2011
1113
  query_params["strategy"] = strategy;
2012
1114
  query_params["page_no"] = pageNo;
@@ -2032,24 +1134,6 @@ class Catalog {
2032
1134
  responseData = response[0];
2033
1135
  }
2034
1136
 
2035
- const {
2036
- error: res_error,
2037
- } = CatalogApplicationModel.ProductSizeSellersResponseV3().validate(
2038
- responseData,
2039
- { abortEarly: false, allowUnknown: true }
2040
- );
2041
-
2042
- if (res_error) {
2043
- if (this._conf.options.strictResponseCheck === true) {
2044
- return Promise.reject(new FDKResponseValidationError(res_error));
2045
- } else {
2046
- Logger({
2047
- level: "WARN",
2048
- message: `Response Validation Warnings for application > Catalog > getProductSellersBySlug \n ${res_error}`,
2049
- });
2050
- }
2051
- }
2052
-
2053
1137
  return response;
2054
1138
  }
2055
1139
 
@@ -2064,7 +1148,7 @@ class Catalog {
2064
1148
  * @param {string} [arg.strategy] - Sort stores on the basis of strategy.
2065
1149
  * eg, fast-delivery, low-price, optimal.
2066
1150
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
2067
- * @returns {Paginator<CatalogApplicationModel.ProductSizeSellersResponseV3>}
1151
+ * @returns {Paginator<ProductSizeSellersResponseV3>}
2068
1152
  * @summary: List sellers
2069
1153
  * @description: List all sellers offering a specific product identified by its slug and size.
2070
1154
  */
@@ -2092,10 +1176,9 @@ class Catalog {
2092
1176
  }
2093
1177
 
2094
1178
  /**
2095
- * @param {CatalogApplicationValidator.GetProductSizesBySlugParam} arg - Arg object.
2096
1179
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2097
1180
  * @param {import("../ApplicationAPIClient").Options} - Options
2098
- * @returns {Promise<CatalogApplicationModel.ProductSizes>} - Success response
1181
+ * @returns {Promise<ProductSizes>} - Success response
2099
1182
  * @name getProductSizesBySlug
2100
1183
  * @summary: List sizes
2101
1184
  * @description: Provides detailed information about a product, including its availability (sellable), available sizes with quantities, dimensions, weight, availability status, price details (marked, effective, selling), minimum order quantity (MOQ). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductSizesBySlug/).
@@ -2104,30 +1187,6 @@ class Catalog {
2104
1187
  { slug, storeId, requestHeaders } = { requestHeaders: {} },
2105
1188
  { responseHeaders } = { responseHeaders: false }
2106
1189
  ) {
2107
- const {
2108
- error,
2109
- } = CatalogApplicationValidator.getProductSizesBySlug().validate(
2110
- { slug, storeId },
2111
- { abortEarly: false, allowUnknown: true }
2112
- );
2113
- if (error) {
2114
- return Promise.reject(new FDKClientValidationError(error));
2115
- }
2116
-
2117
- // Showing warrnings if extra unknown parameters are found
2118
- const {
2119
- error: warrning,
2120
- } = CatalogApplicationValidator.getProductSizesBySlug().validate(
2121
- { slug, storeId },
2122
- { abortEarly: false, allowUnknown: false }
2123
- );
2124
- if (warrning) {
2125
- Logger({
2126
- level: "WARN",
2127
- message: `Parameter Validation warrnings for application > Catalog > getProductSizesBySlug \n ${warrning}`,
2128
- });
2129
- }
2130
-
2131
1190
  const query_params = {};
2132
1191
  query_params["store_id"] = storeId;
2133
1192
 
@@ -2151,33 +1210,13 @@ class Catalog {
2151
1210
  responseData = response[0];
2152
1211
  }
2153
1212
 
2154
- const {
2155
- error: res_error,
2156
- } = CatalogApplicationModel.ProductSizes().validate(responseData, {
2157
- abortEarly: false,
2158
- allowUnknown: true,
2159
- });
2160
-
2161
- if (res_error) {
2162
- if (this._conf.options.strictResponseCheck === true) {
2163
- return Promise.reject(new FDKResponseValidationError(res_error));
2164
- } else {
2165
- Logger({
2166
- level: "WARN",
2167
- message: `Response Validation Warnings for application > Catalog > getProductSizesBySlug \n ${res_error}`,
2168
- });
2169
- }
2170
- }
2171
-
2172
1213
  return response;
2173
1214
  }
2174
1215
 
2175
1216
  /**
2176
- * @param {CatalogApplicationValidator.GetProductStockByIdsParam} arg - Arg object.
2177
1217
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2178
1218
  * @param {import("../ApplicationAPIClient").Options} - Options
2179
- * @returns {Promise<CatalogApplicationModel.ProductStockStatusResponse>} -
2180
- * Success response
1219
+ * @returns {Promise<ProductStockStatusResponse>} - Success response
2181
1220
  * @name getProductStockByIds
2182
1221
  * @summary: Get product stocks
2183
1222
  * @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/).
@@ -2186,30 +1225,6 @@ class Catalog {
2186
1225
  { itemId, alu, skuCode, ean, upc, requestHeaders } = { requestHeaders: {} },
2187
1226
  { responseHeaders } = { responseHeaders: false }
2188
1227
  ) {
2189
- const {
2190
- error,
2191
- } = CatalogApplicationValidator.getProductStockByIds().validate(
2192
- { itemId, alu, skuCode, ean, upc },
2193
- { abortEarly: false, allowUnknown: true }
2194
- );
2195
- if (error) {
2196
- return Promise.reject(new FDKClientValidationError(error));
2197
- }
2198
-
2199
- // Showing warrnings if extra unknown parameters are found
2200
- const {
2201
- error: warrning,
2202
- } = CatalogApplicationValidator.getProductStockByIds().validate(
2203
- { itemId, alu, skuCode, ean, upc },
2204
- { abortEarly: false, allowUnknown: false }
2205
- );
2206
- if (warrning) {
2207
- Logger({
2208
- level: "WARN",
2209
- message: `Parameter Validation warrnings for application > Catalog > getProductStockByIds \n ${warrning}`,
2210
- });
2211
- }
2212
-
2213
1228
  const query_params = {};
2214
1229
  query_params["item_id"] = itemId;
2215
1230
  query_params["alu"] = alu;
@@ -2237,34 +1252,13 @@ class Catalog {
2237
1252
  responseData = response[0];
2238
1253
  }
2239
1254
 
2240
- const {
2241
- error: res_error,
2242
- } = CatalogApplicationModel.ProductStockStatusResponse().validate(
2243
- responseData,
2244
- { abortEarly: false, allowUnknown: true }
2245
- );
2246
-
2247
- if (res_error) {
2248
- if (this._conf.options.strictResponseCheck === true) {
2249
- return Promise.reject(new FDKResponseValidationError(res_error));
2250
- } else {
2251
- Logger({
2252
- level: "WARN",
2253
- message: `Response Validation Warnings for application > Catalog > getProductStockByIds \n ${res_error}`,
2254
- });
2255
- }
2256
- }
2257
-
2258
1255
  return response;
2259
1256
  }
2260
1257
 
2261
1258
  /**
2262
- * @param {CatalogApplicationValidator.GetProductStockForTimeByIdsParam} arg
2263
- * - Arg object.
2264
- *
2265
1259
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2266
1260
  * @param {import("../ApplicationAPIClient").Options} - Options
2267
- * @returns {Promise<CatalogApplicationModel.ProductStockPolling>} - Success response
1261
+ * @returns {Promise<ProductStockPolling>} - Success response
2268
1262
  * @name getProductStockForTimeByIds
2269
1263
  * @summary: List future stock
2270
1264
  * @description: Get the available stock levels for all products associated with a particular sales channel at a specified future time. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductStockForTimeByIds/).
@@ -2273,30 +1267,6 @@ class Catalog {
2273
1267
  { timestamp, pageSize, pageId, requestHeaders } = { requestHeaders: {} },
2274
1268
  { responseHeaders } = { responseHeaders: false }
2275
1269
  ) {
2276
- const {
2277
- error,
2278
- } = CatalogApplicationValidator.getProductStockForTimeByIds().validate(
2279
- { timestamp, pageSize, pageId },
2280
- { abortEarly: false, allowUnknown: true }
2281
- );
2282
- if (error) {
2283
- return Promise.reject(new FDKClientValidationError(error));
2284
- }
2285
-
2286
- // Showing warrnings if extra unknown parameters are found
2287
- const {
2288
- error: warrning,
2289
- } = CatalogApplicationValidator.getProductStockForTimeByIds().validate(
2290
- { timestamp, pageSize, pageId },
2291
- { abortEarly: false, allowUnknown: false }
2292
- );
2293
- if (warrning) {
2294
- Logger({
2295
- level: "WARN",
2296
- message: `Parameter Validation warrnings for application > Catalog > getProductStockForTimeByIds \n ${warrning}`,
2297
- });
2298
- }
2299
-
2300
1270
  const query_params = {};
2301
1271
  query_params["timestamp"] = timestamp;
2302
1272
  query_params["page_size"] = pageSize;
@@ -2322,24 +1292,6 @@ class Catalog {
2322
1292
  responseData = response[0];
2323
1293
  }
2324
1294
 
2325
- const {
2326
- error: res_error,
2327
- } = CatalogApplicationModel.ProductStockPolling().validate(responseData, {
2328
- abortEarly: false,
2329
- allowUnknown: true,
2330
- });
2331
-
2332
- if (res_error) {
2333
- if (this._conf.options.strictResponseCheck === true) {
2334
- return Promise.reject(new FDKResponseValidationError(res_error));
2335
- } else {
2336
- Logger({
2337
- level: "WARN",
2338
- message: `Response Validation Warnings for application > Catalog > getProductStockForTimeByIds \n ${res_error}`,
2339
- });
2340
- }
2341
- }
2342
-
2343
1295
  return response;
2344
1296
  }
2345
1297
 
@@ -2347,7 +1299,7 @@ class Catalog {
2347
1299
  * @param {Object} arg - Arg object.
2348
1300
  * @param {string} arg.timestamp - Timestamp in UTC format (2020-07-23T10:27:50Z).
2349
1301
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
2350
- * @returns {Paginator<CatalogApplicationModel.ProductStockPolling>}
1302
+ * @returns {Paginator<ProductStockPolling>}
2351
1303
  * @summary: List future stock
2352
1304
  * @description: Get the available stock levels for all products associated with a particular sales channel at a specified future time.
2353
1305
  */
@@ -2373,12 +1325,9 @@ class Catalog {
2373
1325
  }
2374
1326
 
2375
1327
  /**
2376
- * @param {CatalogApplicationValidator.GetProductVariantsBySlugParam} arg -
2377
- * Arg object.
2378
1328
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2379
1329
  * @param {import("../ApplicationAPIClient").Options} - Options
2380
- * @returns {Promise<CatalogApplicationModel.ProductVariantsResponse>} -
2381
- * Success response
1330
+ * @returns {Promise<ProductVariantsResponse>} - Success response
2382
1331
  * @name getProductVariantsBySlug
2383
1332
  * @summary: List product variants
2384
1333
  * @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/).
@@ -2387,30 +1336,6 @@ class Catalog {
2387
1336
  { slug, requestHeaders } = { requestHeaders: {} },
2388
1337
  { responseHeaders } = { responseHeaders: false }
2389
1338
  ) {
2390
- const {
2391
- error,
2392
- } = CatalogApplicationValidator.getProductVariantsBySlug().validate(
2393
- { slug },
2394
- { abortEarly: false, allowUnknown: true }
2395
- );
2396
- if (error) {
2397
- return Promise.reject(new FDKClientValidationError(error));
2398
- }
2399
-
2400
- // Showing warrnings if extra unknown parameters are found
2401
- const {
2402
- error: warrning,
2403
- } = CatalogApplicationValidator.getProductVariantsBySlug().validate(
2404
- { slug },
2405
- { abortEarly: false, allowUnknown: false }
2406
- );
2407
- if (warrning) {
2408
- Logger({
2409
- level: "WARN",
2410
- message: `Parameter Validation warrnings for application > Catalog > getProductVariantsBySlug \n ${warrning}`,
2411
- });
2412
- }
2413
-
2414
1339
  const query_params = {};
2415
1340
 
2416
1341
  const xHeaders = {};
@@ -2433,33 +1358,13 @@ class Catalog {
2433
1358
  responseData = response[0];
2434
1359
  }
2435
1360
 
2436
- const {
2437
- error: res_error,
2438
- } = CatalogApplicationModel.ProductVariantsResponse().validate(
2439
- responseData,
2440
- { abortEarly: false, allowUnknown: true }
2441
- );
2442
-
2443
- if (res_error) {
2444
- if (this._conf.options.strictResponseCheck === true) {
2445
- return Promise.reject(new FDKResponseValidationError(res_error));
2446
- } else {
2447
- Logger({
2448
- level: "WARN",
2449
- message: `Response Validation Warnings for application > Catalog > getProductVariantsBySlug \n ${res_error}`,
2450
- });
2451
- }
2452
- }
2453
-
2454
1361
  return response;
2455
1362
  }
2456
1363
 
2457
1364
  /**
2458
- * @param {CatalogApplicationValidator.GetProductsParam} arg - Arg object.
2459
1365
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2460
1366
  * @param {import("../ApplicationAPIClient").Options} - Options
2461
- * @returns {Promise<CatalogApplicationModel.ProductListingResponse>} -
2462
- * Success response
1367
+ * @returns {Promise<ProductListingResponse>} - Success response
2463
1368
  * @name getProducts
2464
1369
  * @summary: List products
2465
1370
  * @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/).
@@ -2478,28 +1383,6 @@ class Catalog {
2478
1383
  } = { requestHeaders: {} },
2479
1384
  { responseHeaders } = { responseHeaders: false }
2480
1385
  ) {
2481
- const { error } = CatalogApplicationValidator.getProducts().validate(
2482
- { q, f, filters, sortOn, pageId, pageSize, pageNo, pageType },
2483
- { abortEarly: false, allowUnknown: true }
2484
- );
2485
- if (error) {
2486
- return Promise.reject(new FDKClientValidationError(error));
2487
- }
2488
-
2489
- // Showing warrnings if extra unknown parameters are found
2490
- const {
2491
- error: warrning,
2492
- } = CatalogApplicationValidator.getProducts().validate(
2493
- { q, f, filters, sortOn, pageId, pageSize, pageNo, pageType },
2494
- { abortEarly: false, allowUnknown: false }
2495
- );
2496
- if (warrning) {
2497
- Logger({
2498
- level: "WARN",
2499
- message: `Parameter Validation warrnings for application > Catalog > getProducts \n ${warrning}`,
2500
- });
2501
- }
2502
-
2503
1386
  const query_params = {};
2504
1387
  query_params["q"] = q;
2505
1388
  query_params["f"] = f;
@@ -2530,24 +1413,6 @@ class Catalog {
2530
1413
  responseData = response[0];
2531
1414
  }
2532
1415
 
2533
- const {
2534
- error: res_error,
2535
- } = CatalogApplicationModel.ProductListingResponse().validate(
2536
- responseData,
2537
- { abortEarly: false, allowUnknown: true }
2538
- );
2539
-
2540
- if (res_error) {
2541
- if (this._conf.options.strictResponseCheck === true) {
2542
- return Promise.reject(new FDKResponseValidationError(res_error));
2543
- } else {
2544
- Logger({
2545
- level: "WARN",
2546
- message: `Response Validation Warnings for application > Catalog > getProducts \n ${res_error}`,
2547
- });
2548
- }
2549
- }
2550
-
2551
1416
  return response;
2552
1417
  }
2553
1418
 
@@ -2565,7 +1430,7 @@ class Catalog {
2565
1430
  * should be sorted, e.g. popularity, price, latest and discount, in
2566
1431
  * either ascending or descending order. See the supported values below.
2567
1432
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
2568
- * @returns {Paginator<CatalogApplicationModel.ProductListingResponse>}
1433
+ * @returns {Paginator<ProductListingResponse>}
2569
1434
  * @summary: List products
2570
1435
  * @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.
2571
1436
  */
@@ -2596,10 +1461,9 @@ class Catalog {
2596
1461
  }
2597
1462
 
2598
1463
  /**
2599
- * @param {CatalogApplicationValidator.GetSearchResultsParam} arg - Arg object.
2600
1464
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2601
1465
  * @param {import("../ApplicationAPIClient").Options} - Options
2602
- * @returns {Promise<CatalogApplicationModel.AutoCompleteResponse>} - Success response
1466
+ * @returns {Promise<AutoCompleteResponse>} - Success response
2603
1467
  * @name getSearchResults
2604
1468
  * @summary: List product, brand, category
2605
1469
  * @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/).
@@ -2608,28 +1472,6 @@ class Catalog {
2608
1472
  { q, requestHeaders } = { requestHeaders: {} },
2609
1473
  { responseHeaders } = { responseHeaders: false }
2610
1474
  ) {
2611
- const { error } = CatalogApplicationValidator.getSearchResults().validate(
2612
- { q },
2613
- { abortEarly: false, allowUnknown: true }
2614
- );
2615
- if (error) {
2616
- return Promise.reject(new FDKClientValidationError(error));
2617
- }
2618
-
2619
- // Showing warrnings if extra unknown parameters are found
2620
- const {
2621
- error: warrning,
2622
- } = CatalogApplicationValidator.getSearchResults().validate(
2623
- { q },
2624
- { abortEarly: false, allowUnknown: false }
2625
- );
2626
- if (warrning) {
2627
- Logger({
2628
- level: "WARN",
2629
- message: `Parameter Validation warrnings for application > Catalog > getSearchResults \n ${warrning}`,
2630
- });
2631
- }
2632
-
2633
1475
  const query_params = {};
2634
1476
  query_params["q"] = q;
2635
1477
 
@@ -2653,35 +1495,13 @@ class Catalog {
2653
1495
  responseData = response[0];
2654
1496
  }
2655
1497
 
2656
- const {
2657
- error: res_error,
2658
- } = CatalogApplicationModel.AutoCompleteResponse().validate(responseData, {
2659
- abortEarly: false,
2660
- allowUnknown: true,
2661
- });
2662
-
2663
- if (res_error) {
2664
- if (this._conf.options.strictResponseCheck === true) {
2665
- return Promise.reject(new FDKResponseValidationError(res_error));
2666
- } else {
2667
- Logger({
2668
- level: "WARN",
2669
- message: `Response Validation Warnings for application > Catalog > getSearchResults \n ${res_error}`,
2670
- });
2671
- }
2672
- }
2673
-
2674
1498
  return response;
2675
1499
  }
2676
1500
 
2677
1501
  /**
2678
- * @param {CatalogApplicationValidator.GetSimilarComparisonProductBySlugParam} arg
2679
- * - Arg object.
2680
- *
2681
1502
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2682
1503
  * @param {import("../ApplicationAPIClient").Options} - Options
2683
- * @returns {Promise<CatalogApplicationModel.ProductCompareResponse>} -
2684
- * Success response
1504
+ * @returns {Promise<ProductCompareResponse>} - Success response
2685
1505
  * @name getSimilarComparisonProductBySlug
2686
1506
  * @summary: List similar products
2687
1507
  * @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/).
@@ -2690,30 +1510,6 @@ class Catalog {
2690
1510
  { slug, requestHeaders } = { requestHeaders: {} },
2691
1511
  { responseHeaders } = { responseHeaders: false }
2692
1512
  ) {
2693
- const {
2694
- error,
2695
- } = CatalogApplicationValidator.getSimilarComparisonProductBySlug().validate(
2696
- { slug },
2697
- { abortEarly: false, allowUnknown: true }
2698
- );
2699
- if (error) {
2700
- return Promise.reject(new FDKClientValidationError(error));
2701
- }
2702
-
2703
- // Showing warrnings if extra unknown parameters are found
2704
- const {
2705
- error: warrning,
2706
- } = CatalogApplicationValidator.getSimilarComparisonProductBySlug().validate(
2707
- { slug },
2708
- { abortEarly: false, allowUnknown: false }
2709
- );
2710
- if (warrning) {
2711
- Logger({
2712
- level: "WARN",
2713
- message: `Parameter Validation warrnings for application > Catalog > getSimilarComparisonProductBySlug \n ${warrning}`,
2714
- });
2715
- }
2716
-
2717
1513
  const query_params = {};
2718
1514
 
2719
1515
  const xHeaders = {};
@@ -2736,32 +1532,13 @@ class Catalog {
2736
1532
  responseData = response[0];
2737
1533
  }
2738
1534
 
2739
- const {
2740
- error: res_error,
2741
- } = CatalogApplicationModel.ProductCompareResponse().validate(
2742
- responseData,
2743
- { abortEarly: false, allowUnknown: true }
2744
- );
2745
-
2746
- if (res_error) {
2747
- if (this._conf.options.strictResponseCheck === true) {
2748
- return Promise.reject(new FDKResponseValidationError(res_error));
2749
- } else {
2750
- Logger({
2751
- level: "WARN",
2752
- message: `Response Validation Warnings for application > Catalog > getSimilarComparisonProductBySlug \n ${res_error}`,
2753
- });
2754
- }
2755
- }
2756
-
2757
1535
  return response;
2758
1536
  }
2759
1537
 
2760
1538
  /**
2761
- * @param {CatalogApplicationValidator.GetStoresParam} arg - Arg object.
2762
1539
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2763
1540
  * @param {import("../ApplicationAPIClient").Options} - Options
2764
- * @returns {Promise<CatalogApplicationModel.StoreListingResponse>} - Success response
1541
+ * @returns {Promise<StoreListingResponse>} - Success response
2765
1542
  * @name getStores
2766
1543
  * @summary: List available stores
2767
1544
  * @description: List all stores associated with the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getStores/).
@@ -2780,28 +1557,6 @@ class Catalog {
2780
1557
  } = { requestHeaders: {} },
2781
1558
  { responseHeaders } = { responseHeaders: false }
2782
1559
  ) {
2783
- const { error } = CatalogApplicationValidator.getStores().validate(
2784
- { pageNo, pageSize, q, city, range, latitude, longitude, tags },
2785
- { abortEarly: false, allowUnknown: true }
2786
- );
2787
- if (error) {
2788
- return Promise.reject(new FDKClientValidationError(error));
2789
- }
2790
-
2791
- // Showing warrnings if extra unknown parameters are found
2792
- const {
2793
- error: warrning,
2794
- } = CatalogApplicationValidator.getStores().validate(
2795
- { pageNo, pageSize, q, city, range, latitude, longitude, tags },
2796
- { abortEarly: false, allowUnknown: false }
2797
- );
2798
- if (warrning) {
2799
- Logger({
2800
- level: "WARN",
2801
- message: `Parameter Validation warrnings for application > Catalog > getStores \n ${warrning}`,
2802
- });
2803
- }
2804
-
2805
1560
  const query_params = {};
2806
1561
  query_params["page_no"] = pageNo;
2807
1562
  query_params["page_size"] = pageSize;
@@ -2832,24 +1587,6 @@ class Catalog {
2832
1587
  responseData = response[0];
2833
1588
  }
2834
1589
 
2835
- const {
2836
- error: res_error,
2837
- } = CatalogApplicationModel.StoreListingResponse().validate(responseData, {
2838
- abortEarly: false,
2839
- allowUnknown: true,
2840
- });
2841
-
2842
- if (res_error) {
2843
- if (this._conf.options.strictResponseCheck === true) {
2844
- return Promise.reject(new FDKResponseValidationError(res_error));
2845
- } else {
2846
- Logger({
2847
- level: "WARN",
2848
- message: `Response Validation Warnings for application > Catalog > getStores \n ${res_error}`,
2849
- });
2850
- }
2851
- }
2852
-
2853
1590
  return response;
2854
1591
  }
2855
1592
 
@@ -2865,7 +1602,7 @@ class Catalog {
2865
1602
  * @param {number} [arg.longitude] - Longitude of the location from where
2866
1603
  * one wants to retrieve the nearest stores, e.g. 19.1174114.
2867
1604
  * @param {string} [arg.tags] - Search stores based on tags.
2868
- * @returns {Paginator<CatalogApplicationModel.StoreListingResponse>}
1605
+ * @returns {Paginator<StoreListingResponse>}
2869
1606
  * @summary: List available stores
2870
1607
  * @description: List all stores associated with the sales channel.
2871
1608
  */
@@ -2904,10 +1641,9 @@ class Catalog {
2904
1641
  }
2905
1642
 
2906
1643
  /**
2907
- * @param {CatalogApplicationValidator.UnfollowByIdParam} arg - Arg object.
2908
1644
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2909
1645
  * @param {import("../ApplicationAPIClient").Options} - Options
2910
- * @returns {Promise<CatalogApplicationModel.FollowPostResponse>} - Success response
1646
+ * @returns {Promise<FollowPostResponse>} - Success response
2911
1647
  * @name unfollowById
2912
1648
  * @summary: Delete item, brand, product
2913
1649
  * @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/).
@@ -2916,28 +1652,6 @@ class Catalog {
2916
1652
  { collectionType, collectionId, requestHeaders } = { requestHeaders: {} },
2917
1653
  { responseHeaders } = { responseHeaders: false }
2918
1654
  ) {
2919
- const { error } = CatalogApplicationValidator.unfollowById().validate(
2920
- { collectionType, collectionId },
2921
- { abortEarly: false, allowUnknown: true }
2922
- );
2923
- if (error) {
2924
- return Promise.reject(new FDKClientValidationError(error));
2925
- }
2926
-
2927
- // Showing warrnings if extra unknown parameters are found
2928
- const {
2929
- error: warrning,
2930
- } = CatalogApplicationValidator.unfollowById().validate(
2931
- { collectionType, collectionId },
2932
- { abortEarly: false, allowUnknown: false }
2933
- );
2934
- if (warrning) {
2935
- Logger({
2936
- level: "WARN",
2937
- message: `Parameter Validation warrnings for application > Catalog > unfollowById \n ${warrning}`,
2938
- });
2939
- }
2940
-
2941
1655
  const query_params = {};
2942
1656
 
2943
1657
  const xHeaders = {};
@@ -2960,24 +1674,6 @@ class Catalog {
2960
1674
  responseData = response[0];
2961
1675
  }
2962
1676
 
2963
- const {
2964
- error: res_error,
2965
- } = CatalogApplicationModel.FollowPostResponse().validate(responseData, {
2966
- abortEarly: false,
2967
- allowUnknown: true,
2968
- });
2969
-
2970
- if (res_error) {
2971
- if (this._conf.options.strictResponseCheck === true) {
2972
- return Promise.reject(new FDKResponseValidationError(res_error));
2973
- } else {
2974
- Logger({
2975
- level: "WARN",
2976
- message: `Response Validation Warnings for application > Catalog > unfollowById \n ${res_error}`,
2977
- });
2978
- }
2979
- }
2980
-
2981
1677
  return response;
2982
1678
  }
2983
1679
  }