@gofynd/fdk-client-javascript 1.4.1 → 1.4.2-beta.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
@@ -214,7 +214,7 @@ console.log("Active Theme: ", response.information.name);
214
214
  The above code will log the curl command in the console
215
215
 
216
216
  ```bash
217
- curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.1' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
217
+ curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.2-beta.2' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
218
218
  Active Theme: Emerge
219
219
  ```
220
220
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gofynd/fdk-client-javascript",
3
- "version": "1.4.1",
3
+ "version": "1.4.2-beta.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -440,7 +440,7 @@ export = ServiceabilityPlatformModel;
440
440
  */
441
441
  /**
442
442
  * @typedef ListViewItems
443
- * @property {ListViewChannels} channels
443
+ * @property {ListViewChannels[]} channels
444
444
  * @property {number} company_id
445
445
  * @property {boolean} is_active
446
446
  * @property {string} name
@@ -1442,7 +1442,7 @@ type ListViewChannels = {
1442
1442
  /** @returns {ListViewItems} */
1443
1443
  declare function ListViewItems(): ListViewItems;
1444
1444
  type ListViewItems = {
1445
- channels: ListViewChannels;
1445
+ channels: ListViewChannels[];
1446
1446
  company_id: number;
1447
1447
  is_active: boolean;
1448
1448
  name: string;
@@ -498,7 +498,7 @@ const Joi = require("joi");
498
498
 
499
499
  /**
500
500
  * @typedef ListViewItems
501
- * @property {ListViewChannels} channels
501
+ * @property {ListViewChannels[]} channels
502
502
  * @property {number} company_id
503
503
  * @property {boolean} is_active
504
504
  * @property {string} name
@@ -1721,7 +1721,9 @@ class ServiceabilityPlatformModel {
1721
1721
  /** @returns {ListViewItems} */
1722
1722
  static ListViewItems() {
1723
1723
  return Joi.object({
1724
- channels: ServiceabilityPlatformModel.ListViewChannels().required(),
1724
+ channels: Joi.array()
1725
+ .items(ServiceabilityPlatformModel.ListViewChannels())
1726
+ .required(),
1725
1727
  company_id: Joi.number().required(),
1726
1728
  is_active: Joi.boolean().required(),
1727
1729
  name: Joi.string().allow("").required(),