@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 ContentApplicationValidator = require("./ContentApplicationValidator");
9
- const ContentApplicationModel = require("./ContentApplicationModel");
10
- const { Logger } = require("./../../common/Logger");
11
- const Joi = require("joi");
12
4
 
13
5
  class Content {
14
6
  constructor(_conf) {
@@ -58,12 +50,9 @@ class Content {
58
50
  }
59
51
 
60
52
  /**
61
- * @param {ContentApplicationValidator.GetAnnouncementsParam} arg - Arg object.
62
53
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
63
54
  * @param {import("../ApplicationAPIClient").Options} - Options
64
- * @returns {Promise<ContentApplicationModel.AnnouncementsResponseSchema>}
65
- * - Success response
66
- *
55
+ * @returns {Promise<AnnouncementsResponseSchema>} - Success response
67
56
  * @name getAnnouncements
68
57
  * @summary: List announcements
69
58
  * @description: List all current announcements in the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getAnnouncements/).
@@ -72,28 +61,6 @@ class Content {
72
61
  { requestHeaders } = { requestHeaders: {} },
73
62
  { responseHeaders } = { responseHeaders: false }
74
63
  ) {
75
- const { error } = ContentApplicationValidator.getAnnouncements().validate(
76
- {},
77
- { abortEarly: false, allowUnknown: true }
78
- );
79
- if (error) {
80
- return Promise.reject(new FDKClientValidationError(error));
81
- }
82
-
83
- // Showing warrnings if extra unknown parameters are found
84
- const {
85
- error: warrning,
86
- } = ContentApplicationValidator.getAnnouncements().validate(
87
- {},
88
- { abortEarly: false, allowUnknown: false }
89
- );
90
- if (warrning) {
91
- Logger({
92
- level: "WARN",
93
- message: `Parameter Validation warrnings for application > Content > getAnnouncements \n ${warrning}`,
94
- });
95
- }
96
-
97
64
  const query_params = {};
98
65
 
99
66
  const xHeaders = {};
@@ -116,32 +83,13 @@ class Content {
116
83
  responseData = response[0];
117
84
  }
118
85
 
119
- const {
120
- error: res_error,
121
- } = ContentApplicationModel.AnnouncementsResponseSchema().validate(
122
- responseData,
123
- { abortEarly: false, allowUnknown: true }
124
- );
125
-
126
- if (res_error) {
127
- if (this._conf.options.strictResponseCheck === true) {
128
- return Promise.reject(new FDKResponseValidationError(res_error));
129
- } else {
130
- Logger({
131
- level: "WARN",
132
- message: `Response Validation Warnings for application > Content > getAnnouncements \n ${res_error}`,
133
- });
134
- }
135
- }
136
-
137
86
  return response;
138
87
  }
139
88
 
140
89
  /**
141
- * @param {ContentApplicationValidator.GetBlogParam} arg - Arg object.
142
90
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
143
91
  * @param {import("../ApplicationAPIClient").Options} - Options
144
- * @returns {Promise<ContentApplicationModel.BlogSchema>} - Success response
92
+ * @returns {Promise<BlogSchema>} - Success response
145
93
  * @name getBlog
146
94
  * @summary: Get a blog
147
95
  * @description: Get information related to a specific blog such as it's contents, author, publish date, SEO related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlog/).
@@ -150,26 +98,6 @@ class Content {
150
98
  { slug, rootId, requestHeaders } = { requestHeaders: {} },
151
99
  { responseHeaders } = { responseHeaders: false }
152
100
  ) {
153
- const { error } = ContentApplicationValidator.getBlog().validate(
154
- { slug, rootId },
155
- { abortEarly: false, allowUnknown: true }
156
- );
157
- if (error) {
158
- return Promise.reject(new FDKClientValidationError(error));
159
- }
160
-
161
- // Showing warrnings if extra unknown parameters are found
162
- const { error: warrning } = ContentApplicationValidator.getBlog().validate(
163
- { slug, rootId },
164
- { abortEarly: false, allowUnknown: false }
165
- );
166
- if (warrning) {
167
- Logger({
168
- level: "WARN",
169
- message: `Parameter Validation warrnings for application > Content > getBlog \n ${warrning}`,
170
- });
171
- }
172
-
173
101
  const query_params = {};
174
102
  query_params["root_id"] = rootId;
175
103
 
@@ -193,32 +121,13 @@ class Content {
193
121
  responseData = response[0];
194
122
  }
195
123
 
196
- const {
197
- error: res_error,
198
- } = ContentApplicationModel.BlogSchema().validate(responseData, {
199
- abortEarly: false,
200
- allowUnknown: true,
201
- });
202
-
203
- if (res_error) {
204
- if (this._conf.options.strictResponseCheck === true) {
205
- return Promise.reject(new FDKResponseValidationError(res_error));
206
- } else {
207
- Logger({
208
- level: "WARN",
209
- message: `Response Validation Warnings for application > Content > getBlog \n ${res_error}`,
210
- });
211
- }
212
- }
213
-
214
124
  return response;
215
125
  }
216
126
 
217
127
  /**
218
- * @param {ContentApplicationValidator.GetBlogsParam} arg - Arg object.
219
128
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
220
129
  * @param {import("../ApplicationAPIClient").Options} - Options
221
- * @returns {Promise<ContentApplicationModel.BlogGetResponse>} - Success response
130
+ * @returns {Promise<BlogGetResponse>} - Success response
222
131
  * @name getBlogs
223
132
  * @summary: List blogs
224
133
  * @description: List all the blogs against an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlogs/).
@@ -227,26 +136,6 @@ class Content {
227
136
  { pageNo, pageSize, tags, search, requestHeaders } = { requestHeaders: {} },
228
137
  { responseHeaders } = { responseHeaders: false }
229
138
  ) {
230
- const { error } = ContentApplicationValidator.getBlogs().validate(
231
- { pageNo, pageSize, tags, search },
232
- { abortEarly: false, allowUnknown: true }
233
- );
234
- if (error) {
235
- return Promise.reject(new FDKClientValidationError(error));
236
- }
237
-
238
- // Showing warrnings if extra unknown parameters are found
239
- const { error: warrning } = ContentApplicationValidator.getBlogs().validate(
240
- { pageNo, pageSize, tags, search },
241
- { abortEarly: false, allowUnknown: false }
242
- );
243
- if (warrning) {
244
- Logger({
245
- level: "WARN",
246
- message: `Parameter Validation warrnings for application > Content > getBlogs \n ${warrning}`,
247
- });
248
- }
249
-
250
139
  const query_params = {};
251
140
  query_params["page_no"] = pageNo;
252
141
  query_params["page_size"] = pageSize;
@@ -273,34 +162,13 @@ class Content {
273
162
  responseData = response[0];
274
163
  }
275
164
 
276
- const {
277
- error: res_error,
278
- } = ContentApplicationModel.BlogGetResponse().validate(responseData, {
279
- abortEarly: false,
280
- allowUnknown: true,
281
- });
282
-
283
- if (res_error) {
284
- if (this._conf.options.strictResponseCheck === true) {
285
- return Promise.reject(new FDKResponseValidationError(res_error));
286
- } else {
287
- Logger({
288
- level: "WARN",
289
- message: `Response Validation Warnings for application > Content > getBlogs \n ${res_error}`,
290
- });
291
- }
292
- }
293
-
294
165
  return response;
295
166
  }
296
167
 
297
168
  /**
298
- * @param {ContentApplicationValidator.GetCustomFieldsParam} arg - Arg object.
299
169
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
300
170
  * @param {import("../ApplicationAPIClient").Options} - Options
301
- * @returns {Promise<ContentApplicationModel.CustomFieldsResponseByResourceIdSchema>}
302
- * - Success response
303
- *
171
+ * @returns {Promise<CustomFieldsResponseByResourceIdSchema>} - Success response
304
172
  * @name getCustomFields
305
173
  * @summary: Get list of custom fields
306
174
  * @description: List custom fields attached to a particular resource by using the resource. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomFields/).
@@ -309,28 +177,6 @@ class Content {
309
177
  { resource, resourceId, requestHeaders } = { requestHeaders: {} },
310
178
  { responseHeaders } = { responseHeaders: false }
311
179
  ) {
312
- const { error } = ContentApplicationValidator.getCustomFields().validate(
313
- { resource, resourceId },
314
- { abortEarly: false, allowUnknown: true }
315
- );
316
- if (error) {
317
- return Promise.reject(new FDKClientValidationError(error));
318
- }
319
-
320
- // Showing warrnings if extra unknown parameters are found
321
- const {
322
- error: warrning,
323
- } = ContentApplicationValidator.getCustomFields().validate(
324
- { resource, resourceId },
325
- { abortEarly: false, allowUnknown: false }
326
- );
327
- if (warrning) {
328
- Logger({
329
- level: "WARN",
330
- message: `Parameter Validation warrnings for application > Content > getCustomFields \n ${warrning}`,
331
- });
332
- }
333
-
334
180
  const query_params = {};
335
181
 
336
182
  const xHeaders = {};
@@ -353,33 +199,13 @@ class Content {
353
199
  responseData = response[0];
354
200
  }
355
201
 
356
- const {
357
- error: res_error,
358
- } = ContentApplicationModel.CustomFieldsResponseByResourceIdSchema().validate(
359
- responseData,
360
- { abortEarly: false, allowUnknown: true }
361
- );
362
-
363
- if (res_error) {
364
- if (this._conf.options.strictResponseCheck === true) {
365
- return Promise.reject(new FDKResponseValidationError(res_error));
366
- } else {
367
- Logger({
368
- level: "WARN",
369
- message: `Response Validation Warnings for application > Content > getCustomFields \n ${res_error}`,
370
- });
371
- }
372
- }
373
-
374
202
  return response;
375
203
  }
376
204
 
377
205
  /**
378
- * @param {ContentApplicationValidator.GetCustomObjectParam} arg - Arg object.
379
206
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
380
207
  * @param {import("../ApplicationAPIClient").Options} - Options
381
- * @returns {Promise<ContentApplicationModel.CustomObjectByIdSchema>} -
382
- * Success response
208
+ * @returns {Promise<CustomObjectByIdSchema>} - Success response
383
209
  * @name getCustomObject
384
210
  * @summary: Get custom object
385
211
  * @description: Get details of custom objects, their field details, definitions, and references can be obtained using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomObject/).
@@ -388,28 +214,6 @@ class Content {
388
214
  { metaobjectId, requestHeaders } = { requestHeaders: {} },
389
215
  { responseHeaders } = { responseHeaders: false }
390
216
  ) {
391
- const { error } = ContentApplicationValidator.getCustomObject().validate(
392
- { metaobjectId },
393
- { abortEarly: false, allowUnknown: true }
394
- );
395
- if (error) {
396
- return Promise.reject(new FDKClientValidationError(error));
397
- }
398
-
399
- // Showing warrnings if extra unknown parameters are found
400
- const {
401
- error: warrning,
402
- } = ContentApplicationValidator.getCustomObject().validate(
403
- { metaobjectId },
404
- { abortEarly: false, allowUnknown: false }
405
- );
406
- if (warrning) {
407
- Logger({
408
- level: "WARN",
409
- message: `Parameter Validation warrnings for application > Content > getCustomObject \n ${warrning}`,
410
- });
411
- }
412
-
413
217
  const query_params = {};
414
218
 
415
219
  const xHeaders = {};
@@ -432,32 +236,13 @@ class Content {
432
236
  responseData = response[0];
433
237
  }
434
238
 
435
- const {
436
- error: res_error,
437
- } = ContentApplicationModel.CustomObjectByIdSchema().validate(
438
- responseData,
439
- { abortEarly: false, allowUnknown: true }
440
- );
441
-
442
- if (res_error) {
443
- if (this._conf.options.strictResponseCheck === true) {
444
- return Promise.reject(new FDKResponseValidationError(res_error));
445
- } else {
446
- Logger({
447
- level: "WARN",
448
- message: `Response Validation Warnings for application > Content > getCustomObject \n ${res_error}`,
449
- });
450
- }
451
- }
452
-
453
239
  return response;
454
240
  }
455
241
 
456
242
  /**
457
- * @param {ContentApplicationValidator.GetDataLoadersParam} arg - Arg object.
458
243
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
459
244
  * @param {import("../ApplicationAPIClient").Options} - Options
460
- * @returns {Promise<ContentApplicationModel.DataLoadersSchema>} - Success response
245
+ * @returns {Promise<DataLoadersSchema>} - Success response
461
246
  * @name getDataLoaders
462
247
  * @summary: List Dataloaders
463
248
  * @description: List all the data loaders that are enabled for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getDataLoaders/).
@@ -466,28 +251,6 @@ class Content {
466
251
  { requestHeaders } = { requestHeaders: {} },
467
252
  { responseHeaders } = { responseHeaders: false }
468
253
  ) {
469
- const { error } = ContentApplicationValidator.getDataLoaders().validate(
470
- {},
471
- { abortEarly: false, allowUnknown: true }
472
- );
473
- if (error) {
474
- return Promise.reject(new FDKClientValidationError(error));
475
- }
476
-
477
- // Showing warrnings if extra unknown parameters are found
478
- const {
479
- error: warrning,
480
- } = ContentApplicationValidator.getDataLoaders().validate(
481
- {},
482
- { abortEarly: false, allowUnknown: false }
483
- );
484
- if (warrning) {
485
- Logger({
486
- level: "WARN",
487
- message: `Parameter Validation warrnings for application > Content > getDataLoaders \n ${warrning}`,
488
- });
489
- }
490
-
491
254
  const query_params = {};
492
255
 
493
256
  const xHeaders = {};
@@ -510,32 +273,13 @@ class Content {
510
273
  responseData = response[0];
511
274
  }
512
275
 
513
- const {
514
- error: res_error,
515
- } = ContentApplicationModel.DataLoadersSchema().validate(responseData, {
516
- abortEarly: false,
517
- allowUnknown: true,
518
- });
519
-
520
- if (res_error) {
521
- if (this._conf.options.strictResponseCheck === true) {
522
- return Promise.reject(new FDKResponseValidationError(res_error));
523
- } else {
524
- Logger({
525
- level: "WARN",
526
- message: `Response Validation Warnings for application > Content > getDataLoaders \n ${res_error}`,
527
- });
528
- }
529
- }
530
-
531
276
  return response;
532
277
  }
533
278
 
534
279
  /**
535
- * @param {ContentApplicationValidator.GetFaqBySlugParam} arg - Arg object.
536
280
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
537
281
  * @param {import("../ApplicationAPIClient").Options} - Options
538
- * @returns {Promise<ContentApplicationModel.FaqSchema>} - Success response
282
+ * @returns {Promise<FaqSchema>} - Success response
539
283
  * @name getFaqBySlug
540
284
  * @summary: Get FAQ
541
285
  * @description: Get a specific FAQ using its slug identifier. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getFaqBySlug/).
@@ -544,28 +288,6 @@ class Content {
544
288
  { slug, requestHeaders } = { requestHeaders: {} },
545
289
  { responseHeaders } = { responseHeaders: false }
546
290
  ) {
547
- const { error } = ContentApplicationValidator.getFaqBySlug().validate(
548
- { slug },
549
- { abortEarly: false, allowUnknown: true }
550
- );
551
- if (error) {
552
- return Promise.reject(new FDKClientValidationError(error));
553
- }
554
-
555
- // Showing warrnings if extra unknown parameters are found
556
- const {
557
- error: warrning,
558
- } = ContentApplicationValidator.getFaqBySlug().validate(
559
- { slug },
560
- { abortEarly: false, allowUnknown: false }
561
- );
562
- if (warrning) {
563
- Logger({
564
- level: "WARN",
565
- message: `Parameter Validation warrnings for application > Content > getFaqBySlug \n ${warrning}`,
566
- });
567
- }
568
-
569
291
  const query_params = {};
570
292
 
571
293
  const xHeaders = {};
@@ -588,33 +310,13 @@ class Content {
588
310
  responseData = response[0];
589
311
  }
590
312
 
591
- const {
592
- error: res_error,
593
- } = ContentApplicationModel.FaqSchema().validate(responseData, {
594
- abortEarly: false,
595
- allowUnknown: true,
596
- });
597
-
598
- if (res_error) {
599
- if (this._conf.options.strictResponseCheck === true) {
600
- return Promise.reject(new FDKResponseValidationError(res_error));
601
- } else {
602
- Logger({
603
- level: "WARN",
604
- message: `Response Validation Warnings for application > Content > getFaqBySlug \n ${res_error}`,
605
- });
606
- }
607
- }
608
-
609
313
  return response;
610
314
  }
611
315
 
612
316
  /**
613
- * @param {ContentApplicationValidator.GetFaqCategoriesParam} arg - Arg object.
614
317
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
615
318
  * @param {import("../ApplicationAPIClient").Options} - Options
616
- * @returns {Promise<ContentApplicationModel.GetFaqCategoriesSchema>} -
617
- * Success response
319
+ * @returns {Promise<GetFaqCategoriesSchema>} - Success response
618
320
  * @name getFaqCategories
619
321
  * @summary: List FAQ Categories
620
322
  * @description: List categories for organizing FAQs. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getFaqCategories/).
@@ -623,28 +325,6 @@ class Content {
623
325
  { requestHeaders } = { requestHeaders: {} },
624
326
  { responseHeaders } = { responseHeaders: false }
625
327
  ) {
626
- const { error } = ContentApplicationValidator.getFaqCategories().validate(
627
- {},
628
- { abortEarly: false, allowUnknown: true }
629
- );
630
- if (error) {
631
- return Promise.reject(new FDKClientValidationError(error));
632
- }
633
-
634
- // Showing warrnings if extra unknown parameters are found
635
- const {
636
- error: warrning,
637
- } = ContentApplicationValidator.getFaqCategories().validate(
638
- {},
639
- { abortEarly: false, allowUnknown: false }
640
- );
641
- if (warrning) {
642
- Logger({
643
- level: "WARN",
644
- message: `Parameter Validation warrnings for application > Content > getFaqCategories \n ${warrning}`,
645
- });
646
- }
647
-
648
328
  const query_params = {};
649
329
 
650
330
  const xHeaders = {};
@@ -667,33 +347,13 @@ class Content {
667
347
  responseData = response[0];
668
348
  }
669
349
 
670
- const {
671
- error: res_error,
672
- } = ContentApplicationModel.GetFaqCategoriesSchema().validate(
673
- responseData,
674
- { abortEarly: false, allowUnknown: true }
675
- );
676
-
677
- if (res_error) {
678
- if (this._conf.options.strictResponseCheck === true) {
679
- return Promise.reject(new FDKResponseValidationError(res_error));
680
- } else {
681
- Logger({
682
- level: "WARN",
683
- message: `Response Validation Warnings for application > Content > getFaqCategories \n ${res_error}`,
684
- });
685
- }
686
- }
687
-
688
350
  return response;
689
351
  }
690
352
 
691
353
  /**
692
- * @param {ContentApplicationValidator.GetFaqCategoryBySlugParam} arg - Arg object.
693
354
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
694
355
  * @param {import("../ApplicationAPIClient").Options} - Options
695
- * @returns {Promise<ContentApplicationModel.GetFaqCategoryBySlugSchema>} -
696
- * Success response
356
+ * @returns {Promise<GetFaqCategoryBySlugSchema>} - Success response
697
357
  * @name getFaqCategoryBySlug
698
358
  * @summary: Get a FAQ category
699
359
  * @description: Get a specific FAQ category using its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getFaqCategoryBySlug/).
@@ -702,30 +362,6 @@ class Content {
702
362
  { slug, requestHeaders } = { requestHeaders: {} },
703
363
  { responseHeaders } = { responseHeaders: false }
704
364
  ) {
705
- const {
706
- error,
707
- } = ContentApplicationValidator.getFaqCategoryBySlug().validate(
708
- { slug },
709
- { abortEarly: false, allowUnknown: true }
710
- );
711
- if (error) {
712
- return Promise.reject(new FDKClientValidationError(error));
713
- }
714
-
715
- // Showing warrnings if extra unknown parameters are found
716
- const {
717
- error: warrning,
718
- } = ContentApplicationValidator.getFaqCategoryBySlug().validate(
719
- { slug },
720
- { abortEarly: false, allowUnknown: false }
721
- );
722
- if (warrning) {
723
- Logger({
724
- level: "WARN",
725
- message: `Parameter Validation warrnings for application > Content > getFaqCategoryBySlug \n ${warrning}`,
726
- });
727
- }
728
-
729
365
  const query_params = {};
730
366
 
731
367
  const xHeaders = {};
@@ -748,32 +384,13 @@ class Content {
748
384
  responseData = response[0];
749
385
  }
750
386
 
751
- const {
752
- error: res_error,
753
- } = ContentApplicationModel.GetFaqCategoryBySlugSchema().validate(
754
- responseData,
755
- { abortEarly: false, allowUnknown: true }
756
- );
757
-
758
- if (res_error) {
759
- if (this._conf.options.strictResponseCheck === true) {
760
- return Promise.reject(new FDKResponseValidationError(res_error));
761
- } else {
762
- Logger({
763
- level: "WARN",
764
- message: `Response Validation Warnings for application > Content > getFaqCategoryBySlug \n ${res_error}`,
765
- });
766
- }
767
- }
768
-
769
387
  return response;
770
388
  }
771
389
 
772
390
  /**
773
- * @param {ContentApplicationValidator.GetFaqsParam} arg - Arg object.
774
391
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
775
392
  * @param {import("../ApplicationAPIClient").Options} - Options
776
- * @returns {Promise<ContentApplicationModel.FaqResponseSchema>} - Success response
393
+ * @returns {Promise<FaqResponseSchema>} - Success response
777
394
  * @name getFaqs
778
395
  * @summary: List FAQs
779
396
  * @description: List frequently asked questions and answers. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getFaqs/).
@@ -782,26 +399,6 @@ class Content {
782
399
  { requestHeaders } = { requestHeaders: {} },
783
400
  { responseHeaders } = { responseHeaders: false }
784
401
  ) {
785
- const { error } = ContentApplicationValidator.getFaqs().validate(
786
- {},
787
- { abortEarly: false, allowUnknown: true }
788
- );
789
- if (error) {
790
- return Promise.reject(new FDKClientValidationError(error));
791
- }
792
-
793
- // Showing warrnings if extra unknown parameters are found
794
- const { error: warrning } = ContentApplicationValidator.getFaqs().validate(
795
- {},
796
- { abortEarly: false, allowUnknown: false }
797
- );
798
- if (warrning) {
799
- Logger({
800
- level: "WARN",
801
- message: `Parameter Validation warrnings for application > Content > getFaqs \n ${warrning}`,
802
- });
803
- }
804
-
805
402
  const query_params = {};
806
403
 
807
404
  const xHeaders = {};
@@ -824,32 +421,13 @@ class Content {
824
421
  responseData = response[0];
825
422
  }
826
423
 
827
- const {
828
- error: res_error,
829
- } = ContentApplicationModel.FaqResponseSchema().validate(responseData, {
830
- abortEarly: false,
831
- allowUnknown: true,
832
- });
833
-
834
- if (res_error) {
835
- if (this._conf.options.strictResponseCheck === true) {
836
- return Promise.reject(new FDKResponseValidationError(res_error));
837
- } else {
838
- Logger({
839
- level: "WARN",
840
- message: `Response Validation Warnings for application > Content > getFaqs \n ${res_error}`,
841
- });
842
- }
843
- }
844
-
845
424
  return response;
846
425
  }
847
426
 
848
427
  /**
849
- * @param {ContentApplicationValidator.GetFaqsByCategorySlugParam} arg - Arg object.
850
428
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
851
429
  * @param {import("../ApplicationAPIClient").Options} - Options
852
- * @returns {Promise<ContentApplicationModel.GetFaqSchema>} - Success response
430
+ * @returns {Promise<GetFaqSchema>} - Success response
853
431
  * @name getFaqsByCategorySlug
854
432
  * @summary: List FAQs by category
855
433
  * @description: Get FAQs belonging to a specific category slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getFaqsByCategorySlug/).
@@ -858,30 +436,6 @@ class Content {
858
436
  { slug, requestHeaders } = { requestHeaders: {} },
859
437
  { responseHeaders } = { responseHeaders: false }
860
438
  ) {
861
- const {
862
- error,
863
- } = ContentApplicationValidator.getFaqsByCategorySlug().validate(
864
- { slug },
865
- { abortEarly: false, allowUnknown: true }
866
- );
867
- if (error) {
868
- return Promise.reject(new FDKClientValidationError(error));
869
- }
870
-
871
- // Showing warrnings if extra unknown parameters are found
872
- const {
873
- error: warrning,
874
- } = ContentApplicationValidator.getFaqsByCategorySlug().validate(
875
- { slug },
876
- { abortEarly: false, allowUnknown: false }
877
- );
878
- if (warrning) {
879
- Logger({
880
- level: "WARN",
881
- message: `Parameter Validation warrnings for application > Content > getFaqsByCategorySlug \n ${warrning}`,
882
- });
883
- }
884
-
885
439
  const query_params = {};
886
440
 
887
441
  const xHeaders = {};
@@ -904,32 +458,13 @@ class Content {
904
458
  responseData = response[0];
905
459
  }
906
460
 
907
- const {
908
- error: res_error,
909
- } = ContentApplicationModel.GetFaqSchema().validate(responseData, {
910
- abortEarly: false,
911
- allowUnknown: true,
912
- });
913
-
914
- if (res_error) {
915
- if (this._conf.options.strictResponseCheck === true) {
916
- return Promise.reject(new FDKResponseValidationError(res_error));
917
- } else {
918
- Logger({
919
- level: "WARN",
920
- message: `Response Validation Warnings for application > Content > getFaqsByCategorySlug \n ${res_error}`,
921
- });
922
- }
923
- }
924
-
925
461
  return response;
926
462
  }
927
463
 
928
464
  /**
929
- * @param {ContentApplicationValidator.GetLandingPageParam} arg - Arg object.
930
465
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
931
466
  * @param {import("../ApplicationAPIClient").Options} - Options
932
- * @returns {Promise<ContentApplicationModel.LandingPageSchema>} - Success response
467
+ * @returns {Promise<LandingPageSchema>} - Success response
933
468
  * @name getLandingPage
934
469
  * @summary: Get a landing page
935
470
  * @description: Get content of the application's landing page. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getLandingPage/).
@@ -938,28 +473,6 @@ class Content {
938
473
  { requestHeaders } = { requestHeaders: {} },
939
474
  { responseHeaders } = { responseHeaders: false }
940
475
  ) {
941
- const { error } = ContentApplicationValidator.getLandingPage().validate(
942
- {},
943
- { abortEarly: false, allowUnknown: true }
944
- );
945
- if (error) {
946
- return Promise.reject(new FDKClientValidationError(error));
947
- }
948
-
949
- // Showing warrnings if extra unknown parameters are found
950
- const {
951
- error: warrning,
952
- } = ContentApplicationValidator.getLandingPage().validate(
953
- {},
954
- { abortEarly: false, allowUnknown: false }
955
- );
956
- if (warrning) {
957
- Logger({
958
- level: "WARN",
959
- message: `Parameter Validation warrnings for application > Content > getLandingPage \n ${warrning}`,
960
- });
961
- }
962
-
963
476
  const query_params = {};
964
477
 
965
478
  const xHeaders = {};
@@ -982,32 +495,13 @@ class Content {
982
495
  responseData = response[0];
983
496
  }
984
497
 
985
- const {
986
- error: res_error,
987
- } = ContentApplicationModel.LandingPageSchema().validate(responseData, {
988
- abortEarly: false,
989
- allowUnknown: true,
990
- });
991
-
992
- if (res_error) {
993
- if (this._conf.options.strictResponseCheck === true) {
994
- return Promise.reject(new FDKResponseValidationError(res_error));
995
- } else {
996
- Logger({
997
- level: "WARN",
998
- message: `Response Validation Warnings for application > Content > getLandingPage \n ${res_error}`,
999
- });
1000
- }
1001
- }
1002
-
1003
498
  return response;
1004
499
  }
1005
500
 
1006
501
  /**
1007
- * @param {ContentApplicationValidator.GetLegalInformationParam} arg - Arg object.
1008
502
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1009
503
  * @param {import("../ApplicationAPIClient").Options} - Options
1010
- * @returns {Promise<ContentApplicationModel.ApplicationLegal>} - Success response
504
+ * @returns {Promise<ApplicationLegal>} - Success response
1011
505
  * @name getLegalInformation
1012
506
  * @summary: Get legal information
1013
507
  * @description: Get legal policies for an application which includes Terms and conditions, return policy, shipping policy and privacy policy. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getLegalInformation/).
@@ -1016,30 +510,6 @@ class Content {
1016
510
  { requestHeaders } = { requestHeaders: {} },
1017
511
  { responseHeaders } = { responseHeaders: false }
1018
512
  ) {
1019
- const {
1020
- error,
1021
- } = ContentApplicationValidator.getLegalInformation().validate(
1022
- {},
1023
- { abortEarly: false, allowUnknown: true }
1024
- );
1025
- if (error) {
1026
- return Promise.reject(new FDKClientValidationError(error));
1027
- }
1028
-
1029
- // Showing warrnings if extra unknown parameters are found
1030
- const {
1031
- error: warrning,
1032
- } = ContentApplicationValidator.getLegalInformation().validate(
1033
- {},
1034
- { abortEarly: false, allowUnknown: false }
1035
- );
1036
- if (warrning) {
1037
- Logger({
1038
- level: "WARN",
1039
- message: `Parameter Validation warrnings for application > Content > getLegalInformation \n ${warrning}`,
1040
- });
1041
- }
1042
-
1043
513
  const query_params = {};
1044
514
 
1045
515
  const xHeaders = {};
@@ -1062,33 +532,13 @@ class Content {
1062
532
  responseData = response[0];
1063
533
  }
1064
534
 
1065
- const {
1066
- error: res_error,
1067
- } = ContentApplicationModel.ApplicationLegal().validate(responseData, {
1068
- abortEarly: false,
1069
- allowUnknown: true,
1070
- });
1071
-
1072
- if (res_error) {
1073
- if (this._conf.options.strictResponseCheck === true) {
1074
- return Promise.reject(new FDKResponseValidationError(res_error));
1075
- } else {
1076
- Logger({
1077
- level: "WARN",
1078
- message: `Response Validation Warnings for application > Content > getLegalInformation \n ${res_error}`,
1079
- });
1080
- }
1081
- }
1082
-
1083
535
  return response;
1084
536
  }
1085
537
 
1086
538
  /**
1087
- * @param {ContentApplicationValidator.GetNavigationsParam} arg - Arg object.
1088
539
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1089
540
  * @param {import("../ApplicationAPIClient").Options} - Options
1090
- * @returns {Promise<ContentApplicationModel.NavigationGetResponse>} -
1091
- * Success response
541
+ * @returns {Promise<NavigationGetResponse>} - Success response
1092
542
  * @name getNavigations
1093
543
  * @summary: List navigation items
1094
544
  * @description: Get the navigation link items which can be powered to generate menus on application's website or equivalent mobile apps. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getNavigations/).
@@ -1097,28 +547,6 @@ class Content {
1097
547
  { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
1098
548
  { responseHeaders } = { responseHeaders: false }
1099
549
  ) {
1100
- const { error } = ContentApplicationValidator.getNavigations().validate(
1101
- { pageNo, pageSize },
1102
- { abortEarly: false, allowUnknown: true }
1103
- );
1104
- if (error) {
1105
- return Promise.reject(new FDKClientValidationError(error));
1106
- }
1107
-
1108
- // Showing warrnings if extra unknown parameters are found
1109
- const {
1110
- error: warrning,
1111
- } = ContentApplicationValidator.getNavigations().validate(
1112
- { pageNo, pageSize },
1113
- { abortEarly: false, allowUnknown: false }
1114
- );
1115
- if (warrning) {
1116
- Logger({
1117
- level: "WARN",
1118
- message: `Parameter Validation warrnings for application > Content > getNavigations \n ${warrning}`,
1119
- });
1120
- }
1121
-
1122
550
  const query_params = {};
1123
551
  query_params["page_no"] = pageNo;
1124
552
  query_params["page_size"] = pageSize;
@@ -1143,32 +571,13 @@ class Content {
1143
571
  responseData = response[0];
1144
572
  }
1145
573
 
1146
- const {
1147
- error: res_error,
1148
- } = ContentApplicationModel.NavigationGetResponse().validate(responseData, {
1149
- abortEarly: false,
1150
- allowUnknown: true,
1151
- });
1152
-
1153
- if (res_error) {
1154
- if (this._conf.options.strictResponseCheck === true) {
1155
- return Promise.reject(new FDKResponseValidationError(res_error));
1156
- } else {
1157
- Logger({
1158
- level: "WARN",
1159
- message: `Response Validation Warnings for application > Content > getNavigations \n ${res_error}`,
1160
- });
1161
- }
1162
- }
1163
-
1164
574
  return response;
1165
575
  }
1166
576
 
1167
577
  /**
1168
- * @param {ContentApplicationValidator.GetPageParam} arg - Arg object.
1169
578
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1170
579
  * @param {import("../ApplicationAPIClient").Options} - Options
1171
- * @returns {Promise<ContentApplicationModel.PageSchema>} - Success response
580
+ * @returns {Promise<PageSchema>} - Success response
1172
581
  * @name getPage
1173
582
  * @summary: Get a page
1174
583
  * @description: Get detailed information for a specific page within the theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getPage/).
@@ -1177,26 +586,6 @@ class Content {
1177
586
  { slug, rootId, requestHeaders } = { requestHeaders: {} },
1178
587
  { responseHeaders } = { responseHeaders: false }
1179
588
  ) {
1180
- const { error } = ContentApplicationValidator.getPage().validate(
1181
- { slug, rootId },
1182
- { abortEarly: false, allowUnknown: true }
1183
- );
1184
- if (error) {
1185
- return Promise.reject(new FDKClientValidationError(error));
1186
- }
1187
-
1188
- // Showing warrnings if extra unknown parameters are found
1189
- const { error: warrning } = ContentApplicationValidator.getPage().validate(
1190
- { slug, rootId },
1191
- { abortEarly: false, allowUnknown: false }
1192
- );
1193
- if (warrning) {
1194
- Logger({
1195
- level: "WARN",
1196
- message: `Parameter Validation warrnings for application > Content > getPage \n ${warrning}`,
1197
- });
1198
- }
1199
-
1200
589
  const query_params = {};
1201
590
  query_params["root_id"] = rootId;
1202
591
 
@@ -1220,32 +609,13 @@ class Content {
1220
609
  responseData = response[0];
1221
610
  }
1222
611
 
1223
- const {
1224
- error: res_error,
1225
- } = ContentApplicationModel.PageSchema().validate(responseData, {
1226
- abortEarly: false,
1227
- allowUnknown: true,
1228
- });
1229
-
1230
- if (res_error) {
1231
- if (this._conf.options.strictResponseCheck === true) {
1232
- return Promise.reject(new FDKResponseValidationError(res_error));
1233
- } else {
1234
- Logger({
1235
- level: "WARN",
1236
- message: `Response Validation Warnings for application > Content > getPage \n ${res_error}`,
1237
- });
1238
- }
1239
- }
1240
-
1241
612
  return response;
1242
613
  }
1243
614
 
1244
615
  /**
1245
- * @param {ContentApplicationValidator.GetPagesParam} arg - Arg object.
1246
616
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1247
617
  * @param {import("../ApplicationAPIClient").Options} - Options
1248
- * @returns {Promise<ContentApplicationModel.PageGetResponse>} - Success response
618
+ * @returns {Promise<PageGetResponse>} - Success response
1249
619
  * @name getPages
1250
620
  * @summary: Lists pages
1251
621
  * @description: Lists all Custom Pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getPages/).
@@ -1254,26 +624,6 @@ class Content {
1254
624
  { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
1255
625
  { responseHeaders } = { responseHeaders: false }
1256
626
  ) {
1257
- const { error } = ContentApplicationValidator.getPages().validate(
1258
- { pageNo, pageSize },
1259
- { abortEarly: false, allowUnknown: true }
1260
- );
1261
- if (error) {
1262
- return Promise.reject(new FDKClientValidationError(error));
1263
- }
1264
-
1265
- // Showing warrnings if extra unknown parameters are found
1266
- const { error: warrning } = ContentApplicationValidator.getPages().validate(
1267
- { pageNo, pageSize },
1268
- { abortEarly: false, allowUnknown: false }
1269
- );
1270
- if (warrning) {
1271
- Logger({
1272
- level: "WARN",
1273
- message: `Parameter Validation warrnings for application > Content > getPages \n ${warrning}`,
1274
- });
1275
- }
1276
-
1277
627
  const query_params = {};
1278
628
  query_params["page_no"] = pageNo;
1279
629
  query_params["page_size"] = pageSize;
@@ -1298,32 +648,13 @@ class Content {
1298
648
  responseData = response[0];
1299
649
  }
1300
650
 
1301
- const {
1302
- error: res_error,
1303
- } = ContentApplicationModel.PageGetResponse().validate(responseData, {
1304
- abortEarly: false,
1305
- allowUnknown: true,
1306
- });
1307
-
1308
- if (res_error) {
1309
- if (this._conf.options.strictResponseCheck === true) {
1310
- return Promise.reject(new FDKResponseValidationError(res_error));
1311
- } else {
1312
- Logger({
1313
- level: "WARN",
1314
- message: `Response Validation Warnings for application > Content > getPages \n ${res_error}`,
1315
- });
1316
- }
1317
- }
1318
-
1319
651
  return response;
1320
652
  }
1321
653
 
1322
654
  /**
1323
- * @param {ContentApplicationValidator.GetSEOConfigurationParam} arg - Arg object.
1324
655
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1325
656
  * @param {import("../ApplicationAPIClient").Options} - Options
1326
- * @returns {Promise<ContentApplicationModel.SeoComponent>} - Success response
657
+ * @returns {Promise<SeoComponent>} - Success response
1327
658
  * @name getSEOConfiguration
1328
659
  * @summary: Get SEO settings
1329
660
  * @description: Get search engine optimization configurations of an application. Details include the title, description and an image. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSEOConfiguration/).
@@ -1332,30 +663,6 @@ class Content {
1332
663
  { requestHeaders } = { requestHeaders: {} },
1333
664
  { responseHeaders } = { responseHeaders: false }
1334
665
  ) {
1335
- const {
1336
- error,
1337
- } = ContentApplicationValidator.getSEOConfiguration().validate(
1338
- {},
1339
- { abortEarly: false, allowUnknown: true }
1340
- );
1341
- if (error) {
1342
- return Promise.reject(new FDKClientValidationError(error));
1343
- }
1344
-
1345
- // Showing warrnings if extra unknown parameters are found
1346
- const {
1347
- error: warrning,
1348
- } = ContentApplicationValidator.getSEOConfiguration().validate(
1349
- {},
1350
- { abortEarly: false, allowUnknown: false }
1351
- );
1352
- if (warrning) {
1353
- Logger({
1354
- level: "WARN",
1355
- message: `Parameter Validation warrnings for application > Content > getSEOConfiguration \n ${warrning}`,
1356
- });
1357
- }
1358
-
1359
666
  const query_params = {};
1360
667
 
1361
668
  const xHeaders = {};
@@ -1378,32 +685,13 @@ class Content {
1378
685
  responseData = response[0];
1379
686
  }
1380
687
 
1381
- const {
1382
- error: res_error,
1383
- } = ContentApplicationModel.SeoComponent().validate(responseData, {
1384
- abortEarly: false,
1385
- allowUnknown: true,
1386
- });
1387
-
1388
- if (res_error) {
1389
- if (this._conf.options.strictResponseCheck === true) {
1390
- return Promise.reject(new FDKResponseValidationError(res_error));
1391
- } else {
1392
- Logger({
1393
- level: "WARN",
1394
- message: `Response Validation Warnings for application > Content > getSEOConfiguration \n ${res_error}`,
1395
- });
1396
- }
1397
- }
1398
-
1399
688
  return response;
1400
689
  }
1401
690
 
1402
691
  /**
1403
- * @param {ContentApplicationValidator.GetSEOMarkupSchemasParam} arg - Arg object.
1404
692
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1405
693
  * @param {import("../ApplicationAPIClient").Options} - Options
1406
- * @returns {Promise<ContentApplicationModel.SeoSchemaComponent>} - Success response
694
+ * @returns {Promise<SeoSchemaComponent>} - Success response
1407
695
  * @name getSEOMarkupSchemas
1408
696
  * @summary: List SEO Markup schemas
1409
697
  * @description: Get all SEO Markup schema Templates setup for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSEOMarkupSchemas/).
@@ -1412,30 +700,6 @@ class Content {
1412
700
  { pageType, active, requestHeaders } = { requestHeaders: {} },
1413
701
  { responseHeaders } = { responseHeaders: false }
1414
702
  ) {
1415
- const {
1416
- error,
1417
- } = ContentApplicationValidator.getSEOMarkupSchemas().validate(
1418
- { pageType, active },
1419
- { abortEarly: false, allowUnknown: true }
1420
- );
1421
- if (error) {
1422
- return Promise.reject(new FDKClientValidationError(error));
1423
- }
1424
-
1425
- // Showing warrnings if extra unknown parameters are found
1426
- const {
1427
- error: warrning,
1428
- } = ContentApplicationValidator.getSEOMarkupSchemas().validate(
1429
- { pageType, active },
1430
- { abortEarly: false, allowUnknown: false }
1431
- );
1432
- if (warrning) {
1433
- Logger({
1434
- level: "WARN",
1435
- message: `Parameter Validation warrnings for application > Content > getSEOMarkupSchemas \n ${warrning}`,
1436
- });
1437
- }
1438
-
1439
703
  const query_params = {};
1440
704
  query_params["page_type"] = pageType;
1441
705
  query_params["active"] = active;
@@ -1460,32 +724,13 @@ class Content {
1460
724
  responseData = response[0];
1461
725
  }
1462
726
 
1463
- const {
1464
- error: res_error,
1465
- } = ContentApplicationModel.SeoSchemaComponent().validate(responseData, {
1466
- abortEarly: false,
1467
- allowUnknown: true,
1468
- });
1469
-
1470
- if (res_error) {
1471
- if (this._conf.options.strictResponseCheck === true) {
1472
- return Promise.reject(new FDKResponseValidationError(res_error));
1473
- } else {
1474
- Logger({
1475
- level: "WARN",
1476
- message: `Response Validation Warnings for application > Content > getSEOMarkupSchemas \n ${res_error}`,
1477
- });
1478
- }
1479
- }
1480
-
1481
727
  return response;
1482
728
  }
1483
729
 
1484
730
  /**
1485
- * @param {ContentApplicationValidator.GetSlideshowParam} arg - Arg object.
1486
731
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1487
732
  * @param {import("../ApplicationAPIClient").Options} - Options
1488
- * @returns {Promise<ContentApplicationModel.SlideshowSchema>} - Success response
733
+ * @returns {Promise<SlideshowSchema>} - Success response
1489
734
  * @name getSlideshow
1490
735
  * @summary: Get a Slideshow
1491
736
  * @description: Get a slideshow using its `slug`. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSlideshow/).
@@ -1494,28 +739,6 @@ class Content {
1494
739
  { slug, requestHeaders } = { requestHeaders: {} },
1495
740
  { responseHeaders } = { responseHeaders: false }
1496
741
  ) {
1497
- const { error } = ContentApplicationValidator.getSlideshow().validate(
1498
- { slug },
1499
- { abortEarly: false, allowUnknown: true }
1500
- );
1501
- if (error) {
1502
- return Promise.reject(new FDKClientValidationError(error));
1503
- }
1504
-
1505
- // Showing warrnings if extra unknown parameters are found
1506
- const {
1507
- error: warrning,
1508
- } = ContentApplicationValidator.getSlideshow().validate(
1509
- { slug },
1510
- { abortEarly: false, allowUnknown: false }
1511
- );
1512
- if (warrning) {
1513
- Logger({
1514
- level: "WARN",
1515
- message: `Parameter Validation warrnings for application > Content > getSlideshow \n ${warrning}`,
1516
- });
1517
- }
1518
-
1519
742
  const query_params = {};
1520
743
 
1521
744
  const xHeaders = {};
@@ -1538,32 +761,13 @@ class Content {
1538
761
  responseData = response[0];
1539
762
  }
1540
763
 
1541
- const {
1542
- error: res_error,
1543
- } = ContentApplicationModel.SlideshowSchema().validate(responseData, {
1544
- abortEarly: false,
1545
- allowUnknown: true,
1546
- });
1547
-
1548
- if (res_error) {
1549
- if (this._conf.options.strictResponseCheck === true) {
1550
- return Promise.reject(new FDKResponseValidationError(res_error));
1551
- } else {
1552
- Logger({
1553
- level: "WARN",
1554
- message: `Response Validation Warnings for application > Content > getSlideshow \n ${res_error}`,
1555
- });
1556
- }
1557
- }
1558
-
1559
764
  return response;
1560
765
  }
1561
766
 
1562
767
  /**
1563
- * @param {ContentApplicationValidator.GetSlideshowsParam} arg - Arg object.
1564
768
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1565
769
  * @param {import("../ApplicationAPIClient").Options} - Options
1566
- * @returns {Promise<ContentApplicationModel.SlideshowGetResponse>} - Success response
770
+ * @returns {Promise<SlideshowGetResponse>} - Success response
1567
771
  * @name getSlideshows
1568
772
  * @summary: List Slideshows
1569
773
  * @description: List slideshows along with their details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSlideshows/).
@@ -1572,28 +776,6 @@ class Content {
1572
776
  { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
1573
777
  { responseHeaders } = { responseHeaders: false }
1574
778
  ) {
1575
- const { error } = ContentApplicationValidator.getSlideshows().validate(
1576
- { pageNo, pageSize },
1577
- { abortEarly: false, allowUnknown: true }
1578
- );
1579
- if (error) {
1580
- return Promise.reject(new FDKClientValidationError(error));
1581
- }
1582
-
1583
- // Showing warrnings if extra unknown parameters are found
1584
- const {
1585
- error: warrning,
1586
- } = ContentApplicationValidator.getSlideshows().validate(
1587
- { pageNo, pageSize },
1588
- { abortEarly: false, allowUnknown: false }
1589
- );
1590
- if (warrning) {
1591
- Logger({
1592
- level: "WARN",
1593
- message: `Parameter Validation warrnings for application > Content > getSlideshows \n ${warrning}`,
1594
- });
1595
- }
1596
-
1597
779
  const query_params = {};
1598
780
  query_params["page_no"] = pageNo;
1599
781
  query_params["page_size"] = pageSize;
@@ -1618,31 +800,13 @@ class Content {
1618
800
  responseData = response[0];
1619
801
  }
1620
802
 
1621
- const {
1622
- error: res_error,
1623
- } = ContentApplicationModel.SlideshowGetResponse().validate(responseData, {
1624
- abortEarly: false,
1625
- allowUnknown: true,
1626
- });
1627
-
1628
- if (res_error) {
1629
- if (this._conf.options.strictResponseCheck === true) {
1630
- return Promise.reject(new FDKResponseValidationError(res_error));
1631
- } else {
1632
- Logger({
1633
- level: "WARN",
1634
- message: `Response Validation Warnings for application > Content > getSlideshows \n ${res_error}`,
1635
- });
1636
- }
1637
- }
1638
-
1639
803
  return response;
1640
804
  }
1641
805
 
1642
806
  /**
1643
807
  * @param {Object} arg - Arg object.
1644
808
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
1645
- * @returns {Paginator<ContentApplicationModel.SlideshowGetResponse>}
809
+ * @returns {Paginator<SlideshowGetResponse>}
1646
810
  * @summary: List Slideshows
1647
811
  * @description: List slideshows along with their details.
1648
812
  */
@@ -1667,10 +831,9 @@ class Content {
1667
831
  }
1668
832
 
1669
833
  /**
1670
- * @param {ContentApplicationValidator.GetSupportInformationParam} arg - Arg object.
1671
834
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1672
835
  * @param {import("../ApplicationAPIClient").Options} - Options
1673
- * @returns {Promise<ContentApplicationModel.Support>} - Success response
836
+ * @returns {Promise<Support>} - Success response
1674
837
  * @name getSupportInformation
1675
838
  * @summary: Get customer support information
1676
839
  * @description: Get customer support contact details. Contact Details can be either a phone number or an email-id or both. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSupportInformation/).
@@ -1679,30 +842,6 @@ class Content {
1679
842
  { requestHeaders } = { requestHeaders: {} },
1680
843
  { responseHeaders } = { responseHeaders: false }
1681
844
  ) {
1682
- const {
1683
- error,
1684
- } = ContentApplicationValidator.getSupportInformation().validate(
1685
- {},
1686
- { abortEarly: false, allowUnknown: true }
1687
- );
1688
- if (error) {
1689
- return Promise.reject(new FDKClientValidationError(error));
1690
- }
1691
-
1692
- // Showing warrnings if extra unknown parameters are found
1693
- const {
1694
- error: warrning,
1695
- } = ContentApplicationValidator.getSupportInformation().validate(
1696
- {},
1697
- { abortEarly: false, allowUnknown: false }
1698
- );
1699
- if (warrning) {
1700
- Logger({
1701
- level: "WARN",
1702
- message: `Parameter Validation warrnings for application > Content > getSupportInformation \n ${warrning}`,
1703
- });
1704
- }
1705
-
1706
845
  const query_params = {};
1707
846
 
1708
847
  const xHeaders = {};
@@ -1725,32 +864,13 @@ class Content {
1725
864
  responseData = response[0];
1726
865
  }
1727
866
 
1728
- const {
1729
- error: res_error,
1730
- } = ContentApplicationModel.Support().validate(responseData, {
1731
- abortEarly: false,
1732
- allowUnknown: true,
1733
- });
1734
-
1735
- if (res_error) {
1736
- if (this._conf.options.strictResponseCheck === true) {
1737
- return Promise.reject(new FDKResponseValidationError(res_error));
1738
- } else {
1739
- Logger({
1740
- level: "WARN",
1741
- message: `Response Validation Warnings for application > Content > getSupportInformation \n ${res_error}`,
1742
- });
1743
- }
1744
- }
1745
-
1746
867
  return response;
1747
868
  }
1748
869
 
1749
870
  /**
1750
- * @param {ContentApplicationValidator.GetTagsParam} arg - Arg object.
1751
871
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1752
872
  * @param {import("../ApplicationAPIClient").Options} - Options
1753
- * @returns {Promise<ContentApplicationModel.TagsSchema>} - Success response
873
+ * @returns {Promise<TagsSchema>} - Success response
1754
874
  * @name getTags
1755
875
  * @summary: Get HTML tags
1756
876
  * @description: Lists HTML tags to power additional functionalities within an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getTags/).
@@ -1759,26 +879,6 @@ class Content {
1759
879
  { requestHeaders } = { requestHeaders: {} },
1760
880
  { responseHeaders } = { responseHeaders: false }
1761
881
  ) {
1762
- const { error } = ContentApplicationValidator.getTags().validate(
1763
- {},
1764
- { abortEarly: false, allowUnknown: true }
1765
- );
1766
- if (error) {
1767
- return Promise.reject(new FDKClientValidationError(error));
1768
- }
1769
-
1770
- // Showing warrnings if extra unknown parameters are found
1771
- const { error: warrning } = ContentApplicationValidator.getTags().validate(
1772
- {},
1773
- { abortEarly: false, allowUnknown: false }
1774
- );
1775
- if (warrning) {
1776
- Logger({
1777
- level: "WARN",
1778
- message: `Parameter Validation warrnings for application > Content > getTags \n ${warrning}`,
1779
- });
1780
- }
1781
-
1782
882
  const query_params = {};
1783
883
 
1784
884
  const xHeaders = {};
@@ -1801,24 +901,6 @@ class Content {
1801
901
  responseData = response[0];
1802
902
  }
1803
903
 
1804
- const {
1805
- error: res_error,
1806
- } = ContentApplicationModel.TagsSchema().validate(responseData, {
1807
- abortEarly: false,
1808
- allowUnknown: true,
1809
- });
1810
-
1811
- if (res_error) {
1812
- if (this._conf.options.strictResponseCheck === true) {
1813
- return Promise.reject(new FDKResponseValidationError(res_error));
1814
- } else {
1815
- Logger({
1816
- level: "WARN",
1817
- message: `Response Validation Warnings for application > Content > getTags \n ${res_error}`,
1818
- });
1819
- }
1820
- }
1821
-
1822
904
  return response;
1823
905
  }
1824
906
  }