@gofynd/fdk-client-javascript 1.3.3-beta.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationModel.d.ts +4 -0
  4. package/sdk/application/Cart/CartApplicationModel.js +4 -0
  5. package/sdk/application/Theme/ThemeApplicationModel.d.ts +6 -8
  6. package/sdk/application/Theme/ThemeApplicationModel.js +6 -8
  7. package/sdk/common/AxiosHelper.js +2 -2
  8. package/sdk/platform/Cart/CartPlatformModel.d.ts +11 -2
  9. package/sdk/platform/Cart/CartPlatformModel.js +8 -2
  10. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +56 -0
  11. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +308 -0
  12. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -1
  13. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +38 -0
  14. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +1 -1
  15. package/sdk/platform/Catalog/CatalogPlatformClient.js +1 -1
  16. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +344 -66
  17. package/sdk/platform/Catalog/CatalogPlatformModel.js +247 -65
  18. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +26 -0
  19. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +152 -0
  20. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +14 -1
  21. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -0
  22. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +22 -1
  23. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +24 -0
  24. package/sdk/platform/Order/OrderPlatformClient.d.ts +121 -3
  25. package/sdk/platform/Order/OrderPlatformClient.js +211 -0
  26. package/sdk/platform/Order/OrderPlatformModel.d.ts +16 -4
  27. package/sdk/platform/Order/OrderPlatformModel.js +513 -501
  28. package/sdk/platform/Order/OrderPlatformValidator.d.ts +6 -0
  29. package/sdk/platform/Order/OrderPlatformValidator.js +6 -0
@@ -639,6 +639,85 @@ class Catalog {
639
639
  return response;
640
640
  }
641
641
 
