@gofynd/fdk-client-javascript 2.0.2 → 3.0.0

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 (37) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +4 -1
  4. package/sdk/partner/Logistics/LogisticsPartnerModel.js +1 -1
  5. package/sdk/partner/Theme/ThemePartnerClient.js +4 -4
  6. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +2 -2
  7. package/sdk/partner/Webhook/WebhookPartnerModel.js +1 -1
  8. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +1 -1
  9. package/sdk/platform/Catalog/CatalogPlatformClient.js +2 -4
  10. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +227 -35
  11. package/sdk/platform/Catalog/CatalogPlatformModel.js +110 -23
  12. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +6 -8
  13. package/sdk/platform/Catalog/CatalogPlatformValidator.js +5 -7
  14. package/sdk/platform/Common/CommonPlatformModel.d.ts +10 -16
  15. package/sdk/platform/Common/CommonPlatformModel.js +5 -8
  16. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +2 -2
  17. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +1 -1
  18. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +62 -99
  19. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +30 -50
  20. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +4 -4
  21. package/sdk/platform/Content/ContentPlatformApplicationClient.js +9 -6
  22. package/sdk/platform/Content/ContentPlatformClient.d.ts +5 -5
  23. package/sdk/platform/Content/ContentPlatformClient.js +14 -9
  24. package/sdk/platform/Content/ContentPlatformModel.d.ts +22 -17
  25. package/sdk/platform/Content/ContentPlatformModel.js +19 -17
  26. package/sdk/platform/Content/ContentPlatformValidator.d.ts +2 -0
  27. package/sdk/platform/Content/ContentPlatformValidator.js +2 -0
  28. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
  29. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1 -1
  30. package/sdk/platform/User/UserPlatformModel.d.ts +2 -2
  31. package/sdk/platform/User/UserPlatformModel.js +1 -1
  32. package/sdk/public/Catalog/CatalogPublicModel.d.ts +4 -1
  33. package/sdk/public/Catalog/CatalogPublicModel.js +1 -1
  34. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +6 -12
  35. package/sdk/public/Configuration/ConfigurationPublicModel.js +3 -6
  36. package/sdk/public/Content/ContentPublicModel.d.ts +4 -8
  37. package/sdk/public/Content/ContentPublicModel.js +2 -4
@@ -191,6 +191,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
191
191
 
192
192
  /**
193
193
  * @typedef UpdateCompanyLanguageDefaultParam
194
+ * @property {string} locale
194
195
  * @property {ContentPlatformModel.CompanyLanguageUpdate} body
195
196
  */
196
197
 
@@ -492,6 +493,7 @@ class ContentPlatformValidator {
492
493
  /** @returns {UpdateCompanyLanguageDefaultParam} */
493
494
  static updateCompanyLanguageDefault() {
494
495
  return Joi.object({
496
+ locale: Joi.string().allow("").required(),
495
497
  body: ContentPlatformModel.CompanyLanguageUpdate().required(),
496
498
  }).required();
497
499
  }
@@ -191,7 +191,7 @@ declare class Serviceability {
191
191
  *
192
192
  * @name getInstalledCourierPartnerExtensions
193
193
  * @summary: Fetching of Package Material Rules from database.
194
- * @description: This API returns response of Package Materials Rules from mongo database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getInstalledCourierPartnerExtensions/).
194
+ * @description: This API returns response of Package Materials Rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getInstalledCourierPartnerExtensions/).
195
195
  */
