@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.
@@ -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
- * **v1.0/departments/** API
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] - Search query with brand name.Use this parameter to
223
- * search brands by brand name.
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] - Search query with brand name.Use this parameter to
232
- * search department by name.
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
- * **v1.0/departments/** API
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 {string} brandUid - Brand id for which the custom_json is associated.
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 - Category id for which the custom_json is associated.
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
- * **v1.0/departments/** API
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
- * - Search query with brand name.Use this parameter to
979
- * search brands by brand name.
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
- * - Search query with brand name.Use this parameter to
996
- * search department by name.
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
- * **v1.0/departments/** API
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
- * - Brand id for which the custom_json is associated.
1222
+ * - A `brand id` is a unique identifier for a
1223
+ * particular brand.
1221
1224
  */
1222
- brandUid: string;
1225
+ brandUid: number;
1223
1226
  body: CatalogPlatformModel.ApplicationBrandJson;
1224
1227
  };
1225
1228
  type UpdateAppCategoryParam = {
1226
1229
  /**
1227
- * - Category id for which the custom_json is associated.
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
- * **v1.0/departments/** API
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] - Search query with brand name.Use this parameter to
255
- * search brands by brand name.
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] - Search query with brand name.Use this parameter to
265
- * search department by name.
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
- * **v1.0/departments/** API
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 {string} brandUid - Brand id for which the custom_json is associated.
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 - Category id for which the custom_json is associated.
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.string().allow("").required(),
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.SuccessResponse1>} - Success response
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.SuccessResponse1>;
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.SuccessResponse1>} - Success response
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.SuccessResponse1().validate(responseData, {
802
+ } = CatalogPlatformModel.SuccessResponseObject().validate(responseData, {
803
803
  abortEarly: false,
804
804
  allowUnknown: true,
805
805
  });