@plus45/types 1.2.33 → 1.2.35

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.
@@ -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 });
@@ -12,5 +12,6 @@ type Exercise = {
12
12
  value_unit?: ExerciseUnit;
13
13
  created_at: Date;
14
14
  deleted?: boolean;
15
+ parent_organization?: string;
15
16
  };
16
17
  export default Exercise;
@@ -7,6 +7,7 @@ export type Schedule = {
7
7
  days_of_week: number[];
8
8
  created_at: string;
9
9
  start_time: string;
10
+ parent_organization?: string;
10
11
  };
11
12
  export type AssignedSchedule = {
12
13
  schedule_id: string;
@@ -15,4 +16,6 @@ export type AssignedSchedule = {
15
16
  start_week: number;
16
17
  start_year: number;
17
18
  recurrence: number;
19
+ assigned_by_user?: string;
20
+ assigned_by_organization?: string;
18
21
  };
@@ -5,5 +5,5 @@ export type Workout = {
5
5
  created_by: string;
6
6
  exercises: Exercise[];
7
7
  created_at: Date;
8
- parent_organization: string | undefined;
8
+ parent_organization?: string;
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plus45/types",
3
- "version": "1.2.33",
3
+ "version": "1.2.35",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [