@use-stall/types 0.0.9 → 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 +10 -23
- package/src/users.d.ts +5 -21
package/package.json
CHANGED
package/src/organizations.d.ts
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
export interface OrganizationType {
|
|
2
|
+
id: string;
|
|
2
3
|
business_type: string;
|
|
3
4
|
organization_name: string;
|
|
4
5
|
organization_size: number | string;
|
|
5
6
|
base_currency: string;
|
|
6
7
|
business_address: string;
|
|
7
8
|
owner: string;
|
|
8
|
-
locations: string[]; // redudant field, Maximum is 30
|
|
9
|
-
id: string;
|
|
10
|
-
created_at: number;
|
|
11
|
-
updated_at?: number;
|
|
12
9
|
active: boolean;
|
|
13
10
|
subscription?: {
|
|
14
11
|
last_payment_id: string;
|
|
@@ -21,26 +18,16 @@ export interface OrganizationType {
|
|
|
21
18
|
product: string;
|
|
22
19
|
subscription: string;
|
|
23
20
|
};
|
|
24
|
-
logo
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
logo: string;
|
|
22
|
+
integrations: {
|
|
23
|
+
connector: boolean;
|
|
24
|
+
payments: boolean;
|
|
25
|
+
fulfillments: boolean;
|
|
26
|
+
fiscalizations: boolean;
|
|
29
27
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
export interface OrganizationStallModulesType {
|
|
34
|
-
locations: boolean;
|
|
35
|
-
collections: boolean;
|
|
36
|
-
suppliers: boolean;
|
|
37
|
-
purchase_orders: boolean;
|
|
38
|
-
discounts: boolean;
|
|
39
|
-
taxes: boolean;
|
|
40
|
-
chart_of_accounts: boolean;
|
|
41
|
-
transactions: boolean;
|
|
42
|
-
invoices: boolean;
|
|
43
|
-
bills: boolean;
|
|
28
|
+
email: string[]; // Other email addresses with access, the primary one is the one with matching the owner uid
|
|
29
|
+
created_at: number;
|
|
30
|
+
updated_at: number;
|
|
44
31
|
}
|
|
45
32
|
|
|
46
33
|
export interface ReceiptType {
|
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
|
}
|