@use-stall/types 0.1.0 → 0.1.1
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/package.json +1 -1
- package/src/organizations.d.ts +2 -1
- package/src/users.d.ts +5 -21
package/package.json
CHANGED
package/src/organizations.d.ts
CHANGED
|
@@ -24,7 +24,8 @@ export interface OrganizationType {
|
|
|
24
24
|
payments: boolean;
|
|
25
25
|
fulfillments: boolean;
|
|
26
26
|
fiscalizations: boolean;
|
|
27
|
-
}
|
|
27
|
+
};
|
|
28
|
+
email: string[]; // Other email addresses with access, the primary one is the one with matching the owner uid
|
|
28
29
|
created_at: number;
|
|
29
30
|
updated_at: number;
|
|
30
31
|
}
|
package/src/users.d.ts
CHANGED
|
@@ -15,7 +15,10 @@ export interface UserType {
|
|
|
15
15
|
|
|
16
16
|
export interface OrganizationUserType {
|
|
17
17
|
id: string;
|
|
18
|
-
|
|
18
|
+
phone: string;
|
|
19
|
+
fullname: string;
|
|
20
|
+
email: string;
|
|
21
|
+
profile: string;
|
|
19
22
|
role: string;
|
|
20
23
|
locations: string[];
|
|
21
24
|
auth: AuthObject;
|
|
@@ -23,36 +26,17 @@ export interface OrganizationUserType {
|
|
|
23
26
|
updated_at: string;
|
|
24
27
|
}
|
|
25
28
|
|
|
26
|
-
export type PermissionsKeys = ModuleKey | "users" | "roles" | "integrations";
|
|
27
|
-
|
|
28
29
|
export interface RoleType {
|
|
29
30
|
id: string;
|
|
30
31
|
role: string;
|
|
31
32
|
created_at: string;
|
|
32
33
|
updated_at: string;
|
|
33
34
|
permissions: {
|
|
34
|
-
[key:
|
|
35
|
+
[key: ModuleKey]: {
|
|
35
36
|
create: boolean;
|
|
36
37
|
update: boolean;
|
|
37
38
|
read: boolean;
|
|
38
39
|
delete: boolean;
|
|
39
40
|
};
|
|
40
|
-
} & {
|
|
41
|
-
apps: {
|
|
42
|
-
stall_connect: boolean;
|
|
43
|
-
stall_flex: boolean;
|
|
44
|
-
};
|
|
45
|
-
devices: {
|
|
46
|
-
create: boolean;
|
|
47
|
-
update: boolean;
|
|
48
|
-
delete: boolean;
|
|
49
|
-
read: boolean;
|
|
50
|
-
pair: boolean;
|
|
51
|
-
unpair: boolean;
|
|
52
|
-
};
|
|
53
|
-
organization: {
|
|
54
|
-
manage: boolean;
|
|
55
|
-
billing: boolean;
|
|
56
|
-
};
|
|
57
41
|
};
|
|
58
42
|
}
|