@plus45/types 1.3.13 → 1.3.14

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/README.md CHANGED
@@ -1,23 +1,23 @@
1
- # Plus45-Types
2
-
3
- This is a type library so that common types may be shared and maintained between the frontend and backend. The types are stored in the `/types` directory.
4
-
5
- # Publishing
6
-
7
- After updating types, you can push the changes by first going to `package.json` and incrementing the version number. Then, in the `plus45-types` directory, run this command:
8
-
9
- ```bash
10
- npm publish
11
- ```
12
-
13
- Make sure to push changes to the plus45-types directory to main when updating.
14
-
15
- \*\*If you get an error that says "This command requires you to be logged in," you must be a member of the Plus45 organization. You can sign into your npm account by typing `npm login`, press enter, then follow the steps to log in. You should now be able to publish.
16
-
17
- # Updating Packages
18
-
19
- If a new update is published for the @plus45/types package, you must manually update and install the new packages. You can do so by entering this in the `root` directory (you may also filter this to the frontend or backend):
20
-
21
- ```bash
22
- pnpm update-types
23
- ```
1
+ # Plus45-Types
2
+
3
+ This is a type library so that common types may be shared and maintained between the frontend and backend. The types are stored in the `/types` directory.
4
+
5
+ # Publishing
6
+
7
+ After updating types, you can push the changes by first going to `package.json` and incrementing the version number. Then, in the `plus45-types` directory, run this command:
8
+
9
+ ```bash
10
+ npm publish
11
+ ```
12
+
13
+ Make sure to push changes to the plus45-types directory to main when updating.
14
+
15
+ \*\*If you get an error that says "This command requires you to be logged in," you must be a member of the Plus45 organization. You can sign into your npm account by typing `npm login`, press enter, then follow the steps to log in. You should now be able to publish.
16
+
17
+ # Updating Packages
18
+
19
+ If a new update is published for the @plus45/types package, you must manually update and install the new packages. You can do so by entering this in the `root` directory (you may also filter this to the frontend or backend):
20
+
21
+ ```bash
22
+ pnpm update-types
23
+ ```
package/dist/index.d.ts CHANGED
@@ -23,4 +23,5 @@ import { OrganizationInvitation } from "./types/organizations/invitations";
23
23
  import { ImageTextBlock, Page, PageBuilderComponent, PageTitleBlock, TitleBodyBlockData } from "./types/page_builder/page_builder";
24
24
  import { NotificationData, PushNotificationPayload, RegisterPushSubscriptionRequest, UserPushSubscription } from "./types/user/user_push_notifications";
25
25
  import { RefreshToken } from "./types/user/refresh_token";
26
- export { type User, type UserSessionInfo, type RefreshToken, type PublicUser, type UserPushSubscription, type RegisterPushSubscriptionRequest, type NotificationData, type PushNotificationPayload, type Exercise, type CompletedExercise, type LastExerciseValue, type ExerciseDataPoint, type Workout, type WorkoutExecution, type Schedule, type AssignedSchedule, type Organization, type OrganizationMember, type OrganizationInvitation, OrganizationRoles, Post, BatchPost, PostMedia, AuthenticationActionData, ResetPasswordAuthenticationData, WeekLayout, TimeAverage, ExerciseType, ExerciseUnit, ScheduleDay, ScheduleRecurrence, AuthType, SpotlightSearchResults, WeightUnits, DistanceUnits, TimeUnits, Page, PageBuilderComponent, TitleBodyBlockData, PageTitleBlock, ImageTextBlock };
26
+ import { NavBarTheme } from "./types/page_builder/page_builder_themes";
27
+ export { type User, type UserSessionInfo, type RefreshToken, type PublicUser, type UserPushSubscription, type RegisterPushSubscriptionRequest, type NotificationData, type PushNotificationPayload, type Exercise, type CompletedExercise, type LastExerciseValue, type ExerciseDataPoint, type Workout, type WorkoutExecution, type Schedule, type AssignedSchedule, type Organization, type OrganizationMember, type OrganizationInvitation, OrganizationRoles, Post, BatchPost, PostMedia, AuthenticationActionData, ResetPasswordAuthenticationData, WeekLayout, TimeAverage, ExerciseType, ExerciseUnit, ScheduleDay, ScheduleRecurrence, AuthType, SpotlightSearchResults, WeightUnits, DistanceUnits, TimeUnits, Page, NavBarTheme, PageBuilderComponent, TitleBodyBlockData, PageTitleBlock, ImageTextBlock };
@@ -0,0 +1,4 @@
1
+ export type NavBarTheme = {
2
+ padding: number;
3
+ logoType: "logo-text" | "logo-only" | "text-only";
4
+ };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
- {
2
- "name": "@plus45/types",
3
- "version": "1.3.13",
4
- "main": "dist/index.js",
5
- "types": "dist/index.d.ts",
6
- "files": [
7
- "dist"
8
- ],
9
- "scripts": {
10
- "build": "tsc",
11
- "pb": "tsc && npm publish"
12
- }
13
- }
1
+ {
2
+ "name": "@plus45/types",
3
+ "version": "1.3.14",
4
+ "main": "dist/index.js",
5
+ "types": "dist/index.d.ts",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "scripts": {
10
+ "build": "tsc",
11
+ "pb": "tsc && npm publish"
12
+ }
13
+ }
@@ -1,9 +0,0 @@
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
- };
@@ -1,7 +0,0 @@
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
- };
@@ -1,5 +0,0 @@
1
- import { AuthorizationActionData } from "./authorization";
2
- export type ResetPasswordData = {
3
- new_password: string;
4
- };
5
- export type ResetPasswordAuthorizationData = AuthorizationActionData<ResetPasswordData>;
@@ -1,12 +0,0 @@
1
- export type RefreshToken = {
2
- id: string;
3
- user_id: string;
4
- hashed_token: string;
5
- expires_at: Date;
6
- user_agent: string;
7
- ip_address: string;
8
- platform?: string;
9
- language?: string;
10
- location?: string;
11
- created_at: Date;
12
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });