@plus45/types 1.3.10 → 1.3.11
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
|
@@ -22,5 +22,5 @@ import { Organization } from "./types/organizations/organization";
|
|
|
22
22
|
import { OrganizationMember, OrganizationRoles } from "./types/organizations/organization_member";
|
|
23
23
|
import { OrganizationInvitation } from "./types/organizations/invitations";
|
|
24
24
|
import { ImageTextBlock, Page, PageBuilderComponent, PageTitleBlock, TitleBodyBlockData } from "./types/page_builder/page_builder";
|
|
25
|
-
import { RegisterPushSubscriptionRequest, UserPushSubscription } from "./types/user/user_push_notifications";
|
|
26
|
-
export { type User, type UserSessionInfo, type AccessToken, type PublicUser, type UserPushSubscription, type RegisterPushSubscriptionRequest, 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 };
|
|
25
|
+
import { NotificationData, PushNotificationPayload, RegisterPushSubscriptionRequest, UserPushSubscription } from "./types/user/user_push_notifications";
|
|
26
|
+
export { type User, type UserSessionInfo, type AccessToken, 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 };
|
|
@@ -14,3 +14,18 @@ export interface RegisterPushSubscriptionRequest {
|
|
|
14
14
|
auth: string;
|
|
15
15
|
userAgent?: string;
|
|
16
16
|
}
|
|
17
|
+
export interface PushNotificationPayload {
|
|
18
|
+
title: string;
|
|
19
|
+
body: string;
|
|
20
|
+
data: NotificationData;
|
|
21
|
+
}
|
|
22
|
+
interface BaseNotificationData {
|
|
23
|
+
url: string;
|
|
24
|
+
}
|
|
25
|
+
export interface InvitationNotificationData extends BaseNotificationData {
|
|
26
|
+
type: "invitation";
|
|
27
|
+
invitationId: string;
|
|
28
|
+
organizationId: string;
|
|
29
|
+
}
|
|
30
|
+
export type NotificationData = InvitationNotificationData;
|
|
31
|
+
export {};
|