@plus45/types 1.2.30 → 1.2.32
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,9 +1,10 @@
|
|
|
1
|
+
import { OrganizationRoles } from "./organization_member";
|
|
1
2
|
export type OrganizationInvitation = {
|
|
2
3
|
id: string;
|
|
3
4
|
from_user_id: string;
|
|
4
5
|
to_user_id: string;
|
|
5
6
|
organization_id: string;
|
|
6
|
-
role:
|
|
7
|
+
role: OrganizationRoles;
|
|
7
8
|
created_at: Date;
|
|
8
9
|
expiration_date: Date;
|
|
9
10
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
export declare const OrganizationRoles: {
|
|
2
|
+
readonly MEMBER: "MEMBER";
|
|
3
|
+
readonly COACH: "COACH";
|
|
4
|
+
readonly ADMIN: "ADMIN";
|
|
5
|
+
};
|
|
6
|
+
export type OrganizationRoles = (typeof OrganizationRoles)[keyof typeof OrganizationRoles];
|
|
6
7
|
export type OrganizationMember = {
|
|
7
8
|
organization_id: string;
|
|
8
9
|
user_id: string;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OrganizationRoles = void 0;
|
|
4
|
-
|
|
5
|
-
(function (OrganizationRoles) {
|
|
4
|
+
exports.OrganizationRoles = {
|
|
6
5
|
// A managed user of the organization. Has essentially no permissions.
|
|
7
|
-
|
|
6
|
+
MEMBER: "MEMBER",
|
|
8
7
|
// A coach/staff member of the organization. Can view and manage clients, assign workouts, etc.
|
|
9
|
-
|
|
8
|
+
COACH: "COACH",
|
|
10
9
|
// An administrator of the organization. Can manage members, organization settings, etc.
|
|
11
|
-
|
|
12
|
-
}
|
|
10
|
+
ADMIN: "ADMIN"
|
|
11
|
+
};
|