642
+ /**
643
+ * @param {CatalogPlatformApplicationValidator.CreateSearchConfigurationParam} arg
644
+ * - Arg object
645
+ *
646
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
647
+ * @param {import("../PlatformAPIClient").Options} - Options
648
+ * @returns {Promise<CatalogPlatformModel.CreateSearchConfigurationResponse>}
649
+ * - Success response
650
+ *
651
+ * @name createSearchConfiguration
652
+ * @summary: Update search configuration for an application
653
+ * @description: This view allows you to modify searchable attributes for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createSearchConfiguration/).
654
+ */
655
+ async createSearchConfiguration(
656
+ { body, requestHeaders } = { requestHeaders: {} },
657
+ { responseHeaders } = { responseHeaders: false }
658
+ ) {
659
+ const {
660
+ error,
661
+ } = CatalogPlatformApplicationValidator.createSearchConfiguration().validate(
662
+ {
663
+ body,
664
+ },
665
+ { abortEarly: false, allowUnknown: true }
666
+ );
667
+ if (error) {
668
+ return Promise.reject(new FDKClientValidationError(error));
669
+ }
670
+
671
+ // Showing warrnings if extra unknown parameters are found
672
+ const {
673
+ error: warrning,
674
+ } = CatalogPlatformApplicationValidator.createSearchConfiguration().validate(
675
+ {
676
+ body,
677
+ },
678
+ { abortEarly: false, allowUnknown: false }
679
+ );
680
+ if (warrning) {
681
+ Logger({
682
+ level: "WARN",
683
+ message: `Parameter Validation warrnings for platform > Catalog > createSearchConfiguration \n ${warrning}`,
684
+ });
685
+ }
686
+
687
+ const query_params = {};
688
+
689
+ const response = await PlatformAPIClient.execute(
690
+ this.config,
691
+ "post",
692
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/configuration/`,
693
+ query_params,
694
+ body,
695
+ requestHeaders,
696
+ { responseHeaders }
697
+ );
698
+
699
+ let responseData = response;
700
+ if (responseHeaders) {
701
+ responseData = response[0];
702
+ }
703
+
704
+ const {
705
+ error: res_error,
706
+ } = CatalogPlatformModel.CreateSearchConfigurationResponse().validate(
707
+ responseData,
708
+ { abortEarly: false, allowUnknown: false }
709
+ );
710
+
711
+ if (res_error) {
712
+ Logger({
713
+ level: "WARN",
714
+ message: `Response Validation Warnnings for platform > Catalog > createSearchConfiguration \n ${res_error}`,
715
+ });
716
+ }
717
+
718
+ return response;
719
+ }
720
+
642
721
  /**
643
722
  * @param {CatalogPlatformApplicationValidator.DeleteAutocompleteKeywordParam} arg
644
723
  * - Arg object
@@ -949,6 +1028,81 @@ class Catalog {
949
1028
  return response;
950
1029
  }
951
1030
 
1031
+ /**
1032
+ * @param {CatalogPlatformApplicationValidator.DeleteSearchConfigurationParam} arg
1033
+ * - Arg object
1034
+ *
1035
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1036
+ * @param {import("../PlatformAPIClient").Options} - Options
1037
+ * @returns {Promise<CatalogPlatformModel.DeleteSearchConfigurationResponse>}
1038
+ * - Success response
1039
+ *
1040
+ * @name deleteSearchConfiguration
1041
+ * @summary: Delete search configuration for an application
1042
+ * @description: This view allows you to reset search config for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteSearchConfiguration/).
1043
+ */
1044
+ async deleteSearchConfiguration(
1045
+ { requestHeaders } = { requestHeaders: {} },
1046
+ { responseHeaders } = { responseHeaders: false }
1047
+ ) {
1048
+ const {
1049
+ error,
1050
+ } = CatalogPlatformApplicationValidator.deleteSearchConfiguration().validate(
1051
+ {},
1052
+ { abortEarly: false, allowUnknown: true }
1053
+ );
1054
+ if (error) {
1055
+ return Promise.reject(new FDKClientValidationError(error));
1056
+ }
1057
+
1058
+ // Showing warrnings if extra unknown parameters are found
1059
+ const {
1060
+ error: warrning,
1061
+ } = CatalogPlatformApplicationValidator.deleteSearchConfiguration().validate(
1062
+ {},
1063
+ { abortEarly: false, allowUnknown: false }
1064
+ );
1065
+ if (warrning) {
1066
+ Logger({
1067
+ level: "WARN",
1068
+ message: `Parameter Validation warrnings for platform > Catalog > deleteSearchConfiguration \n ${warrning}`,
1069
+ });
1070
+ }
1071
+
1072
+ const query_params = {};
1073
+
1074
+ const response = await PlatformAPIClient.execute(
1075
+ this.config,
1076
+ "delete",
1077
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/configuration/`,
1078
+ query_params,
1079
+ undefined,
1080
+ requestHeaders,
1081
+ { responseHeaders }
1082
+ );
1083
+
1084
+ let responseData = response;
1085
+ if (responseHeaders) {
1086
+ responseData = response[0];
1087
+ }
1088
+
1089
+ const {
1090
+ error: res_error,
1091
+ } = CatalogPlatformModel.DeleteSearchConfigurationResponse().validate(
1092
+ responseData,
1093
+ { abortEarly: false, allowUnknown: false }
1094
+ );
1095
+
1096
+ if (res_error) {
1097
+ Logger({
1098
+ level: "WARN",
1099
+ message: `Response Validation Warnnings for platform > Catalog > deleteSearchConfiguration \n ${res_error}`,
1100
+ });
1101
+ }
1102
+
1103
+ return response;
1104
+ }
1105
+
952
1106
  /**
953
1107
  * @param {CatalogPlatformApplicationValidator.DeleteSearchKeywordsParam} arg
954
1108
  * - Arg object
@@ -3645,6 +3799,81 @@ class Catalog {
3645
3799
  return response;
3646
3800
  }
3647
3801
 
3802
+ /**
3803
+ * @param {CatalogPlatformApplicationValidator.GetSearchConfigurationParam} arg
3804
+ * - Arg object
3805
+ *
3806
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3807
+ * @param {import("../PlatformAPIClient").Options} - Options
3808
+ * @returns {Promise<CatalogPlatformModel.GetSearchConfigurationResponse>}
3809
+ * - Success response
3810
+ *
3811
+ * @name getSearchConfiguration
3812
+ * @summary: List search configuration for an application
3813
+ * @description: This view allows you to add/modify searchable attributes for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSearchConfiguration/).
3814
+ */
3815
+ async getSearchConfiguration(
3816
+ { requestHeaders } = { requestHeaders: {} },
3817
+ { responseHeaders } = { responseHeaders: false }
3818
+ ) {
3819
+ const {
3820
+ error,
3821
+ } = CatalogPlatformApplicationValidator.getSearchConfiguration().validate(
3822
+ {},
3823
+ { abortEarly: false, allowUnknown: true }
3824
+ );
3825
+ if (error) {
3826
+ return Promise.reject(new FDKClientValidationError(error));
3827
+ }
3828
+
3829
+ // Showing warrnings if extra unknown parameters are found
3830
+ const {
3831
+ error: warrning,
3832
+ } = CatalogPlatformApplicationValidator.getSearchConfiguration().validate(
3833
+ {},
3834
+ { abortEarly: false, allowUnknown: false }
3835
+ );
3836
+ if (warrning) {
3837
+ Logger({
3838
+ level: "WARN",
3839
+ message: `Parameter Validation warrnings for platform > Catalog > getSearchConfiguration \n ${warrning}`,
3840
+ });
3841
+ }
3842
+
3843
+ const query_params = {};
3844
+
3845
+ const response = await PlatformAPIClient.execute(
3846
+ this.config,
3847
+ "get",
3848
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/configuration/`,
3849
+ query_params,
3850
+ undefined,
3851
+ requestHeaders,
3852
+ { responseHeaders }
3853
+ );
3854
+
3855
+ let responseData = response;
3856
+ if (responseHeaders) {
3857
+ responseData = response[0];
3858
+ }
3859
+
3860
+ const {
3861
+ error: res_error,
3862
+ } = CatalogPlatformModel.GetSearchConfigurationResponse().validate(
3863
+ responseData,
3864
+ { abortEarly: false, allowUnknown: false }
3865
+ );
3866
+
3867
+ if (res_error) {
3868
+ Logger({
3869
+ level: "WARN",
3870
+ message: `Response Validation Warnnings for platform > Catalog > getSearchConfiguration \n ${res_error}`,
3871
+ });
3872
+ }
3873
+
3874
+ return response;
3875
+ }
3876
+
3648
3877
  /**
3649
3878
  * @param {CatalogPlatformApplicationValidator.GetSearchKeywordsParam} arg
3650
3879
  * - Arg object
@@ -4587,6 +4816,85 @@ class Catalog {
4587
4816
  return response;
4588
4817
  }
4589
4818
 
4819
+ /**
4820
+ * @param {CatalogPlatformApplicationValidator.UpdateSearchConfigurationParam} arg
4821
+ * - Arg object
4822
+ *
4823
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4824
+ * @param {import("../PlatformAPIClient").Options} - Options
4825
+ * @returns {Promise<CatalogPlatformModel.UpdateSearchConfigurationResponse>}
4826
+ * - Success response
4827
+ *
4828
+ * @name updateSearchConfiguration
4829
+ * @summary: Update search configuration for an application
4830
+ * @description: This view allows you to modify searchable attributes for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateSearchConfiguration/).
4831
+ */
4832
+ async updateSearchConfiguration(
4833
+ { body, requestHeaders } = { requestHeaders: {} },
4834
+ { responseHeaders } = { responseHeaders: false }
4835
+ ) {
4836
+ const {
4837
+ error,
4838
+ } = CatalogPlatformApplicationValidator.updateSearchConfiguration().validate(
4839
+ {
4840
+ body,
4841
+ },
4842
+ { abortEarly: false, allowUnknown: true }
4843
+ );
4844
+ if (error) {
4845
+ return Promise.reject(new FDKClientValidationError(error));
4846
+ }
4847
+
4848
+ // Showing warrnings if extra unknown parameters are found
4849
+ const {
4850
+ error: warrning,
4851
+ } = CatalogPlatformApplicationValidator.updateSearchConfiguration().validate(
4852
+ {
4853
+ body,
4854
+ },
4855
+ { abortEarly: false, allowUnknown: false }
4856
+ );
4857
+ if (warrning) {
4858
+ Logger({
4859
+ level: "WARN",
4860
+ message: `Parameter Validation warrnings for platform > Catalog > updateSearchConfiguration \n ${warrning}`,
4861
+ });
4862
+ }
4863
+
4864
+ const query_params = {};
4865
+
4866
+ const response = await PlatformAPIClient.execute(
4867
+ this.config,
4868
+ "put",
4869
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/configuration/`,
4870
+ query_params,
4871
+ body,
4872
+ requestHeaders,
4873
+ { responseHeaders }
4874
+ );
4875
+
4876
+ let responseData = response;
4877
+ if (responseHeaders) {
4878
+ responseData = response[0];
4879
+ }
4880
+
4881
+ const {
4882
+ error: res_error,
4883
+ } = CatalogPlatformModel.UpdateSearchConfigurationResponse().validate(
4884
+ responseData,
4885
+ { abortEarly: false, allowUnknown: false }
4886
+ );
4887
+
4888
+ if (res_error) {
4889
+ Logger({
4890
+ level: "WARN",
4891
+ message: `Response Validation Warnnings for platform > Catalog > updateSearchConfiguration \n ${res_error}`,
4892
+ });
4893
+ }
4894
+
4895
+ return response;
4896
+ }
4897
+
4590
4898
  /**
4591
4899
  * @param {CatalogPlatformApplicationValidator.UpdateSearchKeywordsParam} arg
4592
4900
  * - Arg object
@@ -37,6 +37,10 @@ export = CatalogPlatformApplicationValidator;
37
37
  * particular listing configuration type.
38
38
  * @property {CatalogPlatformModel.AppConfigurationsSort} body
39
39
  */
