@plus45/types 1.3.0 → 1.3.2
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
|
@@ -21,4 +21,5 @@ import { SpotlightSearchResults } from "./search/spotlight_search";
|
|
|
21
21
|
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 { Page, PageBuilderComponent, PageTitleBlock, TitleBodyBlockData } from "./types/page_builder/page_builder";
|
|
25
|
+
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 OrganizationInvitation, OrganizationRoles, Post, BatchPost, PostMedia, AuthenticationActionData, ResetPasswordAuthenticationData, WeekLayout, TimeAverage, ExerciseType, ExerciseUnit, ScheduleDay, ScheduleRecurrence, AuthType, SpotlightSearchResults, WeightUnits, DistanceUnits, TimeUnits, Page, PageBuilderComponent, TitleBodyBlockData, PageTitleBlock };
|
|
@@ -8,27 +8,34 @@ type InherentPageBuilderProperties = {
|
|
|
8
8
|
type Alignable = {
|
|
9
9
|
alignment: "left" | "right" | "center";
|
|
10
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Stores information for an entire organization page.
|
|
13
|
+
*/
|
|
11
14
|
export type Page = {
|
|
12
15
|
id: string;
|
|
16
|
+
/** FK → organizations.id */
|
|
17
|
+
organization_id: string;
|
|
13
18
|
/** URL slug: /o/:orgKey/:slug */
|
|
14
19
|
slug: string;
|
|
15
|
-
/** Display name (
|
|
16
|
-
title?: string;
|
|
17
|
-
/** SEO */
|
|
20
|
+
/** Display name (editor / nav use) */
|
|
21
|
+
title?: string | null;
|
|
22
|
+
/** SEO metadata */
|
|
18
23
|
seo: {
|
|
19
24
|
title?: string;
|
|
20
25
|
description?: string;
|
|
21
26
|
noIndex?: boolean;
|
|
22
27
|
};
|
|
23
|
-
/**
|
|
28
|
+
/** Published page content */
|
|
24
29
|
components: PageBuilderComponent[];
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
/** Draft (unpublished) content */
|
|
31
|
+
draft_components?: PageBuilderComponent[] | null;
|
|
32
|
+
/** Publishing state */
|
|
27
33
|
published: boolean;
|
|
28
|
-
|
|
34
|
+
published_at?: string | null;
|
|
29
35
|
/** Metadata */
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
updated_at: string;
|
|
37
|
+
/** Page schema version */
|
|
38
|
+
schema_version: 1;
|
|
32
39
|
};
|
|
33
40
|
/**
|
|
34
41
|
* Renders a simple block with a title and body text.
|