@reblu/site-contracts 0.1.2 → 0.2.0
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.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
* Flattened structural types for the Reblu SITE API (REB-414).
|
|
4
4
|
* Source of truth: apps/base-api/src/lib/contracts/*.contract.ts.
|
|
5
5
|
*/
|
|
6
|
+
export type AcademyCategoryPublic = { id: string; name: string; slug: string; sortOrder: number;}
|
|
7
|
+
|
|
8
|
+
export type AcademyCourseDetail = { id: string; slug: string; title: string; shortDescription: string | null; coverUrl: string | null; priceCents: number; accessMode: "IMMEDIATE" | "DRIP" | "COHORT"; category: { id: string; name: string; slug: string; sortOrder: number; } | null; description: string | null; modules: { id: string; title: string; description: string | null; lessons: { id: string; slug: string; title: string; isFreePreview: boolean; durationSeconds: number | null; hasVideo: boolean; }[]; }[]; instructors: { id: string; firstName: string | null; lastName: string | null; avatarUrl: string | null; }[]; salesEnabled: boolean; requiresValidation: boolean; validationFieldLabel: string | null;}
|
|
9
|
+
|
|
10
|
+
export type AcademyCourseSort = "price_asc" | "price_desc" | "newest"
|
|
11
|
+
|
|
12
|
+
export type AcademyCourseSummary = { id: string; slug: string; title: string; shortDescription: string | null; coverUrl: string | null; priceCents: number; accessMode: "IMMEDIATE" | "DRIP" | "COHORT"; category: { id: string; name: string; slug: string; sortOrder: number; } | null;}
|
|
13
|
+
|
|
14
|
+
export type AcademyInstructorPublic = { id: string; firstName: string | null; lastName: string | null; avatarUrl: string | null;}
|
|
15
|
+
|
|
16
|
+
export type AcademyLessonPublic = { id: string; slug: string; title: string; isFreePreview: boolean; durationSeconds: number | null; hasVideo: boolean;}
|
|
17
|
+
|
|
18
|
+
export type AcademyModulePublic = { id: string; title: string; description: string | null; lessons: { id: string; slug: string; title: string; isFreePreview: boolean; durationSeconds: number | null; hasVideo: boolean; }[];}
|
|
19
|
+
|
|
6
20
|
export type Analytics = { gaId: string | null; clarityId: string | null; recaptchaSiteKey: string | null; contactFormMode: "DISABLED" | "DB_ONLY" | "WEBHOOK" | "RESEND"; metaPixelId: string | null; metaVerificationContent: string | null; googleVerificationContent: string | null;}
|
|
7
21
|
|
|
8
22
|
export type BlogAuthor = { firstName: string | null; lastName: string | null; avatarUrl: string | null;}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
* Flattened structural types for the Reblu SITE API (REB-414).
|
|
4
4
|
* Source of truth: apps/base-api/src/lib/contracts/*.contract.ts.
|
|
5
5
|
*/
|
|
6
|
+
export type AcademyCategoryPublic = { id: string; name: string; slug: string; sortOrder: number;}
|
|
7
|
+
|
|
8
|
+
export type AcademyCourseDetail = { id: string; slug: string; title: string; shortDescription: string | null; coverUrl: string | null; priceCents: number; accessMode: "IMMEDIATE" | "DRIP" | "COHORT"; category: { id: string; name: string; slug: string; sortOrder: number; } | null; description: string | null; modules: { id: string; title: string; description: string | null; lessons: { id: string; slug: string; title: string; isFreePreview: boolean; durationSeconds: number | null; hasVideo: boolean; }[]; }[]; instructors: { id: string; firstName: string | null; lastName: string | null; avatarUrl: string | null; }[]; salesEnabled: boolean; requiresValidation: boolean; validationFieldLabel: string | null;}
|
|
9
|
+
|
|
10
|
+
export type AcademyCourseSort = "price_asc" | "price_desc" | "newest"
|
|
11
|
+
|
|
12
|
+
export type AcademyCourseSummary = { id: string; slug: string; title: string; shortDescription: string | null; coverUrl: string | null; priceCents: number; accessMode: "IMMEDIATE" | "DRIP" | "COHORT"; category: { id: string; name: string; slug: string; sortOrder: number; } | null;}
|
|
13
|
+
|
|
14
|
+
export type AcademyInstructorPublic = { id: string; firstName: string | null; lastName: string | null; avatarUrl: string | null;}
|
|
15
|
+
|
|
16
|
+
export type AcademyLessonPublic = { id: string; slug: string; title: string; isFreePreview: boolean; durationSeconds: number | null; hasVideo: boolean;}
|
|
17
|
+
|
|
18
|
+
export type AcademyModulePublic = { id: string; title: string; description: string | null; lessons: { id: string; slug: string; title: string; isFreePreview: boolean; durationSeconds: number | null; hasVideo: boolean; }[];}
|
|
19
|
+
|
|
6
20
|
export type Analytics = { gaId: string | null; clarityId: string | null; recaptchaSiteKey: string | null; contactFormMode: "DISABLED" | "DB_ONLY" | "WEBHOOK" | "RESEND"; metaPixelId: string | null; metaVerificationContent: string | null; googleVerificationContent: string | null;}
|
|
7
21
|
|
|
8
22
|
export type BlogAuthor = { firstName: string | null; lastName: string | null; avatarUrl: string | null;}
|
package/package.json
CHANGED