40
+ /**
41
+ * @typedef CreateSearchConfigurationParam
42
+ * @property {CatalogPlatformModel.CreateSearchConfigurationRequest} body
43
+ */
40
44
  /**
41
45
  * @typedef DeleteAutocompleteKeywordParam
42
46
  * @property {string} id - A `id` is a unique identifier for a particular
@@ -60,6 +64,7 @@ export = CatalogPlatformApplicationValidator;
60
64
  * @property {string} configId - A `config_id` is a unique identifier of a
61
65
  * particular configuration.
62
66
  */
67
+ /** @typedef DeleteSearchConfigurationParam */
63
68
  /**
64
69
  * @typedef DeleteSearchKeywordsParam
65
70
  * @property {string} id - A `id` is a unique identifier for a particular
@@ -279,6 +284,7 @@ export = CatalogPlatformApplicationValidator;
279
284
  * **v1.0/products/**
280
285
  */
281
286
  /** @typedef GetQueryFiltersParam */
287
+ /** @typedef GetSearchConfigurationParam */
282
288
  /**
283
289
  * @typedef GetSearchKeywordsParam
284
290
  * @property {string} id - A `id` is a unique identifier for a particular
@@ -345,6 +351,10 @@ export = CatalogPlatformApplicationValidator;
345
351
  * particular configuration.
346
352
  * @property {CatalogPlatformModel.AppConfigurationsSort} body
347
353
  */
