@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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationModel.d.ts +4 -0
- package/sdk/application/Cart/CartApplicationModel.js +4 -0
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +6 -8
- package/sdk/application/Theme/ThemeApplicationModel.js +6 -8
- package/sdk/common/AxiosHelper.js +2 -2
- package/sdk/platform/Cart/CartPlatformModel.d.ts +11 -2
- package/sdk/platform/Cart/CartPlatformModel.js +8 -2
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +56 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +308 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +38 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +344 -66
- package/sdk/platform/Catalog/CatalogPlatformModel.js +247 -65
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +26 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +152 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +14 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +22 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +24 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +121 -3
- package/sdk/platform/Order/OrderPlatformClient.js +211 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +16 -4
- package/sdk/platform/Order/OrderPlatformModel.js +513 -501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +6 -0
- package/sdk/platform/Order/OrderPlatformValidator.js +6 -0
package/README.md
CHANGED
|
@@ -214,7 +214,7 @@ console.log("Active Theme: ", response.information.name);
|
|
|
214
214
|
The above code will log the curl command in the console
|
|
215
215
|
|
|
216
216
|
```bash
|
|
217
|
-
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version:
|
|
217
|
+
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.3.3' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
|
|
218
218
|
Active Theme: Emerge
|
|
219
219
|
```
|
|
220
220
|
|
package/package.json
CHANGED
|
@@ -156,6 +156,7 @@ export = CartApplicationModel;
|
|
|
156
156
|
* @property {string} [order_type]
|
|
157
157
|
* @property {number} [ordering_store]
|
|
158
158
|
* @property {boolean} [payment_auto_confirm]
|
|
159
|
+
* @property {Object} [payment_extra_identifiers]
|
|
159
160
|
* @property {string} [payment_identifier]
|
|
160
161
|
* @property {string} payment_mode
|
|
161
162
|
* @property {Object} [payment_params]
|
|
@@ -588,6 +589,7 @@ export = CartApplicationModel;
|
|
|
588
589
|
* @property {string} mode
|
|
589
590
|
* @property {string} [name]
|
|
590
591
|
* @property {string} [payment]
|
|
592
|
+
* @property {Object} [payment_extra_identifiers]
|
|
591
593
|
* @property {PaymentMeta} payment_meta
|
|
592
594
|
*/
|
|
593
595
|
/**
|
|
@@ -1084,6 +1086,7 @@ type CartCheckoutDetailRequest = {
|
|
|
1084
1086
|
order_type?: string;
|
|
1085
1087
|
ordering_store?: number;
|
|
1086
1088
|
payment_auto_confirm?: boolean;
|
|
1089
|
+
payment_extra_identifiers?: any;
|
|
1087
1090
|
payment_identifier?: string;
|
|
1088
1091
|
payment_mode: string;
|
|
1089
1092
|
payment_params?: any;
|
|
@@ -1742,6 +1745,7 @@ type PaymentMethod = {
|
|
|
1742
1745
|
mode: string;
|
|
1743
1746
|
name?: string;
|
|
1744
1747
|
payment?: string;
|
|
1748
|
+
payment_extra_identifiers?: any;
|
|
1745
1749
|
payment_meta: PaymentMeta;
|
|
1746
1750
|
};
|
|
1747
1751
|
/** @returns {PaymentSelectionLock} */
|
|
@@ -174,6 +174,7 @@ const Joi = require("joi");
|
|
|
174
174
|
* @property {string} [order_type]
|
|
175
175
|
* @property {number} [ordering_store]
|
|
176
176
|
* @property {boolean} [payment_auto_confirm]
|
|
177
|
+
* @property {Object} [payment_extra_identifiers]
|
|
177
178
|
* @property {string} [payment_identifier]
|
|
178
179
|
* @property {string} payment_mode
|
|
179
180
|
* @property {Object} [payment_params]
|
|
@@ -652,6 +653,7 @@ const Joi = require("joi");
|
|
|
652
653
|
* @property {string} mode
|
|
653
654
|
* @property {string} [name]
|
|
654
655
|
* @property {string} [payment]
|
|
656
|
+
* @property {Object} [payment_extra_identifiers]
|
|
655
657
|
* @property {PaymentMeta} payment_meta
|
|
656
658
|
*/
|
|
657
659
|
|
|
@@ -1140,6 +1142,7 @@ class CartApplicationModel {
|
|
|
1140
1142
|
order_type: Joi.string().allow(""),
|
|
1141
1143
|
ordering_store: Joi.number().allow(null),
|
|
1142
1144
|
payment_auto_confirm: Joi.boolean(),
|
|
1145
|
+
payment_extra_identifiers: Joi.any(),
|
|
1143
1146
|
payment_identifier: Joi.string().allow("").allow(null),
|
|
1144
1147
|
payment_mode: Joi.string().allow("").required(),
|
|
1145
1148
|
payment_params: Joi.any().allow(null),
|
|
@@ -1708,6 +1711,7 @@ class CartApplicationModel {
|
|
|
1708
1711
|
mode: Joi.string().allow("").required(),
|
|
1709
1712
|
name: Joi.string().allow(""),
|
|
1710
1713
|
payment: Joi.string().allow(""),
|
|
1714
|
+
payment_extra_identifiers: Joi.any(),
|
|
1711
1715
|
payment_meta: CartApplicationModel.PaymentMeta().required(),
|
|
1712
1716
|
});
|
|
1713
1717
|
}
|
|
@@ -213,8 +213,7 @@ export = ThemeApplicationModel;
|
|
|
213
213
|
*/
|
|
214
214
|
/**
|
|
215
215
|
* @typedef GlobalConfig
|
|
216
|
-
* @property {
|
|
217
|
-
* @property {PaletteConfig} [palette]
|
|
216
|
+
* @property {CustomConfig} [custom]
|
|
218
217
|
* @property {StaticConfig} [statics]
|
|
219
218
|
*/
|
|
220
219
|
/**
|
|
@@ -347,6 +346,7 @@ export = ThemeApplicationModel;
|
|
|
347
346
|
* @typedef StaticProps
|
|
348
347
|
* @property {AuthConfig} [auth]
|
|
349
348
|
* @property {Colors} [colors]
|
|
349
|
+
* @property {PaletteConfig} [palette]
|
|
350
350
|
*/
|
|
351
351
|
/**
|
|
352
352
|
* @typedef TextProp
|
|
@@ -362,8 +362,7 @@ export = ThemeApplicationModel;
|
|
|
362
362
|
*/
|
|
363
363
|
/**
|
|
364
364
|
* @typedef ThemeConfiguration
|
|
365
|
-
* @property {
|
|
366
|
-
* @property {GlobalConfig} [global_config]
|
|
365
|
+
* @property {Object} [global_config]
|
|
367
366
|
* @property {string} [name] - The name of the configuration
|
|
368
367
|
* @property {string[]} [page] - An array of pages
|
|
369
368
|
*/
|
|
@@ -841,8 +840,7 @@ type GeneralSetting = {
|
|
|
841
840
|
/** @returns {GlobalConfig} */
|
|
842
841
|
declare function GlobalConfig(): GlobalConfig;
|
|
843
842
|
type GlobalConfig = {
|
|
844
|
-
|
|
845
|
-
palette?: PaletteConfig;
|
|
843
|
+
custom?: CustomConfig;
|
|
846
844
|
statics?: StaticConfig;
|
|
847
845
|
};
|
|
848
846
|
/** @returns {GlobalSchema} */
|
|
@@ -1102,6 +1100,7 @@ declare function StaticProps(): StaticProps;
|
|
|
1102
1100
|
type StaticProps = {
|
|
1103
1101
|
auth?: AuthConfig;
|
|
1104
1102
|
colors?: Colors;
|
|
1103
|
+
palette?: PaletteConfig;
|
|
1105
1104
|
};
|
|
1106
1105
|
/** @returns {TextProp} */
|
|
1107
1106
|
declare function TextProp(): TextProp;
|
|
@@ -1138,8 +1137,7 @@ type TextSetting = {
|
|
|
1138
1137
|
/** @returns {ThemeConfiguration} */
|
|
1139
1138
|
declare function ThemeConfiguration(): ThemeConfiguration;
|
|
1140
1139
|
type ThemeConfiguration = {
|
|
1141
|
-
|
|
1142
|
-
global_config?: GlobalConfig;
|
|
1140
|
+
global_config?: any;
|
|
1143
1141
|
/**
|
|
1144
1142
|
* - The name of the configuration
|
|
1145
1143
|
*/
|
|
@@ -244,8 +244,7 @@ const Joi = require("joi");
|
|
|
244
244
|
|
|
245
245
|
/**
|
|
246
246
|
* @typedef GlobalConfig
|
|
247
|
-
* @property {
|
|
248
|
-
* @property {PaletteConfig} [palette]
|
|
247
|
+
* @property {CustomConfig} [custom]
|
|
249
248
|
* @property {StaticConfig} [statics]
|
|
250
249
|
*/
|
|
251
250
|
|
|
@@ -400,6 +399,7 @@ const Joi = require("joi");
|
|
|
400
399
|
* @typedef StaticProps
|
|
401
400
|
* @property {AuthConfig} [auth]
|
|
402
401
|
* @property {Colors} [colors]
|
|
402
|
+
* @property {PaletteConfig} [palette]
|
|
403
403
|
*/
|
|
404
404
|
|
|
405
405
|
/**
|
|
@@ -418,8 +418,7 @@ const Joi = require("joi");
|
|
|
418
418
|
|
|
419
419
|
/**
|
|
420
420
|
* @typedef ThemeConfiguration
|
|
421
|
-
* @property {
|
|
422
|
-
* @property {GlobalConfig} [global_config]
|
|
421
|
+
* @property {Object} [global_config]
|
|
423
422
|
* @property {string} [name] - The name of the configuration
|
|
424
423
|
* @property {string[]} [page] - An array of pages
|
|
425
424
|
*/
|
|
@@ -791,8 +790,7 @@ class ThemeApplicationModel {
|
|
|
791
790
|
/** @returns {GlobalConfig} */
|
|
792
791
|
static GlobalConfig() {
|
|
793
792
|
return Joi.object({
|
|
794
|
-
|
|
795
|
-
palette: ThemeApplicationModel.PaletteConfig(),
|
|
793
|
+
custom: ThemeApplicationModel.CustomConfig(),
|
|
796
794
|
statics: ThemeApplicationModel.StaticConfig(),
|
|
797
795
|
});
|
|
798
796
|
}
|
|
@@ -991,6 +989,7 @@ class ThemeApplicationModel {
|
|
|
991
989
|
return Joi.object({
|
|
992
990
|
auth: ThemeApplicationModel.AuthConfig(),
|
|
993
991
|
colors: ThemeApplicationModel.Colors(),
|
|
992
|
+
palette: ThemeApplicationModel.PaletteConfig(),
|
|
994
993
|
});
|
|
995
994
|
}
|
|
996
995
|
|
|
@@ -1015,8 +1014,7 @@ class ThemeApplicationModel {
|
|
|
1015
1014
|
/** @returns {ThemeConfiguration} */
|
|
1016
1015
|
static ThemeConfiguration() {
|
|
1017
1016
|
return Joi.object({
|
|
1018
|
-
|
|
1019
|
-
global_config: ThemeApplicationModel.GlobalConfig(),
|
|
1017
|
+
global_config: Joi.any(),
|
|
1020
1018
|
name: Joi.string().allow(""),
|
|
1021
1019
|
page: Joi.array().items(Joi.string().allow("")),
|
|
1022
1020
|
});
|
|
@@ -6,7 +6,7 @@ const { sign } = require("@gofynd/fp-signature");
|
|
|
6
6
|
const { FDKServerResponseError } = require("./FDKError");
|
|
7
7
|
const { log, Logger, getLoggerLevel } = require("./Logger");
|
|
8
8
|
const createCurl = require("./curlHelper");
|
|
9
|
-
const
|
|
9
|
+
const { version } = require("./../../package.json");
|
|
10
10
|
axios.defaults.withCredentials = true;
|
|
11
11
|
|
|
12
12
|
function getTransformer(config) {
|
|
@@ -39,7 +39,7 @@ function requestInterceptorFn() {
|
|
|
39
39
|
}
|
|
40
40
|
const { host, pathname, search } = new URL(url);
|
|
41
41
|
const { data, headers, method, params } = config;
|
|
42
|
-
headers["x-fp-sdk-version"] =
|
|
42
|
+
headers["x-fp-sdk-version"] = version;
|
|
43
43
|
let querySearchObj = querystring.parse(search);
|
|
44
44
|
querySearchObj = { ...querySearchObj, ...params };
|
|
45
45
|
let queryParam = "";
|
|
@@ -387,6 +387,7 @@ export = CartPlatformModel;
|
|
|
387
387
|
*/
|
|
388
388
|
/**
|
|
389
389
|
* @typedef CouponAdd
|
|
390
|
+
* @property {string} [_id] - Coupon id
|
|
390
391
|
* @property {CouponSchedule} [_schedule]
|
|
391
392
|
* @property {CouponAction} [action]
|
|
392
393
|
* @property {CouponAuthor} [author]
|
|
@@ -451,7 +452,7 @@ export = CartPlatformModel;
|
|
|
451
452
|
*/
|
|
452
453
|
/**
|
|
453
454
|
* @typedef CouponsResponse
|
|
454
|
-
* @property {CouponAdd} [items]
|
|
455
|
+
* @property {CouponAdd[]} [items]
|
|
455
456
|
* @property {Page} [page]
|
|
456
457
|
*/
|
|
457
458
|
/**
|
|
@@ -864,6 +865,7 @@ export = CartPlatformModel;
|
|
|
864
865
|
* @property {string} mode
|
|
865
866
|
* @property {string} [name]
|
|
866
867
|
* @property {string} [payment]
|
|
868
|
+
* @property {Object} [payment_extra_identifiers]
|
|
867
869
|
* @property {PaymentMeta} payment_meta
|
|
868
870
|
*/
|
|
869
871
|
/**
|
|
@@ -953,6 +955,7 @@ export = CartPlatformModel;
|
|
|
953
955
|
* @property {string} order_type
|
|
954
956
|
* @property {number} [ordering_store]
|
|
955
957
|
* @property {boolean} [payment_auto_confirm]
|
|
958
|
+
* @property {Object} [payment_extra_identifiers]
|
|
956
959
|
* @property {string} [payment_identifier]
|
|
957
960
|
* @property {string} payment_mode
|
|
958
961
|
* @property {Object} [payment_params]
|
|
@@ -2210,6 +2213,10 @@ type CouponAction = {
|
|
|
2210
2213
|
/** @returns {CouponAdd} */
|
|
2211
2214
|
declare function CouponAdd(): CouponAdd;
|
|
2212
2215
|
type CouponAdd = {
|
|
2216
|
+
/**
|
|
2217
|
+
* - Coupon id
|
|
2218
|
+
*/
|
|
2219
|
+
_id?: string;
|
|
2213
2220
|
_schedule?: CouponSchedule;
|
|
2214
2221
|
action?: CouponAction;
|
|
2215
2222
|
author?: CouponAuthor;
|
|
@@ -2284,7 +2291,7 @@ type CouponSchedule = {
|
|
|
2284
2291
|
/** @returns {CouponsResponse} */
|
|
2285
2292
|
declare function CouponsResponse(): CouponsResponse;
|
|
2286
2293
|
type CouponsResponse = {
|
|
2287
|
-
items?: CouponAdd;
|
|
2294
|
+
items?: CouponAdd[];
|
|
2288
2295
|
page?: Page;
|
|
2289
2296
|
};
|
|
2290
2297
|
/** @returns {CouponUpdate} */
|
|
@@ -2813,6 +2820,7 @@ type PaymentMethod = {
|
|
|
2813
2820
|
mode: string;
|
|
2814
2821
|
name?: string;
|
|
2815
2822
|
payment?: string;
|
|
2823
|
+
payment_extra_identifiers?: any;
|
|
2816
2824
|
payment_meta: PaymentMeta;
|
|
2817
2825
|
};
|
|
2818
2826
|
/** @returns {PaymentModes} */
|
|
@@ -2914,6 +2922,7 @@ type PlatformCartCheckoutDetailRequest = {
|
|
|
2914
2922
|
order_type: string;
|
|
2915
2923
|
ordering_store?: number;
|
|
2916
2924
|
payment_auto_confirm?: boolean;
|
|
2925
|
+
payment_extra_identifiers?: any;
|
|
2917
2926
|
payment_identifier?: string;
|
|
2918
2927
|
payment_mode: string;
|
|
2919
2928
|
payment_params?: any;
|
|
@@ -428,6 +428,7 @@ const Joi = require("joi");
|
|
|
428
428
|
|
|
429
429
|
/**
|
|
430
430
|
* @typedef CouponAdd
|
|
431
|
+
* @property {string} [_id] - Coupon id
|
|
431
432
|
* @property {CouponSchedule} [_schedule]
|
|
432
433
|
* @property {CouponAction} [action]
|
|
433
434
|
* @property {CouponAuthor} [author]
|
|
@@ -499,7 +500,7 @@ const Joi = require("joi");
|
|
|
499
500
|
|
|
500
501
|
/**
|
|
501
502
|
* @typedef CouponsResponse
|
|
502
|
-
* @property {CouponAdd} [items]
|
|
503
|
+
* @property {CouponAdd[]} [items]
|
|
503
504
|
* @property {Page} [page]
|
|
504
505
|
*/
|
|
505
506
|
|
|
@@ -962,6 +963,7 @@ const Joi = require("joi");
|
|
|
962
963
|
* @property {string} mode
|
|
963
964
|
* @property {string} [name]
|
|
964
965
|
* @property {string} [payment]
|
|
966
|
+
* @property {Object} [payment_extra_identifiers]
|
|
965
967
|
* @property {PaymentMeta} payment_meta
|
|
966
968
|
*/
|
|
967
969
|
|
|
@@ -1057,6 +1059,7 @@ const Joi = require("joi");
|
|
|
1057
1059
|
* @property {string} order_type
|
|
1058
1060
|
* @property {number} [ordering_store]
|
|
1059
1061
|
* @property {boolean} [payment_auto_confirm]
|
|
1062
|
+
* @property {Object} [payment_extra_identifiers]
|
|
1060
1063
|
* @property {string} [payment_identifier]
|
|
1061
1064
|
* @property {string} payment_mode
|
|
1062
1065
|
* @property {Object} [payment_params]
|
|
@@ -2324,6 +2327,7 @@ class CartPlatformModel {
|
|
|
2324
2327
|
/** @returns {CouponAdd} */
|
|
2325
2328
|
static CouponAdd() {
|
|
2326
2329
|
return Joi.object({
|
|
2330
|
+
_id: Joi.string().allow(""),
|
|
2327
2331
|
_schedule: CartPlatformModel.CouponSchedule(),
|
|
2328
2332
|
action: CartPlatformModel.CouponAction(),
|
|
2329
2333
|
author: CartPlatformModel.CouponAuthor(),
|
|
@@ -2409,7 +2413,7 @@ class CartPlatformModel {
|
|
|
2409
2413
|
/** @returns {CouponsResponse} */
|
|
2410
2414
|
static CouponsResponse() {
|
|
2411
2415
|
return Joi.object({
|
|
2412
|
-
items: CartPlatformModel.CouponAdd(),
|
|
2416
|
+
items: Joi.array().items(CartPlatformModel.CouponAdd()),
|
|
2413
2417
|
page: CartPlatformModel.Page(),
|
|
2414
2418
|
});
|
|
2415
2419
|
}
|
|
@@ -2977,6 +2981,7 @@ class CartPlatformModel {
|
|
|
2977
2981
|
mode: Joi.string().allow("").required(),
|
|
2978
2982
|
name: Joi.string().allow(""),
|
|
2979
2983
|
payment: Joi.string().allow(""),
|
|
2984
|
+
payment_extra_identifiers: Joi.any(),
|
|
2980
2985
|
payment_meta: CartPlatformModel.PaymentMeta().required(),
|
|
2981
2986
|
});
|
|
2982
2987
|
}
|
|
@@ -3086,6 +3091,7 @@ class CartPlatformModel {
|
|
|
3086
3091
|
order_type: Joi.string().allow("").required(),
|
|
3087
3092
|
ordering_store: Joi.number().allow(null),
|
|
3088
3093
|
payment_auto_confirm: Joi.boolean(),
|
|
3094
|
+
payment_extra_identifiers: Joi.any(),
|
|
3089
3095
|
payment_identifier: Joi.string().allow("").allow(null),
|
|
3090
3096
|
payment_mode: Joi.string().allow("").required(),
|
|
3091
3097
|
payment_params: Joi.any().allow(null),
|
|
@@ -102,6 +102,20 @@ declare class Catalog {
|
|
|
102
102
|
* @description: Add configuration for listing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createListingConfiguration/).
|
|
103
103
|
*/
|
|
104
104
|
createListingConfiguration({ configType, body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateListingConfigurationParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.AppConfigurationsSort>;
|
|
105
|
+
/**
|
|
106
|
+
* @param {CatalogPlatformApplicationValidator.CreateSearchConfigurationParam} arg
|
|
107
|
+
* - Arg object
|
|
108
|
+
*
|
|
109
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
110
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
111
|
+
* @returns {Promise<CatalogPlatformModel.CreateSearchConfigurationResponse>}
|
|
112
|
+
* - Success response
|
|
113
|
+
*
|
|
114
|
+
* @name createSearchConfiguration
|
|
115
|
+
* @summary: Update search configuration for an application
|
|
116
|
+
* @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/).
|
|
117
|
+
*/
|
|
118
|
+
createSearchConfiguration({ body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateSearchConfigurationParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.CreateSearchConfigurationResponse>;
|
|
105
119
|
/**
|
|
106
120
|
* @param {CatalogPlatformApplicationValidator.DeleteAutocompleteKeywordParam} arg
|
|
107
121
|
* - Arg object
|
|
@@ -148,6 +162,20 @@ declare class Catalog {
|
|
|
148
162
|
* @description: Delete configuration for listing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteListingConfiguration/).
|
|
149
163
|
*/
|
|
150
164
|
deleteListingConfiguration({ configType, configId, requestHeaders }?: CatalogPlatformApplicationValidator.DeleteListingConfigurationParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.ConfigSuccessResponse>;
|
|
165
|
+
/**
|
|
166
|
+
* @param {CatalogPlatformApplicationValidator.DeleteSearchConfigurationParam} arg
|
|
167
|
+
* - Arg object
|
|
168
|
+
*
|
|
169
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
170
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
171
|
+
* @returns {Promise<CatalogPlatformModel.DeleteSearchConfigurationResponse>}
|
|
172
|
+
* - Success response
|
|
173
|
+
*
|
|
174
|
+
* @name deleteSearchConfiguration
|
|
175
|
+
* @summary: Delete search configuration for an application
|
|
176
|
+
* @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/).
|
|
177
|
+
*/
|
|
178
|
+
deleteSearchConfiguration({ requestHeaders }?: any, { responseHeaders }?: object): Promise<CatalogPlatformModel.DeleteSearchConfigurationResponse>;
|
|
151
179
|
/**
|
|
152
180
|
* @param {CatalogPlatformApplicationValidator.DeleteSearchKeywordsParam} arg
|
|
153
181
|
* - Arg object
|
|
@@ -650,6 +678,20 @@ declare class Catalog {
|
|
|
650
678
|
* @description: Get query filters to configure a collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getQueryFilters/).
|
|
651
679
|
*/
|
|
652
680
|
getQueryFilters({ requestHeaders }?: any, { responseHeaders }?: object): Promise<CatalogPlatformModel.GetCollectionQueryOptionResponse>;
|
|
681
|
+
/**
|
|
682
|
+
* @param {CatalogPlatformApplicationValidator.GetSearchConfigurationParam} arg
|
|
683
|
+
* - Arg object
|
|
684
|
+
*
|
|
685
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
686
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
687
|
+
* @returns {Promise<CatalogPlatformModel.GetSearchConfigurationResponse>}
|
|
688
|
+
* - Success response
|
|
689
|
+
*
|
|
690
|
+
* @name getSearchConfiguration
|
|
691
|
+
* @summary: List search configuration for an application
|
|
692
|
+
* @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/).
|
|
693
|
+
*/
|
|
694
|
+
getSearchConfiguration({ requestHeaders }?: any, { responseHeaders }?: object): Promise<CatalogPlatformModel.GetSearchConfigurationResponse>;
|
|
653
695
|
/**
|
|
654
696
|
* @param {CatalogPlatformApplicationValidator.GetSearchKeywordsParam} arg
|
|
655
697
|
* - Arg object
|
|
@@ -790,6 +832,20 @@ declare class Catalog {
|
|
|
790
832
|
* @description: Update configuration for listing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateListingConfiguration/).
|
|
791
833
|
*/
|
|
792
834
|
updateListingConfiguration({ configType, configId, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateListingConfigurationParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.AppConfigurationsSort>;
|
|
835
|
+
/**
|
|
836
|
+
* @param {CatalogPlatformApplicationValidator.UpdateSearchConfigurationParam} arg
|
|
837
|
+
* - Arg object
|
|
838
|
+
*
|
|
839
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
840
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
841
|
+
* @returns {Promise<CatalogPlatformModel.UpdateSearchConfigurationResponse>}
|
|
842
|
+
* - Success response
|
|
843
|
+
*
|
|
844
|
+
* @name updateSearchConfiguration
|
|
845
|
+
* @summary: Update search configuration for an application
|
|
846
|
+
* @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/).
|
|
847
|
+
*/
|
|
848
|
+
updateSearchConfiguration({ body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateSearchConfigurationParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.UpdateSearchConfigurationResponse>;
|
|
793
849
|
/**
|
|
794
850
|
* @param {CatalogPlatformApplicationValidator.UpdateSearchKeywordsParam} arg
|
|
795
851
|
* - Arg object
|