@gofynd/fdk-client-javascript 3.16.1 → 3.16.2

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 CHANGED
@@ -234,7 +234,7 @@ console.log("Active Theme: ", response.information.name);
234
234
  The above code will log the curl command in the console
235
235
 
236
236
  ```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'
238
238
  Active Theme: Emerge
239
239
  ```
240
240
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gofynd/fdk-client-javascript",
3
- "version": "3.16.1",
3
+ "version": "3.16.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -772,6 +772,7 @@ export = CartPlatformModel;
772
772
  * article. If the article's price after all discounts and adjustments falls
773
773
  * below this threshold, the price adjustment will be automatically removed.
774
774
  * (Applicable only for price adjustment discount type)
775
+ * @property {number} [article_index] - Index of the line item in the cart
775
776
  */
776
777
  /**
777
778
  * @typedef PriceAdjustmentRestrictions
@@ -4439,6 +4440,10 @@ type Article = {
4439
4440
  * (Applicable only for price adjustment discount type)
4440
4441
  */
4441
4442
  min_price_threshold?: number;
4443
+ /**
4444
+ * - Index of the line item in the cart
4445
+ */
4446
+ article_index?: number;
4442
4447
  };
4443
4448
  /** @returns {PriceAdjustmentRestrictions} */
4444
4449
  declare function PriceAdjustmentRestrictions(): PriceAdjustmentRestrictions;
@@ -836,6 +836,7 @@ const Joi = require("joi");
836
836
  * article. If the article's price after all discounts and adjustments falls
837
837
  * below this threshold, the price adjustment will be automatically removed.
838
838
  * (Applicable only for price adjustment discount type)
839
+ * @property {number} [article_index] - Index of the line item in the cart
839
840
  */
840
841
 
841
842
  /**
@@ -3611,6 +3612,7 @@ class CartPlatformModel {
3611
3612
  meta: Joi.object().pattern(/\S/, Joi.any()),
3612
3613
  allowed_refund: Joi.boolean(),
3613
3614
  min_price_threshold: Joi.number(),
3615
+ article_index: Joi.number(),
3614
3616
  });
3615
3617
  }
3616
3618
 
@@ -56,7 +56,7 @@ declare class User {
56
56
  * @summary: Create User
57
57
  * @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/).
58
58
  */
59
- createUser({ body, requestHeaders }?: UserPlatformApplicationValidator.CreateUserParam, { responseHeaders }?: object): Promise<UserPlatformModel.CreateUserResponseSchema>;
59
+ createUser({ body, verified, requestHeaders }?: UserPlatformApplicationValidator.CreateUserParam, { responseHeaders }?: object): Promise<UserPlatformModel.CreateUserResponseSchema>;
60
60
  /**
61
61
  * @param {UserPlatformApplicationValidator.CreateUserAttributeDefinitionParam} arg
62
62
  * - Arg object
@@ -343,12 +343,13 @@ class User {
343
343
  * @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/).
344
344
  */
345
345
  async createUser(
346
- { body, requestHeaders } = { requestHeaders: {} },
346
+ { body, verified, requestHeaders } = { requestHeaders: {} },
347
347
  { responseHeaders } = { responseHeaders: false }
348
348
  ) {
349
349
  const { error } = UserPlatformApplicationValidator.createUser().validate(
350
350
  {
351
351
  body,
352
+ verified,
352
353
  },
353
354
  { abortEarly: false, allowUnknown: true }
354
355
  );
@@ -362,6 +363,7 @@ class User {
362
363
  } = UserPlatformApplicationValidator.createUser().validate(
363
364
  {
364
365
  body,
366
+ verified,
365
367
  },
366
368
  { abortEarly: false, allowUnknown: false }
367
369
  );
@@ -373,6 +375,7 @@ class User {
373
375
  }
374
376
 
375
377
  const query_params = {};
378
+ query_params["verified"] = verified;
376
379
 
377
380
  const response = await PlatformAPIClient.execute(
378
381
  this.config,
@@ -17,6 +17,9 @@ export = UserPlatformApplicationValidator;
17
17
  */
18
18
  /**
19
19
  * @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.
20
23
  * @property {UserPlatformModel.CreateUserRequestSchema} body
21
24
  */
22
25
  /**
@@ -294,6 +297,12 @@ type CreateBulkExportUsersParam = {
294
297
  body: UserPlatformModel.BulkUserExportSchema;
295
298
  };
296
299
  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;
297
306
  body: UserPlatformModel.CreateUserRequestSchema;
298
307
  };
299
308
  type CreateUserAttributeDefinitionParam = {
@@ -24,6 +24,9 @@ const UserPlatformModel = require("./UserPlatformModel");
24
24
 
25
25
  /**
26
26
  * @typedef CreateUserParam
27
+ * @property {boolean} [verified] - Controls whether newly created emails and
28
+ * phone numbers are marked as verified. Pass verified=false to keep them
29
+ * unverified. When omitted, they are auto-marked verified.
27
30
  * @property {UserPlatformModel.CreateUserRequestSchema} body
28
31
  */
29
32
 
@@ -274,6 +277,7 @@ class UserPlatformApplicationValidator {
274
277
  /** @returns {CreateUserParam} */
275
278
  static createUser() {
276
279
  return Joi.object({
280
+ verified: Joi.boolean(),
277
281
  body: UserPlatformModel.CreateUserRequestSchema().required(),
278
282
  }).required();
279
283
  }