nuudel-core 0.1.164 → 0.1.166

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.
@@ -1,4 +1,4 @@
1
- import { Permission } from 'nuudel-utils';
1
+ import { Permission, Language, Currency } from 'nuudel-utils';
2
2
  export interface IWarehouse {
3
3
  _id: string;
4
4
  name: string;
@@ -20,6 +20,12 @@ export interface IPartner {
20
20
  express: number;
21
21
  warehouseId?: string;
22
22
  }
23
+ export interface ISettings {
24
+ notification: boolean;
25
+ currency: Currency;
26
+ locale: Language;
27
+ _devices?: string[];
28
+ }
23
29
  export interface ICurrentUser {
24
30
  _id: string;
25
31
  email: string;
@@ -32,6 +38,7 @@ export interface ICurrentUser {
32
38
  permission: IPermission[];
33
39
  phone: string;
34
40
  mobile: string;
41
+ settings?: ISettings;
35
42
  _partner?: IPartner;
36
43
  }
37
44
  export interface IAppProps {
@@ -1 +1 @@
1
- export declare const currentUserQuery = "query CurrentUser {\n currentUser {\n _id\n email\n username\n firstname\n lastname\n type\n _verifiedEmail\n avatar\n permission {\n listname\n permission\n }\n phone\n mobile\n }\n }\n ";
1
+ export declare const currentUserQuery = "query CurrentUser {\n currentUser {\n _id\n email\n username\n firstname\n lastname\n type\n _verifiedEmail\n avatar\n permission {\n listname\n permission\n }\n phone\n mobile\n settings {\n notification\n currency\n locale\n _devices\n }\n }\n }\n ";
@@ -17,7 +17,13 @@ exports.currentUserQuery = `query CurrentUser {
17
17
  }
18
18
  phone
19
19
  mobile
20
+ settings {
21
+ notification
22
+ currency
23
+ locale
24
+ _devices
25
+ }
20
26
  }
21
27
  }
22
28
  `;
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUXVlcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL2hvY3Mvd2l0aFVzZXIvUXVlcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxnQkFBZ0IsR0FBRzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBa0I3QixDQUFDIn0=
29
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUXVlcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL2hvY3Mvd2l0aFVzZXIvUXVlcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxnQkFBZ0IsR0FBRzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBd0I3QixDQUFDIn0=
@@ -1,4 +1,4 @@
1
- import { Permission } from 'nuudel-utils';
1
+ import { Permission, Language, Currency } from 'nuudel-utils';
2
2
  export interface IWarehouse {
3
3
  _id: string;
4
4
  name: string;
@@ -20,6 +20,12 @@ export interface IPartner {
20
20
  express: number;
21
21
  warehouseId?: string;
22
22
  }
23
+ export interface ISettings {
24
+ notification: boolean;
25
+ currency: Currency;
26
+ locale: Language;
27
+ _devices?: string[];
28
+ }
23
29
  export interface ICurrentUser {
24
30
  _id: string;
25
31
  email: string;
@@ -32,6 +38,7 @@ export interface ICurrentUser {
32
38
  permission: IPermission[];
33
39
  phone: string;
34
40
  mobile: string;
41
+ settings?: ISettings;
35
42
  _partner?: IPartner;
36
43
  }
37
44
  export interface IAppProps {
@@ -1 +1 @@
1
- export declare const currentUserQuery = "query CurrentUser {\n currentUser {\n _id\n email\n username\n firstname\n lastname\n type\n _verifiedEmail\n avatar\n permission {\n listname\n permission\n }\n phone\n mobile\n }\n }\n ";
1
+ export declare const currentUserQuery = "query CurrentUser {\n currentUser {\n _id\n email\n username\n firstname\n lastname\n type\n _verifiedEmail\n avatar\n permission {\n listname\n permission\n }\n phone\n mobile\n settings {\n notification\n currency\n locale\n _devices\n }\n }\n }\n ";
@@ -14,7 +14,13 @@ export const currentUserQuery = `query CurrentUser {
14
14
  }
15
15
  phone
16
16
  mobile
17
+ settings {
18
+ notification
19
+ currency
20
+ locale
21
+ _devices
22
+ }
17
23
  }
18
24
  }
19
25
  `;
20
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUXVlcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL2hvY3Mvd2l0aFVzZXIvUXVlcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sZ0JBQWdCLEdBQUc7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQWtCN0IsQ0FBQyJ9
26
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUXVlcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL2hvY3Mvd2l0aFVzZXIvUXVlcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sZ0JBQWdCLEdBQUc7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQXdCN0IsQ0FBQyJ9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuudel-core",
3
- "version": "0.1.164",
3
+ "version": "0.1.166",
4
4
  "description": "Web components for react with material UI",
5
5
  "main": "build/main/index.js",
6
6
  "typings": "build/main/index.d.ts",
@@ -66,7 +66,7 @@
66
66
  "i18next": "^21.6.6",
67
67
  "material-ui-chip-input": "^1.1.0",
68
68
  "next-with-apollo": "^5.2.1",
69
- "nuudel-utils": "^0.1.63",
69
+ "nuudel-utils": "^0.1.67",
70
70
  "pica": "^9.0.1",
71
71
  "react-colorful": "^5.6.1",
72
72
  "react-device-detect": "^2.1.2",