Skip to content

Commit aec036b

Browse files
committed
[Auto Generated] 3.3.0
1 parent 4add37b commit aec036b

File tree

11 files changed

+614
-39
lines changed

11 files changed

+614
-39
lines changed

CHANGELOG.md

Lines changed: 521 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ console.log("Active Theme: ", response.information.name);
237237
The above code will log the curl command in the console
238238

239239
```bash
240-
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.2.0' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
240+
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.3.0' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
241241
Active Theme: Emerge
242242
```
243243

dist/application.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gofynd/fdk-client-javascript",
3-
"version": "3.2.0",
3+
"version": "3.3.0",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

sdk/partner/FileStorage/FileStoragePartnerModel.d.ts

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ export = FileStoragePartnerModel;
55
*/
66
/**
77
* @typedef SaveProxy
8-
* @property {number} [id]
9-
* @property {string} [token]
8+
* @property {boolean} [success]
109
*/
1110
/**
1211
* @typedef ProxyFileData
13-
* @property {string} [email]
14-
* @property {string} [password]
12+
* @property {string} [name]
1513
*/
1614
/**
1715
* @typedef ProxyFile
@@ -24,8 +22,7 @@ export = FileStoragePartnerModel;
2422
*/
2523
/**
2624
* @typedef FetchProxyDetails
27-
* @property {Object} [data]
28-
* @property {Object} [support]
25+
* @property {boolean} [success]
2926
*/
3027
/**
3128
* @typedef NamespaceDetails
@@ -127,14 +124,12 @@ type SizeConstraints = {
127124
/** @returns {SaveProxy} */
128125
declare function SaveProxy(): SaveProxy;
129126
type SaveProxy = {
130-
id?: number;
131-
token?: string;
127+
success?: boolean;
132128
};
133129
/** @returns {ProxyFileData} */
134130
declare function ProxyFileData(): ProxyFileData;
135131
type ProxyFileData = {
136-
email?: string;
137-
password?: string;
132+
name?: string;
138133
};
139134
/** @returns {ProxyFile} */
140135
declare function ProxyFile(): ProxyFile;
@@ -149,8 +144,7 @@ type ProxyFile = {
149144
/** @returns {FetchProxyDetails} */
150145
declare function FetchProxyDetails(): FetchProxyDetails;
151146
type FetchProxyDetails = {
152-
data?: any;
153-
support?: any;
147+
success?: boolean;
154148
};
155149
/** @returns {NamespaceDetails} */
156150
declare function NamespaceDetails(): NamespaceDetails;

sdk/partner/FileStorage/FileStoragePartnerModel.js

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ const Joi = require("joi");
77

88
/**
99
* @typedef SaveProxy
10-
* @property {number} [id]
11-
* @property {string} [token]
10+
* @property {boolean} [success]
1211
*/
1312

1413
/**
1514
* @typedef ProxyFileData
16-
* @property {string} [email]
17-
* @property {string} [password]
15+
* @property {string} [name]
1816
*/
1917

2018
/**
@@ -29,8 +27,7 @@ const Joi = require("joi");
2927

3028
/**
3129
* @typedef FetchProxyDetails
32-
* @property {Object} [data]
33-
* @property {Object} [support]
30+
* @property {boolean} [success]
3431
*/
3532

3633
/**
@@ -140,16 +137,14 @@ class FileStoragePartnerModel {
140137
/** @returns {SaveProxy} */
141138
static SaveProxy() {
142139
return Joi.object({
143-
id: Joi.number(),
144-
token: Joi.string().allow(""),
140+
success: Joi.boolean(),
145141
});
146142
}
147143

148144
/** @returns {ProxyFileData} */
149145
static ProxyFileData() {
150146
return Joi.object({
151-
email: Joi.string().allow(""),
152-
password: Joi.string().allow(""),
147+
name: Joi.string().allow(""),
153148
});
154149
}
155150

@@ -168,8 +163,7 @@ class FileStoragePartnerModel {
168163
/** @returns {FetchProxyDetails} */
169164
static FetchProxyDetails() {
170165
return Joi.object({
171-
data: Joi.object().pattern(/\S/, Joi.any()),
172-
support: Joi.object().pattern(/\S/, Joi.any()),
166+
success: Joi.boolean(),
173167
});
174168
}
175169

sdk/platform/Order/OrderPlatformModel.d.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3926,7 +3926,9 @@ export = OrderPlatformModel;
39263926
* a discount when buying in a bundle. - custom- A custom promotion not
39273927
* covered by other types. - free_gift_items- Free gift items are included
39283928
* with the purchase. - free_non_sellable_items- Free items that are not for
3929-
* sale are included with the purchase.
3929+
* sale are included with the purchase. - item_based_discount- Specific
3930+
* percentage discounts on selected items based on their position after
3931+
* sorting by price in descending order.
39303932
* @property {string} [promotion_name] - The name of the promotional campaign or offer.
39313933
* @property {DiscountRules[]} [discount_rules] - A list of rules that define
39323934
* the conditions under which discounts are applied.
@@ -13084,7 +13086,9 @@ type AppliedPromos = {
1308413086
* a discount when buying in a bundle. - custom- A custom promotion not
1308513087
* covered by other types. - free_gift_items- Free gift items are included
1308613088
* with the purchase. - free_non_sellable_items- Free items that are not for
13087-
* sale are included with the purchase.
13089+
* sale are included with the purchase. - item_based_discount- Specific
13090+
* percentage discounts on selected items based on their position after
13091+
* sorting by price in descending order.
1308813092
*/
1308913093
promotion_type?: string;
1309013094
/**

sdk/platform/Order/OrderPlatformModel.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4231,7 +4231,9 @@ const Joi = require("joi");
42314231
* a discount when buying in a bundle. - custom- A custom promotion not
42324232
* covered by other types. - free_gift_items- Free gift items are included
42334233
* with the purchase. - free_non_sellable_items- Free items that are not for
4234-
* sale are included with the purchase.
4234+
* sale are included with the purchase. - item_based_discount- Specific
4235+
* percentage discounts on selected items based on their position after
4236+
* sorting by price in descending order.
42354237
* @property {string} [promotion_name] - The name of the promotional campaign or offer.
42364238
* @property {DiscountRules[]} [discount_rules] - A list of rules that define
42374239
* the conditions under which discounts are applied.

sdk/platform/User/UserPlatformModel.d.ts

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ export = UserPlatformModel;
507507
* @property {string} [updated_at]
508508
* @property {string} [external_id]
509509
* @property {string} [rr_id]
510+
* @property {UserConsent} [consent]
510511
*/
511512
/**
512513
* @typedef UserSearchSchema
@@ -531,6 +532,7 @@ export = UserPlatformModel;
531532
* @property {boolean} [archive]
532533
* @property {string} [status]
533534
* @property {string} [deleted_on]
535+
* @property {UserConsent} [consent]
534536
*/
535537
/**
536538
* @typedef PhoneNumber
@@ -547,10 +549,19 @@ export = UserPlatformModel;
547549
* @property {boolean} [primary] - Is it a primary email.
548550
* @property {boolean} [verified] - Is the email verified.
549551
*/
552+
/**
553+
* @typedef UserConsent
554+
* @property {PrivacyPolicyConsentSchema} [privacy_policy]
555+
*/
556+
/**
557+
* @typedef PrivacyPolicyConsentSchema
558+
* @property {boolean} [value] - Whether the user has consented to the privacy policy
559+
* @property {string} [updated_at] - When the consent was last updated
560+
*/
550561
declare class UserPlatformModel {
551562
}
552563
declare namespace UserPlatformModel {
553-
export { SuccessMessage, UserAttributeDefinition, UserAttributeDefinitionDetails, UserAttributeDefinitionValidation, UserAttribute, CreateUserAttribute, CreateUserAttributeDefinition, CreateStoreFrontUsersPayload, BulkUserExportSchema, BulkActionModel, CreatedBySchema, BulkActionLinkSchema, FileLinks, BulkActionCountSchema, BlockUserRequestSchema, ArchiveUserRequestSchema, UnDeleteUserRequestSchema, BlockUserSuccess, ArchiveUserSuccess, UnDeleteUserSuccess, UserSearchResponseSchema, CustomerListResponseSchema, BulkActionPaginationSchema, PaginationSchema, SessionListResponseSchema, SessionDeleteResponseSchema, SessionsDeleteResponseSchema, APIError, SessionListResponseInfo, Conditions, UserResponseErrorSchema, UserGroupResponseSchema, UserGroupListResponseSchema, ConditionsSchema, CreateUserGroup, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, GetUserTimeline, UserTimeline, Facebook, Accountkit, Google, SessionExpiry, UpdateUserGroupSchema, PartialUserGroupUpdateSchema, UserGroupUpdateData, UpdateUserRequestSchema, UserEmails, UserPhoneNumbers, UserSchema, UserSearchSchema, PhoneNumber, Email };
564+
export { SuccessMessage, UserAttributeDefinition, UserAttributeDefinitionDetails, UserAttributeDefinitionValidation, UserAttribute, CreateUserAttribute, CreateUserAttributeDefinition, CreateStoreFrontUsersPayload, BulkUserExportSchema, BulkActionModel, CreatedBySchema, BulkActionLinkSchema, FileLinks, BulkActionCountSchema, BlockUserRequestSchema, ArchiveUserRequestSchema, UnDeleteUserRequestSchema, BlockUserSuccess, ArchiveUserSuccess, UnDeleteUserSuccess, UserSearchResponseSchema, CustomerListResponseSchema, BulkActionPaginationSchema, PaginationSchema, SessionListResponseSchema, SessionDeleteResponseSchema, SessionsDeleteResponseSchema, APIError, SessionListResponseInfo, Conditions, UserResponseErrorSchema, UserGroupResponseSchema, UserGroupListResponseSchema, ConditionsSchema, CreateUserGroup, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, GetUserTimeline, UserTimeline, Facebook, Accountkit, Google, SessionExpiry, UpdateUserGroupSchema, PartialUserGroupUpdateSchema, UserGroupUpdateData, UpdateUserRequestSchema, UserEmails, UserPhoneNumbers, UserSchema, UserSearchSchema, PhoneNumber, Email, UserConsent, PrivacyPolicyConsentSchema };
554565
}
555566
/** @returns {SuccessMessage} */
556567
declare function SuccessMessage(): SuccessMessage;
@@ -1364,6 +1375,7 @@ type UserSchema = {
13641375
updated_at?: string;
13651376
external_id?: string;
13661377
rr_id?: string;
1378+
consent?: UserConsent;
13671379
};
13681380
/** @returns {UserSearchSchema} */
13691381
declare function UserSearchSchema(): UserSearchSchema;
@@ -1389,6 +1401,7 @@ type UserSearchSchema = {
13891401
archive?: boolean;
13901402
status?: string;
13911403
deleted_on?: string;
1404+
consent?: UserConsent;
13921405
};
13931406
/** @returns {PhoneNumber} */
13941407
declare function PhoneNumber(): PhoneNumber;
@@ -1434,3 +1447,20 @@ type Email = {
14341447
*/
14351448
verified?: boolean;
14361449
};
1450+
/** @returns {UserConsent} */
1451+
declare function UserConsent(): UserConsent;
1452+
type UserConsent = {
1453+
privacy_policy?: PrivacyPolicyConsentSchema;
1454+
};
1455+
/** @returns {PrivacyPolicyConsentSchema} */
1456+
declare function PrivacyPolicyConsentSchema(): PrivacyPolicyConsentSchema;
1457+
type PrivacyPolicyConsentSchema = {
1458+
/**
1459+
* - Whether the user has consented to the privacy policy
1460+
*/
1461+
value?: boolean;
1462+
/**
1463+
* - When the consent was last updated
1464+
*/
1465+
updated_at?: string;
1466+
};

0 commit comments

Comments
 (0)