196
196
  getInstalledCourierPartnerExtensions({ pageNo, pageSize, isInstalled, requestHeaders }?: ServiceabilityPlatformValidator.GetInstalledCourierPartnerExtensionsParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.InstallCourierPartnerResponseSchema>;
197
197
  /**
@@ -1341,7 +1341,7 @@ class Serviceability {
1341
1341
  *
1342
1342
  * @name getInstalledCourierPartnerExtensions
1343
1343
  * @summary: Fetching of Package Material Rules from database.
1344
- * @description: This API returns response of Package Materials Rules from mongo database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getInstalledCourierPartnerExtensions/).
1344
+ * @description: This API returns response of Package Materials Rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getInstalledCourierPartnerExtensions/).
1345
1345
  */
1346
1346
  async getInstalledCourierPartnerExtensions(
1347
1347
  { pageNo, pageSize, isInstalled, requestHeaders } = { requestHeaders: {} },
@@ -456,7 +456,7 @@ export = UserPlatformModel;
456
456
  */
457
457
  /**
458
458
  * @typedef UserGroupUpdateData
459
- * @property {string} [user_id] - Must be valid mongodb objectid of existing user
459
+ * @property {string} [user_id] - Must be valid ID of existing user
460
460
  * @property {string} [phone_number] - Phone number of registered user
461
461
  * @property {string} [email] - Email of registered user
462
462
  * @property {string} action
@@ -1301,7 +1301,7 @@ type PartialUserGroupUpdateSchema = {
1301
1301
  declare function UserGroupUpdateData(): UserGroupUpdateData;
1302
1302
  type UserGroupUpdateData = {
1303
1303
  /**
1304
- * - Must be valid mongodb objectid of existing user
1304
+ * - Must be valid ID of existing user
1305
1305
  */
1306
1306
  user_id?: string;
1307
1307
  /**
@@ -519,7 +519,7 @@ const Joi = require("joi");
519
519
 
520
520
  /**
521
521
  * @typedef UserGroupUpdateData
522
- * @property {string} [user_id] - Must be valid mongodb objectid of existing user
522
+ * @property {string} [user_id] - Must be valid ID of existing user
523
523
  * @property {string} [phone_number] - Phone number of registered user
524
524
  * @property {string} [email] - Email of registered user
525
525
  * @property {string} action
@@ -41,7 +41,7 @@ export = CatalogPublicModel;
41
41
  */
42
42
  /**
43
43
  * @typedef ValidationErrors
44
- * @property {ValidationError[]} errors
44
+ * @property {ValidationError[]} errors - A list of validation errors in the request.
45
45
  */
46
46
  /**
47
47
  * @typedef ValidationError
@@ -139,6 +139,9 @@ type TaxonomyResponseSchema = {
139
139
  /** @returns {ValidationErrors} */
140
140
  declare function ValidationErrors(): ValidationErrors;
141
141
  type ValidationErrors = {
142
+ /**
143
+ * - A list of validation errors in the request.
144
+ */
142
145
  errors: ValidationError[];
143
146
  };
144
147
  /** @returns {ValidationError} */
@@ -46,7 +46,7 @@ const Joi = require("joi");
46
46
 
47
47
  /**
48
48
  * @typedef ValidationErrors
49
- * @property {ValidationError[]} errors
49
+ * @property {ValidationError[]} errors - A list of validation errors in the request.
50
50
  */
51
51
 
52
52
  /**
@@ -10,8 +10,7 @@ export = ConfigurationPublicModel;
10
10
  * @property {boolean} [is_primary] - Indicates domain is primary or not.
11
11
  * Primary domain is the default/main domain.
12
12
  * @property {boolean} [is_shortlink] - Shortlink is present or not for the domain
13
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
14
- * of the domain
13
+ * @property {string} [_id] - The unique identifier of the domain
15
14
  * @property {string} [name]
16
15
  * @property {boolean} [is_predefined] - Domain is hosting domain or not
17
16
  */
@@ -62,11 +61,9 @@ export = ConfigurationPublicModel;
62
61
  * internal or not
63
62
  * @property {boolean} [is_active] - Indicates whether a sales channel is active
64
63
  * or not active
65
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
66
- * of the sales channel
64
+ * @property {string} [_id] - The unique identifier of the sales channel
67
65
  * @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion
68
- * @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
69
- * of owner who owns the application
66
+ * @property {string} [owner] - The unique identifier of owner who owns the application
70
67
  * @property {number} [company_id] - Numeric ID allotted to a business account
71
68
  * where the sales channel exists
72
69
  * @property {string} [token] - Randomly generated fixed-length string for sales
@@ -157,8 +154,7 @@ type Domain = {
157
154
  */
158
155
  is_shortlink?: boolean;
159
156
  /**
160
- * - The unique identifier (24-digit Mongo Object ID)
161
- * of the domain
157
+ * - The unique identifier of the domain
162
158
  */
163
159
  _id?: string;
164
160
  name?: string;
@@ -264,8 +260,7 @@ type Application = {
264
260
  */
265
261
  is_active?: boolean;
266
262
  /**
267
- * - The unique identifier (24-digit Mongo Object ID)
268
- * of the sales channel
263
+ * - The unique identifier of the sales channel
269
264
  */
270
265
  _id?: string;
271
266
  /**
@@ -273,8 +268,7 @@ type Application = {
273
268
  */
274
269
  name?: string;
275
270
  /**
276
- * - The unique identifier (24-digit Mongo Object ID)
277
- * of owner who owns the application
271
+ * - The unique identifier of owner who owns the application
278
272
  */
279
273
  owner?: string;
280
274
  /**
@@ -12,8 +12,7 @@ const Joi = require("joi");
12
12
  * @property {boolean} [is_primary] - Indicates domain is primary or not.
13
13
  * Primary domain is the default/main domain.
14
14
  * @property {boolean} [is_shortlink] - Shortlink is present or not for the domain
15
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
16
- * of the domain
15
+ * @property {string} [_id] - The unique identifier of the domain
17
16
  * @property {string} [name]
18
17
  * @property {boolean} [is_predefined] - Domain is hosting domain or not
19
18
  */
@@ -71,11 +70,9 @@ const Joi = require("joi");
71
70
  * internal or not
72
71
  * @property {boolean} [is_active] - Indicates whether a sales channel is active
73
72
  * or not active
74
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
75
- * of the sales channel
73
+ * @property {string} [_id] - The unique identifier of the sales channel
76
74
  * @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion
77
- * @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
78
- * of owner who owns the application
75
+ * @property {string} [owner] - The unique identifier of owner who owns the application
79
76
  * @property {number} [company_id] - Numeric ID allotted to a business account
80
77
  * where the sales channel exists
81
78
  * @property {string} [token] - Randomly generated fixed-length string for sales
@@ -310,10 +310,8 @@ export = ContentPublicModel;
310
310
  */
311
311
  /**
312
312
  * @typedef Meta
313
- * @property {string} [created_by] - MongoDB ObjectId of the user who initially
314
- * created the resource.
315
- * @property {string} [updated_by] - MongoDB ObjectId of the user who last
316
- * modified the resource.
313
+ * @property {string} [created_by] - ID of the user who initially created the resource.
314
+ * @property {string} [updated_by] - ID of the user who last modified the resource.
317
315
  * @property {string} [created_at] - Timestamp indicating when the resource was
318
316
  * first created.
319
317
  * @property {string} [updated_at] - Timestamp indicating when the resource was
@@ -713,13 +711,11 @@ type TranslatableResource = {
713
711
  declare function Meta(): Meta;
714
712
  type Meta = {
715
713
  /**
716
- * - MongoDB ObjectId of the user who initially
717
- * created the resource.
714
+ * - ID of the user who initially created the resource.
718
715
  */
719
716
  created_by?: string;
720
717
  /**
721
- * - MongoDB ObjectId of the user who last
722
- * modified the resource.
718
+ * - ID of the user who last modified the resource.
723
719
  */
724
720
  updated_by?: string;
725
721
  /**
@@ -349,10 +349,8 @@ const Joi = require("joi");
349
349
 
350
350
  /**
351
351
  * @typedef Meta
352
- * @property {string} [created_by] - MongoDB ObjectId of the user who initially
353
- * created the resource.
354
- * @property {string} [updated_by] - MongoDB ObjectId of the user who last
355
- * modified the resource.
352
+ * @property {string} [created_by] - ID of the user who initially created the resource.
353
+ * @property {string} [updated_by] - ID of the user who last modified the resource.
356
354
  * @property {string} [created_at] - Timestamp indicating when the resource was
357
355
  * first created.
358
356
  * @property {string} [updated_at] - Timestamp indicating when the resource was