@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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JsonValue } from "../shared.js";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
//#region src/types/schemas/discussion.d.ts
|
|
3
4
|
declare const commentStatusSchema: z.ZodEnum<{
|
|
@@ -18,10 +19,18 @@ declare const commentSettingsSchema: z.ZodObject<{
|
|
|
18
19
|
}, z.core.$strict>;
|
|
19
20
|
type CommentSettings = z.infer<typeof commentSettingsSchema>;
|
|
20
21
|
type CommentsConfig = CommentSettings;
|
|
22
|
+
declare const activityCommentsRuleSchema: z.ZodEnum<{
|
|
23
|
+
never: "never";
|
|
24
|
+
inherit: "inherit";
|
|
25
|
+
always: "always";
|
|
26
|
+
}>;
|
|
27
|
+
type ActivityCommentsRule = z.infer<typeof activityCommentsRuleSchema>;
|
|
21
28
|
declare const commentSchema: z.ZodObject<{
|
|
22
29
|
id: z.ZodString;
|
|
23
30
|
orgId: z.ZodString;
|
|
24
|
-
activityId: z.ZodString
|
|
31
|
+
activityId: z.ZodNullable<z.ZodString>;
|
|
32
|
+
postId: z.ZodNullable<z.ZodString>;
|
|
33
|
+
communityId: z.ZodNullable<z.ZodString>;
|
|
25
34
|
parentId: z.ZodNullable<z.ZodString>;
|
|
26
35
|
orgUserId: z.ZodString;
|
|
27
36
|
body: z.ZodString;
|
|
@@ -40,11 +49,16 @@ declare const commentAuthorSchema: z.ZodObject<{
|
|
|
40
49
|
id: z.ZodString;
|
|
41
50
|
firstName: z.ZodNullable<z.ZodString>;
|
|
42
51
|
lastName: z.ZodNullable<z.ZodString>;
|
|
52
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
53
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
43
54
|
image: z.ZodNullable<z.ZodString>;
|
|
55
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
56
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
44
57
|
role: z.ZodEnum<{
|
|
45
58
|
owner: "owner";
|
|
46
59
|
admin: "admin";
|
|
47
60
|
instructor: "instructor";
|
|
61
|
+
moderator: "moderator";
|
|
48
62
|
student: "student";
|
|
49
63
|
}>;
|
|
50
64
|
}, z.core.$strict>;
|
|
@@ -55,8 +69,14 @@ declare const commentReactionSchema: z.ZodObject<{
|
|
|
55
69
|
orgUserId: z.ZodString;
|
|
56
70
|
emoji: z.ZodString;
|
|
57
71
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
72
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
58
73
|
}, z.core.$strict>;
|
|
59
74
|
type CommentReaction = z.output<typeof commentReactionSchema>;
|
|
75
|
+
declare const commentFlagResolutionSchema: z.ZodEnum<{
|
|
76
|
+
removed: "removed";
|
|
77
|
+
dismissed: "dismissed";
|
|
78
|
+
}>;
|
|
79
|
+
type CommentFlagResolution = z.infer<typeof commentFlagResolutionSchema>;
|
|
60
80
|
declare const commentReportSchema: z.ZodObject<{
|
|
61
81
|
id: z.ZodString;
|
|
62
82
|
orgId: z.ZodString;
|
|
@@ -64,23 +84,36 @@ declare const commentReportSchema: z.ZodObject<{
|
|
|
64
84
|
orgUserId: z.ZodString;
|
|
65
85
|
reason: z.ZodString;
|
|
66
86
|
resolvedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
87
|
+
resolution: z.ZodNullable<z.ZodEnum<{
|
|
88
|
+
removed: "removed";
|
|
89
|
+
dismissed: "dismissed";
|
|
90
|
+
}>>;
|
|
91
|
+
resolvedBy: z.ZodNullable<z.ZodString>;
|
|
67
92
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
93
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
68
94
|
}, z.core.$strict>;
|
|
69
95
|
type CommentReport = z.output<typeof commentReportSchema>;
|
|
70
96
|
type CommentReportInput = z.input<typeof commentReportSchema>;
|
|
71
97
|
declare const commentViewSchema: z.ZodObject<{
|
|
72
98
|
id: z.ZodString;
|
|
73
|
-
activityId: z.ZodString
|
|
99
|
+
activityId: z.ZodNullable<z.ZodString>;
|
|
100
|
+
postId: z.ZodNullable<z.ZodString>;
|
|
101
|
+
communityId: z.ZodNullable<z.ZodString>;
|
|
74
102
|
parentId: z.ZodNullable<z.ZodString>;
|
|
75
103
|
author: z.ZodObject<{
|
|
76
104
|
id: z.ZodString;
|
|
77
105
|
firstName: z.ZodNullable<z.ZodString>;
|
|
78
106
|
lastName: z.ZodNullable<z.ZodString>;
|
|
107
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
108
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
79
109
|
image: z.ZodNullable<z.ZodString>;
|
|
110
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
111
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
80
112
|
role: z.ZodEnum<{
|
|
81
113
|
owner: "owner";
|
|
82
114
|
admin: "admin";
|
|
83
115
|
instructor: "instructor";
|
|
116
|
+
moderator: "moderator";
|
|
84
117
|
student: "student";
|
|
85
118
|
}>;
|
|
86
119
|
}, z.core.$strict>;
|
|
@@ -94,11 +127,16 @@ declare const commentViewSchema: z.ZodObject<{
|
|
|
94
127
|
id: z.ZodString;
|
|
95
128
|
firstName: z.ZodNullable<z.ZodString>;
|
|
96
129
|
lastName: z.ZodNullable<z.ZodString>;
|
|
130
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
131
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
97
132
|
image: z.ZodNullable<z.ZodString>;
|
|
133
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
134
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
98
135
|
role: z.ZodEnum<{
|
|
99
136
|
owner: "owner";
|
|
100
137
|
admin: "admin";
|
|
101
138
|
instructor: "instructor";
|
|
139
|
+
moderator: "moderator";
|
|
102
140
|
student: "student";
|
|
103
141
|
}>;
|
|
104
142
|
}, z.core.$strict>>;
|
|
@@ -113,11 +151,16 @@ declare const commentReportSummarySchema: z.ZodObject<{
|
|
|
113
151
|
id: z.ZodString;
|
|
114
152
|
firstName: z.ZodNullable<z.ZodString>;
|
|
115
153
|
lastName: z.ZodNullable<z.ZodString>;
|
|
154
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
155
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
116
156
|
image: z.ZodNullable<z.ZodString>;
|
|
157
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
158
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
117
159
|
role: z.ZodEnum<{
|
|
118
160
|
owner: "owner";
|
|
119
161
|
admin: "admin";
|
|
120
162
|
instructor: "instructor";
|
|
163
|
+
moderator: "moderator";
|
|
121
164
|
student: "student";
|
|
122
165
|
}>;
|
|
123
166
|
}, z.core.$strict>;
|
|
@@ -141,26 +184,36 @@ declare const commentListItemSchema: z.ZodObject<{
|
|
|
141
184
|
id: z.ZodString;
|
|
142
185
|
firstName: z.ZodNullable<z.ZodString>;
|
|
143
186
|
lastName: z.ZodNullable<z.ZodString>;
|
|
187
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
188
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
144
189
|
image: z.ZodNullable<z.ZodString>;
|
|
190
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
191
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
145
192
|
role: z.ZodEnum<{
|
|
146
193
|
owner: "owner";
|
|
147
194
|
admin: "admin";
|
|
148
195
|
instructor: "instructor";
|
|
196
|
+
moderator: "moderator";
|
|
149
197
|
student: "student";
|
|
150
198
|
}>;
|
|
151
199
|
}, z.core.$strict>;
|
|
152
|
-
authorEmail: z.
|
|
200
|
+
authorEmail: z.ZodEmail;
|
|
153
201
|
removedBy: z.ZodNullable<z.ZodString>;
|
|
154
202
|
reports: z.ZodArray<z.ZodObject<{
|
|
155
203
|
reporter: z.ZodObject<{
|
|
156
204
|
id: z.ZodString;
|
|
157
205
|
firstName: z.ZodNullable<z.ZodString>;
|
|
158
206
|
lastName: z.ZodNullable<z.ZodString>;
|
|
207
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
208
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
159
209
|
image: z.ZodNullable<z.ZodString>;
|
|
210
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
211
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
160
212
|
role: z.ZodEnum<{
|
|
161
213
|
owner: "owner";
|
|
162
214
|
admin: "admin";
|
|
163
215
|
instructor: "instructor";
|
|
216
|
+
moderator: "moderator";
|
|
164
217
|
student: "student";
|
|
165
218
|
}>;
|
|
166
219
|
}, z.core.$strict>;
|
|
@@ -187,6 +240,328 @@ declare const listCommentsQuerySchema: z.ZodObject<{
|
|
|
187
240
|
orgUserId: z.ZodOptional<z.ZodString>;
|
|
188
241
|
}, z.core.$strict>;
|
|
189
242
|
type ListCommentsQuery = z.infer<typeof listCommentsQuerySchema>;
|
|
243
|
+
declare const postStatusSchema: z.ZodEnum<{
|
|
244
|
+
pending: "pending";
|
|
245
|
+
draft: "draft";
|
|
246
|
+
published: "published";
|
|
247
|
+
removed: "removed";
|
|
248
|
+
scheduled: "scheduled";
|
|
249
|
+
}>;
|
|
250
|
+
type PostStatus = z.infer<typeof postStatusSchema>;
|
|
251
|
+
declare const postSchema: z.ZodObject<{
|
|
252
|
+
orgId: z.ZodString;
|
|
253
|
+
id: z.ZodString;
|
|
254
|
+
communityId: z.ZodString;
|
|
255
|
+
spaceId: z.ZodString;
|
|
256
|
+
orgUserId: z.ZodString;
|
|
257
|
+
topicId: z.ZodNullable<z.ZodString>;
|
|
258
|
+
title: z.ZodString;
|
|
259
|
+
body: z.ZodString;
|
|
260
|
+
extra: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
261
|
+
coverAssetId: z.ZodNullable<z.ZodString>;
|
|
262
|
+
status: z.ZodEnum<{
|
|
263
|
+
pending: "pending";
|
|
264
|
+
draft: "draft";
|
|
265
|
+
published: "published";
|
|
266
|
+
removed: "removed";
|
|
267
|
+
scheduled: "scheduled";
|
|
268
|
+
}>;
|
|
269
|
+
scheduledAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
270
|
+
publishedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
271
|
+
removedBy: z.ZodNullable<z.ZodString>;
|
|
272
|
+
pinned: z.ZodBoolean;
|
|
273
|
+
commentsClosed: z.ZodNullable<z.ZodBoolean>;
|
|
274
|
+
reactionsEnabled: z.ZodNullable<z.ZodBoolean>;
|
|
275
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
276
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
277
|
+
}, z.core.$strict>;
|
|
278
|
+
type Post = z.output<typeof postSchema>;
|
|
279
|
+
declare const postViewSchema: z.ZodObject<{
|
|
280
|
+
orgId: z.ZodString;
|
|
281
|
+
id: z.ZodString;
|
|
282
|
+
communityId: z.ZodString;
|
|
283
|
+
spaceId: z.ZodString;
|
|
284
|
+
orgUserId: z.ZodString;
|
|
285
|
+
topicId: z.ZodNullable<z.ZodString>;
|
|
286
|
+
title: z.ZodString;
|
|
287
|
+
body: z.ZodString;
|
|
288
|
+
extra: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
289
|
+
coverAssetId: z.ZodNullable<z.ZodString>;
|
|
290
|
+
status: z.ZodEnum<{
|
|
291
|
+
pending: "pending";
|
|
292
|
+
draft: "draft";
|
|
293
|
+
published: "published";
|
|
294
|
+
removed: "removed";
|
|
295
|
+
scheduled: "scheduled";
|
|
296
|
+
}>;
|
|
297
|
+
scheduledAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
298
|
+
publishedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
299
|
+
removedBy: z.ZodNullable<z.ZodString>;
|
|
300
|
+
pinned: z.ZodBoolean;
|
|
301
|
+
commentsClosed: z.ZodNullable<z.ZodBoolean>;
|
|
302
|
+
reactionsEnabled: z.ZodNullable<z.ZodBoolean>;
|
|
303
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
304
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
305
|
+
coverUrl: z.ZodNullable<z.ZodString>;
|
|
306
|
+
author: z.ZodObject<{
|
|
307
|
+
id: z.ZodString;
|
|
308
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
309
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
310
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
311
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
312
|
+
image: z.ZodNullable<z.ZodString>;
|
|
313
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
314
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
315
|
+
role: z.ZodEnum<{
|
|
316
|
+
owner: "owner";
|
|
317
|
+
admin: "admin";
|
|
318
|
+
instructor: "instructor";
|
|
319
|
+
moderator: "moderator";
|
|
320
|
+
student: "student";
|
|
321
|
+
}>;
|
|
322
|
+
}, z.core.$strict>;
|
|
323
|
+
reactions: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
324
|
+
viewerReaction: z.ZodNullable<z.ZodString>;
|
|
325
|
+
commentCount: z.ZodNumber;
|
|
326
|
+
following: z.ZodBoolean;
|
|
327
|
+
bookmarked: z.ZodBoolean;
|
|
328
|
+
}, z.core.$strict>;
|
|
329
|
+
type PostView = z.output<typeof postViewSchema>;
|
|
330
|
+
declare const flaggedCommentSchema: z.ZodObject<{
|
|
331
|
+
id: z.ZodString;
|
|
332
|
+
orgId: z.ZodString;
|
|
333
|
+
commentId: z.ZodString;
|
|
334
|
+
orgUserId: z.ZodString;
|
|
335
|
+
reason: z.ZodString;
|
|
336
|
+
resolvedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
337
|
+
resolution: z.ZodNullable<z.ZodEnum<{
|
|
338
|
+
removed: "removed";
|
|
339
|
+
dismissed: "dismissed";
|
|
340
|
+
}>>;
|
|
341
|
+
resolvedBy: z.ZodNullable<z.ZodString>;
|
|
342
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
343
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
344
|
+
comment: z.ZodObject<{
|
|
345
|
+
id: z.ZodString;
|
|
346
|
+
postId: z.ZodString;
|
|
347
|
+
body: z.ZodString;
|
|
348
|
+
orgUserId: z.ZodString;
|
|
349
|
+
status: z.ZodEnum<{
|
|
350
|
+
pending: "pending";
|
|
351
|
+
published: "published";
|
|
352
|
+
removed: "removed";
|
|
353
|
+
}>;
|
|
354
|
+
}, z.core.$strict>;
|
|
355
|
+
}, z.core.$strict>;
|
|
356
|
+
type FlaggedComment = z.output<typeof flaggedCommentSchema>;
|
|
357
|
+
declare const postReactionSchema: z.ZodObject<{
|
|
358
|
+
orgId: z.ZodString;
|
|
359
|
+
postId: z.ZodString;
|
|
360
|
+
orgUserId: z.ZodString;
|
|
361
|
+
emoji: z.ZodString;
|
|
362
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
363
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
364
|
+
}, z.core.$strict>;
|
|
365
|
+
type PostReaction = z.output<typeof postReactionSchema>;
|
|
366
|
+
declare const postFollowSchema: z.ZodObject<{
|
|
367
|
+
orgId: z.ZodString;
|
|
368
|
+
postId: z.ZodString;
|
|
369
|
+
orgUserId: z.ZodString;
|
|
370
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
371
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
372
|
+
}, z.core.$strict>;
|
|
373
|
+
type PostFollow = z.output<typeof postFollowSchema>;
|
|
374
|
+
declare const postBookmarkSchema: z.ZodObject<{
|
|
375
|
+
orgId: z.ZodString;
|
|
376
|
+
postId: z.ZodString;
|
|
377
|
+
orgUserId: z.ZodString;
|
|
378
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
379
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
380
|
+
}, z.core.$strict>;
|
|
381
|
+
type PostBookmark = z.output<typeof postBookmarkSchema>;
|
|
382
|
+
declare const postFlagResolutionSchema: z.ZodEnum<{
|
|
383
|
+
removed: "removed";
|
|
384
|
+
dismissed: "dismissed";
|
|
385
|
+
}>;
|
|
386
|
+
type PostFlagResolution = z.infer<typeof postFlagResolutionSchema>;
|
|
387
|
+
declare const postFlagSchema: z.ZodObject<{
|
|
388
|
+
orgId: z.ZodString;
|
|
389
|
+
id: z.ZodString;
|
|
390
|
+
postId: z.ZodString;
|
|
391
|
+
orgUserId: z.ZodString;
|
|
392
|
+
reason: z.ZodString;
|
|
393
|
+
resolvedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
394
|
+
resolution: z.ZodNullable<z.ZodEnum<{
|
|
395
|
+
removed: "removed";
|
|
396
|
+
dismissed: "dismissed";
|
|
397
|
+
}>>;
|
|
398
|
+
resolvedBy: z.ZodNullable<z.ZodString>;
|
|
399
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
400
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
401
|
+
}, z.core.$strict>;
|
|
402
|
+
type PostFlag = z.output<typeof postFlagSchema>;
|
|
403
|
+
declare const chatKindSchema: z.ZodEnum<{
|
|
404
|
+
direct: "direct";
|
|
405
|
+
group: "group";
|
|
406
|
+
}>;
|
|
407
|
+
type ChatKind = z.infer<typeof chatKindSchema>;
|
|
408
|
+
declare const chatStatusSchema: z.ZodEnum<{
|
|
409
|
+
pending: "pending";
|
|
410
|
+
open: "open";
|
|
411
|
+
closed: "closed";
|
|
412
|
+
}>;
|
|
413
|
+
type ChatStatus = z.infer<typeof chatStatusSchema>;
|
|
414
|
+
declare const chatSchema: z.ZodObject<{
|
|
415
|
+
orgId: z.ZodString;
|
|
416
|
+
id: z.ZodString;
|
|
417
|
+
communityId: z.ZodString;
|
|
418
|
+
kind: z.ZodEnum<{
|
|
419
|
+
direct: "direct";
|
|
420
|
+
group: "group";
|
|
421
|
+
}>;
|
|
422
|
+
status: z.ZodEnum<{
|
|
423
|
+
pending: "pending";
|
|
424
|
+
open: "open";
|
|
425
|
+
closed: "closed";
|
|
426
|
+
}>;
|
|
427
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
428
|
+
lockedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
429
|
+
lockedBy: z.ZodNullable<z.ZodString>;
|
|
430
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
431
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
432
|
+
}, z.core.$strict>;
|
|
433
|
+
type Chat = z.output<typeof chatSchema>;
|
|
434
|
+
declare const chatUserSchema: z.ZodObject<{
|
|
435
|
+
orgId: z.ZodString;
|
|
436
|
+
communityId: z.ZodString;
|
|
437
|
+
chatId: z.ZodString;
|
|
438
|
+
orgUserId: z.ZodString;
|
|
439
|
+
joinedAt: z.ZodCoercedDate<unknown>;
|
|
440
|
+
leftAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
441
|
+
lastReadMessageId: z.ZodNullable<z.ZodString>;
|
|
442
|
+
muted: z.ZodBoolean;
|
|
443
|
+
mutedUntil: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
444
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
445
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
446
|
+
}, z.core.$strict>;
|
|
447
|
+
type ChatUser = z.output<typeof chatUserSchema>;
|
|
448
|
+
declare const messageSchema: z.ZodObject<{
|
|
449
|
+
orgId: z.ZodString;
|
|
450
|
+
id: z.ZodString;
|
|
451
|
+
communityId: z.ZodString;
|
|
452
|
+
chatId: z.ZodString;
|
|
453
|
+
orgUserId: z.ZodString;
|
|
454
|
+
body: z.ZodString;
|
|
455
|
+
replyToId: z.ZodNullable<z.ZodString>;
|
|
456
|
+
editedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
457
|
+
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
458
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
459
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
460
|
+
}, z.core.$strict>;
|
|
461
|
+
type Message = z.output<typeof messageSchema>;
|
|
462
|
+
declare const messageFileSchema: z.ZodObject<{
|
|
463
|
+
assetId: z.ZodString;
|
|
464
|
+
url: z.ZodString;
|
|
465
|
+
}, z.core.$strict>;
|
|
466
|
+
type MessageFile = z.output<typeof messageFileSchema>;
|
|
467
|
+
declare const messageViewSchema: z.ZodObject<{
|
|
468
|
+
orgId: z.ZodString;
|
|
469
|
+
id: z.ZodString;
|
|
470
|
+
communityId: z.ZodString;
|
|
471
|
+
chatId: z.ZodString;
|
|
472
|
+
orgUserId: z.ZodString;
|
|
473
|
+
body: z.ZodString;
|
|
474
|
+
replyToId: z.ZodNullable<z.ZodString>;
|
|
475
|
+
editedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
476
|
+
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
477
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
478
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
479
|
+
sender: z.ZodObject<{
|
|
480
|
+
id: z.ZodString;
|
|
481
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
482
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
483
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
484
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
485
|
+
image: z.ZodNullable<z.ZodString>;
|
|
486
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
487
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
488
|
+
role: z.ZodEnum<{
|
|
489
|
+
owner: "owner";
|
|
490
|
+
admin: "admin";
|
|
491
|
+
instructor: "instructor";
|
|
492
|
+
moderator: "moderator";
|
|
493
|
+
student: "student";
|
|
494
|
+
}>;
|
|
495
|
+
}, z.core.$strict>;
|
|
496
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
497
|
+
assetId: z.ZodString;
|
|
498
|
+
url: z.ZodString;
|
|
499
|
+
}, z.core.$strict>>;
|
|
500
|
+
reactions: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
501
|
+
viewerReaction: z.ZodNullable<z.ZodString>;
|
|
502
|
+
}, z.core.$strict>;
|
|
503
|
+
type MessageView = z.output<typeof messageViewSchema>;
|
|
504
|
+
declare const chatLastMessageSchema: z.ZodObject<{
|
|
505
|
+
id: z.ZodString;
|
|
506
|
+
orgUserId: z.ZodString;
|
|
507
|
+
body: z.ZodString;
|
|
508
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
509
|
+
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
510
|
+
}, z.core.$strict>;
|
|
511
|
+
type ChatLastMessage = z.output<typeof chatLastMessageSchema>;
|
|
512
|
+
declare const messageAttachmentSchema: z.ZodObject<{
|
|
513
|
+
orgId: z.ZodString;
|
|
514
|
+
communityId: z.ZodString;
|
|
515
|
+
messageId: z.ZodString;
|
|
516
|
+
assetId: z.ZodString;
|
|
517
|
+
seq: z.ZodNumber;
|
|
518
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
519
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
520
|
+
}, z.core.$strict>;
|
|
521
|
+
type MessageAttachment = z.output<typeof messageAttachmentSchema>;
|
|
522
|
+
declare const messageReactionSchema: z.ZodObject<{
|
|
523
|
+
orgId: z.ZodString;
|
|
524
|
+
communityId: z.ZodString;
|
|
525
|
+
messageId: z.ZodString;
|
|
526
|
+
orgUserId: z.ZodString;
|
|
527
|
+
emoji: z.ZodString;
|
|
528
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
529
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
530
|
+
}, z.core.$strict>;
|
|
531
|
+
type MessageReaction = z.output<typeof messageReactionSchema>;
|
|
532
|
+
declare const messageFlagResolutionSchema: z.ZodEnum<{
|
|
533
|
+
dismissed: "dismissed";
|
|
534
|
+
deleted: "deleted";
|
|
535
|
+
locked: "locked";
|
|
536
|
+
}>;
|
|
537
|
+
type MessageFlagResolution = z.infer<typeof messageFlagResolutionSchema>;
|
|
538
|
+
declare const messageFlagSchema: z.ZodObject<{
|
|
539
|
+
orgId: z.ZodString;
|
|
540
|
+
id: z.ZodString;
|
|
541
|
+
communityId: z.ZodString;
|
|
542
|
+
messageId: z.ZodString;
|
|
543
|
+
orgUserId: z.ZodString;
|
|
544
|
+
reason: z.ZodString;
|
|
545
|
+
resolvedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
546
|
+
resolution: z.ZodNullable<z.ZodEnum<{
|
|
547
|
+
dismissed: "dismissed";
|
|
548
|
+
deleted: "deleted";
|
|
549
|
+
locked: "locked";
|
|
550
|
+
}>>;
|
|
551
|
+
resolvedBy: z.ZodNullable<z.ZodString>;
|
|
552
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
553
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
554
|
+
}, z.core.$strict>;
|
|
555
|
+
type MessageFlag = z.output<typeof messageFlagSchema>;
|
|
556
|
+
declare const blockedUserSchema: z.ZodObject<{
|
|
557
|
+
orgId: z.ZodString;
|
|
558
|
+
communityId: z.ZodString;
|
|
559
|
+
blockerOrgUserId: z.ZodString;
|
|
560
|
+
blockedOrgUserId: z.ZodString;
|
|
561
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
562
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
563
|
+
}, z.core.$strict>;
|
|
564
|
+
type BlockedUser = z.output<typeof blockedUserSchema>;
|
|
190
565
|
//#endregion
|
|
191
|
-
export { Comment, CommentAuthor, CommentInput, CommentListItem, CommentReaction, CommentReport, CommentReportInput, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, ListCommentsQuery, ReactionCounts, ReactionEmoji, commentAuthorSchema, commentListItemSchema, commentReactionSchema, commentReportSchema, commentReportSummarySchema, commentSchema, commentSettingsSchema, commentStatusSchema, commentViewSchema, listCommentsQuerySchema, reactionCountsSchema, reactionEmojiSchema };
|
|
566
|
+
export { ActivityCommentsRule, BlockedUser, Chat, ChatKind, ChatLastMessage, ChatStatus, ChatUser, Comment, CommentAuthor, CommentFlagResolution, CommentInput, CommentListItem, CommentReaction, CommentReport, CommentReportInput, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, FlaggedComment, ListCommentsQuery, Message, MessageAttachment, MessageFile, MessageFlag, MessageFlagResolution, MessageReaction, MessageView, Post, PostBookmark, PostFlag, PostFlagResolution, PostFollow, PostReaction, PostStatus, PostView, ReactionCounts, ReactionEmoji, activityCommentsRuleSchema, blockedUserSchema, chatKindSchema, chatLastMessageSchema, chatSchema, chatStatusSchema, chatUserSchema, commentAuthorSchema, commentFlagResolutionSchema, commentListItemSchema, commentReactionSchema, commentReportSchema, commentReportSummarySchema, commentSchema, commentSettingsSchema, commentStatusSchema, commentViewSchema, flaggedCommentSchema, listCommentsQuerySchema, messageAttachmentSchema, messageFileSchema, messageFlagResolutionSchema, messageFlagSchema, messageReactionSchema, messageSchema, messageViewSchema, postBookmarkSchema, postFlagResolutionSchema, postFlagSchema, postFollowSchema, postReactionSchema, postSchema, postStatusSchema, postViewSchema, reactionCountsSchema, reactionEmojiSchema };
|
|
192
567
|
//# sourceMappingURL=discussion.d.ts.map
|