354
+ /**
355
+ * @typedef UpdateSearchConfigurationParam
356
+ * @property {CatalogPlatformModel.UpdateSearchConfigurationRequest} body
357
+ */
348
358
  /**
349
359
  * @typedef UpdateSearchKeywordsParam
350
360
  * @property {string} id - A `id` is a unique identifier for a particular
@@ -368,6 +378,8 @@ declare class CatalogPlatformApplicationValidator {
368
378
  static createGroupConfiguration(): CreateGroupConfigurationParam;
369
379
  /** @returns {CreateListingConfigurationParam} */
370
380
  static createListingConfiguration(): CreateListingConfigurationParam;
381
+ /** @returns {CreateSearchConfigurationParam} */
382
+ static createSearchConfiguration(): CreateSearchConfigurationParam;
371
383
  /** @returns {DeleteAutocompleteKeywordParam} */
372
384
  static deleteAutocompleteKeyword(): DeleteAutocompleteKeywordParam;
373
385
  /** @returns {DeleteCollectionParam} */
@@ -376,6 +388,8 @@ declare class CatalogPlatformApplicationValidator {
376
388
  static deleteGroupConfiguration(): DeleteGroupConfigurationParam;
377
389
  /** @returns {DeleteListingConfigurationParam} */
378
390
  static deleteListingConfiguration(): DeleteListingConfigurationParam;
391
+ /** @returns {DeleteSearchConfigurationParam} */
392
+ static deleteSearchConfiguration(): any;
379
393
  /** @returns {DeleteSearchKeywordsParam} */
380
394
  static deleteSearchKeywords(): DeleteSearchKeywordsParam;
381
395
  /** @returns {GetAllCollectionsParam} */
@@ -432,6 +446,8 @@ declare class CatalogPlatformApplicationValidator {
432
446
  static getProductDetailBySlug(): GetProductDetailBySlugParam;
433
447
  /** @returns {GetQueryFiltersParam} */
434
448
  static getQueryFilters(): any;
449
+ /** @returns {GetSearchConfigurationParam} */
450
+ static getSearchConfiguration(): any;
435
451
  /** @returns {GetSearchKeywordsParam} */
436
452
  static getSearchKeywords(): GetSearchKeywordsParam;
437
453
  /** @returns {UpdateAllowSingleParam} */
@@ -456,11 +472,13 @@ declare class CatalogPlatformApplicationValidator {
456
472
  static updateGroupConfiguration(): UpdateGroupConfigurationParam;
457
473
  /** @returns {UpdateListingConfigurationParam} */
458
474
  static updateListingConfiguration(): UpdateListingConfigurationParam;
475
+ /** @returns {UpdateSearchConfigurationParam} */
476
+ static updateSearchConfiguration(): UpdateSearchConfigurationParam;
459
477
  /** @returns {UpdateSearchKeywordsParam} */
460
478
  static updateSearchKeywords(): UpdateSearchKeywordsParam;
461
479
  }
462
480
  declare namespace CatalogPlatformApplicationValidator {
463
- export { AddCollectionItemsParam, CreateCollectionParam, CreateConfigurationByTypeParam, CreateConfigurationProductListingParam, CreateCustomAutocompleteRuleParam, CreateCustomKeywordParam, CreateGroupConfigurationParam, CreateListingConfigurationParam, DeleteAutocompleteKeywordParam, DeleteCollectionParam, DeleteGroupConfigurationParam, DeleteListingConfigurationParam, DeleteSearchKeywordsParam, GetAllCollectionsParam, GetAllSearchKeywordParam, GetAppInventoryParam, GetAppLocationsParam, GetAppProductParam, GetAppProductsParam, GetAppicationProductsParam, GetApplicationBrandListingParam, GetApplicationBrandsParam, GetApplicationCategoryListingParam, GetApplicationDepartmentListingParam, GetAutocompleteConfigParam, GetAutocompleteKeywordDetailParam, GetCatalogConfigurationParam, GetCatalogInsightsParam, GetCategoriesParam, GetCollectionDetailParam, GetCollectionItemsParam, GetConfigurationByTypeParam, GetConfigurationMetadataParam, GetConfigurationsParam, GetDepartmentsParam, GetDiscountedInventoryBySizeIdentifierParam, GetGroupConfigurationsParam, GetListingConfigurationsParam, GetProductDetailBySlugParam, GetQueryFiltersParam, GetSearchKeywordsParam, UpdateAllowSingleParam, UpdateAppBrandParam, UpdateAppCategoryParam, UpdateAppDepartmentParam, UpdateAppLocationParam, UpdateAppProductParam, UpdateAutocompleteKeywordParam, UpdateCollectionParam, UpdateDefaultSortParam, UpdateGroupConfigurationParam, UpdateListingConfigurationParam, UpdateSearchKeywordsParam };
481
+ export { AddCollectionItemsParam, CreateCollectionParam, CreateConfigurationByTypeParam, CreateConfigurationProductListingParam, CreateCustomAutocompleteRuleParam, CreateCustomKeywordParam, CreateGroupConfigurationParam, CreateListingConfigurationParam, CreateSearchConfigurationParam, DeleteAutocompleteKeywordParam, DeleteCollectionParam, DeleteGroupConfigurationParam, DeleteListingConfigurationParam, DeleteSearchConfigurationParam, DeleteSearchKeywordsParam, GetAllCollectionsParam, GetAllSearchKeywordParam, GetAppInventoryParam, GetAppLocationsParam, GetAppProductParam, GetAppProductsParam, GetAppicationProductsParam, GetApplicationBrandListingParam, GetApplicationBrandsParam, GetApplicationCategoryListingParam, GetApplicationDepartmentListingParam, GetAutocompleteConfigParam, GetAutocompleteKeywordDetailParam, GetCatalogConfigurationParam, GetCatalogInsightsParam, GetCategoriesParam, GetCollectionDetailParam, GetCollectionItemsParam, GetConfigurationByTypeParam, GetConfigurationMetadataParam, GetConfigurationsParam, GetDepartmentsParam, GetDiscountedInventoryBySizeIdentifierParam, GetGroupConfigurationsParam, GetListingConfigurationsParam, GetProductDetailBySlugParam, GetQueryFiltersParam, GetSearchConfigurationParam, GetSearchKeywordsParam, UpdateAllowSingleParam, UpdateAppBrandParam, UpdateAppCategoryParam, UpdateAppDepartmentParam, UpdateAppLocationParam, UpdateAppProductParam, UpdateAutocompleteKeywordParam, UpdateCollectionParam, UpdateDefaultSortParam, UpdateGroupConfigurationParam, UpdateListingConfigurationParam, UpdateSearchConfigurationParam, UpdateSearchKeywordsParam };
464
482
  }
465
483
  type AddCollectionItemsParam = {
466
484
  /**
@@ -504,6 +522,9 @@ type CreateListingConfigurationParam = {
504
522
  configType: string;
505
523
  body: CatalogPlatformModel.AppConfigurationsSort;
506
524
  };
525
+ type CreateSearchConfigurationParam = {
526
+ body: CatalogPlatformModel.CreateSearchConfigurationRequest;
527
+ };
507
528
  type DeleteAutocompleteKeywordParam = {
508
529
  /**
509
530
  * - A `id` is a unique identifier for a particular
@@ -1071,6 +1092,9 @@ type UpdateListingConfigurationParam = {
1071
1092
  configId: string;
1072
1093
  body: CatalogPlatformModel.AppConfigurationsSort;
1073
1094
  };
1095
+ type UpdateSearchConfigurationParam = {
1096
+ body: CatalogPlatformModel.UpdateSearchConfigurationRequest;
1097
+ };
1074
1098
  type UpdateSearchKeywordsParam = {
1075
1099
  /**
1076
1100
  * - A `id` is a unique identifier for a particular
@@ -1079,10 +1103,12 @@ type UpdateSearchKeywordsParam = {
1079
1103
  id: string;
1080
1104
  body: CatalogPlatformModel.CreateSearchKeyword;
1081
1105
  };
1106
+ type DeleteSearchConfigurationParam = any;
1082
1107
  type GetAllSearchKeywordParam = any;
1083
1108
  type GetAutocompleteConfigParam = any;
1084
1109
  type GetCatalogConfigurationParam = any;
1085
1110
  type GetConfigurationsParam = any;
1086
1111
  type GetDepartmentsParam = any;
1087
1112
  type GetQueryFiltersParam = any;
1113
+ type GetSearchConfigurationParam = any;
1088
1114
  import CatalogPlatformModel = require("./CatalogPlatformModel");
@@ -48,6 +48,11 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
48
48
  * @property {CatalogPlatformModel.AppConfigurationsSort} body
49
49
  */
50
50
 
51
+ /**
52
+ * @typedef CreateSearchConfigurationParam
53
+ * @property {CatalogPlatformModel.CreateSearchConfigurationRequest} body
54
+ */
55
+
51
56
  /**
52
57
  * @typedef DeleteAutocompleteKeywordParam
53
58
  * @property {string} id - A `id` is a unique identifier for a particular
@@ -75,6 +80,8 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
75
80
  * particular configuration.
76
81
  */
77
82
 
83
+ /** @typedef DeleteSearchConfigurationParam */
84
+
78
85
  /**
79
86
  * @typedef DeleteSearchKeywordsParam
80
87
  * @property {string} id - A `id` is a unique identifier for a particular
@@ -322,6 +329,8 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
322
329
 
323
330
  /** @typedef GetQueryFiltersParam */
324
331
 
332
+ /** @typedef GetSearchConfigurationParam */
333
+
325
334
  /**
326
335
  * @typedef GetSearchKeywordsParam
327
336
  * @property {string} id - A `id` is a unique identifier for a particular
@@ -400,6 +409,11 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
400
409
  * @property {CatalogPlatformModel.AppConfigurationsSort} body
401
410
  */
402
411
 
412
+ /**
413
+ * @typedef UpdateSearchConfigurationParam
414
+ * @property {CatalogPlatformModel.UpdateSearchConfigurationRequest} body
415
+ */
416
+
403
417
  /**
404
418
  * @typedef UpdateSearchKeywordsParam
405
419
  * @property {string} id - A `id` is a unique identifier for a particular
@@ -468,6 +482,13 @@ class CatalogPlatformApplicationValidator {
468
482
  }).required();
469
483
  }
470
484
 
485
+ /** @returns {CreateSearchConfigurationParam} */
486
+ static createSearchConfiguration() {
487
+ return Joi.object({
488
+ body: CatalogPlatformModel.CreateSearchConfigurationRequest().required(),
489
+ }).required();
490
+ }
491
+
471
492
  /** @returns {DeleteAutocompleteKeywordParam} */
472
493
  static deleteAutocompleteKeyword() {
473
494
  return Joi.object({
@@ -498,6 +519,11 @@ class CatalogPlatformApplicationValidator {
498
519
  }).required();
499
520
  }
500
521
 
522
+ /** @returns {DeleteSearchConfigurationParam} */
523
+ static deleteSearchConfiguration() {
524
+ return Joi.object({}).required();
525
+ }
526
+
501
527
  /** @returns {DeleteSearchKeywordsParam} */
502
528
  static deleteSearchKeywords() {
503
529
  return Joi.object({
@@ -743,6 +769,11 @@ class CatalogPlatformApplicationValidator {
743
769
  return Joi.object({}).required();
744
770
  }
745
771
 
772
+ /** @returns {GetSearchConfigurationParam} */
773
+ static getSearchConfiguration() {
774
+ return Joi.object({}).required();
775
+ }
776
+
746
777
  /** @returns {GetSearchKeywordsParam} */
747
778
  static getSearchKeywords() {
748
779
  return Joi.object({
@@ -838,6 +869,13 @@ class CatalogPlatformApplicationValidator {
838
869
  }).required();
839
870
  }
840
871
 
872
+ /** @returns {UpdateSearchConfigurationParam} */
873
+ static updateSearchConfiguration() {
874
+ return Joi.object({
875
+ body: CatalogPlatformModel.UpdateSearchConfigurationRequest().required(),
876
+ }).required();
877
+ }
878
+
841
879
  /** @returns {UpdateSearchKeywordsParam} */
842
880
  static updateSearchKeywords() {
843
881
  return Joi.object({
@@ -438,7 +438,7 @@ declare class Catalog {
438
438
  * @returns {Promise<CatalogPlatformModel.StoreAssignResponse>} - Success response
439
439
  * @name getOptimalLocations
440
440
  * @summary: Location Reassignment
441
- * @description: Location Reassignment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getOptimalLocations/).
441
+ * @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getOptimalLocations/).
442
442
  */
443
443
  getOptimalLocations({ body, requestHeaders }?: CatalogPlatformValidator.GetOptimalLocationsParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.StoreAssignResponse>;
444
444
  /**
@@ -3235,7 +3235,7 @@ class Catalog {
3235
3235
  * @returns {Promise<CatalogPlatformModel.StoreAssignResponse>} - Success response
3236
3236
  * @name getOptimalLocations
3237
3237
  * @summary: Location Reassignment
3238
- * @description: Location Reassignment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getOptimalLocations/).
3238
+ * @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getOptimalLocations/).
3239
3239
  */
3240
3240
  async getOptimalLocations(
3241
3241
  { body, requestHeaders } = { requestHeaders: {} },