@plus45/types 1.2.14 → 1.2.15

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
@@ -10,9 +10,9 @@ import { ScheduleRecurrence } from "./types/schedule/schedule_recurrence";
10
10
  import { UserSessionInfo } from "./types/user/session_info";
11
11
  import { CompletedExercise, WorkoutExecution } from "./types/workout/workout_execution";
12
12
  import { WeekLayout } from "./types/generics/week_layout";
13
- import { AuthorizationActionData, AuthType } from "./types/authorization/authorization";
13
+ import { AuthenticationActionData, AuthType } from "./types/authentication/authentication";
14
14
  import Exercise from "./types/exercise/exercise";
15
- import { ResetPasswordAuthorizationData } from "./types/authorization/password_auth";
15
+ import { ResetPasswordAuthorizationData } from "./types/authentication/password_auth";
16
16
  import { PublicUser } from "./types/user/public_user";
17
17
  import { LastExerciseValue } from "./types/exercise/last_exercise";
18
- export { type User, type UserSessionInfo, type AccessToken, type PublicUser, type Exercise, type CompletedExercise, type LastExerciseValue, type Workout, type WorkoutExecution, type Schedule, type AssignedSchedule, Post, BatchPost, PostMedia, AuthorizationActionData, ResetPasswordAuthorizationData, WeekLayout, ExerciseType, ExerciseUnit, ScheduleDay, ScheduleRecurrence, AuthType, WeightUnits, DistanceUnits, TimeUnits };
18
+ export { type User, type UserSessionInfo, type AccessToken, type PublicUser, type Exercise, type CompletedExercise, type LastExerciseValue, type Workout, type WorkoutExecution, type Schedule, type AssignedSchedule, Post, BatchPost, PostMedia, AuthenticationActionData, ResetPasswordAuthorizationData, WeekLayout, ExerciseType, ExerciseUnit, ScheduleDay, ScheduleRecurrence, AuthType, WeightUnits, DistanceUnits, TimeUnits };
package/dist/index.js CHANGED
@@ -14,5 +14,5 @@ const schedule_recurrence_1 = require("./types/schedule/schedule_recurrence");
14
14
  Object.defineProperty(exports, "ScheduleRecurrence", { enumerable: true, get: function () { return schedule_recurrence_1.ScheduleRecurrence; } });
15
15
  const week_layout_1 = require("./types/generics/week_layout");
16
16
  Object.defineProperty(exports, "WeekLayout", { enumerable: true, get: function () { return week_layout_1.WeekLayout; } });
17
- const authorization_1 = require("./types/authorization/authorization");
18
- Object.defineProperty(exports, "AuthType", { enumerable: true, get: function () { return authorization_1.AuthType; } });
17
+ const authentication_1 = require("./types/authentication/authentication");
18
+ Object.defineProperty(exports, "AuthType", { enumerable: true, get: function () { return authentication_1.AuthType; } });
@@ -3,7 +3,7 @@ export declare const AuthType: {
3
3
  readonly EMAIL_VERIFICATION: "VERIFY_EMAIL";
4
4
  };
5
5
  export type AuthType = (typeof AuthType)[keyof typeof AuthType];
6
- export type AuthorizationActionData<T = any> = {
6
+ export type AuthenticationActionData<T = any> = {
7
7
  action: AuthType;
8
8
  data: T;
9
9
  };
@@ -0,0 +1,5 @@
1
+ import { AuthenticationActionData } from "./authentication";
2
+ export type ResetPasswordData = {
3
+ new_password: string;
4
+ };
5
+ export type ResetPasswordAuthorizationData = AuthenticationActionData<ResetPasswordData>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plus45/types",
3
- "version": "1.2.14",
3
+ "version": "1.2.15",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -1,5 +0,0 @@
1
- import { AuthorizationActionData } from "./authorization";
2
- export type ResetPasswordData = {
3
- new_password: string;
4
- };
5
- export type ResetPasswordAuthorizationData = AuthorizationActionData<ResetPasswordData>;