@gofynd/fdk-client-javascript 1.3.3-beta.3 → 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/platform/Cart/CartPlatformModel.d.ts +4 -0
- package/sdk/platform/Cart/CartPlatformModel.js +4 -0
- 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/OrderPlatformModel.d.ts +4 -4
- package/sdk/platform/Order/OrderPlatformModel.js +4 -4
|
@@ -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:
|
|
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:
|
|
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: {} },
|