@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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +4 -1
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +1 -1
- package/sdk/partner/Theme/ThemePartnerClient.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +2 -2
- package/sdk/partner/Webhook/WebhookPartnerModel.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.js +2 -4
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +227 -35
- package/sdk/platform/Catalog/CatalogPlatformModel.js +110 -23
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +6 -8
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +5 -7
- package/sdk/platform/Common/CommonPlatformModel.d.ts +10 -16
- package/sdk/platform/Common/CommonPlatformModel.js +5 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +62 -99
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +30 -50
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +4 -4
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +9 -6
- package/sdk/platform/Content/ContentPlatformClient.d.ts +5 -5
- package/sdk/platform/Content/ContentPlatformClient.js +14 -9
- package/sdk/platform/Content/ContentPlatformModel.d.ts +22 -17
- package/sdk/platform/Content/ContentPlatformModel.js +19 -17
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +2 -0
- package/sdk/platform/Content/ContentPlatformValidator.js +2 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1 -1
- package/sdk/platform/User/UserPlatformModel.d.ts +2 -2
- package/sdk/platform/User/UserPlatformModel.js +1 -1
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +4 -1
- package/sdk/public/Catalog/CatalogPublicModel.js +1 -1
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +6 -12
- package/sdk/public/Configuration/ConfigurationPublicModel.js +3 -6
- package/sdk/public/Content/ContentPublicModel.d.ts +4 -8
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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} */
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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] -
|
|
314
|
-
*
|
|
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
|
-
* -
|
|
717
|
-
* created the resource.
|
|
714
|
+
* - ID of the user who initially created the resource.
|
|
718
715
|
*/
|
|
719
716
|
created_by?: string;
|
|
720
717
|
/**
|
|
721
|
-
* -
|
|
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] -
|
|
353
|
-
*
|
|
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
|