@gofynd/fdk-client-javascript 1.4.12-beta.1 → 1.4.13
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/platform/Catalog/CatalogPlatformApplicationClient.d.ts +38 -35
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +42 -39
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -23
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +14 -12
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +2 -2
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1104 -230
- package/sdk/platform/Catalog/CatalogPlatformModel.js +461 -222
- package/sdk/platform/Order/OrderPlatformClient.d.ts +5 -49
- package/sdk/platform/Order/OrderPlatformClient.js +32 -328
- package/sdk/platform/Order/OrderPlatformModel.d.ts +2607 -1393
- package/sdk/platform/Order/OrderPlatformModel.js +1069 -1402
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +142 -110
- package/sdk/platform/Order/OrderPlatformValidator.js +64 -91
|
@@ -193,7 +193,7 @@ export = CatalogPlatformApplicationValidator;
|
|
|
193
193
|
* set of results
|
|
194
194
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
195
195
|
* Default is 12.
|
|
196
|
-
* @property {string} [q] - Search query with brand name.Use this parameter to
|
|
196
|
+
* @property {string} [q] - Search query with brand name. Use this parameter to
|
|
197
197
|
* search brands by brand name.
|
|
198
198
|
*/
|
|
199
199
|
/**
|
|
@@ -201,12 +201,12 @@ export = CatalogPlatformApplicationValidator;
|
|
|
201
201
|
* @property {string} [department] - The name of the department. Use this
|
|
202
202
|
* parameter to filter products by a particular department. See below the list
|
|
203
203
|
* of available departments. You can retrieve available departments from the
|
|
204
|
-
*
|
|
204
|
+
* "v1.0/departments/" API
|
|
205
205
|
* @property {number} [pageNo] - The page number to navigate through the given
|
|
206
206
|
* set of results
|
|
207
207
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
208
208
|
* Default is 12.
|
|
209
|
-
* @property {string} [q] - Search query with brand name.Use this parameter to
|
|
209
|
+
* @property {string} [q] - Search query with brand name. Use this parameter to
|
|
210
210
|
* search brands by brand name.
|
|
211
211
|
* @property {number[]} [brandId] - Helps to sort the brands list on the basis
|
|
212
212
|
* of uid list.
|
|
@@ -219,8 +219,8 @@ export = CatalogPlatformApplicationValidator;
|
|
|
219
219
|
* set of results
|
|
220
220
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
221
221
|
* Default is 12.
|
|
222
|
-
* @property {string} [q] -
|
|
223
|
-
*
|
|
222
|
+
* @property {string} [q] - A search query string. Use this parameter to filter
|
|
223
|
+
* results based on a keyword or specific value.
|
|
224
224
|
*/
|
|
225
225
|
/**
|
|
226
226
|
* @typedef GetApplicationDepartmentListingParam
|
|
@@ -228,8 +228,8 @@ export = CatalogPlatformApplicationValidator;
|
|
|
228
228
|
* set of results
|
|
229
229
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
230
230
|
* Default is 12.
|
|
231
|
-
* @property {string} [q] -
|
|
232
|
-
*
|
|
231
|
+
* @property {string} [q] - A search query string. Use this parameter to filter
|
|
232
|
+
* results based on a keyword or specific value.
|
|
233
233
|
*/
|
|
234
234
|
/**
|
|
235
235
|
* @typedef GetApplicationFilterKeysParam
|
|
@@ -263,14 +263,14 @@ export = CatalogPlatformApplicationValidator;
|
|
|
263
263
|
/** @typedef GetCatalogConfigurationParam */
|
|
264
264
|
/**
|
|
265
265
|
* @typedef GetCatalogInsightsParam
|
|
266
|
-
* @property {string} [brand] - Brand slug
|
|
266
|
+
* @property {string} [brand] - Brand slug that is to be searched.
|
|
267
267
|
*/
|
|
268
268
|
/**
|
|
269
269
|
* @typedef GetCategoriesParam
|
|
270
270
|
* @property {string} [department] - The name of the department. Use this
|
|
271
271
|
* parameter to filter products by a particular department. See below the list
|
|
272
272
|
* of available departments. You can retrieve available departments from the
|
|
273
|
-
*
|
|
273
|
+
* "v1.0/departments/" API
|
|
274
274
|
*/
|
|
275
275
|
/**
|
|
276
276
|
* @typedef GetCollectionDetailParam
|
|
@@ -358,12 +358,14 @@ export = CatalogPlatformApplicationValidator;
|
|
|
358
358
|
*/
|
|
359
359
|
/**
|
|
360
360
|
* @typedef UpdateAppBrandParam
|
|
361
|
-
* @property {
|
|
361
|
+
* @property {number} brandUid - A `brand id` is a unique identifier for a
|
|
362
|
+
* particular brand.
|
|
362
363
|
* @property {CatalogPlatformModel.ApplicationBrandJson} body
|
|
363
364
|
*/
|
|
364
365
|
/**
|
|
365
366
|
* @typedef UpdateAppCategoryParam
|
|
366
|
-
* @property {string} categoryUid -
|
|
367
|
+
* @property {string} categoryUid - A `category id` is a unique identifier for a
|
|
368
|
+
* particular category.
|
|
367
369
|
* @property {CatalogPlatformModel.ApplicationCategoryJson} body
|
|
368
370
|
*/
|
|
369
371
|
/**
|
|
@@ -924,7 +926,7 @@ type GetApplicationBrandListingParam = {
|
|
|
924
926
|
*/
|
|
925
927
|
pageSize?: number;
|
|
926
928
|
/**
|
|
927
|
-
* - Search query with brand name.Use this parameter to
|
|
929
|
+
* - Search query with brand name. Use this parameter to
|
|
928
930
|
* search brands by brand name.
|
|
929
931
|
*/
|
|
930
932
|
q?: string;
|
|
@@ -934,7 +936,7 @@ type GetApplicationBrandsParam = {
|
|
|
934
936
|
* - The name of the department. Use this
|
|
935
937
|
* parameter to filter products by a particular department. See below the list
|
|
936
938
|
* of available departments. You can retrieve available departments from the
|
|
937
|
-
*
|
|
939
|
+
* "v1.0/departments/" API
|
|
938
940
|
*/
|
|
939
941
|
department?: string;
|
|
940
942
|
/**
|
|
@@ -948,7 +950,7 @@ type GetApplicationBrandsParam = {
|
|
|
948
950
|
*/
|
|
949
951
|
pageSize?: number;
|
|
950
952
|
/**
|
|
951
|
-
* - Search query with brand name.Use this parameter to
|
|
953
|
+
* - Search query with brand name. Use this parameter to
|
|
952
954
|
* search brands by brand name.
|
|
953
955
|
*/
|
|
954
956
|
q?: string;
|
|
@@ -975,8 +977,8 @@ type GetApplicationCategoryListingParam = {
|
|
|
975
977
|
*/
|
|
976
978
|
pageSize?: number;
|
|
977
979
|
/**
|
|
978
|
-
* -
|
|
979
|
-
*
|
|
980
|
+
* - A search query string. Use this parameter to filter
|
|
981
|
+
* results based on a keyword or specific value.
|
|
980
982
|
*/
|
|
981
983
|
q?: string;
|
|
982
984
|
};
|
|
@@ -992,8 +994,8 @@ type GetApplicationDepartmentListingParam = {
|
|
|
992
994
|
*/
|
|
993
995
|
pageSize?: number;
|
|
994
996
|
/**
|
|
995
|
-
* -
|
|
996
|
-
*
|
|
997
|
+
* - A search query string. Use this parameter to filter
|
|
998
|
+
* results based on a keyword or specific value.
|
|
997
999
|
*/
|
|
998
1000
|
q?: string;
|
|
999
1001
|
};
|
|
@@ -1048,7 +1050,7 @@ type GetAutocompleteKeywordDetailParam = {
|
|
|
1048
1050
|
};
|
|
1049
1051
|
type GetCatalogInsightsParam = {
|
|
1050
1052
|
/**
|
|
1051
|
-
* - Brand slug
|
|
1053
|
+
* - Brand slug that is to be searched.
|
|
1052
1054
|
*/
|
|
1053
1055
|
brand?: string;
|
|
1054
1056
|
};
|
|
@@ -1057,7 +1059,7 @@ type GetCategoriesParam = {
|
|
|
1057
1059
|
* - The name of the department. Use this
|
|
1058
1060
|
* parameter to filter products by a particular department. See below the list
|
|
1059
1061
|
* of available departments. You can retrieve available departments from the
|
|
1060
|
-
*
|
|
1062
|
+
* "v1.0/departments/" API
|
|
1061
1063
|
*/
|
|
1062
1064
|
department?: string;
|
|
1063
1065
|
};
|
|
@@ -1217,14 +1219,16 @@ type UpdateAllowSingleParam = {
|
|
|
1217
1219
|
};
|
|
1218
1220
|
type UpdateAppBrandParam = {
|
|
1219
1221
|
/**
|
|
1220
|
-
* -
|
|
1222
|
+
* - A `brand id` is a unique identifier for a
|
|
1223
|
+
* particular brand.
|
|
1221
1224
|
*/
|
|
1222
|
-
brandUid:
|
|
1225
|
+
brandUid: number;
|
|
1223
1226
|
body: CatalogPlatformModel.ApplicationBrandJson;
|
|
1224
1227
|
};
|
|
1225
1228
|
type UpdateAppCategoryParam = {
|
|
1226
1229
|
/**
|
|
1227
|
-
* -
|
|
1230
|
+
* - A `category id` is a unique identifier for a
|
|
1231
|
+
* particular category.
|
|
1228
1232
|
*/
|
|
1229
1233
|
categoryUid: string;
|
|
1230
1234
|
body: CatalogPlatformModel.ApplicationCategoryJson;
|
|
@@ -223,7 +223,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
223
223
|
* set of results
|
|
224
224
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
225
225
|
* Default is 12.
|
|
226
|
-
* @property {string} [q] - Search query with brand name.Use this parameter to
|
|
226
|
+
* @property {string} [q] - Search query with brand name. Use this parameter to
|
|
227
227
|
* search brands by brand name.
|
|
228
228
|
*/
|
|
229
229
|
|
|
@@ -232,12 +232,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
232
232
|
* @property {string} [department] - The name of the department. Use this
|
|
233
233
|
* parameter to filter products by a particular department. See below the list
|
|
234
234
|
* of available departments. You can retrieve available departments from the
|
|
235
|
-
*
|
|
235
|
+
* "v1.0/departments/" API
|
|
236
236
|
* @property {number} [pageNo] - The page number to navigate through the given
|
|
237
237
|
* set of results
|
|
238
238
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
239
239
|
* Default is 12.
|
|
240
|
-
* @property {string} [q] - Search query with brand name.Use this parameter to
|
|
240
|
+
* @property {string} [q] - Search query with brand name. Use this parameter to
|
|
241
241
|
* search brands by brand name.
|
|
242
242
|
* @property {number[]} [brandId] - Helps to sort the brands list on the basis
|
|
243
243
|
* of uid list.
|
|
@@ -251,8 +251,8 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
251
251
|
* set of results
|
|
252
252
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
253
253
|
* Default is 12.
|
|
254
|
-
* @property {string} [q] -
|
|
255
|
-
*
|
|
254
|
+
* @property {string} [q] - A search query string. Use this parameter to filter
|
|
255
|
+
* results based on a keyword or specific value.
|
|
256
256
|
*/
|
|
257
257
|
|
|
258
258
|
/**
|
|
@@ -261,8 +261,8 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
261
261
|
* set of results
|
|
262
262
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
263
263
|
* Default is 12.
|
|
264
|
-
* @property {string} [q] -
|
|
265
|
-
*
|
|
264
|
+
* @property {string} [q] - A search query string. Use this parameter to filter
|
|
265
|
+
* results based on a keyword or specific value.
|
|
266
266
|
*/
|
|
267
267
|
|
|
268
268
|
/**
|
|
@@ -302,7 +302,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
302
302
|
|
|
303
303
|
/**
|
|
304
304
|
* @typedef GetCatalogInsightsParam
|
|
305
|
-
* @property {string} [brand] - Brand slug
|
|
305
|
+
* @property {string} [brand] - Brand slug that is to be searched.
|
|
306
306
|
*/
|
|
307
307
|
|
|
308
308
|
/**
|
|
@@ -310,7 +310,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
310
310
|
* @property {string} [department] - The name of the department. Use this
|
|
311
311
|
* parameter to filter products by a particular department. See below the list
|
|
312
312
|
* of available departments. You can retrieve available departments from the
|
|
313
|
-
*
|
|
313
|
+
* "v1.0/departments/" API
|
|
314
314
|
*/
|
|
315
315
|
|
|
316
316
|
/**
|
|
@@ -413,13 +413,15 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
413
413
|
|
|
414
414
|
/**
|
|
415
415
|
* @typedef UpdateAppBrandParam
|
|
416
|
-
* @property {
|
|
416
|
+
* @property {number} brandUid - A `brand id` is a unique identifier for a
|
|
417
|
+
* particular brand.
|
|
417
418
|
* @property {CatalogPlatformModel.ApplicationBrandJson} body
|
|
418
419
|
*/
|
|
419
420
|
|
|
420
421
|
/**
|
|
421
422
|
* @typedef UpdateAppCategoryParam
|
|
422
|
-
* @property {string} categoryUid -
|
|
423
|
+
* @property {string} categoryUid - A `category id` is a unique identifier for a
|
|
424
|
+
* particular category.
|
|
423
425
|
* @property {CatalogPlatformModel.ApplicationCategoryJson} body
|
|
424
426
|
*/
|
|
425
427
|
|
|
@@ -934,7 +936,7 @@ class CatalogPlatformApplicationValidator {
|
|
|
934
936
|
/** @returns {UpdateAppBrandParam} */
|
|
935
937
|
static updateAppBrand() {
|
|
936
938
|
return Joi.object({
|
|
937
|
-
brandUid: Joi.
|
|
939
|
+
brandUid: Joi.number().required(),
|
|
938
940
|
body: CatalogPlatformModel.ApplicationBrandJson().required(),
|
|
939
941
|
}).required();
|
|
940
942
|
}
|
|
@@ -98,12 +98,12 @@ declare class Catalog {
|
|
|
98
98
|
* @param {CatalogPlatformValidator.CreateProductParam} arg - Arg object
|
|
99
99
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
100
100
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
101
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
101
|
+
* @returns {Promise<CatalogPlatformModel.SuccessResponseObject>} - Success response
|
|
102
102
|
* @name createProduct
|
|
103
103
|
* @summary: Create product
|
|
104
104
|
* @description: Users can create a product using this API, associating it with the provided company ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProduct/).
|
|
105
105
|
*/
|
|
106
|
-
createProduct({ body, requestHeaders }?: CatalogPlatformValidator.CreateProductParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.
|
|
106
|
+
createProduct({ body, requestHeaders }?: CatalogPlatformValidator.CreateProductParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.SuccessResponseObject>;
|
|
107
107
|
/**
|
|
108
108
|
* @param {CatalogPlatformValidator.CreateProductAssetsInBulkParam} arg - Arg object
|
|
109
109
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -743,7 +743,7 @@ class Catalog {
|
|
|
743
743
|
* @param {CatalogPlatformValidator.CreateProductParam} arg - Arg object
|
|
744
744
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
745
745
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
746
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
746
|
+
* @returns {Promise<CatalogPlatformModel.SuccessResponseObject>} - Success response
|
|
747
747
|
* @name createProduct
|
|
748
748
|
* @summary: Create product
|
|
749
749
|
* @description: Users can create a product using this API, associating it with the provided company ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProduct/).
|
|
@@ -799,7 +799,7 @@ class Catalog {
|
|
|
799
799
|
|
|
800
800
|
const {
|
|
801
801
|
error: res_error,
|
|
802
|
-
} = CatalogPlatformModel.
|
|
802
|
+
} = CatalogPlatformModel.SuccessResponseObject().validate(responseData, {
|
|
803
803
|
abortEarly: false,
|
|
804
804
|
allowUnknown: true,
|
|
805
805
|
});
|