@headless-lms/core 0.7.0 → 0.8.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/file-urls.d.ts +5 -19
- package/dist/assets/file-urls.js +2 -23
- package/dist/assets/file-urls.js.map +1 -1
- package/dist/assets/index.d.ts +3 -3
- package/dist/assets/ports.d.ts +9 -10
- package/dist/assets/service.d.ts +10 -13
- package/dist/assets/service.js +41 -62
- package/dist/assets/service.js.map +1 -1
- package/dist/content/events.d.ts +13 -13
- package/dist/content/service.d.ts +4 -1
- package/dist/content/service.js +52 -29
- package/dist/content/service.js.map +1 -1
- package/dist/discussion/chats.d.ts +1 -2
- package/dist/discussion/chats.js +8 -17
- package/dist/discussion/chats.js.map +1 -1
- package/dist/discussion/ports.d.ts +0 -6
- package/dist/discussion/ports.js.map +1 -1
- package/dist/discussion/posts.d.ts +1 -4
- package/dist/discussion/posts.js +8 -21
- package/dist/discussion/posts.js.map +1 -1
- package/dist/entitlements/events.d.ts +33 -33
- package/dist/identity/events.d.ts +2 -2
- package/dist/integrations/events.d.ts +3 -3
- package/dist/organizations/events.d.ts +2 -2
- package/dist/reporting/member/ports.d.ts +1 -10
- package/dist/reporting/member/service.d.ts +2 -11
- package/dist/reporting/member/service.js +12 -62
- package/dist/reporting/member/service.js.map +1 -1
- package/dist/types/ports.d.ts +4 -2
- package/dist/types/ports.js.map +1 -1
- package/dist/types/schemas/content.d.ts +4 -4
- package/dist/types/schemas/discussion.d.ts +14 -14
- package/dist/types/schemas/entitlements.d.ts +8 -8
- package/dist/types/schemas/notifications.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1017,8 +1017,8 @@ declare const eventLeadSchema: z.ZodEnum<{
|
|
|
1017
1017
|
}>;
|
|
1018
1018
|
type EventLead = z.infer<typeof eventLeadSchema>;
|
|
1019
1019
|
declare const eventAttendeeSourceSchema: z.ZodEnum<{
|
|
1020
|
-
self: "self";
|
|
1021
1020
|
manual: "manual";
|
|
1021
|
+
self: "self";
|
|
1022
1022
|
automation: "automation";
|
|
1023
1023
|
bundle: "bundle";
|
|
1024
1024
|
}>;
|
|
@@ -1028,8 +1028,8 @@ declare const eventAttendeeSchema: z.ZodObject<{
|
|
|
1028
1028
|
name: z.ZodString;
|
|
1029
1029
|
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
1030
1030
|
source: z.ZodEnum<{
|
|
1031
|
-
self: "self";
|
|
1032
1031
|
manual: "manual";
|
|
1032
|
+
self: "self";
|
|
1033
1033
|
automation: "automation";
|
|
1034
1034
|
bundle: "bundle";
|
|
1035
1035
|
}>;
|
|
@@ -1066,7 +1066,6 @@ declare const memberEventSchema: z.ZodObject<{
|
|
|
1066
1066
|
title: z.ZodString;
|
|
1067
1067
|
description: z.ZodString;
|
|
1068
1068
|
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
1069
|
-
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
1070
1069
|
timeZone: z.ZodString;
|
|
1071
1070
|
startsAt: z.ZodCoercedDate<unknown>;
|
|
1072
1071
|
endsAt: z.ZodCoercedDate<unknown>;
|
|
@@ -1074,6 +1073,7 @@ declare const memberEventSchema: z.ZodObject<{
|
|
|
1074
1073
|
url: z.ZodURL;
|
|
1075
1074
|
details: z.ZodNullable<z.ZodString>;
|
|
1076
1075
|
}, z.core.$strict>>;
|
|
1076
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
1077
1077
|
location: z.ZodNullable<z.ZodObject<{
|
|
1078
1078
|
venue: z.ZodNullable<z.ZodObject<{
|
|
1079
1079
|
name: z.ZodString;
|
|
@@ -1152,7 +1152,6 @@ declare const memberEventSummarySchema: z.ZodObject<{
|
|
|
1152
1152
|
replay: z.ZodBoolean;
|
|
1153
1153
|
}, z.core.$strict>;
|
|
1154
1154
|
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
1155
|
-
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
1156
1155
|
timeZone: z.ZodString;
|
|
1157
1156
|
location: z.ZodNullable<z.ZodObject<{
|
|
1158
1157
|
venue: z.ZodNullable<z.ZodObject<{
|
|
@@ -1177,6 +1176,7 @@ declare const memberEventSummarySchema: z.ZodObject<{
|
|
|
1177
1176
|
url: z.ZodURL;
|
|
1178
1177
|
details: z.ZodNullable<z.ZodString>;
|
|
1179
1178
|
}, z.core.$strict>>;
|
|
1179
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
1180
1180
|
attendeeCount: z.ZodNumber;
|
|
1181
1181
|
attendees: z.ZodArray<z.ZodObject<{
|
|
1182
1182
|
name: z.ZodString;
|
|
@@ -238,9 +238,9 @@ declare const listCommentsQuerySchema: z.ZodObject<{
|
|
|
238
238
|
}, z.core.$strict>;
|
|
239
239
|
type ListCommentsQuery = z.infer<typeof listCommentsQuerySchema>;
|
|
240
240
|
declare const subscriptionItemTypeSchema: z.ZodEnum<{
|
|
241
|
-
post: "post";
|
|
242
241
|
space: "space";
|
|
243
242
|
chat: "chat";
|
|
243
|
+
post: "post";
|
|
244
244
|
}>;
|
|
245
245
|
type SubscriptionItemType = z.infer<typeof subscriptionItemTypeSchema>;
|
|
246
246
|
declare const subscriptionStateSchema: z.ZodEnum<{
|
|
@@ -252,9 +252,9 @@ declare const subscriptionSchema: z.ZodObject<{
|
|
|
252
252
|
orgId: z.ZodString;
|
|
253
253
|
orgUserId: z.ZodString;
|
|
254
254
|
itemType: z.ZodEnum<{
|
|
255
|
-
post: "post";
|
|
256
255
|
space: "space";
|
|
257
256
|
chat: "chat";
|
|
257
|
+
post: "post";
|
|
258
258
|
}>;
|
|
259
259
|
itemId: z.ZodString;
|
|
260
260
|
state: z.ZodEnum<{
|
|
@@ -601,15 +601,15 @@ declare const liveMessageSchema: z.ZodObject<{
|
|
|
601
601
|
communityId: z.ZodString;
|
|
602
602
|
orgUserId: z.ZodString;
|
|
603
603
|
body: z.ZodString;
|
|
604
|
-
mentions: z.ZodArray<z.ZodObject<{
|
|
605
|
-
orgUserId: z.ZodString;
|
|
606
|
-
name: z.ZodString;
|
|
607
|
-
}, z.core.$strict>>;
|
|
608
604
|
chatId: z.ZodString;
|
|
609
605
|
replyToId: z.ZodNullable<z.ZodString>;
|
|
610
606
|
clientId: z.ZodNullable<z.ZodUUID>;
|
|
611
607
|
editedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
612
608
|
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
609
|
+
mentions: z.ZodArray<z.ZodObject<{
|
|
610
|
+
orgUserId: z.ZodString;
|
|
611
|
+
name: z.ZodString;
|
|
612
|
+
}, z.core.$strict>>;
|
|
613
613
|
sender: z.ZodObject<{
|
|
614
614
|
id: z.ZodString;
|
|
615
615
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -715,15 +715,15 @@ declare const chatLiveEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
715
715
|
communityId: z.ZodString;
|
|
716
716
|
orgUserId: z.ZodString;
|
|
717
717
|
body: z.ZodString;
|
|
718
|
-
mentions: z.ZodArray<z.ZodObject<{
|
|
719
|
-
orgUserId: z.ZodString;
|
|
720
|
-
name: z.ZodString;
|
|
721
|
-
}, z.core.$strict>>;
|
|
722
718
|
chatId: z.ZodString;
|
|
723
719
|
replyToId: z.ZodNullable<z.ZodString>;
|
|
724
720
|
clientId: z.ZodNullable<z.ZodUUID>;
|
|
725
721
|
editedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
726
722
|
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
723
|
+
mentions: z.ZodArray<z.ZodObject<{
|
|
724
|
+
orgUserId: z.ZodString;
|
|
725
|
+
name: z.ZodString;
|
|
726
|
+
}, z.core.$strict>>;
|
|
727
727
|
sender: z.ZodObject<{
|
|
728
728
|
id: z.ZodString;
|
|
729
729
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -753,15 +753,15 @@ declare const chatLiveEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
753
753
|
communityId: z.ZodString;
|
|
754
754
|
orgUserId: z.ZodString;
|
|
755
755
|
body: z.ZodString;
|
|
756
|
-
mentions: z.ZodArray<z.ZodObject<{
|
|
757
|
-
orgUserId: z.ZodString;
|
|
758
|
-
name: z.ZodString;
|
|
759
|
-
}, z.core.$strict>>;
|
|
760
756
|
chatId: z.ZodString;
|
|
761
757
|
replyToId: z.ZodNullable<z.ZodString>;
|
|
762
758
|
clientId: z.ZodNullable<z.ZodUUID>;
|
|
763
759
|
editedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
764
760
|
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
761
|
+
mentions: z.ZodArray<z.ZodObject<{
|
|
762
|
+
orgUserId: z.ZodString;
|
|
763
|
+
name: z.ZodString;
|
|
764
|
+
}, z.core.$strict>>;
|
|
765
765
|
sender: z.ZodObject<{
|
|
766
766
|
id: z.ZodString;
|
|
767
767
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/types/schemas/entitlements.d.ts
|
|
3
3
|
declare const entitlementStatusSchema: z.ZodEnum<{
|
|
4
|
-
revoked: "revoked";
|
|
5
4
|
active: "active";
|
|
5
|
+
revoked: "revoked";
|
|
6
6
|
}>;
|
|
7
7
|
type EntitlementStatus = z.infer<typeof entitlementStatusSchema>;
|
|
8
8
|
declare const entitlementSchema: z.ZodObject<{
|
|
@@ -12,8 +12,8 @@ declare const entitlementSchema: z.ZodObject<{
|
|
|
12
12
|
bundleId: z.ZodNullable<z.ZodString>;
|
|
13
13
|
contentId: z.ZodNullable<z.ZodString>;
|
|
14
14
|
status: z.ZodEnum<{
|
|
15
|
-
revoked: "revoked";
|
|
16
15
|
active: "active";
|
|
16
|
+
revoked: "revoked";
|
|
17
17
|
}>;
|
|
18
18
|
source: z.ZodString;
|
|
19
19
|
grantedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -29,8 +29,8 @@ declare const entitlementsQuerySchema: z.ZodObject<{
|
|
|
29
29
|
search: z.ZodOptional<z.ZodString>;
|
|
30
30
|
sort: z.ZodOptional<z.ZodString>;
|
|
31
31
|
status: z.ZodOptional<z.ZodEnum<{
|
|
32
|
-
revoked: "revoked";
|
|
33
32
|
active: "active";
|
|
33
|
+
revoked: "revoked";
|
|
34
34
|
expired: "expired";
|
|
35
35
|
}>>;
|
|
36
36
|
source: z.ZodOptional<z.ZodString>;
|
|
@@ -59,22 +59,22 @@ declare const grantEntitlementInputSchema: z.ZodObject<{
|
|
|
59
59
|
}, z.core.$strict>;
|
|
60
60
|
type GrantEntitlementInput = z.output<typeof grantEntitlementInputSchema>;
|
|
61
61
|
declare const grantSourceSchema: z.ZodEnum<{
|
|
62
|
-
self: "self";
|
|
63
62
|
manual: "manual";
|
|
63
|
+
self: "self";
|
|
64
64
|
automation: "automation";
|
|
65
65
|
}>;
|
|
66
66
|
type GrantSource = z.infer<typeof grantSourceSchema>;
|
|
67
67
|
declare const spaceMemberStatusSchema: z.ZodEnum<{
|
|
68
|
-
revoked: "revoked";
|
|
69
68
|
active: "active";
|
|
69
|
+
revoked: "revoked";
|
|
70
70
|
requested: "requested";
|
|
71
71
|
invited: "invited";
|
|
72
72
|
}>;
|
|
73
73
|
type SpaceMemberStatus = z.infer<typeof spaceMemberStatusSchema>;
|
|
74
74
|
declare const spaceMemberSourceSchema: z.ZodEnum<{
|
|
75
|
-
manual: "manual";
|
|
76
75
|
request: "request";
|
|
77
76
|
invite: "invite";
|
|
77
|
+
manual: "manual";
|
|
78
78
|
}>;
|
|
79
79
|
type SpaceMemberSource = z.infer<typeof spaceMemberSourceSchema>;
|
|
80
80
|
declare const spaceMemberSchema: z.ZodObject<{
|
|
@@ -84,15 +84,15 @@ declare const spaceMemberSchema: z.ZodObject<{
|
|
|
84
84
|
spaceId: z.ZodString;
|
|
85
85
|
orgUserId: z.ZodString;
|
|
86
86
|
status: z.ZodEnum<{
|
|
87
|
-
revoked: "revoked";
|
|
88
87
|
active: "active";
|
|
88
|
+
revoked: "revoked";
|
|
89
89
|
requested: "requested";
|
|
90
90
|
invited: "invited";
|
|
91
91
|
}>;
|
|
92
92
|
source: z.ZodEnum<{
|
|
93
|
-
manual: "manual";
|
|
94
93
|
request: "request";
|
|
95
94
|
invite: "invite";
|
|
95
|
+
manual: "manual";
|
|
96
96
|
}>;
|
|
97
97
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
98
98
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -17,9 +17,9 @@ declare const reasonSchema: z.ZodEnum<{
|
|
|
17
17
|
}>;
|
|
18
18
|
declare const notificationScopeSchema: z.ZodEnum<{
|
|
19
19
|
community: "community";
|
|
20
|
+
org: "org";
|
|
20
21
|
space: "space";
|
|
21
22
|
chat: "chat";
|
|
22
|
-
org: "org";
|
|
23
23
|
}>;
|
|
24
24
|
declare const subjectTypeSchema: z.ZodEnum<{
|
|
25
25
|
message: "message";
|
|
@@ -28,10 +28,10 @@ declare const subjectTypeSchema: z.ZodEnum<{
|
|
|
28
28
|
download: "download";
|
|
29
29
|
community: "community";
|
|
30
30
|
bundle: "bundle";
|
|
31
|
-
post: "post";
|
|
32
|
-
comment: "comment";
|
|
33
31
|
space: "space";
|
|
34
32
|
chat: "chat";
|
|
33
|
+
post: "post";
|
|
34
|
+
comment: "comment";
|
|
35
35
|
activity: "activity";
|
|
36
36
|
}>;
|
|
37
37
|
declare const notificationCategoryKeySchema: z.ZodString;
|