@headless-lms/core 0.2.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 +39 -21
- package/dist/assets/events.js +1 -1
- 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 +291 -38
- package/dist/assets/service.js.map +1 -1
- package/dist/automations/actions.d.ts +13 -24
- package/dist/automations/actions.js +168 -43
- package/dist/automations/actions.js.map +1 -1
- package/dist/automations/catalog.d.ts +2 -1
- package/dist/automations/catalog.js +229 -13
- 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 +28 -0
- package/dist/automations/index.d.ts +4 -2
- package/dist/automations/index.js +3 -2
- package/dist/automations/model.d.ts +10 -3
- package/dist/automations/model.js +15 -2
- package/dist/automations/model.js.map +1 -1
- package/dist/automations/ports.d.ts +5 -1
- 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 +22 -3
- package/dist/automations/service.js +306 -43
- package/dist/automations/service.js.map +1 -1
- package/dist/content/events.d.ts +631 -19
- package/dist/content/events.js +44 -1
- package/dist/content/events.js.map +1 -1
- package/dist/content/index.d.ts +4 -4
- package/dist/content/model.d.ts +2 -2
- package/dist/content/ports.d.ts +71 -18
- package/dist/content/service.d.ts +57 -18
- package/dist/content/service.js +502 -23
- 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 +619 -56
- package/dist/discussion/events.js +106 -3
- 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/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 +32 -10
- package/dist/discussion/service.js +293 -78
- package/dist/discussion/service.js.map +1 -1
- package/dist/entitlements/events.d.ts +178 -11
- package/dist/entitlements/events.js +28 -1
- 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 +472 -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/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 +73 -3
- package/dist/identity/service.d.ts +14 -3
- package/dist/identity/service.js +62 -5
- package/dist/identity/service.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 +74 -32
- package/dist/organizations/events.js +6 -0
- package/dist/organizations/events.js.map +1 -1
- package/dist/organizations/index.d.ts +7 -6
- 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 +14 -11
- 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 +20 -11
- package/dist/organizations/service.js +157 -47
- package/dist/organizations/service.js.map +1 -1
- package/dist/organizations/types.d.ts +1 -10
- package/dist/progress/index.d.ts +2 -2
- package/dist/progress/ports.d.ts +6 -1
- package/dist/progress/service.d.ts +3 -1
- package/dist/progress/service.js +6 -2
- 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/id.d.ts +11 -0
- package/dist/shared/id.js +12 -1
- package/dist/shared/id.js.map +1 -1
- package/dist/shared/mailer.d.ts +4 -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/types/assets.d.ts +2 -2
- package/dist/types/automations.d.ts +10 -2
- package/dist/types/content.d.ts +2 -2
- package/dist/types/discussion.d.ts +11 -3
- package/dist/types/email-templates.d.ts +121 -0
- package/dist/types/entitlements.d.ts +2 -2
- package/dist/types/identity.d.ts +48 -2
- package/dist/types/index.d.ts +9 -9
- package/dist/types/ports.d.ts +6 -0
- package/dist/types/schemas/assets.d.ts +65 -37
- package/dist/types/schemas/assets.js +17 -12
- package/dist/types/schemas/assets.js.map +1 -1
- package/dist/types/schemas/automations.d.ts +18 -1
- package/dist/types/schemas/automations.js +15 -6
- package/dist/types/schemas/automations.js.map +1 -1
- package/dist/types/schemas/content.d.ts +335 -3
- package/dist/types/schemas/content.js +139 -3
- package/dist/types/schemas/content.js.map +1 -1
- package/dist/types/schemas/discussion.d.ts +370 -3
- package/dist/types/schemas/discussion.js +199 -4
- package/dist/types/schemas/discussion.js.map +1 -1
- package/dist/types/schemas/entitlements.d.ts +36 -2
- package/dist/types/schemas/entitlements.js +23 -1
- package/dist/types/schemas/entitlements.js.map +1 -1
- package/dist/types/schemas/identity.d.ts +111 -1
- package/dist/types/schemas/identity.js +55 -2
- package/dist/types/schemas/identity.js.map +1 -1
- package/dist/types/schemas/index.d.ts +8 -8
- package/dist/types/schemas/index.js +8 -8
- package/dist/types/schemas/organizations.d.ts +8 -0
- package/dist/types/schemas/organizations.js +2 -0
- package/dist/types/schemas/organizations.js.map +1 -1
- package/dist/types/schemas/shared.d.ts +3 -1
- package/dist/types/schemas/shared.js +5 -1
- package/dist/types/schemas/shared.js.map +1 -1
- package/package.json +2 -2
- package/dist/reporting/courses/index.d.ts +0 -4
- package/dist/reporting/courses/index.js +0 -2
- package/dist/reporting/courses/model.d.ts +0 -24
- package/dist/reporting/courses/ports.d.ts +0 -13
- package/dist/reporting/courses/service.d.ts +0 -19
- package/dist/reporting/courses/service.js +0 -20
- package/dist/reporting/courses/service.js.map +0 -1
- 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 -43
- package/dist/reporting/learn/ports.js +0 -1
- package/dist/reporting/learn/service.d.ts +0 -49
- package/dist/reporting/learn/service.js +0 -116
- 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 -51
- package/dist/reporting/students/model.js +0 -1
- package/dist/reporting/students/ports.d.ts +0 -15
- package/dist/reporting/students/ports.js +0 -1
- package/dist/reporting/students/service.d.ts +0 -20
- package/dist/reporting/students/service.js +0 -23
- package/dist/reporting/students/service.js.map +0 -1
- /package/dist/reporting/{courses → admin}/model.js +0 -0
- /package/dist/reporting/{courses → admin}/ports.js +0 -0
- /package/dist/reporting/{dashboard → member}/model.js +0 -0
- /package/dist/reporting/{dashboard → member}/ports.js +0 -0
- /package/dist/{reporting/learn/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<{
|
|
@@ -27,7 +28,9 @@ type ActivityCommentsRule = z.infer<typeof activityCommentsRuleSchema>;
|
|
|
27
28
|
declare const commentSchema: z.ZodObject<{
|
|
28
29
|
id: z.ZodString;
|
|
29
30
|
orgId: z.ZodString;
|
|
30
|
-
activityId: z.ZodString
|
|
31
|
+
activityId: z.ZodNullable<z.ZodString>;
|
|
32
|
+
postId: z.ZodNullable<z.ZodString>;
|
|
33
|
+
communityId: z.ZodNullable<z.ZodString>;
|
|
31
34
|
parentId: z.ZodNullable<z.ZodString>;
|
|
32
35
|
orgUserId: z.ZodString;
|
|
33
36
|
body: z.ZodString;
|
|
@@ -46,11 +49,16 @@ declare const commentAuthorSchema: z.ZodObject<{
|
|
|
46
49
|
id: z.ZodString;
|
|
47
50
|
firstName: z.ZodNullable<z.ZodString>;
|
|
48
51
|
lastName: z.ZodNullable<z.ZodString>;
|
|
52
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
53
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
49
54
|
image: z.ZodNullable<z.ZodString>;
|
|
55
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
56
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
50
57
|
role: z.ZodEnum<{
|
|
51
58
|
owner: "owner";
|
|
52
59
|
admin: "admin";
|
|
53
60
|
instructor: "instructor";
|
|
61
|
+
moderator: "moderator";
|
|
54
62
|
student: "student";
|
|
55
63
|
}>;
|
|
56
64
|
}, z.core.$strict>;
|
|
@@ -64,6 +72,11 @@ declare const commentReactionSchema: z.ZodObject<{
|
|
|
64
72
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
65
73
|
}, z.core.$strict>;
|
|
66
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>;
|
|
67
80
|
declare const commentReportSchema: z.ZodObject<{
|
|
68
81
|
id: z.ZodString;
|
|
69
82
|
orgId: z.ZodString;
|
|
@@ -71,6 +84,11 @@ declare const commentReportSchema: z.ZodObject<{
|
|
|
71
84
|
orgUserId: z.ZodString;
|
|
72
85
|
reason: z.ZodString;
|
|
73
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>;
|
|
74
92
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
75
93
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
76
94
|
}, z.core.$strict>;
|
|
@@ -78,17 +96,24 @@ type CommentReport = z.output<typeof commentReportSchema>;
|
|
|
78
96
|
type CommentReportInput = z.input<typeof commentReportSchema>;
|
|
79
97
|
declare const commentViewSchema: z.ZodObject<{
|
|
80
98
|
id: z.ZodString;
|
|
81
|
-
activityId: z.ZodString
|
|
99
|
+
activityId: z.ZodNullable<z.ZodString>;
|
|
100
|
+
postId: z.ZodNullable<z.ZodString>;
|
|
101
|
+
communityId: z.ZodNullable<z.ZodString>;
|
|
82
102
|
parentId: z.ZodNullable<z.ZodString>;
|
|
83
103
|
author: z.ZodObject<{
|
|
84
104
|
id: z.ZodString;
|
|
85
105
|
firstName: z.ZodNullable<z.ZodString>;
|
|
86
106
|
lastName: z.ZodNullable<z.ZodString>;
|
|
107
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
108
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
87
109
|
image: z.ZodNullable<z.ZodString>;
|
|
110
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
111
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
88
112
|
role: z.ZodEnum<{
|
|
89
113
|
owner: "owner";
|
|
90
114
|
admin: "admin";
|
|
91
115
|
instructor: "instructor";
|
|
116
|
+
moderator: "moderator";
|
|
92
117
|
student: "student";
|
|
93
118
|
}>;
|
|
94
119
|
}, z.core.$strict>;
|
|
@@ -102,11 +127,16 @@ declare const commentViewSchema: z.ZodObject<{
|
|
|
102
127
|
id: z.ZodString;
|
|
103
128
|
firstName: z.ZodNullable<z.ZodString>;
|
|
104
129
|
lastName: z.ZodNullable<z.ZodString>;
|
|
130
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
131
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
105
132
|
image: z.ZodNullable<z.ZodString>;
|
|
133
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
134
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
106
135
|
role: z.ZodEnum<{
|
|
107
136
|
owner: "owner";
|
|
108
137
|
admin: "admin";
|
|
109
138
|
instructor: "instructor";
|
|
139
|
+
moderator: "moderator";
|
|
110
140
|
student: "student";
|
|
111
141
|
}>;
|
|
112
142
|
}, z.core.$strict>>;
|
|
@@ -121,11 +151,16 @@ declare const commentReportSummarySchema: z.ZodObject<{
|
|
|
121
151
|
id: z.ZodString;
|
|
122
152
|
firstName: z.ZodNullable<z.ZodString>;
|
|
123
153
|
lastName: z.ZodNullable<z.ZodString>;
|
|
154
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
155
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
124
156
|
image: z.ZodNullable<z.ZodString>;
|
|
157
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
158
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
125
159
|
role: z.ZodEnum<{
|
|
126
160
|
owner: "owner";
|
|
127
161
|
admin: "admin";
|
|
128
162
|
instructor: "instructor";
|
|
163
|
+
moderator: "moderator";
|
|
129
164
|
student: "student";
|
|
130
165
|
}>;
|
|
131
166
|
}, z.core.$strict>;
|
|
@@ -149,11 +184,16 @@ declare const commentListItemSchema: z.ZodObject<{
|
|
|
149
184
|
id: z.ZodString;
|
|
150
185
|
firstName: z.ZodNullable<z.ZodString>;
|
|
151
186
|
lastName: z.ZodNullable<z.ZodString>;
|
|
187
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
188
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
152
189
|
image: z.ZodNullable<z.ZodString>;
|
|
190
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
191
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
153
192
|
role: z.ZodEnum<{
|
|
154
193
|
owner: "owner";
|
|
155
194
|
admin: "admin";
|
|
156
195
|
instructor: "instructor";
|
|
196
|
+
moderator: "moderator";
|
|
157
197
|
student: "student";
|
|
158
198
|
}>;
|
|
159
199
|
}, z.core.$strict>;
|
|
@@ -164,11 +204,16 @@ declare const commentListItemSchema: z.ZodObject<{
|
|
|
164
204
|
id: z.ZodString;
|
|
165
205
|
firstName: z.ZodNullable<z.ZodString>;
|
|
166
206
|
lastName: z.ZodNullable<z.ZodString>;
|
|
207
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
208
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
167
209
|
image: z.ZodNullable<z.ZodString>;
|
|
210
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
211
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
168
212
|
role: z.ZodEnum<{
|
|
169
213
|
owner: "owner";
|
|
170
214
|
admin: "admin";
|
|
171
215
|
instructor: "instructor";
|
|
216
|
+
moderator: "moderator";
|
|
172
217
|
student: "student";
|
|
173
218
|
}>;
|
|
174
219
|
}, z.core.$strict>;
|
|
@@ -195,6 +240,328 @@ declare const listCommentsQuerySchema: z.ZodObject<{
|
|
|
195
240
|
orgUserId: z.ZodOptional<z.ZodString>;
|
|
196
241
|
}, z.core.$strict>;
|
|
197
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>;
|
|
198
565
|
//#endregion
|
|
199
|
-
export { ActivityCommentsRule, Comment, CommentAuthor, CommentInput, CommentListItem, CommentReaction, CommentReport, CommentReportInput, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, ListCommentsQuery, ReactionCounts, ReactionEmoji, activityCommentsRuleSchema, 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 };
|
|
200
567
|
//# sourceMappingURL=discussion.d.ts.map
|