@plus45/types 1.2.26 → 1.2.28

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/dist/index.d.ts CHANGED
@@ -20,4 +20,5 @@ import { TimeAverage } from "./types/generics/time_average";
20
20
  import { SpotlightSearchResults } from "./search/spotlight_search";
21
21
  import { Organization } from "./types/organizations/organization";
22
22
  import { OrganizationMember, OrganizationRoles } from "./types/organizations/organization_member";
23
- export { type User, type UserSessionInfo, type AccessToken, type PublicUser, type Exercise, type CompletedExercise, type LastExerciseValue, type ExerciseDataPoint, type Workout, type WorkoutExecution, type Schedule, type AssignedSchedule, type Organization, type OrganizationMember, type OrganizationRoles, Post, BatchPost, PostMedia, AuthenticationActionData, ResetPasswordAuthenticationData, WeekLayout, TimeAverage, ExerciseType, ExerciseUnit, ScheduleDay, ScheduleRecurrence, AuthType, SpotlightSearchResults, WeightUnits, DistanceUnits, TimeUnits };
23
+ import { OrganizationInvitation } from "./types/organizations/invitations";
24
+ export { type User, type UserSessionInfo, type AccessToken, type PublicUser, type Exercise, type CompletedExercise, type LastExerciseValue, type ExerciseDataPoint, type Workout, type WorkoutExecution, type Schedule, type AssignedSchedule, type Organization, type OrganizationMember, type OrganizationRoles, type OrganizationInvitation, Post, BatchPost, PostMedia, AuthenticationActionData, ResetPasswordAuthenticationData, WeekLayout, TimeAverage, ExerciseType, ExerciseUnit, ScheduleDay, ScheduleRecurrence, AuthType, SpotlightSearchResults, WeightUnits, DistanceUnits, TimeUnits };
@@ -0,0 +1,9 @@
1
+ export type OrganizationInvitation = {
2
+ id: string;
3
+ from_user_id: string;
4
+ to_user_id: string;
5
+ organization_id: string;
6
+ role: string;
7
+ created_at: Date;
8
+ expiration_date: Date;
9
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,8 @@
1
- export type OrganizationRoles = {
2
- client: "client";
3
- member: "member";
4
- admin: "admin";
5
- };
1
+ export declare enum OrganizationRoles {
2
+ client = "client",
3
+ member = "member",
4
+ admin = "admin"
5
+ }
6
6
  export type OrganizationMember = {
7
7
  organization_id: string;
8
8
  user_id: string;
@@ -1,2 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrganizationRoles = void 0;
4
+ var OrganizationRoles;
5
+ (function (OrganizationRoles) {
6
+ // A managed user of the organization. Has essentially no permissions.
7
+ OrganizationRoles["client"] = "client";
8
+ // A coach/staff member of the organization. Can view and manage clients, assign workouts, etc.
9
+ OrganizationRoles["member"] = "member";
10
+ // An administrator of the organization. Can manage members, organization settings, etc.
11
+ OrganizationRoles["admin"] = "admin";
12
+ })(OrganizationRoles || (exports.OrganizationRoles = OrganizationRoles = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plus45/types",
3
- "version": "1.2.26",
3
+ "version": "1.2.28",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [