Skip to content

Commit ac7adf3

Browse files
committed
[Auto Generated] 3.16.2
1 parent f1af4b0 commit ac7adf3

11 files changed

+90
-16
lines changed

CHANGELOG.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
# CHANGE LOG (3.16.2) - 2.10.2
2+
3+
## Platform Client
4+
5+
6+
7+
### Cart
8+
9+
10+
11+
#### updatePriceAdjustment
12+
13+
- ##### What's New
14+
- [Added] property <code>article_ids[].article_index</code> of schema <code>Article</code> in request body
15+
- [Added] property <code>data[].article_ids[].article_index</code> of schema <code>Article</code> in response with status code 200
16+
17+
18+
#### addPriceAdjustment
19+
20+
- ##### What's New
21+
- [Added] property <code>article_ids[].article_index</code> of schema <code>Article</code> in request body
22+
- [Added] property <code>data[].article_ids[].article_index</code> of schema <code>Article</code> in response with status code 201
23+
24+
25+
#### getPriceAdjustments
26+
27+
- ##### What's New
28+
- [Added] property <code>data[].article_ids[].article_index</code> of schema <code>Article</code> in response with status code 200
29+
30+
31+
### Catalog
32+
33+
34+
35+
#### addInventory
36+
37+
- ##### What's New
38+
- [Added] Possible values <code>vendor_sku</code> to property <code>sizes[].identifiers[].gtin_type</code> of schema <code>GTIN</code> in request body
39+
40+
41+
### User
42+
43+
44+
45+
#### createUser
46+
47+
- ##### What's New
48+
- [Added] <code>query</code> parameter <code>verified</code> (type: <code>boolean</code>)
49+
50+
51+
152
# CHANGE LOG (3.16.1) - 2.10.1
253

354
## Application Client

README.md

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

236236
```bash
237-
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.16.1' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
237+
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.16.2' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
238238
Active Theme: Emerge
239239
```
240240

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: 11 additions & 11 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.16.1",
3+
"version": "3.16.2",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

sdk/platform/Cart/CartPlatformModel.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,7 @@ export = CartPlatformModel;
772772
* article. If the article's price after all discounts and adjustments falls
773773
* below this threshold, the price adjustment will be automatically removed.
774774
* (Applicable only for price adjustment discount type)
775+
* @property {number} [article_index] - Index of the line item in the cart
775776
*/
776777
/**
777778
* @typedef PriceAdjustmentRestrictions
@@ -4439,6 +4440,10 @@ type Article = {
44394440
* (Applicable only for price adjustment discount type)
44404441
*/
44414442
min_price_threshold?: number;
4443+
/**
4444+
* - Index of the line item in the cart
4445+
*/
4446+
article_index?: number;
44424447
};
44434448
/** @returns {PriceAdjustmentRestrictions} */
44444449
declare function PriceAdjustmentRestrictions(): PriceAdjustmentRestrictions;

sdk/platform/Cart/CartPlatformModel.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,7 @@ const Joi = require("joi");
836836
* article. If the article's price after all discounts and adjustments falls
837837
* below this threshold, the price adjustment will be automatically removed.
838838
* (Applicable only for price adjustment discount type)
839+
* @property {number} [article_index] - Index of the line item in the cart
839840
*/
840841

841842
/**
@@ -3611,6 +3612,7 @@ class CartPlatformModel {
36113612
meta: Joi.object().pattern(/\S/, Joi.any()),
36123613
allowed_refund: Joi.boolean(),
36133614
min_price_threshold: Joi.number(),
3615+
article_index: Joi.number(),
36143616
});
36153617
}
36163618

sdk/platform/User/UserPlatformApplicationClient.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ declare class User {
5656
* @summary: Create User
5757
* @description: Register and add a new user to the sales channel. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/user/createUser/).
5858
*/
59-
createUser({ body, requestHeaders }?: UserPlatformApplicationValidator.CreateUserParam, { responseHeaders }?: object): Promise<UserPlatformModel.CreateUserResponseSchema>;
59+
createUser({ body, verified, requestHeaders }?: UserPlatformApplicationValidator.CreateUserParam, { responseHeaders }?: object): Promise<UserPlatformModel.CreateUserResponseSchema>;
6060
/**
6161
* @param {UserPlatformApplicationValidator.CreateUserAttributeDefinitionParam} arg
6262
* - Arg object

sdk/platform/User/UserPlatformApplicationClient.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,13 @@ class User {
343343
* @description: Register and add a new user to the sales channel. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/user/createUser/).
344344
*/
345345
async createUser(
346-
{ body, requestHeaders } = { requestHeaders: {} },
346+
{ body, verified, requestHeaders } = { requestHeaders: {} },
347347
{ responseHeaders } = { responseHeaders: false }
348348
) {
349349
const { error } = UserPlatformApplicationValidator.createUser().validate(
350350
{
351351
body,
352+
verified,
352353
},
353354
{ abortEarly: false, allowUnknown: true }
354355
);
@@ -362,6 +363,7 @@ class User {
362363
} = UserPlatformApplicationValidator.createUser().validate(
363364
{
364365
body,
366+
verified,
365367
},
366368
{ abortEarly: false, allowUnknown: false }
367369
);
@@ -373,6 +375,7 @@ class User {
373375
}
374376

375377
const query_params = {};
378+
query_params["verified"] = verified;
376379

377380
const response = await PlatformAPIClient.execute(
378381
this.config,

sdk/platform/User/UserPlatformApplicationValidator.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ export = UserPlatformApplicationValidator;
1717
*/
1818
/**
1919
* @typedef CreateUserParam
20+
* @property {boolean} [verified] - Controls whether newly created emails and
21+
* phone numbers are marked as verified. Pass verified=false to keep them
22+
* unverified. When omitted, they are auto-marked verified.
2023
* @property {UserPlatformModel.CreateUserRequestSchema} body
2124
*/
2225
/**
@@ -294,6 +297,12 @@ type CreateBulkExportUsersParam = {
294297
body: UserPlatformModel.BulkUserExportSchema;
295298
};
296299
type CreateUserParam = {
300+
/**
301+
* - Controls whether newly created emails and
302+
* phone numbers are marked as verified. Pass verified=false to keep them
303+
* unverified. When omitted, they are auto-marked verified.
304+
*/
305+
verified?: boolean;
297306
body: UserPlatformModel.CreateUserRequestSchema;
298307
};
299308
type CreateUserAttributeDefinitionParam = {

0 commit comments

Comments
 (0)