@headless-lms/core 0.1.0 → 0.3.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/assets/events.d.ts +90 -9
- package/dist/assets/events.js +19 -3
- package/dist/assets/events.js.map +1 -1
- package/dist/assets/file-urls.d.ts +20 -0
- package/dist/assets/file-urls.js +25 -0
- package/dist/assets/file-urls.js.map +1 -0
- package/dist/assets/index.d.ts +5 -4
- package/dist/assets/index.js +3 -2
- package/dist/assets/model.d.ts +2 -2
- package/dist/assets/ports.d.ts +45 -15
- package/dist/assets/service.d.ts +39 -7
- package/dist/assets/service.js +292 -37
- package/dist/assets/service.js.map +1 -1
- package/dist/automations/actions.d.ts +12 -15
- package/dist/automations/actions.js +188 -30
- package/dist/automations/actions.js.map +1 -1
- package/dist/automations/catalog.d.ts +5 -1
- package/dist/automations/catalog.js +514 -197
- package/dist/automations/catalog.js.map +1 -1
- package/dist/automations/community-derivations.d.ts +14 -0
- package/dist/automations/community-derivations.js +439 -0
- package/dist/automations/community-derivations.js.map +1 -0
- package/dist/automations/community-mail.d.ts +112 -0
- package/dist/automations/community-mail.js +90 -0
- package/dist/automations/community-mail.js.map +1 -0
- package/dist/automations/community-notifications.d.ts +16 -0
- package/dist/automations/community-notifications.js +84 -0
- package/dist/automations/community-notifications.js.map +1 -0
- package/dist/automations/events.d.ts +74 -24
- package/dist/automations/events.js +5 -5
- package/dist/automations/events.js.map +1 -1
- package/dist/automations/index.d.ts +7 -5
- package/dist/automations/index.js +3 -2
- package/dist/automations/model.d.ts +20 -3
- package/dist/automations/model.js +36 -3
- package/dist/automations/model.js.map +1 -1
- package/dist/automations/ports.d.ts +27 -8
- package/dist/automations/schedule.d.ts +6 -0
- package/dist/automations/schedule.js +41 -0
- package/dist/automations/schedule.js.map +1 -0
- package/dist/automations/seeds.d.ts +17 -0
- package/dist/automations/seeds.js +235 -0
- package/dist/automations/seeds.js.map +1 -0
- package/dist/automations/service.d.ts +41 -6
- package/dist/automations/service.js +542 -59
- package/dist/automations/service.js.map +1 -1
- package/dist/automations/types.d.ts +2 -2
- package/dist/automations/webhook-signing.d.ts +7 -0
- package/dist/automations/webhook-signing.js +22 -0
- package/dist/automations/webhook-signing.js.map +1 -0
- package/dist/content/events.d.ts +1013 -25
- package/dist/content/events.js +168 -19
- package/dist/content/events.js.map +1 -1
- package/dist/content/index.d.ts +5 -5
- package/dist/content/index.js +2 -2
- package/dist/content/model.d.ts +2 -2
- package/dist/content/ports.d.ts +109 -25
- package/dist/content/service.d.ts +68 -23
- package/dist/content/service.js +647 -60
- package/dist/content/service.js.map +1 -1
- package/dist/content/types.d.ts +2 -2
- package/dist/discussion/authors.d.ts +10 -0
- package/dist/discussion/authors.js +23 -0
- package/dist/discussion/authors.js.map +1 -0
- package/dist/discussion/chats.d.ts +104 -0
- package/dist/discussion/chats.js +798 -0
- package/dist/discussion/chats.js.map +1 -0
- package/dist/discussion/events.d.ts +633 -14
- package/dist/discussion/events.js +134 -5
- package/dist/discussion/events.js.map +1 -1
- package/dist/discussion/index.d.ts +7 -3
- package/dist/discussion/index.js +4 -1
- package/dist/discussion/model.d.ts +1 -2
- package/dist/discussion/ports.d.ts +288 -27
- package/dist/discussion/ports.js +6 -1
- package/dist/discussion/ports.js.map +1 -0
- package/dist/discussion/posts.d.ts +103 -0
- package/dist/discussion/posts.js +723 -0
- package/dist/discussion/posts.js.map +1 -0
- package/dist/discussion/service.d.ts +33 -11
- package/dist/discussion/service.js +297 -81
- package/dist/discussion/service.js.map +1 -1
- package/dist/entitlements/events.d.ts +264 -13
- package/dist/entitlements/events.js +49 -5
- package/dist/entitlements/events.js.map +1 -1
- package/dist/entitlements/index.d.ts +5 -4
- package/dist/entitlements/index.js +2 -1
- package/dist/entitlements/model.d.ts +3 -2
- package/dist/entitlements/ports.d.ts +124 -11
- package/dist/entitlements/rules.d.ts +12 -0
- package/dist/entitlements/rules.js +17 -0
- package/dist/entitlements/rules.js.map +1 -0
- package/dist/entitlements/service.d.ts +54 -3
- package/dist/entitlements/service.js +473 -2
- package/dist/entitlements/service.js.map +1 -1
- package/dist/identity/access.d.ts +6 -0
- package/dist/identity/access.js +7 -0
- package/dist/identity/access.js.map +1 -0
- package/dist/identity/events.d.ts +17 -3
- package/dist/identity/events.js +12 -2
- package/dist/identity/events.js.map +1 -1
- package/dist/identity/index.d.ts +6 -4
- package/dist/identity/index.js +3 -1
- package/dist/identity/model.d.ts +2 -1
- package/dist/identity/notifications.d.ts +27 -0
- package/dist/identity/notifications.js +101 -0
- package/dist/identity/notifications.js.map +1 -0
- package/dist/identity/ports.d.ts +76 -3
- package/dist/identity/service.d.ts +17 -3
- package/dist/identity/service.js +73 -5
- package/dist/identity/service.js.map +1 -1
- package/dist/integrations/events.d.ts +27 -3
- package/dist/integrations/events.js +15 -3
- package/dist/integrations/events.js.map +1 -1
- package/dist/integrations/model.js +1 -1
- package/dist/integrations/model.js.map +1 -1
- package/dist/integrations/service.js +2 -2
- package/dist/integrations/service.js.map +1 -1
- package/dist/organizations/access-scopes.d.ts +19 -0
- package/dist/organizations/access-scopes.js +89 -0
- package/dist/organizations/access-scopes.js.map +1 -0
- package/dist/organizations/events.d.ts +234 -25
- package/dist/organizations/events.js +58 -9
- package/dist/organizations/events.js.map +1 -1
- package/dist/organizations/index.d.ts +8 -7
- package/dist/organizations/index.js +4 -3
- package/dist/organizations/members.d.ts +8 -5
- package/dist/organizations/members.js.map +1 -1
- package/dist/organizations/ports.d.ts +20 -21
- package/dist/organizations/roles.d.ts +6 -10
- package/dist/organizations/roles.js +19 -7
- package/dist/organizations/roles.js.map +1 -1
- package/dist/organizations/service.d.ts +28 -14
- package/dist/organizations/service.js +274 -105
- package/dist/organizations/service.js.map +1 -1
- package/dist/organizations/types.d.ts +2 -11
- package/dist/progress/events.d.ts +34 -2
- package/dist/progress/events.js +15 -2
- package/dist/progress/events.js.map +1 -1
- package/dist/progress/index.d.ts +2 -2
- package/dist/progress/ports.d.ts +6 -1
- package/dist/progress/service.d.ts +5 -3
- package/dist/progress/service.js +9 -3
- package/dist/progress/service.js.map +1 -1
- package/dist/reporting/admin/index.d.ts +4 -0
- package/dist/reporting/admin/index.js +2 -0
- package/dist/reporting/admin/model.d.ts +108 -0
- package/dist/reporting/admin/ports.d.ts +27 -0
- package/dist/reporting/admin/service.d.ts +22 -0
- package/dist/reporting/admin/service.js +38 -0
- package/dist/reporting/admin/service.js.map +1 -0
- package/dist/reporting/member/index.d.ts +5 -0
- package/dist/reporting/member/index.js +2 -0
- package/dist/reporting/member/model.d.ts +124 -0
- package/dist/reporting/member/ports.d.ts +45 -0
- package/dist/reporting/member/service.d.ts +73 -0
- package/dist/reporting/member/service.js +286 -0
- package/dist/reporting/member/service.js.map +1 -0
- package/dist/shared/actor.d.ts +9 -0
- package/dist/shared/errors.d.ts +7 -1
- package/dist/shared/errors.js +10 -1
- package/dist/shared/errors.js.map +1 -1
- package/dist/shared/events.d.ts +5 -3
- package/dist/shared/events.js +1 -0
- package/dist/shared/events.js.map +1 -1
- package/dist/shared/id.d.ts +12 -0
- package/dist/shared/id.js +13 -1
- package/dist/shared/id.js.map +1 -1
- package/dist/shared/mailer.d.ts +6 -1
- package/dist/shared/mailer.js.map +1 -1
- package/dist/shared/network.d.ts +10 -0
- package/dist/shared/network.js +211 -0
- package/dist/shared/network.js.map +1 -0
- package/dist/shared/settings.js.map +1 -1
- package/dist/types/assets.d.ts +2 -2
- package/dist/types/automations.d.ts +21 -2
- package/dist/types/content.d.ts +2 -2
- package/dist/types/discussion.d.ts +12 -3
- package/dist/types/email-templates.d.ts +124 -1
- package/dist/types/entitlements.d.ts +2 -2
- package/dist/types/events.d.ts +3 -3
- package/dist/types/identity.d.ts +48 -2
- package/dist/types/index.d.ts +10 -10
- package/dist/types/organizations.d.ts +2 -2
- package/dist/types/ports.d.ts +7 -1
- package/dist/types/schemas/assets.d.ts +67 -36
- package/dist/types/schemas/assets.js +19 -13
- package/dist/types/schemas/assets.js.map +1 -1
- package/dist/types/schemas/automations.d.ts +88 -4
- package/dist/types/schemas/automations.js +46 -6
- package/dist/types/schemas/automations.js.map +1 -1
- package/dist/types/schemas/content.d.ts +385 -20
- package/dist/types/schemas/content.js +178 -15
- package/dist/types/schemas/content.js.map +1 -1
- package/dist/types/schemas/credentials.js.map +1 -1
- package/dist/types/schemas/discussion.d.ts +379 -4
- package/dist/types/schemas/discussion.js +209 -7
- package/dist/types/schemas/discussion.js.map +1 -1
- package/dist/types/schemas/entitlements.d.ts +44 -4
- package/dist/types/schemas/entitlements.js +32 -4
- package/dist/types/schemas/entitlements.js.map +1 -1
- package/dist/types/schemas/identity.d.ts +115 -5
- package/dist/types/schemas/identity.js +59 -6
- package/dist/types/schemas/identity.js.map +1 -1
- package/dist/types/schemas/index.d.ts +9 -9
- package/dist/types/schemas/index.js +9 -9
- package/dist/types/schemas/integrations.js.map +1 -1
- package/dist/types/schemas/organizations.d.ts +27 -5
- package/dist/types/schemas/organizations.js +14 -7
- package/dist/types/schemas/organizations.js.map +1 -1
- package/dist/types/schemas/outbox.d.ts +1 -0
- package/dist/types/schemas/outbox.js +1 -0
- package/dist/types/schemas/outbox.js.map +1 -1
- package/dist/types/schemas/progress.d.ts +1 -0
- package/dist/types/schemas/progress.js +1 -0
- package/dist/types/schemas/progress.js.map +1 -1
- package/dist/types/schemas/settings.js.map +1 -1
- package/dist/types/schemas/shared.d.ts +4 -1
- package/dist/types/schemas/shared.js +7 -1
- package/dist/types/schemas/shared.js.map +1 -1
- package/dist/types/shared.d.ts +1 -1
- package/package.json +2 -2
- package/dist/reporting/dashboard/index.d.ts +0 -4
- package/dist/reporting/dashboard/index.js +0 -2
- package/dist/reporting/dashboard/model.d.ts +0 -14
- package/dist/reporting/dashboard/ports.d.ts +0 -13
- package/dist/reporting/dashboard/service.d.ts +0 -19
- package/dist/reporting/dashboard/service.js +0 -20
- package/dist/reporting/dashboard/service.js.map +0 -1
- package/dist/reporting/learn/index.d.ts +0 -5
- package/dist/reporting/learn/index.js +0 -2
- package/dist/reporting/learn/model.d.ts +0 -23
- package/dist/reporting/learn/ports.d.ts +0 -42
- package/dist/reporting/learn/service.d.ts +0 -48
- package/dist/reporting/learn/service.js +0 -111
- package/dist/reporting/learn/service.js.map +0 -1
- package/dist/reporting/students/index.d.ts +0 -4
- package/dist/reporting/students/index.js +0 -2
- package/dist/reporting/students/model.d.ts +0 -31
- package/dist/reporting/students/ports.d.ts +0 -13
- package/dist/reporting/students/ports.js +0 -1
- package/dist/reporting/students/service.d.ts +0 -19
- package/dist/reporting/students/service.js +0 -20
- package/dist/reporting/students/service.js.map +0 -1
- /package/dist/reporting/{dashboard → admin}/model.js +0 -0
- /package/dist/reporting/{dashboard → admin}/ports.js +0 -0
- /package/dist/reporting/{learn → member}/model.js +0 -0
- /package/dist/reporting/{learn → member}/ports.js +0 -0
- /package/dist/{reporting/students/model.js → shared/actor.js} +0 -0
|
@@ -2,8 +2,9 @@ import { JsonValue } from "../shared.js";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/types/schemas/content.d.ts
|
|
4
4
|
declare const contentTypeSchema: z.ZodEnum<{
|
|
5
|
-
download: "download";
|
|
6
5
|
course: "course";
|
|
6
|
+
download: "download";
|
|
7
|
+
community: "community";
|
|
7
8
|
}>;
|
|
8
9
|
type ContentType = z.infer<typeof contentTypeSchema>;
|
|
9
10
|
declare const courseStatusSchema: z.ZodEnum<{
|
|
@@ -21,12 +22,8 @@ declare const courseSettingsSchema: z.ZodObject<{
|
|
|
21
22
|
}, z.core.$strict>>;
|
|
22
23
|
}, z.core.$strict>;
|
|
23
24
|
type CourseSettings = z.infer<typeof courseSettingsSchema>;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
inherit: "inherit";
|
|
27
|
-
always: "always";
|
|
28
|
-
}>;
|
|
29
|
-
type ActivityCommentsRule = z.infer<typeof activityCommentsRuleSchema>;
|
|
25
|
+
/** Defaults for keys a stored settings row doesn't carry (or no row at all). */
|
|
26
|
+
declare const courseSettingsDefaults: CourseSettings;
|
|
30
27
|
declare const activitySettingsSchema: z.ZodObject<{
|
|
31
28
|
comments: z.ZodOptional<z.ZodEnum<{
|
|
32
29
|
never: "never";
|
|
@@ -35,14 +32,50 @@ declare const activitySettingsSchema: z.ZodObject<{
|
|
|
35
32
|
}>>;
|
|
36
33
|
}, z.core.$strict>;
|
|
37
34
|
type ActivitySettings = z.infer<typeof activitySettingsSchema>;
|
|
35
|
+
declare const bundleSchema: z.ZodObject<{
|
|
36
|
+
orgId: z.ZodString;
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
40
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
41
|
+
}, z.core.$strict>;
|
|
42
|
+
type Bundle = z.output<typeof bundleSchema>;
|
|
43
|
+
type BundleInput = z.input<typeof bundleSchema>;
|
|
44
|
+
declare const bundleItemSchema: z.ZodObject<{
|
|
45
|
+
orgId: z.ZodString;
|
|
46
|
+
bundleId: z.ZodString;
|
|
47
|
+
contentId: z.ZodString;
|
|
48
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
49
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
50
|
+
}, z.core.$strict>;
|
|
51
|
+
type BundleItem = z.output<typeof bundleItemSchema>;
|
|
52
|
+
type BundleItemInput = z.input<typeof bundleItemSchema>;
|
|
53
|
+
declare const listBundlesQuerySchema: z.ZodObject<{
|
|
54
|
+
page: z.ZodNumber;
|
|
55
|
+
pageSize: z.ZodNumber;
|
|
56
|
+
search: z.ZodOptional<z.ZodString>;
|
|
57
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
58
|
+
}, z.core.$strict>;
|
|
59
|
+
type ListBundlesQuery = z.infer<typeof listBundlesQuerySchema>;
|
|
60
|
+
declare const createBundleInputSchema: z.ZodObject<{
|
|
61
|
+
name: z.ZodString;
|
|
62
|
+
contentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
type CreateBundleInput = z.infer<typeof createBundleInputSchema>;
|
|
65
|
+
declare const updateBundleInputSchema: z.ZodObject<{
|
|
66
|
+
name: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$strict>;
|
|
68
|
+
type UpdateBundleInput = z.infer<typeof updateBundleInputSchema>;
|
|
38
69
|
declare const contentItemSchema: z.ZodObject<{
|
|
39
70
|
orgId: z.ZodString;
|
|
40
71
|
id: z.ZodString;
|
|
41
72
|
type: z.ZodEnum<{
|
|
42
|
-
download: "download";
|
|
43
73
|
course: "course";
|
|
74
|
+
download: "download";
|
|
75
|
+
community: "community";
|
|
44
76
|
}>;
|
|
45
77
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
78
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
46
79
|
}, z.core.$strict>;
|
|
47
80
|
type ContentItem = z.output<typeof contentItemSchema>;
|
|
48
81
|
type ContentItemInput = z.input<typeof contentItemSchema>;
|
|
@@ -59,12 +92,46 @@ declare const courseSchema: z.ZodObject<{
|
|
|
59
92
|
}>;
|
|
60
93
|
category: z.ZodString;
|
|
61
94
|
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
62
|
-
settings: z.
|
|
95
|
+
settings: z.ZodObject<{
|
|
96
|
+
transcriptDownloads: z.ZodBoolean;
|
|
97
|
+
comments: z.ZodOptional<z.ZodObject<{
|
|
98
|
+
enabled: z.ZodBoolean;
|
|
99
|
+
threaded: z.ZodBoolean;
|
|
100
|
+
requireReview: z.ZodBoolean;
|
|
101
|
+
reactions: z.ZodBoolean;
|
|
102
|
+
}, z.core.$strict>>;
|
|
103
|
+
}, z.core.$strict>;
|
|
63
104
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
64
105
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
65
106
|
}, z.core.$strict>;
|
|
66
107
|
type Course = z.output<typeof courseSchema>;
|
|
67
|
-
|
|
108
|
+
declare const courseViewSchema: z.ZodObject<{
|
|
109
|
+
orgId: z.ZodString;
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
type: z.ZodLiteral<"course">;
|
|
112
|
+
title: z.ZodString;
|
|
113
|
+
slug: z.ZodString;
|
|
114
|
+
description: z.ZodString;
|
|
115
|
+
status: z.ZodEnum<{
|
|
116
|
+
draft: "draft";
|
|
117
|
+
published: "published";
|
|
118
|
+
}>;
|
|
119
|
+
category: z.ZodString;
|
|
120
|
+
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
121
|
+
settings: z.ZodObject<{
|
|
122
|
+
transcriptDownloads: z.ZodBoolean;
|
|
123
|
+
comments: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
enabled: z.ZodBoolean;
|
|
125
|
+
threaded: z.ZodBoolean;
|
|
126
|
+
requireReview: z.ZodBoolean;
|
|
127
|
+
reactions: z.ZodBoolean;
|
|
128
|
+
}, z.core.$strict>>;
|
|
129
|
+
}, z.core.$strict>;
|
|
130
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
131
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
132
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
133
|
+
}, z.core.$strict>;
|
|
134
|
+
type CourseView = z.output<typeof courseViewSchema>;
|
|
68
135
|
declare const activitySchema: z.ZodObject<{
|
|
69
136
|
orgId: z.ZodString;
|
|
70
137
|
id: z.ZodString;
|
|
@@ -77,6 +144,18 @@ declare const activitySchema: z.ZodObject<{
|
|
|
77
144
|
}, z.core.$strict>;
|
|
78
145
|
type Activity = z.output<typeof activitySchema>;
|
|
79
146
|
type ActivityInput = z.input<typeof activitySchema>;
|
|
147
|
+
declare const activityViewSchema: z.ZodObject<{
|
|
148
|
+
orgId: z.ZodString;
|
|
149
|
+
id: z.ZodString;
|
|
150
|
+
moduleId: z.ZodString;
|
|
151
|
+
courseId: z.ZodString;
|
|
152
|
+
seq: z.ZodNumber;
|
|
153
|
+
settings: z.ZodNullable<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
154
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
155
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
156
|
+
assetUrls: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
157
|
+
}, z.core.$strict>;
|
|
158
|
+
type ActivityView = z.output<typeof activityViewSchema>;
|
|
80
159
|
declare const moduleSchema: z.ZodObject<{
|
|
81
160
|
orgId: z.ZodString;
|
|
82
161
|
id: z.ZodString;
|
|
@@ -94,6 +173,8 @@ declare const activityAssetSchema: z.ZodObject<{
|
|
|
94
173
|
activityId: z.ZodString;
|
|
95
174
|
assetId: z.ZodString;
|
|
96
175
|
seq: z.ZodNumber;
|
|
176
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
177
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
97
178
|
}, z.core.$strict>;
|
|
98
179
|
type ActivityAsset = z.output<typeof activityAssetSchema>;
|
|
99
180
|
type ActivityAssetInput = z.input<typeof activityAssetSchema>;
|
|
@@ -129,15 +210,6 @@ declare const updateCourseInputSchema: z.ZodObject<{
|
|
|
129
210
|
published: "published";
|
|
130
211
|
}>>;
|
|
131
212
|
thumbnailAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
|
-
settings: z.ZodOptional<z.ZodObject<{
|
|
133
|
-
transcriptDownloads: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
-
comments: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
135
|
-
enabled: z.ZodBoolean;
|
|
136
|
-
threaded: z.ZodBoolean;
|
|
137
|
-
requireReview: z.ZodBoolean;
|
|
138
|
-
reactions: z.ZodBoolean;
|
|
139
|
-
}, z.core.$strict>>>;
|
|
140
|
-
}, z.core.$strict>>;
|
|
141
213
|
}, z.core.$strict>;
|
|
142
214
|
type UpdateCourseInput = z.infer<typeof updateCourseInputSchema>;
|
|
143
215
|
declare const downloadStatusSchema: z.ZodEnum<{
|
|
@@ -163,6 +235,24 @@ declare const downloadSchema: z.ZodObject<{
|
|
|
163
235
|
}, z.core.$strict>;
|
|
164
236
|
type Download = z.output<typeof downloadSchema>;
|
|
165
237
|
type DownloadInput = z.input<typeof downloadSchema>;
|
|
238
|
+
declare const downloadViewSchema: z.ZodObject<{
|
|
239
|
+
orgId: z.ZodString;
|
|
240
|
+
id: z.ZodString;
|
|
241
|
+
type: z.ZodLiteral<"download">;
|
|
242
|
+
title: z.ZodString;
|
|
243
|
+
slug: z.ZodString;
|
|
244
|
+
description: z.ZodString;
|
|
245
|
+
status: z.ZodEnum<{
|
|
246
|
+
draft: "draft";
|
|
247
|
+
published: "published";
|
|
248
|
+
}>;
|
|
249
|
+
category: z.ZodString;
|
|
250
|
+
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
251
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
252
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
253
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
254
|
+
}, z.core.$strict>;
|
|
255
|
+
type DownloadView = z.output<typeof downloadViewSchema>;
|
|
166
256
|
declare const downloadAssetSchema: z.ZodObject<{
|
|
167
257
|
orgId: z.ZodString;
|
|
168
258
|
id: z.ZodString;
|
|
@@ -170,9 +260,26 @@ declare const downloadAssetSchema: z.ZodObject<{
|
|
|
170
260
|
assetId: z.ZodString;
|
|
171
261
|
seq: z.ZodNumber;
|
|
172
262
|
displayName: z.ZodNullable<z.ZodString>;
|
|
263
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
264
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
173
265
|
}, z.core.$strict>;
|
|
174
266
|
type DownloadAsset = z.output<typeof downloadAssetSchema>;
|
|
175
267
|
type DownloadAssetInput = z.input<typeof downloadAssetSchema>;
|
|
268
|
+
declare const downloadFileSchema: z.ZodObject<{
|
|
269
|
+
orgId: z.ZodString;
|
|
270
|
+
id: z.ZodString;
|
|
271
|
+
downloadId: z.ZodString;
|
|
272
|
+
assetId: z.ZodString;
|
|
273
|
+
seq: z.ZodNumber;
|
|
274
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
275
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
276
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
277
|
+
filename: z.ZodString;
|
|
278
|
+
contentType: z.ZodString;
|
|
279
|
+
size: z.ZodNumber;
|
|
280
|
+
url: z.ZodString;
|
|
281
|
+
}, z.core.$strict>;
|
|
282
|
+
type DownloadFile = z.output<typeof downloadFileSchema>;
|
|
176
283
|
declare const listDownloadsQuerySchema: z.ZodObject<{
|
|
177
284
|
page: z.ZodNumber;
|
|
178
285
|
pageSize: z.ZodNumber;
|
|
@@ -211,6 +318,264 @@ declare const reorderDownloadAssetsInputSchema: z.ZodObject<{
|
|
|
211
318
|
assetIds: z.ZodArray<z.ZodString>;
|
|
212
319
|
}, z.core.$strict>;
|
|
213
320
|
type ReorderDownloadAssetsInput = z.infer<typeof reorderDownloadAssetsInputSchema>;
|
|
321
|
+
declare const communityStatusSchema: z.ZodEnum<{
|
|
322
|
+
draft: "draft";
|
|
323
|
+
published: "published";
|
|
324
|
+
}>;
|
|
325
|
+
type CommunityStatus = z.infer<typeof communityStatusSchema>;
|
|
326
|
+
declare const dmSettingsSchema: z.ZodObject<{
|
|
327
|
+
enabled: z.ZodBoolean;
|
|
328
|
+
memberToMember: z.ZodBoolean;
|
|
329
|
+
memberToStaff: z.ZodBoolean;
|
|
330
|
+
staffToAnyone: z.ZodBoolean;
|
|
331
|
+
firstMessageIsRequest: z.ZodBoolean;
|
|
332
|
+
groupChats: z.ZodBoolean;
|
|
333
|
+
groupSize: z.ZodNumber;
|
|
334
|
+
}, z.core.$strict>;
|
|
335
|
+
type DmSettings = z.infer<typeof dmSettingsSchema>;
|
|
336
|
+
declare const dmSettingsDefaults: DmSettings;
|
|
337
|
+
declare const communitySettingsSchema: z.ZodObject<{
|
|
338
|
+
dm: z.ZodObject<{
|
|
339
|
+
enabled: z.ZodBoolean;
|
|
340
|
+
memberToMember: z.ZodBoolean;
|
|
341
|
+
memberToStaff: z.ZodBoolean;
|
|
342
|
+
staffToAnyone: z.ZodBoolean;
|
|
343
|
+
firstMessageIsRequest: z.ZodBoolean;
|
|
344
|
+
groupChats: z.ZodBoolean;
|
|
345
|
+
groupSize: z.ZodNumber;
|
|
346
|
+
}, z.core.$strict>;
|
|
347
|
+
}, z.core.$strict>;
|
|
348
|
+
type CommunitySettings = z.infer<typeof communitySettingsSchema>;
|
|
349
|
+
declare const communitySettingsDefaults: CommunitySettings;
|
|
350
|
+
declare const communitySchema: z.ZodObject<{
|
|
351
|
+
orgId: z.ZodString;
|
|
352
|
+
id: z.ZodString;
|
|
353
|
+
type: z.ZodLiteral<"community">;
|
|
354
|
+
title: z.ZodString;
|
|
355
|
+
slug: z.ZodString;
|
|
356
|
+
description: z.ZodString;
|
|
357
|
+
status: z.ZodEnum<{
|
|
358
|
+
draft: "draft";
|
|
359
|
+
published: "published";
|
|
360
|
+
}>;
|
|
361
|
+
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
362
|
+
settings: z.ZodObject<{
|
|
363
|
+
dm: z.ZodObject<{
|
|
364
|
+
enabled: z.ZodBoolean;
|
|
365
|
+
memberToMember: z.ZodBoolean;
|
|
366
|
+
memberToStaff: z.ZodBoolean;
|
|
367
|
+
staffToAnyone: z.ZodBoolean;
|
|
368
|
+
firstMessageIsRequest: z.ZodBoolean;
|
|
369
|
+
groupChats: z.ZodBoolean;
|
|
370
|
+
groupSize: z.ZodNumber;
|
|
371
|
+
}, z.core.$strict>;
|
|
372
|
+
}, z.core.$strict>;
|
|
373
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
374
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
375
|
+
}, z.core.$strict>;
|
|
376
|
+
type Community = z.output<typeof communitySchema>;
|
|
377
|
+
declare const communityViewSchema: z.ZodObject<{
|
|
378
|
+
orgId: z.ZodString;
|
|
379
|
+
id: z.ZodString;
|
|
380
|
+
type: z.ZodLiteral<"community">;
|
|
381
|
+
title: z.ZodString;
|
|
382
|
+
slug: z.ZodString;
|
|
383
|
+
description: z.ZodString;
|
|
384
|
+
status: z.ZodEnum<{
|
|
385
|
+
draft: "draft";
|
|
386
|
+
published: "published";
|
|
387
|
+
}>;
|
|
388
|
+
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
389
|
+
settings: z.ZodObject<{
|
|
390
|
+
dm: z.ZodObject<{
|
|
391
|
+
enabled: z.ZodBoolean;
|
|
392
|
+
memberToMember: z.ZodBoolean;
|
|
393
|
+
memberToStaff: z.ZodBoolean;
|
|
394
|
+
staffToAnyone: z.ZodBoolean;
|
|
395
|
+
firstMessageIsRequest: z.ZodBoolean;
|
|
396
|
+
groupChats: z.ZodBoolean;
|
|
397
|
+
groupSize: z.ZodNumber;
|
|
398
|
+
}, z.core.$strict>;
|
|
399
|
+
}, z.core.$strict>;
|
|
400
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
401
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
402
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
403
|
+
}, z.core.$strict>;
|
|
404
|
+
type CommunityView = z.output<typeof communityViewSchema>;
|
|
405
|
+
declare const spaceAccessRuleSchema: z.ZodEnum<{
|
|
406
|
+
all_members: "all_members";
|
|
407
|
+
by_request: "by_request";
|
|
408
|
+
by_invite: "by_invite";
|
|
409
|
+
}>;
|
|
410
|
+
type SpaceAccessRule = z.infer<typeof spaceAccessRuleSchema>;
|
|
411
|
+
declare const spaceSettingsSchema: z.ZodObject<{
|
|
412
|
+
comments: z.ZodBoolean;
|
|
413
|
+
reactions: z.ZodBoolean;
|
|
414
|
+
requireReview: z.ZodBoolean;
|
|
415
|
+
}, z.core.$strict>;
|
|
416
|
+
type SpaceSettings = z.infer<typeof spaceSettingsSchema>;
|
|
417
|
+
declare const spaceSettingsDefaults: SpaceSettings;
|
|
418
|
+
declare const spaceSchema: z.ZodObject<{
|
|
419
|
+
orgId: z.ZodString;
|
|
420
|
+
id: z.ZodString;
|
|
421
|
+
communityId: z.ZodString;
|
|
422
|
+
name: z.ZodString;
|
|
423
|
+
description: z.ZodString;
|
|
424
|
+
seq: z.ZodNumber;
|
|
425
|
+
accessRule: z.ZodEnum<{
|
|
426
|
+
all_members: "all_members";
|
|
427
|
+
by_request: "by_request";
|
|
428
|
+
by_invite: "by_invite";
|
|
429
|
+
}>;
|
|
430
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
431
|
+
settings: z.ZodObject<{
|
|
432
|
+
comments: z.ZodBoolean;
|
|
433
|
+
reactions: z.ZodBoolean;
|
|
434
|
+
requireReview: z.ZodBoolean;
|
|
435
|
+
}, z.core.$strict>;
|
|
436
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
437
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
438
|
+
}, z.core.$strict>;
|
|
439
|
+
type Space = z.output<typeof spaceSchema>;
|
|
440
|
+
declare const spaceTopicSchema: z.ZodObject<{
|
|
441
|
+
orgId: z.ZodString;
|
|
442
|
+
id: z.ZodString;
|
|
443
|
+
spaceId: z.ZodString;
|
|
444
|
+
name: z.ZodString;
|
|
445
|
+
seq: z.ZodNumber;
|
|
446
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
447
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
448
|
+
}, z.core.$strict>;
|
|
449
|
+
type SpaceTopic = z.output<typeof spaceTopicSchema>;
|
|
450
|
+
declare const spaceLinkSchema: z.ZodObject<{
|
|
451
|
+
orgId: z.ZodString;
|
|
452
|
+
id: z.ZodString;
|
|
453
|
+
spaceId: z.ZodString;
|
|
454
|
+
contentId: z.ZodString;
|
|
455
|
+
seq: z.ZodNumber;
|
|
456
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
457
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
458
|
+
}, z.core.$strict>;
|
|
459
|
+
type SpaceLink = z.output<typeof spaceLinkSchema>;
|
|
460
|
+
declare const spaceDetailSchema: z.ZodObject<{
|
|
461
|
+
orgId: z.ZodString;
|
|
462
|
+
id: z.ZodString;
|
|
463
|
+
communityId: z.ZodString;
|
|
464
|
+
name: z.ZodString;
|
|
465
|
+
description: z.ZodString;
|
|
466
|
+
seq: z.ZodNumber;
|
|
467
|
+
accessRule: z.ZodEnum<{
|
|
468
|
+
all_members: "all_members";
|
|
469
|
+
by_request: "by_request";
|
|
470
|
+
by_invite: "by_invite";
|
|
471
|
+
}>;
|
|
472
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
473
|
+
settings: z.ZodObject<{
|
|
474
|
+
comments: z.ZodBoolean;
|
|
475
|
+
reactions: z.ZodBoolean;
|
|
476
|
+
requireReview: z.ZodBoolean;
|
|
477
|
+
}, z.core.$strict>;
|
|
478
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
479
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
480
|
+
topics: z.ZodArray<z.ZodObject<{
|
|
481
|
+
orgId: z.ZodString;
|
|
482
|
+
id: z.ZodString;
|
|
483
|
+
spaceId: z.ZodString;
|
|
484
|
+
name: z.ZodString;
|
|
485
|
+
seq: z.ZodNumber;
|
|
486
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
487
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
488
|
+
}, z.core.$strict>>;
|
|
489
|
+
links: z.ZodArray<z.ZodObject<{
|
|
490
|
+
orgId: z.ZodString;
|
|
491
|
+
id: z.ZodString;
|
|
492
|
+
spaceId: z.ZodString;
|
|
493
|
+
contentId: z.ZodString;
|
|
494
|
+
seq: z.ZodNumber;
|
|
495
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
496
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
497
|
+
}, z.core.$strict>>;
|
|
498
|
+
}, z.core.$strict>;
|
|
499
|
+
type SpaceDetail = z.output<typeof spaceDetailSchema>;
|
|
500
|
+
declare const listCommunitiesQuerySchema: z.ZodObject<{
|
|
501
|
+
page: z.ZodNumber;
|
|
502
|
+
pageSize: z.ZodNumber;
|
|
503
|
+
search: z.ZodOptional<z.ZodString>;
|
|
504
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
505
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
506
|
+
draft: "draft";
|
|
507
|
+
published: "published";
|
|
508
|
+
}>>;
|
|
509
|
+
}, z.core.$strict>;
|
|
510
|
+
type ListCommunitiesQuery = z.infer<typeof listCommunitiesQuerySchema>;
|
|
511
|
+
declare const createCommunityInputSchema: z.ZodObject<{
|
|
512
|
+
title: z.ZodString;
|
|
513
|
+
description: z.ZodOptional<z.ZodString>;
|
|
514
|
+
}, z.core.$strict>;
|
|
515
|
+
type CreateCommunityInput = z.infer<typeof createCommunityInputSchema>;
|
|
516
|
+
declare const updateCommunityInputSchema: z.ZodObject<{
|
|
517
|
+
title: z.ZodOptional<z.ZodString>;
|
|
518
|
+
description: z.ZodOptional<z.ZodString>;
|
|
519
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
520
|
+
draft: "draft";
|
|
521
|
+
published: "published";
|
|
522
|
+
}>>;
|
|
523
|
+
thumbnailAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
524
|
+
}, z.core.$strict>;
|
|
525
|
+
type UpdateCommunityInput = z.infer<typeof updateCommunityInputSchema>;
|
|
526
|
+
declare const patchDmSettingsInputSchema: z.ZodObject<{
|
|
527
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
528
|
+
memberToMember: z.ZodOptional<z.ZodBoolean>;
|
|
529
|
+
memberToStaff: z.ZodOptional<z.ZodBoolean>;
|
|
530
|
+
staffToAnyone: z.ZodOptional<z.ZodBoolean>;
|
|
531
|
+
firstMessageIsRequest: z.ZodOptional<z.ZodBoolean>;
|
|
532
|
+
groupChats: z.ZodOptional<z.ZodBoolean>;
|
|
533
|
+
groupSize: z.ZodOptional<z.ZodNumber>;
|
|
534
|
+
}, z.core.$strict>;
|
|
535
|
+
type PatchDmSettingsInput = z.infer<typeof patchDmSettingsInputSchema>;
|
|
536
|
+
declare const createSpaceInputSchema: z.ZodObject<{
|
|
537
|
+
name: z.ZodString;
|
|
538
|
+
description: z.ZodOptional<z.ZodString>;
|
|
539
|
+
accessRule: z.ZodOptional<z.ZodEnum<{
|
|
540
|
+
all_members: "all_members";
|
|
541
|
+
by_request: "by_request";
|
|
542
|
+
by_invite: "by_invite";
|
|
543
|
+
}>>;
|
|
544
|
+
capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
545
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
546
|
+
comments: z.ZodOptional<z.ZodBoolean>;
|
|
547
|
+
reactions: z.ZodOptional<z.ZodBoolean>;
|
|
548
|
+
requireReview: z.ZodOptional<z.ZodBoolean>;
|
|
549
|
+
}, z.core.$strict>>;
|
|
550
|
+
}, z.core.$strict>;
|
|
551
|
+
type CreateSpaceInput = z.infer<typeof createSpaceInputSchema>;
|
|
552
|
+
declare const updateSpaceInputSchema: z.ZodObject<{
|
|
553
|
+
name: z.ZodOptional<z.ZodString>;
|
|
554
|
+
description: z.ZodOptional<z.ZodString>;
|
|
555
|
+
accessRule: z.ZodOptional<z.ZodEnum<{
|
|
556
|
+
all_members: "all_members";
|
|
557
|
+
by_request: "by_request";
|
|
558
|
+
by_invite: "by_invite";
|
|
559
|
+
}>>;
|
|
560
|
+
capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
561
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
562
|
+
comments: z.ZodOptional<z.ZodBoolean>;
|
|
563
|
+
reactions: z.ZodOptional<z.ZodBoolean>;
|
|
564
|
+
requireReview: z.ZodOptional<z.ZodBoolean>;
|
|
565
|
+
}, z.core.$strict>>;
|
|
566
|
+
}, z.core.$strict>;
|
|
567
|
+
type UpdateSpaceInput = z.infer<typeof updateSpaceInputSchema>;
|
|
568
|
+
declare const setSpaceTopicsInputSchema: z.ZodObject<{
|
|
569
|
+
topics: z.ZodArray<z.ZodObject<{
|
|
570
|
+
id: z.ZodOptional<z.ZodString>;
|
|
571
|
+
name: z.ZodString;
|
|
572
|
+
}, z.core.$strict>>;
|
|
573
|
+
}, z.core.$strict>;
|
|
574
|
+
type SetSpaceTopicsInput = z.infer<typeof setSpaceTopicsInputSchema>;
|
|
575
|
+
declare const addSpaceLinkInputSchema: z.ZodObject<{
|
|
576
|
+
contentId: z.ZodString;
|
|
577
|
+
}, z.core.$strict>;
|
|
578
|
+
type AddSpaceLinkInput = z.infer<typeof addSpaceLinkInputSchema>;
|
|
214
579
|
//#endregion
|
|
215
|
-
export { Activity, ActivityAsset, ActivityAssetInput,
|
|
580
|
+
export { Activity, ActivityAsset, ActivityAssetInput, ActivityInput, ActivitySettings, ActivityView, AddDownloadAssetInput, AddSpaceLinkInput, Bundle, BundleInput, BundleItem, BundleItemInput, Community, CommunitySettings, CommunityStatus, CommunityView, ContentItem, ContentItemInput, ContentType, Course, CourseSettings, CourseStatus, CourseView, CreateBundleInput, CreateCommunityInput, CreateCourseInput, CreateDownloadInput, CreateSpaceInput, DmSettings, Download, DownloadAsset, DownloadAssetInput, DownloadFile, DownloadInput, DownloadStatus, DownloadView, ListBundlesQuery, ListCommunitiesQuery, ListCoursesQuery, ListDownloadsQuery, Module, ModuleInput, PatchDmSettingsInput, ReorderDownloadAssetsInput, SaveActivityInput, SetSpaceTopicsInput, Space, SpaceAccessRule, SpaceDetail, SpaceLink, SpaceSettings, SpaceTopic, UpdateBundleInput, UpdateCommunityInput, UpdateCourseInput, UpdateDownloadInput, UpdateSpaceInput, activityAssetSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addSpaceLinkInputSchema, bundleItemSchema, bundleSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createSpaceInputSchema, dmSettingsDefaults, dmSettingsSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, listBundlesQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, moduleSchema, patchDmSettingsInputSchema, reorderDownloadAssetsInputSchema, saveActivityInputSchema, setSpaceTopicsInputSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceLinkSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateSpaceInputSchema };
|
|
216
581
|
//# sourceMappingURL=content.d.ts.map
|