@plus45/types 1.2.23 → 1.2.25

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
@@ -18,4 +18,6 @@ import { LastExerciseValue } from "./types/exercise/last_exercise";
18
18
  import { ExerciseDataPoint } from "./types/exercise/exercise_data_point";
19
19
  import { TimeAverage } from "./types/generics/time_average";
20
20
  import { SpotlightSearchResults } from "./search/spotlight_search";
21
- 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, Post, BatchPost, PostMedia, AuthenticationActionData, ResetPasswordAuthenticationData, WeekLayout, TimeAverage, ExerciseType, ExerciseUnit, ScheduleDay, ScheduleRecurrence, AuthType, SpotlightSearchResults, WeightUnits, DistanceUnits, TimeUnits };
21
+ import { Organization } from "./types/organizations/organization";
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 };
@@ -0,0 +1,9 @@
1
+ export declare const AuthType: {
2
+ readonly PASSWORD_CHANGE: "PASSWORD_CHANGE";
3
+ readonly EMAIL_VERIFICATION: "VERIFY_EMAIL";
4
+ };
5
+ export type AuthType = (typeof AuthType)[keyof typeof AuthType];
6
+ export type AuthorizationActionData<T = any> = {
7
+ action: AuthType;
8
+ data: T;
9
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthType = void 0;
4
+ exports.AuthType = {
5
+ PASSWORD_CHANGE: "PASSWORD_CHANGE",
6
+ EMAIL_VERIFICATION: "VERIFY_EMAIL"
7
+ };
@@ -0,0 +1,5 @@
1
+ import { AuthorizationActionData } from "./authorization";
2
+ export type ResetPasswordData = {
3
+ new_password: string;
4
+ };
5
+ export type ResetPasswordAuthorizationData = AuthorizationActionData<ResetPasswordData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ export type Organization = {
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ key: string;
6
+ s3_picture_key?: string;
7
+ color?: string;
8
+ created_at: Date;
9
+ created_by: string;
10
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ export type OrganizationRoles = {
2
+ client: "client";
3
+ member: "member";
4
+ admin: "admin";
5
+ };
6
+ export type OrganizationMember = {
7
+ id: string;
8
+ organization_id: string;
9
+ user_id: string;
10
+ role: keyof OrganizationRoles;
11
+ joined_at: Date;
12
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,4 +5,5 @@ export interface PublicUser {
5
5
  username: string;
6
6
  followers_count: number;
7
7
  following_count: number;
8
+ profile_picture?: string;
8
9
  }
@@ -11,4 +11,5 @@ export type User = {
11
11
  email_verified: boolean;
12
12
  followers_count: number;
13
13
  following_count: number;
14
+ profile_picture?: string;
14
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plus45/types",
3
- "version": "1.2.23",
3
+ "version": "1.2.25",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [