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

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 (95) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +16 -16
  4. package/sdk/application/Cart/CartApplicationClient.js +101 -48
  5. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +16 -16
  6. package/sdk/application/Catalog/CatalogApplicationClient.js +159 -0
  7. package/sdk/application/Common/CommonApplicationClient.js +6 -0
  8. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -0
  9. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +2 -2
  10. package/sdk/application/Configuration/ConfigurationApplicationClient.js +24 -0
  11. package/sdk/application/Content/ContentApplicationClient.d.ts +59 -7
  12. package/sdk/application/Content/ContentApplicationClient.js +290 -0
  13. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
  14. package/sdk/application/FileStorage/FileStorageApplicationClient.js +24 -0
  15. package/sdk/application/Finance/FinanceApplicationClient.js +6 -0
  16. package/sdk/application/Lead/LeadApplicationClient.d.ts +4 -4
  17. package/sdk/application/Lead/LeadApplicationClient.js +42 -0
  18. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +6 -6
  19. package/sdk/application/Logistic/LogisticApplicationClient.js +69 -2
  20. package/sdk/application/Order/OrderApplicationClient.d.ts +11 -11
  21. package/sdk/application/Order/OrderApplicationClient.js +117 -0
  22. package/sdk/application/Payment/PaymentApplicationClient.d.ts +1 -11
  23. package/sdk/application/Payment/PaymentApplicationClient.js +15 -39
  24. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
  25. package/sdk/application/Rewards/RewardsApplicationClient.js +15 -0
  26. package/sdk/application/Share/ShareApplicationClient.d.ts +4 -4
  27. package/sdk/application/Share/ShareApplicationClient.js +42 -0
  28. package/sdk/application/Theme/ThemeApplicationClient.d.ts +3 -3
  29. package/sdk/application/Theme/ThemeApplicationClient.js +36 -0
  30. package/sdk/application/User/UserApplicationClient.js +6 -0
  31. package/sdk/application/Webhook/WebhookApplicationClient.js +6 -0
  32. package/sdk/common/Utility.d.ts +1 -1
  33. package/sdk/common/Utility.js +4 -4
  34. package/sdk/common/Validator.d.ts +1 -0
  35. package/sdk/common/Validator.js +20 -0
  36. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +12 -33
  37. package/sdk/partner/Logistics/LogisticsPartnerClient.js +38 -209
  38. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +19 -399
  39. package/sdk/partner/Logistics/LogisticsPartnerModel.js +11 -212
  40. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -3
  41. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -22
  42. package/sdk/partner/OAuthClient.js +1 -0
  43. package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -40
  44. package/sdk/partner/Theme/ThemePartnerModel.js +2 -24
  45. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +1 -1
  46. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
  47. package/sdk/platform/Cart/CartPlatformApplicationClient.js +12 -3
  48. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -1
  49. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -1
  50. package/sdk/platform/Cart/CartPlatformModel.d.ts +49 -28
  51. package/sdk/platform/Cart/CartPlatformModel.js +23 -13
  52. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +0 -24
  53. package/sdk/platform/Catalog/CatalogPlatformClient.js +0 -176
  54. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +33 -80
  55. package/sdk/platform/Catalog/CatalogPlatformModel.js +36 -72
  56. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1 -45
  57. package/sdk/platform/Catalog/CatalogPlatformValidator.js +0 -35
  58. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +7 -0
  59. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +3 -0
  60. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +132 -0
  61. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1104 -122
  62. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +159 -1
  63. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +161 -0
  64. package/sdk/platform/Content/ContentPlatformModel.d.ts +220 -5
  65. package/sdk/platform/Content/ContentPlatformModel.js +214 -4
  66. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
  67. package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
  68. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  69. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  70. package/sdk/platform/Order/OrderPlatformClient.d.ts +12 -2
  71. package/sdk/platform/Order/OrderPlatformClient.js +99 -8
  72. package/sdk/platform/Order/OrderPlatformModel.d.ts +3 -75
  73. package/sdk/platform/Order/OrderPlatformModel.js +2 -43
  74. package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -23
  75. package/sdk/platform/Order/OrderPlatformValidator.js +20 -10
  76. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -95
  77. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +78 -701
  78. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +23 -598
  79. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +20 -382
  80. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +3 -136
  81. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -110
  82. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +3 -3
  83. package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
  84. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +3 -6
  85. package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
  86. package/sdk/platform/Share/SharePlatformModel.d.ts +10 -2
  87. package/sdk/platform/Share/SharePlatformModel.js +4 -2
  88. package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -40
  89. package/sdk/platform/Theme/ThemePlatformModel.js +2 -24
  90. package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -0
  91. package/sdk/public/Content/ContentPublicClient.d.ts +3 -3
  92. package/sdk/public/Content/ContentPublicClient.js +28 -0
  93. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  94. package/sdk/public/Partner/PartnerPublicClient.js +10 -0
  95. package/sdk/public/Webhook/WebhookPublicClient.js +1 -0
@@ -1224,6 +1224,165 @@ class Content {
1224
1224
  return response;
1225
1225
  }
1226
1226
 
1227
+ /**
1228
+ * @param {ContentPlatformApplicationValidator.CreateSitemapParam} arg - Arg object
1229
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1230
+ * @param {import("../PlatformAPIClient").Options} - Options
1231
+ * @returns {Promise<ContentPlatformModel.SitemapConfig>} - Success response
1232
+ * @name createSitemap
1233
+ * @summary: Create a new sitemap configuration
1234
+ * @description: Create a new sitemap configuration for a specific company and application. The name must be unique within the scope of the application. The sitemap XML data must be valid XML following the sitemap protocol specification. Once created, the configuration can be activated or deactivated using the is_active flag.
1235
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createSitemap/).
1236
+ */
1237
+ async createSitemap(
1238
+ { body, requestHeaders } = { requestHeaders: {} },
1239
+ { responseHeaders } = { responseHeaders: false }
1240
+ ) {
1241
+ const {
1242
+ error,
1243
+ } = ContentPlatformApplicationValidator.createSitemap().validate(
1244
+ {
1245
+ body,
1246
+ },
1247
+ { abortEarly: false, allowUnknown: true }
1248
+ );
1249
+ if (error) {
1250
+ return Promise.reject(new FDKClientValidationError(error));
1251
+ }
1252
+
1253
+ // Showing warrnings if extra unknown parameters are found
1254
+ const {
1255
+ error: warrning,
1256
+ } = ContentPlatformApplicationValidator.createSitemap().validate(
1257
+ {
1258
+ body,
1259
+ },
1260
+ { abortEarly: false, allowUnknown: false }
1261
+ );
1262
+ if (warrning) {
1263
+ Logger({
1264
+ level: "WARN",
1265
+ message: `Parameter Validation warrnings for platform > Content > createSitemap \n ${warrning}`,
1266
+ });
1267
+ }
1268
+
1269
+ const query_params = {};
1270
+
1271
+ const response = await PlatformAPIClient.execute(
1272
+ this.config,
1273
+ "post",
1274
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/sitemaps`,
1275
+ query_params,
1276
+ body,
1277
+ requestHeaders,
1278
+ { responseHeaders }
1279
+ );
1280
+
1281
+ let responseData = response;
1282
+ if (responseHeaders) {
1283
+ responseData = response[0];
1284
+ }
1285
+
1286
+ const {
1287
+ error: res_error,
1288
+ } = ContentPlatformModel.SitemapConfig().validate(responseData, {
1289
+ abortEarly: false,
1290
+ allowUnknown: true,
1291
+ });
1292
+
1293
+ if (res_error) {
1294
+ if (this.config.options.strictResponseCheck === true) {
1295
+ return Promise.reject(new FDKResponseValidationError(res_error));
1296
+ } else {
1297
+ Logger({
1298
+ level: "WARN",
1299
+ message: `Response Validation Warnings for platform > Content > createSitemap \n ${res_error}`,
1300
+ });
1301
+ }
1302
+ }
1303
+
1304
+ return response;
1305
+ }
1306
+
1307
+ /**
1308
+ * @param {ContentPlatformApplicationValidator.CreateSlideshowParam} arg - Arg object
1309
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1310
+ * @param {import("../PlatformAPIClient").Options} - Options
1311
+ * @returns {Promise<ContentPlatformModel.SlideshowSchema>} - Success response
1312
+ * @name createSlideshow
1313
+ * @summary: Create a slideshow
1314
+ * @description: Use this API to create a slideshow. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createSlideshow/).
1315
+ */
1316
+ async createSlideshow(
1317
+ { body, requestHeaders } = { requestHeaders: {} },
1318
+ { responseHeaders } = { responseHeaders: false }
1319
+ ) {
1320
+ const {
1321
+ error,
1322
+ } = ContentPlatformApplicationValidator.createSlideshow().validate(
1323
+ {
1324
+ body,
1325
+ },
1326
+ { abortEarly: false, allowUnknown: true }
1327
+ );
1328
+ if (error) {
1329
+ return Promise.reject(new FDKClientValidationError(error));
1330
+ }
1331
+
1332
+ // Showing warrnings if extra unknown parameters are found
1333
+ const {
1334
+ error: warrning,
1335
+ } = ContentPlatformApplicationValidator.createSlideshow().validate(
1336
+ {
1337
+ body,
1338
+ },
1339
+ { abortEarly: false, allowUnknown: false }
1340
+ );
1341
+ if (warrning) {
1342
+ Logger({
1343
+ level: "WARN",
1344
+ message: `Parameter Validation warrnings for platform > Content > createSlideshow \n ${warrning}`,
1345
+ });
1346
+ }
1347
+
1348
+ const query_params = {};
1349
+
1350
+ const response = await PlatformAPIClient.execute(
1351
+ this.config,
1352
+ "post",
1353
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/slideshows`,
1354
+ query_params,
1355
+ body,
1356
+ requestHeaders,
1357
+ { responseHeaders }
1358
+ );
1359
+
1360
+ let responseData = response;
1361
+ if (responseHeaders) {
1362
+ responseData = response[0];
1363
+ }
1364
+
1365
+ const {
1366
+ error: res_error,
1367
+ } = ContentPlatformModel.SlideshowSchema().validate(responseData, {
1368
+ abortEarly: false,
1369
+ allowUnknown: true,
1370
+ });
1371
+
1372
+ if (res_error) {
1373
+ if (this.config.options.strictResponseCheck === true) {
1374
+ return Promise.reject(new FDKResponseValidationError(res_error));
1375
+ } else {
1376
+ Logger({
1377
+ level: "WARN",
1378
+ message: `Response Validation Warnings for platform > Content > createSlideshow \n ${res_error}`,
1379
+ });
1380
+ }
1381
+ }
1382
+
1383
+ return response;
1384
+ }
1385
+
1227
1386
  /**
1228
1387
  * @param {ContentPlatformApplicationValidator.DeleteAnnouncementParam} arg
1229
1388
  * - Arg object
@@ -2272,25 +2431,24 @@ class Content {
2272
2431
  }
2273
2432
 
2274
2433
  /**
2275
- * @param {ContentPlatformApplicationValidator.EditDataLoaderParam} arg - Arg object
2434
+ * @param {ContentPlatformApplicationValidator.DeleteSitemapParam} arg - Arg object
2276
2435
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2277
2436
  * @param {import("../PlatformAPIClient").Options} - Options
2278
- * @returns {Promise<ContentPlatformModel.DataLoaderResponseSchema>} -
2279
- * Success response
2280
- * @name editDataLoader
2281
- * @summary: Update a data loader
2282
- * @description: Modify the settings of a specific data loader. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/editDataLoader/).
2437
+ * @returns {Promise<ContentPlatformModel.SitemapConfig>} - Success response
2438
+ * @name deleteSitemap
2439
+ * @summary: Delete a specific sitemap configuration
2440
+ * @description: Permanently delete a sitemap configuration identified by its name. This action cannot be undone. All associated data including the sitemap XML data will be removed.
2441
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteSitemap/).
2283
2442
  */
2284
- async editDataLoader(
2285
- { dataLoaderId, body, requestHeaders } = { requestHeaders: {} },
2443
+ async deleteSitemap(
2444
+ { name, requestHeaders } = { requestHeaders: {} },
2286
2445
  { responseHeaders } = { responseHeaders: false }
2287
2446
  ) {
2288
2447
  const {
2289
2448
  error,
2290
- } = ContentPlatformApplicationValidator.editDataLoader().validate(
2449
+ } = ContentPlatformApplicationValidator.deleteSitemap().validate(
2291
2450
  {
2292
- dataLoaderId,
2293
- body,
2451
+ name,
2294
2452
  },
2295
2453
  { abortEarly: false, allowUnknown: true }
2296
2454
  );
@@ -2301,17 +2459,16 @@ class Content {
2301
2459
  // Showing warrnings if extra unknown parameters are found
2302
2460
  const {
2303
2461
  error: warrning,
2304
- } = ContentPlatformApplicationValidator.editDataLoader().validate(
2462
+ } = ContentPlatformApplicationValidator.deleteSitemap().validate(
2305
2463
  {
2306
- dataLoaderId,
2307
- body,
2464
+ name,
2308
2465
  },
2309
2466
  { abortEarly: false, allowUnknown: false }
2310
2467
  );
2311
2468
  if (warrning) {
2312
2469
  Logger({
2313
2470
  level: "WARN",
2314
- message: `Parameter Validation warrnings for platform > Content > editDataLoader \n ${warrning}`,
2471
+ message: `Parameter Validation warrnings for platform > Content > deleteSitemap \n ${warrning}`,
2315
2472
  });
2316
2473
  }
2317
2474
 
@@ -2319,10 +2476,10 @@ class Content {
2319
2476
 
2320
2477
  const response = await PlatformAPIClient.execute(
2321
2478
  this.config,
2322
- "put",
2323
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/data-loader/${dataLoaderId}`,
2479
+ "delete",
2480
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/sitemaps/${name}`,
2324
2481
  query_params,
2325
- body,
2482
+ undefined,
2326
2483
  requestHeaders,
2327
2484
  { responseHeaders }
2328
2485
  );
@@ -2334,7 +2491,7 @@ class Content {
2334
2491
 
2335
2492
  const {
2336
2493
  error: res_error,
2337
- } = ContentPlatformModel.DataLoaderResponseSchema().validate(responseData, {
2494
+ } = ContentPlatformModel.SitemapConfig().validate(responseData, {
2338
2495
  abortEarly: false,
2339
2496
  allowUnknown: true,
2340
2497
  });
@@ -2345,7 +2502,7 @@ class Content {
2345
2502
  } else {
2346
2503
  Logger({
2347
2504
  level: "WARN",
2348
- message: `Response Validation Warnings for platform > Content > editDataLoader \n ${res_error}`,
2505
+ message: `Response Validation Warnings for platform > Content > deleteSitemap \n ${res_error}`,
2349
2506
  });
2350
2507
  }
2351
2508
  }
@@ -2354,26 +2511,23 @@ class Content {
2354
2511
  }
2355
2512
 
2356
2513
  /**
2357
- * @param {ContentPlatformApplicationValidator.EditInjectableTagParam} arg
2358
- * - Arg object
2359
- *
2514
+ * @param {ContentPlatformApplicationValidator.DeleteSlideshowParam} arg - Arg object
2360
2515
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2361
2516
  * @param {import("../PlatformAPIClient").Options} - Options
2362
- * @returns {Promise<ContentPlatformModel.TagsSchema>} - Success response
2363
- * @name editInjectableTag
2364
- * @summary: Update HTML tag
2365
- * @description: Modify settings for an injectable tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/editInjectableTag/).
2517
+ * @returns {Promise<ContentPlatformModel.SlideshowSchema>} - Success response
2518
+ * @name deleteSlideshow
2519
+ * @summary: Delete a slideshow
2520
+ * @description: Use this API to delete an existing slideshow. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteSlideshow/).
2366
2521
  */
2367
- async editInjectableTag(
2368
- { tagId, body, requestHeaders } = { requestHeaders: {} },
2522
+ async deleteSlideshow(
2523
+ { id, requestHeaders } = { requestHeaders: {} },
2369
2524
  { responseHeaders } = { responseHeaders: false }
2370
2525
  ) {
2371
2526
  const {
2372
2527
  error,
2373
- } = ContentPlatformApplicationValidator.editInjectableTag().validate(
2528
+ } = ContentPlatformApplicationValidator.deleteSlideshow().validate(
2374
2529
  {
2375
- tagId,
2376
- body,
2530
+ id,
2377
2531
  },
2378
2532
  { abortEarly: false, allowUnknown: true }
2379
2533
  );
@@ -2384,17 +2538,16 @@ class Content {
2384
2538
  // Showing warrnings if extra unknown parameters are found
2385
2539
  const {
2386
2540
  error: warrning,
2387
- } = ContentPlatformApplicationValidator.editInjectableTag().validate(
2541
+ } = ContentPlatformApplicationValidator.deleteSlideshow().validate(
2388
2542
  {
2389
- tagId,
2390
- body,
2543
+ id,
2391
2544
  },
2392
2545
  { abortEarly: false, allowUnknown: false }
2393
2546
  );
2394
2547
  if (warrning) {
2395
2548
  Logger({
2396
2549
  level: "WARN",
2397
- message: `Parameter Validation warrnings for platform > Content > editInjectableTag \n ${warrning}`,
2550
+ message: `Parameter Validation warrnings for platform > Content > deleteSlideshow \n ${warrning}`,
2398
2551
  });
2399
2552
  }
2400
2553
 
@@ -2402,10 +2555,10 @@ class Content {
2402
2555
 
2403
2556
  const response = await PlatformAPIClient.execute(
2404
2557
  this.config,
2405
- "put",
2406
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/tags/edit/handpicked/${tagId}`,
2558
+ "delete",
2559
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/slideshows/${id}`,
2407
2560
  query_params,
2408
- body,
2561
+ undefined,
2409
2562
  requestHeaders,
2410
2563
  { responseHeaders }
2411
2564
  );
@@ -2417,7 +2570,7 @@ class Content {
2417
2570
 
2418
2571
  const {
2419
2572
  error: res_error,
2420
- } = ContentPlatformModel.TagsSchema().validate(responseData, {
2573
+ } = ContentPlatformModel.SlideshowSchema().validate(responseData, {
2421
2574
  abortEarly: false,
2422
2575
  allowUnknown: true,
2423
2576
  });
@@ -2428,7 +2581,7 @@ class Content {
2428
2581
  } else {
2429
2582
  Logger({
2430
2583
  level: "WARN",
2431
- message: `Response Validation Warnings for platform > Content > editInjectableTag \n ${res_error}`,
2584
+ message: `Response Validation Warnings for platform > Content > deleteSlideshow \n ${res_error}`,
2432
2585
  });
2433
2586
  }
2434
2587
  }
@@ -2437,25 +2590,24 @@ class Content {
2437
2590
  }
2438
2591
 
2439
2592
  /**
2440
- * @param {ContentPlatformApplicationValidator.EditSEOMarkupSchemaParam} arg
2441
- * - Arg object
2442
- *
2593
+ * @param {ContentPlatformApplicationValidator.EditDataLoaderParam} arg - Arg object
2443
2594
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2444
2595
  * @param {import("../PlatformAPIClient").Options} - Options
2445
- * @returns {Promise<ContentPlatformModel.SEOSchemaMarkupTemplate>} - Success response
2446
- * @name editSEOMarkupSchema
2447
- * @summary: Get SEO Markup Schema
2448
- * @description: Use this API to Get SEO Markup Schema - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/editSEOMarkupSchema/).
2596
+ * @returns {Promise<ContentPlatformModel.DataLoaderResponseSchema>} -
2597
+ * Success response
2598
+ * @name editDataLoader
2599
+ * @summary: Update a data loader
2600
+ * @description: Modify the settings of a specific data loader. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/editDataLoader/).
2449
2601
  */
2450
- async editSEOMarkupSchema(
2451
- { id, body, requestHeaders } = { requestHeaders: {} },
2602
+ async editDataLoader(
2603
+ { dataLoaderId, body, requestHeaders } = { requestHeaders: {} },
2452
2604
  { responseHeaders } = { responseHeaders: false }
2453
2605
  ) {
2454
2606
  const {
2455
2607
  error,
2456
- } = ContentPlatformApplicationValidator.editSEOMarkupSchema().validate(
2608
+ } = ContentPlatformApplicationValidator.editDataLoader().validate(
2457
2609
  {
2458
- id,
2610
+ dataLoaderId,
2459
2611
  body,
2460
2612
  },
2461
2613
  { abortEarly: false, allowUnknown: true }
@@ -2467,9 +2619,9 @@ class Content {
2467
2619
  // Showing warrnings if extra unknown parameters are found
2468
2620
  const {
2469
2621
  error: warrning,
2470
- } = ContentPlatformApplicationValidator.editSEOMarkupSchema().validate(
2622
+ } = ContentPlatformApplicationValidator.editDataLoader().validate(
2471
2623
  {
2472
- id,
2624
+ dataLoaderId,
2473
2625
  body,
2474
2626
  },
2475
2627
  { abortEarly: false, allowUnknown: false }
@@ -2477,7 +2629,7 @@ class Content {
2477
2629
  if (warrning) {
2478
2630
  Logger({
2479
2631
  level: "WARN",
2480
- message: `Parameter Validation warrnings for platform > Content > editSEOMarkupSchema \n ${warrning}`,
2632
+ message: `Parameter Validation warrnings for platform > Content > editDataLoader \n ${warrning}`,
2481
2633
  });
2482
2634
  }
2483
2635
 
@@ -2486,7 +2638,7 @@ class Content {
2486
2638
  const response = await PlatformAPIClient.execute(
2487
2639
  this.config,
2488
2640
  "put",
2489
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema/${id}`,
2641
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/data-loader/${dataLoaderId}`,
2490
2642
  query_params,
2491
2643
  body,
2492
2644
  requestHeaders,
@@ -2500,7 +2652,7 @@ class Content {
2500
2652
 
2501
2653
  const {
2502
2654
  error: res_error,
2503
- } = ContentPlatformModel.SEOSchemaMarkupTemplate().validate(responseData, {
2655
+ } = ContentPlatformModel.DataLoaderResponseSchema().validate(responseData, {
2504
2656
  abortEarly: false,
2505
2657
  allowUnknown: true,
2506
2658
  });
@@ -2511,7 +2663,7 @@ class Content {
2511
2663
  } else {
2512
2664
  Logger({
2513
2665
  level: "WARN",
2514
- message: `Response Validation Warnings for platform > Content > editSEOMarkupSchema \n ${res_error}`,
2666
+ message: `Response Validation Warnings for platform > Content > editDataLoader \n ${res_error}`,
2515
2667
  });
2516
2668
  }
2517
2669
  }
@@ -2520,27 +2672,26 @@ class Content {
2520
2672
  }
2521
2673
 
2522
2674
  /**
2523
- * @param {ContentPlatformApplicationValidator.ExportAppCustomObjectEntriesBySlugParam} arg
2675
+ * @param {ContentPlatformApplicationValidator.EditInjectableTagParam} arg
2524
2676
  * - Arg object
2525
2677
  *
2526
2678
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2527
2679
  * @param {import("../PlatformAPIClient").Options} - Options
2528
- * @returns {Promise<ContentPlatformModel.CustomObjectBulkEntryInitiateDownload>}
2529
- * - Success response
2530
- *
2531
- * @name exportAppCustomObjectEntriesBySlug
2532
- * @summary: Initiate download for bulk custom object entries
2533
- * @description: Custom object bulk export of bulk entries can be perform using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/exportAppCustomObjectEntriesBySlug/).
2680
+ * @returns {Promise<ContentPlatformModel.TagsSchema>} - Success response
2681
+ * @name editInjectableTag
2682
+ * @summary: Update HTML tag
2683
+ * @description: Modify settings for an injectable tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/editInjectableTag/).
2534
2684
  */
2535
- async exportAppCustomObjectEntriesBySlug(
2536
- { slug, requestHeaders } = { requestHeaders: {} },
2685
+ async editInjectableTag(
2686
+ { tagId, body, requestHeaders } = { requestHeaders: {} },
2537
2687
  { responseHeaders } = { responseHeaders: false }
2538
2688
  ) {
2539
2689
  const {
2540
2690
  error,
2541
- } = ContentPlatformApplicationValidator.exportAppCustomObjectEntriesBySlug().validate(
2691
+ } = ContentPlatformApplicationValidator.editInjectableTag().validate(
2542
2692
  {
2543
- slug,
2693
+ tagId,
2694
+ body,
2544
2695
  },
2545
2696
  { abortEarly: false, allowUnknown: true }
2546
2697
  );
@@ -2551,16 +2702,17 @@ class Content {
2551
2702
  // Showing warrnings if extra unknown parameters are found
2552
2703
  const {
2553
2704
  error: warrning,
2554
- } = ContentPlatformApplicationValidator.exportAppCustomObjectEntriesBySlug().validate(
2705
+ } = ContentPlatformApplicationValidator.editInjectableTag().validate(
2555
2706
  {
2556
- slug,
2707
+ tagId,
2708
+ body,
2557
2709
  },
2558
2710
  { abortEarly: false, allowUnknown: false }
2559
2711
  );
2560
2712
  if (warrning) {
2561
2713
  Logger({
2562
2714
  level: "WARN",
2563
- message: `Parameter Validation warrnings for platform > Content > exportAppCustomObjectEntriesBySlug \n ${warrning}`,
2715
+ message: `Parameter Validation warrnings for platform > Content > editInjectableTag \n ${warrning}`,
2564
2716
  });
2565
2717
  }
2566
2718
 
@@ -2568,10 +2720,10 @@ class Content {
2568
2720
 
2569
2721
  const response = await PlatformAPIClient.execute(
2570
2722
  this.config,
2571
- "get",
2572
- `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}/bulk/download`,
2723
+ "put",
2724
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/tags/edit/handpicked/${tagId}`,
2573
2725
  query_params,
2574
- undefined,
2726
+ body,
2575
2727
  requestHeaders,
2576
2728
  { responseHeaders }
2577
2729
  );
@@ -2583,13 +2735,179 @@ class Content {
2583
2735
 
2584
2736
  const {
2585
2737
  error: res_error,
2586
- } = ContentPlatformModel.CustomObjectBulkEntryInitiateDownload().validate(
2587
- responseData,
2588
- { abortEarly: false, allowUnknown: true }
2589
- );
2590
-
2591
- if (res_error) {
2592
- if (this.config.options.strictResponseCheck === true) {
2738
+ } = ContentPlatformModel.TagsSchema().validate(responseData, {
2739
+ abortEarly: false,
2740
+ allowUnknown: true,
2741
+ });
2742
+
2743
+ if (res_error) {
2744
+ if (this.config.options.strictResponseCheck === true) {
2745
+ return Promise.reject(new FDKResponseValidationError(res_error));
2746
+ } else {
2747
+ Logger({
2748
+ level: "WARN",
2749
+ message: `Response Validation Warnings for platform > Content > editInjectableTag \n ${res_error}`,
2750
+ });
2751
+ }
2752
+ }
2753
+
2754
+ return response;
2755
+ }
2756
+
2757
+ /**
2758
+ * @param {ContentPlatformApplicationValidator.EditSEOMarkupSchemaParam} arg
2759
+ * - Arg object
2760
+ *
2761
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2762
+ * @param {import("../PlatformAPIClient").Options} - Options
2763
+ * @returns {Promise<ContentPlatformModel.SEOSchemaMarkupTemplate>} - Success response
2764
+ * @name editSEOMarkupSchema
2765
+ * @summary: Get SEO Markup Schema
2766
+ * @description: Use this API to Get SEO Markup Schema - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/editSEOMarkupSchema/).
2767
+ */
2768
+ async editSEOMarkupSchema(
2769
+ { id, body, requestHeaders } = { requestHeaders: {} },
2770
+ { responseHeaders } = { responseHeaders: false }
2771
+ ) {
2772
+ const {
2773
+ error,
2774
+ } = ContentPlatformApplicationValidator.editSEOMarkupSchema().validate(
2775
+ {
2776
+ id,
2777
+ body,
2778
+ },
2779
+ { abortEarly: false, allowUnknown: true }
2780
+ );
2781
+ if (error) {
2782
+ return Promise.reject(new FDKClientValidationError(error));
2783
+ }
2784
+
2785
+ // Showing warrnings if extra unknown parameters are found
2786
+ const {
2787
+ error: warrning,
2788
+ } = ContentPlatformApplicationValidator.editSEOMarkupSchema().validate(
2789
+ {
2790
+ id,
2791
+ body,
2792
+ },
2793
+ { abortEarly: false, allowUnknown: false }
2794
+ );
2795
+ if (warrning) {
2796
+ Logger({
2797
+ level: "WARN",
2798
+ message: `Parameter Validation warrnings for platform > Content > editSEOMarkupSchema \n ${warrning}`,
2799
+ });
2800
+ }
2801
+
2802
+ const query_params = {};
2803
+
2804
+ const response = await PlatformAPIClient.execute(
2805
+ this.config,
2806
+ "put",
2807
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema/${id}`,
2808
+ query_params,
2809
+ body,
2810
+ requestHeaders,
2811
+ { responseHeaders }
2812
+ );
2813
+
2814
+ let responseData = response;
2815
+ if (responseHeaders) {
2816
+ responseData = response[0];
2817
+ }
2818
+
2819
+ const {
2820
+ error: res_error,
2821
+ } = ContentPlatformModel.SEOSchemaMarkupTemplate().validate(responseData, {
2822
+ abortEarly: false,
2823
+ allowUnknown: true,
2824
+ });
2825
+
2826
+ if (res_error) {
2827
+ if (this.config.options.strictResponseCheck === true) {
2828
+ return Promise.reject(new FDKResponseValidationError(res_error));
2829
+ } else {
2830
+ Logger({
2831
+ level: "WARN",
2832
+ message: `Response Validation Warnings for platform > Content > editSEOMarkupSchema \n ${res_error}`,
2833
+ });
2834
+ }
2835
+ }
2836
+
2837
+ return response;
2838
+ }
2839
+
2840
+ /**
2841
+ * @param {ContentPlatformApplicationValidator.ExportAppCustomObjectEntriesBySlugParam} arg
2842
+ * - Arg object
2843
+ *
2844
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2845
+ * @param {import("../PlatformAPIClient").Options} - Options
2846
+ * @returns {Promise<ContentPlatformModel.CustomObjectBulkEntryInitiateDownload>}
2847
+ * - Success response
2848
+ *
2849
+ * @name exportAppCustomObjectEntriesBySlug
2850
+ * @summary: Initiate download for bulk custom object entries
2851
+ * @description: Custom object bulk export of bulk entries can be perform using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/exportAppCustomObjectEntriesBySlug/).
2852
+ */
2853
+ async exportAppCustomObjectEntriesBySlug(
2854
+ { slug, requestHeaders } = { requestHeaders: {} },
2855
+ { responseHeaders } = { responseHeaders: false }
2856
+ ) {
2857
+ const {
2858
+ error,
2859
+ } = ContentPlatformApplicationValidator.exportAppCustomObjectEntriesBySlug().validate(
2860
+ {
2861
+ slug,
2862
+ },
2863
+ { abortEarly: false, allowUnknown: true }
2864
+ );
2865
+ if (error) {
2866
+ return Promise.reject(new FDKClientValidationError(error));
2867
+ }
2868
+
2869
+ // Showing warrnings if extra unknown parameters are found
2870
+ const {
2871
+ error: warrning,
2872
+ } = ContentPlatformApplicationValidator.exportAppCustomObjectEntriesBySlug().validate(
2873
+ {
2874
+ slug,
2875
+ },
2876
+ { abortEarly: false, allowUnknown: false }
2877
+ );
2878
+ if (warrning) {
2879
+ Logger({
2880
+ level: "WARN",
2881
+ message: `Parameter Validation warrnings for platform > Content > exportAppCustomObjectEntriesBySlug \n ${warrning}`,
2882
+ });
2883
+ }
2884
+
2885
+ const query_params = {};
2886
+
2887
+ const response = await PlatformAPIClient.execute(
2888
+ this.config,
2889
+ "get",
2890
+ `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}/bulk/download`,
2891
+ query_params,
2892
+ undefined,
2893
+ requestHeaders,
2894
+ { responseHeaders }
2895
+ );
2896
+
2897
+ let responseData = response;
2898
+ if (responseHeaders) {
2899
+ responseData = response[0];
2900
+ }
2901
+
2902
+ const {
2903
+ error: res_error,
2904
+ } = ContentPlatformModel.CustomObjectBulkEntryInitiateDownload().validate(
2905
+ responseData,
2906
+ { abortEarly: false, allowUnknown: true }
2907
+ );
2908
+
2909
+ if (res_error) {
2910
+ if (this.config.options.strictResponseCheck === true) {
2593
2911
  return Promise.reject(new FDKResponseValidationError(res_error));
2594
2912
  } else {
2595
2913
  Logger({
@@ -4316,6 +4634,83 @@ class Content {
4316
4634
  return response;
4317
4635
  }
4318
4636
 
4637
+ /**
4638
+ * @param {ContentPlatformApplicationValidator.GetDefaultSitemapConfigParam} arg
4639
+ * - Arg object
4640
+ *
4641
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4642
+ * @param {import("../PlatformAPIClient").Options} - Options
4643
+ * @returns {Promise<ContentPlatformModel.DefaultSitemapConfig>} - Success response
4644
+ * @name getDefaultSitemapConfig
4645
+ * @summary: Get default sitemap configuration
4646
+ * @description: Retrieves the current default sitemap configuration settings - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getDefaultSitemapConfig/).
4647
+ */
4648
+ async getDefaultSitemapConfig(
4649
+ { requestHeaders } = { requestHeaders: {} },
4650
+ { responseHeaders } = { responseHeaders: false }
4651
+ ) {
4652
+ const {
4653
+ error,
4654
+ } = ContentPlatformApplicationValidator.getDefaultSitemapConfig().validate(
4655
+ {},
4656
+ { abortEarly: false, allowUnknown: true }
4657
+ );
4658
+ if (error) {
4659
+ return Promise.reject(new FDKClientValidationError(error));
4660
+ }
4661
+
4662
+ // Showing warrnings if extra unknown parameters are found
4663
+ const {
4664
+ error: warrning,
4665
+ } = ContentPlatformApplicationValidator.getDefaultSitemapConfig().validate(
4666
+ {},
4667
+ { abortEarly: false, allowUnknown: false }
4668
+ );
4669
+ if (warrning) {
4670
+ Logger({
4671
+ level: "WARN",
4672
+ message: `Parameter Validation warrnings for platform > Content > getDefaultSitemapConfig \n ${warrning}`,
4673
+ });
4674
+ }
4675
+
4676
+ const query_params = {};
4677
+
4678
+ const response = await PlatformAPIClient.execute(
4679
+ this.config,
4680
+ "get",
4681
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/sitemap/default`,
4682
+ query_params,
4683
+ undefined,
4684
+ requestHeaders,
4685
+ { responseHeaders }
4686
+ );
4687
+
4688
+ let responseData = response;
4689
+ if (responseHeaders) {
4690
+ responseData = response[0];
4691
+ }
4692
+
4693
+ const {
4694
+ error: res_error,
4695
+ } = ContentPlatformModel.DefaultSitemapConfig().validate(responseData, {
4696
+ abortEarly: false,
4697
+ allowUnknown: true,
4698
+ });
4699
+
4700
+ if (res_error) {
4701
+ if (this.config.options.strictResponseCheck === true) {
4702
+ return Promise.reject(new FDKResponseValidationError(res_error));
4703
+ } else {
4704
+ Logger({
4705
+ level: "WARN",
4706
+ message: `Response Validation Warnings for platform > Content > getDefaultSitemapConfig \n ${res_error}`,
4707
+ });
4708
+ }
4709
+ }
4710
+
4711
+ return response;
4712
+ }
4713
+
4319
4714
  /**
4320
4715
  * @param {ContentPlatformApplicationValidator.GetFaqByIdOrSlugParam} arg - Arg object
4321
4716
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -5558,16 +5953,361 @@ class Content {
5558
5953
  if (warrning) {
5559
5954
  Logger({
5560
5955
  level: "WARN",
5561
- message: `Parameter Validation warrnings for platform > Content > getSEOConfiguration \n ${warrning}`,
5956
+ message: `Parameter Validation warrnings for platform > Content > getSEOConfiguration \n ${warrning}`,
5957
+ });
5958
+ }
5959
+
5960
+ const query_params = {};
5961
+
5962
+ const response = await PlatformAPIClient.execute(
5963
+ this.config,
5964
+ "get",
5965
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo`,
5966
+ query_params,
5967
+ undefined,
5968
+ requestHeaders,
5969
+ { responseHeaders }
5970
+ );
5971
+
5972
+ let responseData = response;
5973
+ if (responseHeaders) {
5974
+ responseData = response[0];
5975
+ }
5976
+
5977
+ const {
5978
+ error: res_error,
5979
+ } = ContentPlatformModel.SeoComponent().validate(responseData, {
5980
+ abortEarly: false,
5981
+ allowUnknown: true,
5982
+ });
5983
+
5984
+ if (res_error) {
5985
+ if (this.config.options.strictResponseCheck === true) {
5986
+ return Promise.reject(new FDKResponseValidationError(res_error));
5987
+ } else {
5988
+ Logger({
5989
+ level: "WARN",
5990
+ message: `Response Validation Warnings for platform > Content > getSEOConfiguration \n ${res_error}`,
5991
+ });
5992
+ }
5993
+ }
5994
+
5995
+ return response;
5996
+ }
5997
+
5998
+ /**
5999
+ * @param {ContentPlatformApplicationValidator.GetSEOMarkupSchemaParam} arg
6000
+ * - Arg object
6001
+ *
6002
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6003
+ * @param {import("../PlatformAPIClient").Options} - Options
6004
+ * @returns {Promise<ContentPlatformModel.SEOSchemaMarkupTemplate>} - Success response
6005
+ * @name getSEOMarkupSchema
6006
+ * @summary: Get SEO Markup Schema
6007
+ * @description: Use this API to Get SEO Markup Schema - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getSEOMarkupSchema/).
6008
+ */
6009
+ async getSEOMarkupSchema(
6010
+ { id, requestHeaders } = { requestHeaders: {} },
6011
+ { responseHeaders } = { responseHeaders: false }
6012
+ ) {
6013
+ const {
6014
+ error,
6015
+ } = ContentPlatformApplicationValidator.getSEOMarkupSchema().validate(
6016
+ {
6017
+ id,
6018
+ },
6019
+ { abortEarly: false, allowUnknown: true }
6020
+ );
6021
+ if (error) {
6022
+ return Promise.reject(new FDKClientValidationError(error));
6023
+ }
6024
+
6025
+ // Showing warrnings if extra unknown parameters are found
6026
+ const {
6027
+ error: warrning,
6028
+ } = ContentPlatformApplicationValidator.getSEOMarkupSchema().validate(
6029
+ {
6030
+ id,
6031
+ },
6032
+ { abortEarly: false, allowUnknown: false }
6033
+ );
6034
+ if (warrning) {
6035
+ Logger({
6036
+ level: "WARN",
6037
+ message: `Parameter Validation warrnings for platform > Content > getSEOMarkupSchema \n ${warrning}`,
6038
+ });
6039
+ }
6040
+
6041
+ const query_params = {};
6042
+
6043
+ const response = await PlatformAPIClient.execute(
6044
+ this.config,
6045
+ "get",
6046
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema/${id}`,
6047
+ query_params,
6048
+ undefined,
6049
+ requestHeaders,
6050
+ { responseHeaders }
6051
+ );
6052
+
6053
+ let responseData = response;
6054
+ if (responseHeaders) {
6055
+ responseData = response[0];
6056
+ }
6057
+
6058
+ const {
6059
+ error: res_error,
6060
+ } = ContentPlatformModel.SEOSchemaMarkupTemplate().validate(responseData, {
6061
+ abortEarly: false,
6062
+ allowUnknown: true,
6063
+ });
6064
+
6065
+ if (res_error) {
6066
+ if (this.config.options.strictResponseCheck === true) {
6067
+ return Promise.reject(new FDKResponseValidationError(res_error));
6068
+ } else {
6069
+ Logger({
6070
+ level: "WARN",
6071
+ message: `Response Validation Warnings for platform > Content > getSEOMarkupSchema \n ${res_error}`,
6072
+ });
6073
+ }
6074
+ }
6075
+
6076
+ return response;
6077
+ }
6078
+
6079
+ /**
6080
+ * @param {ContentPlatformApplicationValidator.GetSEOMarkupSchemasParam} arg
6081
+ * - Arg object
6082
+ *
6083
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6084
+ * @param {import("../PlatformAPIClient").Options} - Options
6085
+ * @returns {Promise<ContentPlatformModel.SeoSchemaComponent>} - Success response
6086
+ * @name getSEOMarkupSchemas
6087
+ * @summary: List default SEO Markup Schemas
6088
+ * @description: Use this API to List default SEO Markup Schemas - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getSEOMarkupSchemas/).
6089
+ */
6090
+ async getSEOMarkupSchemas(
6091
+ { title, active, pageNo, pageSize, requestHeaders } = {
6092
+ requestHeaders: {},
6093
+ },
6094
+ { responseHeaders } = { responseHeaders: false }
6095
+ ) {
6096
+ const {
6097
+ error,
6098
+ } = ContentPlatformApplicationValidator.getSEOMarkupSchemas().validate(
6099
+ {
6100
+ title,
6101
+ active,
6102
+ pageNo,
6103
+ pageSize,
6104
+ },
6105
+ { abortEarly: false, allowUnknown: true }
6106
+ );
6107
+ if (error) {
6108
+ return Promise.reject(new FDKClientValidationError(error));
6109
+ }
6110
+
6111
+ // Showing warrnings if extra unknown parameters are found
6112
+ const {
6113
+ error: warrning,
6114
+ } = ContentPlatformApplicationValidator.getSEOMarkupSchemas().validate(
6115
+ {
6116
+ title,
6117
+ active,
6118
+ pageNo,
6119
+ pageSize,
6120
+ },
6121
+ { abortEarly: false, allowUnknown: false }
6122
+ );
6123
+ if (warrning) {
6124
+ Logger({
6125
+ level: "WARN",
6126
+ message: `Parameter Validation warrnings for platform > Content > getSEOMarkupSchemas \n ${warrning}`,
6127
+ });
6128
+ }
6129
+
6130
+ const query_params = {};
6131
+ query_params["title"] = title;
6132
+ query_params["active"] = active;
6133
+ query_params["page_no"] = pageNo;
6134
+ query_params["page_size"] = pageSize;
6135
+
6136
+ const response = await PlatformAPIClient.execute(
6137
+ this.config,
6138
+ "get",
6139
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema`,
6140
+ query_params,
6141
+ undefined,
6142
+ requestHeaders,
6143
+ { responseHeaders }
6144
+ );
6145
+
6146
+ let responseData = response;
6147
+ if (responseHeaders) {
6148
+ responseData = response[0];
6149
+ }
6150
+
6151
+ const {
6152
+ error: res_error,
6153
+ } = ContentPlatformModel.SeoSchemaComponent().validate(responseData, {
6154
+ abortEarly: false,
6155
+ allowUnknown: true,
6156
+ });
6157
+
6158
+ if (res_error) {
6159
+ if (this.config.options.strictResponseCheck === true) {
6160
+ return Promise.reject(new FDKResponseValidationError(res_error));
6161
+ } else {
6162
+ Logger({
6163
+ level: "WARN",
6164
+ message: `Response Validation Warnings for platform > Content > getSEOMarkupSchemas \n ${res_error}`,
6165
+ });
6166
+ }
6167
+ }
6168
+
6169
+ return response;
6170
+ }
6171
+
6172
+ /**
6173
+ * @param {ContentPlatformApplicationValidator.GetSitemapParam} arg - Arg object
6174
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6175
+ * @param {import("../PlatformAPIClient").Options} - Options
6176
+ * @returns {Promise<ContentPlatformModel.SitemapConfig>} - Success response
6177
+ * @name getSitemap
6178
+ * @summary: Get a specific sitemap configuration
6179
+ * @description: Retrieve a specific sitemap configuration by its name. Returns the complete configuration including the sitemap XML data, activation status, and timestamps.
6180
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getSitemap/).
6181
+ */
6182
+ async getSitemap(
6183
+ { name, requestHeaders } = { requestHeaders: {} },
6184
+ { responseHeaders } = { responseHeaders: false }
6185
+ ) {
6186
+ const { error } = ContentPlatformApplicationValidator.getSitemap().validate(
6187
+ {
6188
+ name,
6189
+ },
6190
+ { abortEarly: false, allowUnknown: true }
6191
+ );
6192
+ if (error) {
6193
+ return Promise.reject(new FDKClientValidationError(error));
6194
+ }
6195
+
6196
+ // Showing warrnings if extra unknown parameters are found
6197
+ const {
6198
+ error: warrning,
6199
+ } = ContentPlatformApplicationValidator.getSitemap().validate(
6200
+ {
6201
+ name,
6202
+ },
6203
+ { abortEarly: false, allowUnknown: false }
6204
+ );
6205
+ if (warrning) {
6206
+ Logger({
6207
+ level: "WARN",
6208
+ message: `Parameter Validation warrnings for platform > Content > getSitemap \n ${warrning}`,
6209
+ });
6210
+ }
6211
+
6212
+ const query_params = {};
6213
+
6214
+ const response = await PlatformAPIClient.execute(
6215
+ this.config,
6216
+ "get",
6217
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/sitemaps/${name}`,
6218
+ query_params,
6219
+ undefined,
6220
+ requestHeaders,
6221
+ { responseHeaders }
6222
+ );
6223
+
6224
+ let responseData = response;
6225
+ if (responseHeaders) {
6226
+ responseData = response[0];
6227
+ }
6228
+
6229
+ const {
6230
+ error: res_error,
6231
+ } = ContentPlatformModel.SitemapConfig().validate(responseData, {
6232
+ abortEarly: false,
6233
+ allowUnknown: true,
6234
+ });
6235
+
6236
+ if (res_error) {
6237
+ if (this.config.options.strictResponseCheck === true) {
6238
+ return Promise.reject(new FDKResponseValidationError(res_error));
6239
+ } else {
6240
+ Logger({
6241
+ level: "WARN",
6242
+ message: `Response Validation Warnings for platform > Content > getSitemap \n ${res_error}`,
6243
+ });
6244
+ }
6245
+ }
6246
+
6247
+ return response;
6248
+ }
6249
+
6250
+ /**
6251
+ * @param {ContentPlatformApplicationValidator.GetSitemapsParam} arg - Arg object
6252
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6253
+ * @param {import("../PlatformAPIClient").Options} - Options
6254
+ * @returns {Promise<ContentPlatformModel.SitemapConfigurationList>} -
6255
+ * Success response
6256
+ * @name getSitemaps
6257
+ * @summary: List sitemap configurations
6258
+ * @description: Retrieve a list of sitemap configurations for a specific company and application. Each configuration contains the sitemap XML data and its activation status.
6259
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getSitemaps/).
6260
+ */
6261
+ async getSitemaps(
6262
+ { pageNo, pageSize, isActive, name, requestHeaders } = {
6263
+ requestHeaders: {},
6264
+ },
6265
+ { responseHeaders } = { responseHeaders: false }
6266
+ ) {
6267
+ const {
6268
+ error,
6269
+ } = ContentPlatformApplicationValidator.getSitemaps().validate(
6270
+ {
6271
+ pageNo,
6272
+ pageSize,
6273
+ isActive,
6274
+ name,
6275
+ },
6276
+ { abortEarly: false, allowUnknown: true }
6277
+ );
6278
+ if (error) {
6279
+ return Promise.reject(new FDKClientValidationError(error));
6280
+ }
6281
+
6282
+ // Showing warrnings if extra unknown parameters are found
6283
+ const {
6284
+ error: warrning,
6285
+ } = ContentPlatformApplicationValidator.getSitemaps().validate(
6286
+ {
6287
+ pageNo,
6288
+ pageSize,
6289
+ isActive,
6290
+ name,
6291
+ },
6292
+ { abortEarly: false, allowUnknown: false }
6293
+ );
6294
+ if (warrning) {
6295
+ Logger({
6296
+ level: "WARN",
6297
+ message: `Parameter Validation warrnings for platform > Content > getSitemaps \n ${warrning}`,
5562
6298
  });
5563
6299
  }
5564
6300
 
5565
6301
  const query_params = {};
6302
+ query_params["page_no"] = pageNo;
6303
+ query_params["page_size"] = pageSize;
6304
+ query_params["is_active"] = isActive;
6305
+ query_params["name"] = name;
5566
6306
 
5567
6307
  const response = await PlatformAPIClient.execute(
5568
6308
  this.config,
5569
6309
  "get",
5570
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo`,
6310
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/sitemaps`,
5571
6311
  query_params,
5572
6312
  undefined,
5573
6313
  requestHeaders,
@@ -5581,7 +6321,7 @@ class Content {
5581
6321
 
5582
6322
  const {
5583
6323
  error: res_error,
5584
- } = ContentPlatformModel.SeoComponent().validate(responseData, {
6324
+ } = ContentPlatformModel.SitemapConfigurationList().validate(responseData, {
5585
6325
  abortEarly: false,
5586
6326
  allowUnknown: true,
5587
6327
  });
@@ -5592,7 +6332,7 @@ class Content {
5592
6332
  } else {
5593
6333
  Logger({
5594
6334
  level: "WARN",
5595
- message: `Response Validation Warnings for platform > Content > getSEOConfiguration \n ${res_error}`,
6335
+ message: `Response Validation Warnings for platform > Content > getSitemaps \n ${res_error}`,
5596
6336
  });
5597
6337
  }
5598
6338
  }
@@ -5601,25 +6341,26 @@ class Content {
5601
6341
  }
5602
6342
 
5603
6343
  /**
5604
- * @param {ContentPlatformApplicationValidator.GetSEOMarkupSchemaParam} arg
6344
+ * @param {ContentPlatformApplicationValidator.GetSlideshowBySlugParam} arg
5605
6345
  * - Arg object
5606
6346
  *
5607
6347
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5608
6348
  * @param {import("../PlatformAPIClient").Options} - Options
5609
- * @returns {Promise<ContentPlatformModel.SEOSchemaMarkupTemplate>} - Success response
5610
- * @name getSEOMarkupSchema
5611
- * @summary: Get SEO Markup Schema
5612
- * @description: Use this API to Get SEO Markup Schema - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getSEOMarkupSchema/).
6349
+ * @returns {Promise<ContentPlatformModel.SlideshowSchema>} - Success response
6350
+ * @name getSlideshowBySlug
6351
+ * @summary: Get Slideshow
6352
+ * @description: Use this API to get the details of a slideshow by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getSlideshowBySlug/).
5613
6353
  */
5614
- async getSEOMarkupSchema(
5615
- { id, requestHeaders } = { requestHeaders: {} },
6354
+ async getSlideshowBySlug(
6355
+ { slug, devicePlatform, requestHeaders } = { requestHeaders: {} },
5616
6356
  { responseHeaders } = { responseHeaders: false }
5617
6357
  ) {
5618
6358
  const {
5619
6359
  error,
5620
- } = ContentPlatformApplicationValidator.getSEOMarkupSchema().validate(
6360
+ } = ContentPlatformApplicationValidator.getSlideshowBySlug().validate(
5621
6361
  {
5622
- id,
6362
+ slug,
6363
+ devicePlatform,
5623
6364
  },
5624
6365
  { abortEarly: false, allowUnknown: true }
5625
6366
  );
@@ -5630,25 +6371,27 @@ class Content {
5630
6371
  // Showing warrnings if extra unknown parameters are found
5631
6372
  const {
5632
6373
  error: warrning,
5633
- } = ContentPlatformApplicationValidator.getSEOMarkupSchema().validate(
6374
+ } = ContentPlatformApplicationValidator.getSlideshowBySlug().validate(
5634
6375
  {
5635
- id,
6376
+ slug,
6377
+ devicePlatform,
5636
6378
  },
5637
6379
  { abortEarly: false, allowUnknown: false }
5638
6380
  );
5639
6381
  if (warrning) {
5640
6382
  Logger({
5641
6383
  level: "WARN",
5642
- message: `Parameter Validation warrnings for platform > Content > getSEOMarkupSchema \n ${warrning}`,
6384
+ message: `Parameter Validation warrnings for platform > Content > getSlideshowBySlug \n ${warrning}`,
5643
6385
  });
5644
6386
  }
5645
6387
 
5646
6388
  const query_params = {};
6389
+ query_params["device_platform"] = devicePlatform;
5647
6390
 
5648
6391
  const response = await PlatformAPIClient.execute(
5649
6392
  this.config,
5650
6393
  "get",
5651
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema/${id}`,
6394
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/slideshows/${slug}`,
5652
6395
  query_params,
5653
6396
  undefined,
5654
6397
  requestHeaders,
@@ -5662,7 +6405,7 @@ class Content {
5662
6405
 
5663
6406
  const {
5664
6407
  error: res_error,
5665
- } = ContentPlatformModel.SEOSchemaMarkupTemplate().validate(responseData, {
6408
+ } = ContentPlatformModel.SlideshowSchema().validate(responseData, {
5666
6409
  abortEarly: false,
5667
6410
  allowUnknown: true,
5668
6411
  });
@@ -5673,7 +6416,7 @@ class Content {
5673
6416
  } else {
5674
6417
  Logger({
5675
6418
  level: "WARN",
5676
- message: `Response Validation Warnings for platform > Content > getSEOMarkupSchema \n ${res_error}`,
6419
+ message: `Response Validation Warnings for platform > Content > getSlideshowBySlug \n ${res_error}`,
5677
6420
  });
5678
6421
  }
5679
6422
  }
@@ -5682,28 +6425,25 @@ class Content {
5682
6425
  }
5683
6426
 
5684
6427
  /**
5685
- * @param {ContentPlatformApplicationValidator.GetSEOMarkupSchemasParam} arg
5686
- * - Arg object
5687
- *
6428
+ * @param {ContentPlatformApplicationValidator.GetSlideshowsParam} arg - Arg object
5688
6429
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5689
6430
  * @param {import("../PlatformAPIClient").Options} - Options
5690
- * @returns {Promise<ContentPlatformModel.SeoSchemaComponent>} - Success response
5691
- * @name getSEOMarkupSchemas
5692
- * @summary: List default SEO Markup Schemas
5693
- * @description: Use this API to List default SEO Markup Schemas - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getSEOMarkupSchemas/).
6431
+ * @returns {Promise<ContentPlatformModel.SlideshowGetDetails>} - Success response
6432
+ * @name getSlideshows
6433
+ * @summary: List Slideshows
6434
+ * @description: Use this API to list all Slideshows - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getSlideshows/).
5694
6435
  */
5695
- async getSEOMarkupSchemas(
5696
- { title, active, pageNo, pageSize, requestHeaders } = {
6436
+ async getSlideshows(
6437
+ { devicePlatform, pageNo, pageSize, requestHeaders } = {
5697
6438
  requestHeaders: {},
5698
6439
  },
5699
6440
  { responseHeaders } = { responseHeaders: false }
5700
6441
  ) {
5701
6442
  const {
5702
6443
  error,
5703
- } = ContentPlatformApplicationValidator.getSEOMarkupSchemas().validate(
6444
+ } = ContentPlatformApplicationValidator.getSlideshows().validate(
5704
6445
  {
5705
- title,
5706
- active,
6446
+ devicePlatform,
5707
6447
  pageNo,
5708
6448
  pageSize,
5709
6449
  },
@@ -5716,10 +6456,9 @@ class Content {
5716
6456
  // Showing warrnings if extra unknown parameters are found
5717
6457
  const {
5718
6458
  error: warrning,
5719
- } = ContentPlatformApplicationValidator.getSEOMarkupSchemas().validate(
6459
+ } = ContentPlatformApplicationValidator.getSlideshows().validate(
5720
6460
  {
5721
- title,
5722
- active,
6461
+ devicePlatform,
5723
6462
  pageNo,
5724
6463
  pageSize,
5725
6464
  },
@@ -5728,20 +6467,19 @@ class Content {
5728
6467
  if (warrning) {
5729
6468
  Logger({
5730
6469
  level: "WARN",
5731
- message: `Parameter Validation warrnings for platform > Content > getSEOMarkupSchemas \n ${warrning}`,
6470
+ message: `Parameter Validation warrnings for platform > Content > getSlideshows \n ${warrning}`,
5732
6471
  });
5733
6472
  }
5734
6473
 
5735
6474
  const query_params = {};
5736
- query_params["title"] = title;
5737
- query_params["active"] = active;
6475
+ query_params["device_platform"] = devicePlatform;
5738
6476
  query_params["page_no"] = pageNo;
5739
6477
  query_params["page_size"] = pageSize;
5740
6478
 
5741
6479
  const response = await PlatformAPIClient.execute(
5742
6480
  this.config,
5743
6481
  "get",
5744
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema`,
6482
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/slideshows`,
5745
6483
  query_params,
5746
6484
  undefined,
5747
6485
  requestHeaders,
@@ -5755,7 +6493,7 @@ class Content {
5755
6493
 
5756
6494
  const {
5757
6495
  error: res_error,
5758
- } = ContentPlatformModel.SeoSchemaComponent().validate(responseData, {
6496
+ } = ContentPlatformModel.SlideshowGetDetails().validate(responseData, {
5759
6497
  abortEarly: false,
5760
6498
  allowUnknown: true,
5761
6499
  });
@@ -5766,7 +6504,7 @@ class Content {
5766
6504
  } else {
5767
6505
  Logger({
5768
6506
  level: "WARN",
5769
- message: `Response Validation Warnings for platform > Content > getSEOMarkupSchemas \n ${res_error}`,
6507
+ message: `Response Validation Warnings for platform > Content > getSlideshows \n ${res_error}`,
5770
6508
  });
5771
6509
  }
5772
6510
  }
@@ -6853,6 +7591,87 @@ class Content {
6853
7591
  return response;
6854
7592
  }
6855
7593
 
7594
+ /**
7595
+ * @param {ContentPlatformApplicationValidator.UpdateDefaultSitemapConfigParam} arg
7596
+ * - Arg object
7597
+ *
7598
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
7599
+ * @param {import("../PlatformAPIClient").Options} - Options
7600
+ * @returns {Promise<ContentPlatformModel.DefaultSitemapConfig>} - Success response
7601
+ * @name updateDefaultSitemapConfig
7602
+ * @summary: Update default sitemap configuration
7603
+ * @description: Updates the default sitemap configuration settings - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateDefaultSitemapConfig/).
7604
+ */
7605
+ async updateDefaultSitemapConfig(
7606
+ { body, requestHeaders } = { requestHeaders: {} },
7607
+ { responseHeaders } = { responseHeaders: false }
7608
+ ) {
7609
+ const {
7610
+ error,
7611
+ } = ContentPlatformApplicationValidator.updateDefaultSitemapConfig().validate(
7612
+ {
7613
+ body,
7614
+ },
7615
+ { abortEarly: false, allowUnknown: true }
7616
+ );
7617
+ if (error) {
7618
+ return Promise.reject(new FDKClientValidationError(error));
7619
+ }
7620
+
7621
+ // Showing warrnings if extra unknown parameters are found
7622
+ const {
7623
+ error: warrning,
7624
+ } = ContentPlatformApplicationValidator.updateDefaultSitemapConfig().validate(
7625
+ {
7626
+ body,
7627
+ },
7628
+ { abortEarly: false, allowUnknown: false }
7629
+ );
7630
+ if (warrning) {
7631
+ Logger({
7632
+ level: "WARN",
7633
+ message: `Parameter Validation warrnings for platform > Content > updateDefaultSitemapConfig \n ${warrning}`,
7634
+ });
7635
+ }
7636
+
7637
+ const query_params = {};
7638
+
7639
+ const response = await PlatformAPIClient.execute(
7640
+ this.config,
7641
+ "put",
7642
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/sitemap/default`,
7643
+ query_params,
7644
+ body,
7645
+ requestHeaders,
7646
+ { responseHeaders }
7647
+ );
7648
+
7649
+ let responseData = response;
7650
+ if (responseHeaders) {
7651
+ responseData = response[0];
7652
+ }
7653
+
7654
+ const {
7655
+ error: res_error,
7656
+ } = ContentPlatformModel.DefaultSitemapConfig().validate(responseData, {
7657
+ abortEarly: false,
7658
+ allowUnknown: true,
7659
+ });
7660
+
7661
+ if (res_error) {
7662
+ if (this.config.options.strictResponseCheck === true) {
7663
+ return Promise.reject(new FDKResponseValidationError(res_error));
7664
+ } else {
7665
+ Logger({
7666
+ level: "WARN",
7667
+ message: `Response Validation Warnings for platform > Content > updateDefaultSitemapConfig \n ${res_error}`,
7668
+ });
7669
+ }
7670
+ }
7671
+
7672
+ return response;
7673
+ }
7674
+
6856
7675
  /**
6857
7676
  * @param {ContentPlatformApplicationValidator.UpdateFaqParam} arg - Arg object
6858
7677
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -7669,6 +8488,169 @@ class Content {
7669
8488
  return response;
7670
8489
  }
7671
8490
 
8491
+ /**
8492
+ * @param {ContentPlatformApplicationValidator.UpdateSitemapParam} arg - Arg object
8493
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
8494
+ * @param {import("../PlatformAPIClient").Options} - Options
8495
+ * @returns {Promise<ContentPlatformModel.SitemapConfig>} - Success response
8496
+ * @name updateSitemap
8497
+ * @summary: Update a specific sitemap configuration
8498
+ * @description: Update an existing sitemap configuration identified by its name. You can update the activation status and/or the sitemap XML data. The name cannot be modified once the configuration is created. The updated sitemap XML data must be valid XML following the sitemap protocol specification.
8499
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateSitemap/).
8500
+ */
8501
+ async updateSitemap(
8502
+ { name, body, requestHeaders } = { requestHeaders: {} },
8503
+ { responseHeaders } = { responseHeaders: false }
8504
+ ) {
8505
+ const {
8506
+ error,
8507
+ } = ContentPlatformApplicationValidator.updateSitemap().validate(
8508
+ {
8509
+ name,
8510
+ body,
8511
+ },
8512
+ { abortEarly: false, allowUnknown: true }
8513
+ );
8514
+ if (error) {
8515
+ return Promise.reject(new FDKClientValidationError(error));
8516
+ }
8517
+
8518
+ // Showing warrnings if extra unknown parameters are found
8519
+ const {
8520
+ error: warrning,
8521
+ } = ContentPlatformApplicationValidator.updateSitemap().validate(
8522
+ {
8523
+ name,
8524
+ body,
8525
+ },
8526
+ { abortEarly: false, allowUnknown: false }
8527
+ );
8528
+ if (warrning) {
8529
+ Logger({
8530
+ level: "WARN",
8531
+ message: `Parameter Validation warrnings for platform > Content > updateSitemap \n ${warrning}`,
8532
+ });
8533
+ }
8534
+
8535
+ const query_params = {};
8536
+
8537
+ const response = await PlatformAPIClient.execute(
8538
+ this.config,
8539
+ "put",
8540
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/sitemaps/${name}`,
8541
+ query_params,
8542
+ body,
8543
+ requestHeaders,
8544
+ { responseHeaders }
8545
+ );
8546
+
8547
+ let responseData = response;
8548
+ if (responseHeaders) {
8549
+ responseData = response[0];
8550
+ }
8551
+
8552
+ const {
8553
+ error: res_error,
8554
+ } = ContentPlatformModel.SitemapConfig().validate(responseData, {
8555
+ abortEarly: false,
8556
+ allowUnknown: true,
8557
+ });
8558
+
8559
+ if (res_error) {
8560
+ if (this.config.options.strictResponseCheck === true) {
8561
+ return Promise.reject(new FDKResponseValidationError(res_error));
8562
+ } else {
8563
+ Logger({
8564
+ level: "WARN",
8565
+ message: `Response Validation Warnings for platform > Content > updateSitemap \n ${res_error}`,
8566
+ });
8567
+ }
8568
+ }
8569
+
8570
+ return response;
8571
+ }
8572
+
8573
+ /**
8574
+ * @param {ContentPlatformApplicationValidator.UpdateSlideshowParam} arg - Arg object
8575
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
8576
+ * @param {import("../PlatformAPIClient").Options} - Options
8577
+ * @returns {Promise<ContentPlatformModel.SlideshowSchema>} - Success response
8578
+ * @name updateSlideshow
8579
+ * @summary: Update a slideshow
8580
+ * @description: Use this API to Update Slideshow - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateSlideshow/).
8581
+ */
8582
+ async updateSlideshow(
8583
+ { id, body, requestHeaders } = { requestHeaders: {} },
8584
+ { responseHeaders } = { responseHeaders: false }
8585
+ ) {
8586
+ const {
8587
+ error,
8588
+ } = ContentPlatformApplicationValidator.updateSlideshow().validate(
8589
+ {
8590
+ id,
8591
+ body,
8592
+ },
8593
+ { abortEarly: false, allowUnknown: true }
8594
+ );
8595
+ if (error) {
8596
+ return Promise.reject(new FDKClientValidationError(error));
8597
+ }
8598
+
8599
+ // Showing warrnings if extra unknown parameters are found
8600
+ const {
8601
+ error: warrning,
8602
+ } = ContentPlatformApplicationValidator.updateSlideshow().validate(
8603
+ {
8604
+ id,
8605
+ body,
8606
+ },
8607
+ { abortEarly: false, allowUnknown: false }
8608
+ );
8609
+ if (warrning) {
8610
+ Logger({
8611
+ level: "WARN",
8612
+ message: `Parameter Validation warrnings for platform > Content > updateSlideshow \n ${warrning}`,
8613
+ });
8614
+ }
8615
+
8616
+ const query_params = {};
8617
+
8618
+ const response = await PlatformAPIClient.execute(
8619
+ this.config,
8620
+ "put",
8621
+ `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/slideshows/${id}`,
8622
+ query_params,
8623
+ body,
8624
+ requestHeaders,
8625
+ { responseHeaders }
8626
+ );
8627
+
8628
+ let responseData = response;
8629
+ if (responseHeaders) {
8630
+ responseData = response[0];
8631
+ }
8632
+
8633
+ const {
8634
+ error: res_error,
8635
+ } = ContentPlatformModel.SlideshowSchema().validate(responseData, {
8636
+ abortEarly: false,
8637
+ allowUnknown: true,
8638
+ });
8639
+
8640
+ if (res_error) {
8641
+ if (this.config.options.strictResponseCheck === true) {
8642
+ return Promise.reject(new FDKResponseValidationError(res_error));
8643
+ } else {
8644
+ Logger({
8645
+ level: "WARN",
8646
+ message: `Response Validation Warnings for platform > Content > updateSlideshow \n ${res_error}`,
8647
+ });
8648
+ }
8649
+ }
8650
+
8651
+ return response;
8652
+ }
8653
+
7672
8654
  /**
7673
8655
  * @param {ContentPlatformApplicationValidator.UpdateSupportInformationParam} arg
7674
8656
  * - Arg object