@headless-lms/core 0.5.0 → 0.6.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 +18 -18
- package/dist/assets/file-urls.d.ts +3 -0
- package/dist/assets/file-urls.js +1 -0
- package/dist/assets/file-urls.js.map +1 -1
- package/dist/assets/index.js +1 -1
- package/dist/assets/ports.d.ts +1 -1
- package/dist/assets/service.d.ts +1 -1
- package/dist/assets/service.js +28 -23
- package/dist/assets/service.js.map +1 -1
- package/dist/automations/catalog.js +1 -1
- package/dist/automations/notifications/processor.js +2 -2
- package/dist/automations/notifications/service.js +1 -1
- package/dist/automations/service.js +1 -1
- package/dist/content/events.d.ts +84 -48
- package/dist/content/index.d.ts +2 -2
- package/dist/content/model.d.ts +2 -2
- package/dist/content/notification-categories.js +1 -1
- package/dist/content/ports.d.ts +11 -11
- package/dist/content/service.d.ts +16 -12
- package/dist/content/service.js +62 -16
- package/dist/content/service.js.map +1 -1
- package/dist/discussion/chats.js +2 -2
- package/dist/discussion/events.d.ts +8 -8
- package/dist/discussion/posts.d.ts +1 -1
- package/dist/discussion/posts.js +3 -3
- package/dist/discussion/posts.js.map +1 -1
- package/dist/discussion/service.js +2 -2
- package/dist/discussion/subscriptions.js +1 -1
- package/dist/entitlements/events.d.ts +48 -48
- package/dist/entitlements/service.js +1 -1
- package/dist/identity/devices.js +1 -1
- package/dist/identity/events.d.ts +2 -2
- package/dist/identity/notification-settings.js +1 -1
- package/dist/identity/service.d.ts +1 -1
- package/dist/identity/service.js +3 -3
- package/dist/identity/service.js.map +1 -1
- package/dist/integrations/service.js +2 -2
- package/dist/organizations/effective-permissions.d.ts +3 -1
- package/dist/organizations/effective-permissions.js +8 -3
- package/dist/organizations/effective-permissions.js.map +1 -1
- package/dist/organizations/events.d.ts +29 -23
- package/dist/organizations/index.d.ts +2 -2
- package/dist/organizations/model.d.ts +2 -2
- package/dist/organizations/notification-categories.js +1 -1
- package/dist/organizations/ports.d.ts +6 -3
- package/dist/organizations/service.d.ts +1 -1
- package/dist/organizations/service.js +17 -7
- package/dist/organizations/service.js.map +1 -1
- package/dist/organizations/testing.js +1 -1
- package/dist/organizations/testing.js.map +1 -1
- package/dist/progress/service.js +2 -2
- package/dist/reporting/member/model.d.ts +3 -0
- package/dist/reporting/member/ports.d.ts +2 -1
- package/dist/reporting/member/service.d.ts +2 -1
- package/dist/reporting/member/service.js +17 -1
- package/dist/reporting/member/service.js.map +1 -1
- package/dist/shared/actor.d.ts +1 -0
- package/dist/types/content.d.ts +2 -2
- package/dist/types/index.d.ts +3 -3
- package/dist/types/organizations.d.ts +2 -2
- package/dist/types/schemas/content.d.ts +68 -6
- package/dist/types/schemas/content.js +19 -2
- package/dist/types/schemas/content.js.map +1 -1
- package/dist/types/schemas/discussion.d.ts +14 -14
- package/dist/types/schemas/entitlements.d.ts +8 -8
- package/dist/types/schemas/index.d.ts +3 -3
- package/dist/types/schemas/index.js +3 -3
- package/dist/types/schemas/notifications.d.ts +4 -4
- package/dist/types/schemas/organizations.d.ts +4 -1
- package/dist/types/schemas/organizations.js +3 -1
- package/dist/types/schemas/organizations.js.map +1 -1
- package/package.json +1 -1
package/dist/content/events.d.ts
CHANGED
|
@@ -49,15 +49,15 @@ declare const contentEvents: {
|
|
|
49
49
|
}, z.ZodObject<{
|
|
50
50
|
orgId: z.ZodString;
|
|
51
51
|
id: z.ZodString;
|
|
52
|
-
description: z.ZodString;
|
|
53
|
-
type: z.ZodLiteral<"course">;
|
|
54
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
55
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
56
52
|
status: z.ZodEnum<{
|
|
57
53
|
draft: "draft";
|
|
58
54
|
published: "published";
|
|
59
55
|
}>;
|
|
56
|
+
type: z.ZodLiteral<"course">;
|
|
57
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
58
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
60
59
|
title: z.ZodString;
|
|
60
|
+
description: z.ZodString;
|
|
61
61
|
settings: z.ZodObject<{
|
|
62
62
|
transcriptDownloads: z.ZodBoolean;
|
|
63
63
|
comments: z.ZodOptional<z.ZodObject<{
|
|
@@ -116,15 +116,15 @@ declare const contentEvents: {
|
|
|
116
116
|
}, z.ZodObject<{
|
|
117
117
|
orgId: z.ZodString;
|
|
118
118
|
id: z.ZodString;
|
|
119
|
-
description: z.ZodString;
|
|
120
|
-
type: z.ZodLiteral<"course">;
|
|
121
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
122
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
123
119
|
status: z.ZodEnum<{
|
|
124
120
|
draft: "draft";
|
|
125
121
|
published: "published";
|
|
126
122
|
}>;
|
|
123
|
+
type: z.ZodLiteral<"course">;
|
|
124
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
125
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
127
126
|
title: z.ZodString;
|
|
127
|
+
description: z.ZodString;
|
|
128
128
|
settings: z.ZodObject<{
|
|
129
129
|
transcriptDownloads: z.ZodBoolean;
|
|
130
130
|
comments: z.ZodOptional<z.ZodObject<{
|
|
@@ -183,15 +183,15 @@ declare const contentEvents: {
|
|
|
183
183
|
}, z.ZodObject<{
|
|
184
184
|
orgId: z.ZodString;
|
|
185
185
|
id: z.ZodString;
|
|
186
|
-
description: z.ZodString;
|
|
187
|
-
type: z.ZodLiteral<"course">;
|
|
188
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
189
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
190
186
|
status: z.ZodEnum<{
|
|
191
187
|
draft: "draft";
|
|
192
188
|
published: "published";
|
|
193
189
|
}>;
|
|
190
|
+
type: z.ZodLiteral<"course">;
|
|
191
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
192
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
194
193
|
title: z.ZodString;
|
|
194
|
+
description: z.ZodString;
|
|
195
195
|
settings: z.ZodObject<{
|
|
196
196
|
transcriptDownloads: z.ZodBoolean;
|
|
197
197
|
comments: z.ZodOptional<z.ZodObject<{
|
|
@@ -451,15 +451,15 @@ declare const contentEvents: {
|
|
|
451
451
|
}, z.ZodObject<{
|
|
452
452
|
orgId: z.ZodString;
|
|
453
453
|
id: z.ZodString;
|
|
454
|
-
description: z.ZodString;
|
|
455
|
-
type: z.ZodLiteral<"download">;
|
|
456
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
457
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
458
454
|
status: z.ZodEnum<{
|
|
459
455
|
draft: "draft";
|
|
460
456
|
published: "published";
|
|
461
457
|
}>;
|
|
458
|
+
type: z.ZodLiteral<"download">;
|
|
459
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
460
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
462
461
|
title: z.ZodString;
|
|
462
|
+
description: z.ZodString;
|
|
463
463
|
slug: z.ZodString;
|
|
464
464
|
category: z.ZodString;
|
|
465
465
|
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
@@ -491,15 +491,15 @@ declare const contentEvents: {
|
|
|
491
491
|
}, z.ZodObject<{
|
|
492
492
|
orgId: z.ZodString;
|
|
493
493
|
id: z.ZodString;
|
|
494
|
-
description: z.ZodString;
|
|
495
|
-
type: z.ZodLiteral<"download">;
|
|
496
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
497
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
498
494
|
status: z.ZodEnum<{
|
|
499
495
|
draft: "draft";
|
|
500
496
|
published: "published";
|
|
501
497
|
}>;
|
|
498
|
+
type: z.ZodLiteral<"download">;
|
|
499
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
500
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
502
501
|
title: z.ZodString;
|
|
502
|
+
description: z.ZodString;
|
|
503
503
|
slug: z.ZodString;
|
|
504
504
|
category: z.ZodString;
|
|
505
505
|
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
@@ -531,15 +531,15 @@ declare const contentEvents: {
|
|
|
531
531
|
}, z.ZodObject<{
|
|
532
532
|
orgId: z.ZodString;
|
|
533
533
|
id: z.ZodString;
|
|
534
|
-
description: z.ZodString;
|
|
535
|
-
type: z.ZodLiteral<"download">;
|
|
536
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
537
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
538
534
|
status: z.ZodEnum<{
|
|
539
535
|
draft: "draft";
|
|
540
536
|
published: "published";
|
|
541
537
|
}>;
|
|
538
|
+
type: z.ZodLiteral<"download">;
|
|
539
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
540
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
542
541
|
title: z.ZodString;
|
|
542
|
+
description: z.ZodString;
|
|
543
543
|
slug: z.ZodString;
|
|
544
544
|
category: z.ZodString;
|
|
545
545
|
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
@@ -828,15 +828,15 @@ declare const contentEvents: {
|
|
|
828
828
|
}, z.ZodObject<{
|
|
829
829
|
orgId: z.ZodString;
|
|
830
830
|
id: z.ZodString;
|
|
831
|
-
description: z.ZodString;
|
|
832
|
-
type: z.ZodLiteral<"community">;
|
|
833
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
834
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
835
831
|
status: z.ZodEnum<{
|
|
836
832
|
draft: "draft";
|
|
837
833
|
published: "published";
|
|
838
834
|
}>;
|
|
835
|
+
type: z.ZodLiteral<"community">;
|
|
836
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
837
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
839
838
|
title: z.ZodString;
|
|
839
|
+
description: z.ZodString;
|
|
840
840
|
slug: z.ZodString;
|
|
841
841
|
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
842
842
|
}, z.core.$strip>>;
|
|
@@ -899,15 +899,15 @@ declare const contentEvents: {
|
|
|
899
899
|
}, z.ZodObject<{
|
|
900
900
|
orgId: z.ZodString;
|
|
901
901
|
id: z.ZodString;
|
|
902
|
-
description: z.ZodString;
|
|
903
|
-
type: z.ZodLiteral<"community">;
|
|
904
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
905
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
906
902
|
status: z.ZodEnum<{
|
|
907
903
|
draft: "draft";
|
|
908
904
|
published: "published";
|
|
909
905
|
}>;
|
|
906
|
+
type: z.ZodLiteral<"community">;
|
|
907
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
908
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
910
909
|
title: z.ZodString;
|
|
910
|
+
description: z.ZodString;
|
|
911
911
|
slug: z.ZodString;
|
|
912
912
|
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
913
913
|
}, z.core.$strip>>;
|
|
@@ -970,15 +970,15 @@ declare const contentEvents: {
|
|
|
970
970
|
}, z.ZodObject<{
|
|
971
971
|
orgId: z.ZodString;
|
|
972
972
|
id: z.ZodString;
|
|
973
|
-
description: z.ZodString;
|
|
974
|
-
type: z.ZodLiteral<"community">;
|
|
975
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
976
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
977
973
|
status: z.ZodEnum<{
|
|
978
974
|
draft: "draft";
|
|
979
975
|
published: "published";
|
|
980
976
|
}>;
|
|
977
|
+
type: z.ZodLiteral<"community">;
|
|
978
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
979
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
981
980
|
title: z.ZodString;
|
|
981
|
+
description: z.ZodString;
|
|
982
982
|
slug: z.ZodString;
|
|
983
983
|
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
984
984
|
}, z.core.$strip>>;
|
|
@@ -1065,16 +1065,16 @@ declare const contentEvents: {
|
|
|
1065
1065
|
}, z.ZodObject<{
|
|
1066
1066
|
orgId: z.ZodString;
|
|
1067
1067
|
id: z.ZodString;
|
|
1068
|
-
description: z.ZodString;
|
|
1069
|
-
type: z.ZodLiteral<"event">;
|
|
1070
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
1071
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1072
1068
|
status: z.ZodEnum<{
|
|
1073
1069
|
draft: "draft";
|
|
1074
1070
|
published: "published";
|
|
1075
1071
|
canceled: "canceled";
|
|
1076
1072
|
}>;
|
|
1073
|
+
type: z.ZodLiteral<"event">;
|
|
1074
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
1075
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1077
1076
|
title: z.ZodString;
|
|
1077
|
+
description: z.ZodString;
|
|
1078
1078
|
settings: z.ZodObject<{
|
|
1079
1079
|
type: z.ZodEnum<{
|
|
1080
1080
|
public: "public";
|
|
@@ -1172,16 +1172,16 @@ declare const contentEvents: {
|
|
|
1172
1172
|
}, z.ZodObject<{
|
|
1173
1173
|
orgId: z.ZodString;
|
|
1174
1174
|
id: z.ZodString;
|
|
1175
|
-
description: z.ZodString;
|
|
1176
|
-
type: z.ZodLiteral<"event">;
|
|
1177
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
1178
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1179
1175
|
status: z.ZodEnum<{
|
|
1180
1176
|
draft: "draft";
|
|
1181
1177
|
published: "published";
|
|
1182
1178
|
canceled: "canceled";
|
|
1183
1179
|
}>;
|
|
1180
|
+
type: z.ZodLiteral<"event">;
|
|
1181
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
1182
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1184
1183
|
title: z.ZodString;
|
|
1184
|
+
description: z.ZodString;
|
|
1185
1185
|
settings: z.ZodObject<{
|
|
1186
1186
|
type: z.ZodEnum<{
|
|
1187
1187
|
public: "public";
|
|
@@ -1279,16 +1279,16 @@ declare const contentEvents: {
|
|
|
1279
1279
|
}, z.ZodObject<{
|
|
1280
1280
|
orgId: z.ZodString;
|
|
1281
1281
|
id: z.ZodString;
|
|
1282
|
-
description: z.ZodString;
|
|
1283
|
-
type: z.ZodLiteral<"event">;
|
|
1284
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
1285
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1286
1282
|
status: z.ZodEnum<{
|
|
1287
1283
|
draft: "draft";
|
|
1288
1284
|
published: "published";
|
|
1289
1285
|
canceled: "canceled";
|
|
1290
1286
|
}>;
|
|
1287
|
+
type: z.ZodLiteral<"event">;
|
|
1288
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
1289
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1291
1290
|
title: z.ZodString;
|
|
1291
|
+
description: z.ZodString;
|
|
1292
1292
|
settings: z.ZodObject<{
|
|
1293
1293
|
type: z.ZodEnum<{
|
|
1294
1294
|
public: "public";
|
|
@@ -1333,6 +1333,9 @@ declare const contentEvents: {
|
|
|
1333
1333
|
reactions: boolean;
|
|
1334
1334
|
requireReview: boolean;
|
|
1335
1335
|
};
|
|
1336
|
+
coverAssetId: string | null;
|
|
1337
|
+
backgroundAssetId: string | null;
|
|
1338
|
+
iconAssetId: string | null;
|
|
1336
1339
|
createdAt: Date;
|
|
1337
1340
|
updatedAt: Date;
|
|
1338
1341
|
topics: {
|
|
@@ -1367,6 +1370,9 @@ declare const contentEvents: {
|
|
|
1367
1370
|
reactions: boolean;
|
|
1368
1371
|
requireReview: boolean;
|
|
1369
1372
|
};
|
|
1373
|
+
coverAssetId: string | null;
|
|
1374
|
+
backgroundAssetId: string | null;
|
|
1375
|
+
iconAssetId: string | null;
|
|
1370
1376
|
createdAt: unknown;
|
|
1371
1377
|
updatedAt: unknown;
|
|
1372
1378
|
topics: {
|
|
@@ -1405,6 +1411,9 @@ declare const contentEvents: {
|
|
|
1405
1411
|
reactions: z.ZodBoolean;
|
|
1406
1412
|
requireReview: z.ZodBoolean;
|
|
1407
1413
|
}, z.core.$strict>;
|
|
1414
|
+
coverAssetId: z.ZodNullable<z.ZodString>;
|
|
1415
|
+
backgroundAssetId: z.ZodNullable<z.ZodString>;
|
|
1416
|
+
iconAssetId: z.ZodNullable<z.ZodString>;
|
|
1408
1417
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
1409
1418
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1410
1419
|
topics: z.ZodArray<z.ZodObject<{
|
|
@@ -1440,6 +1449,9 @@ declare const contentEvents: {
|
|
|
1440
1449
|
reactions: boolean;
|
|
1441
1450
|
requireReview: boolean;
|
|
1442
1451
|
};
|
|
1452
|
+
coverAssetId: string | null;
|
|
1453
|
+
backgroundAssetId: string | null;
|
|
1454
|
+
iconAssetId: string | null;
|
|
1443
1455
|
createdAt: Date;
|
|
1444
1456
|
updatedAt: Date;
|
|
1445
1457
|
topics: {
|
|
@@ -1474,6 +1486,9 @@ declare const contentEvents: {
|
|
|
1474
1486
|
reactions: boolean;
|
|
1475
1487
|
requireReview: boolean;
|
|
1476
1488
|
};
|
|
1489
|
+
coverAssetId: string | null;
|
|
1490
|
+
backgroundAssetId: string | null;
|
|
1491
|
+
iconAssetId: string | null;
|
|
1477
1492
|
createdAt: unknown;
|
|
1478
1493
|
updatedAt: unknown;
|
|
1479
1494
|
topics: {
|
|
@@ -1512,6 +1527,9 @@ declare const contentEvents: {
|
|
|
1512
1527
|
reactions: z.ZodBoolean;
|
|
1513
1528
|
requireReview: z.ZodBoolean;
|
|
1514
1529
|
}, z.core.$strict>;
|
|
1530
|
+
coverAssetId: z.ZodNullable<z.ZodString>;
|
|
1531
|
+
backgroundAssetId: z.ZodNullable<z.ZodString>;
|
|
1532
|
+
iconAssetId: z.ZodNullable<z.ZodString>;
|
|
1515
1533
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
1516
1534
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1517
1535
|
topics: z.ZodArray<z.ZodObject<{
|
|
@@ -1547,6 +1565,9 @@ declare const contentEvents: {
|
|
|
1547
1565
|
reactions: boolean;
|
|
1548
1566
|
requireReview: boolean;
|
|
1549
1567
|
};
|
|
1568
|
+
coverAssetId: string | null;
|
|
1569
|
+
backgroundAssetId: string | null;
|
|
1570
|
+
iconAssetId: string | null;
|
|
1550
1571
|
createdAt: Date;
|
|
1551
1572
|
updatedAt: Date;
|
|
1552
1573
|
topics: {
|
|
@@ -1581,6 +1602,9 @@ declare const contentEvents: {
|
|
|
1581
1602
|
reactions: boolean;
|
|
1582
1603
|
requireReview: boolean;
|
|
1583
1604
|
};
|
|
1605
|
+
coverAssetId: string | null;
|
|
1606
|
+
backgroundAssetId: string | null;
|
|
1607
|
+
iconAssetId: string | null;
|
|
1584
1608
|
createdAt: unknown;
|
|
1585
1609
|
updatedAt: unknown;
|
|
1586
1610
|
topics: {
|
|
@@ -1619,6 +1643,9 @@ declare const contentEvents: {
|
|
|
1619
1643
|
reactions: z.ZodBoolean;
|
|
1620
1644
|
requireReview: z.ZodBoolean;
|
|
1621
1645
|
}, z.core.$strict>;
|
|
1646
|
+
coverAssetId: z.ZodNullable<z.ZodString>;
|
|
1647
|
+
backgroundAssetId: z.ZodNullable<z.ZodString>;
|
|
1648
|
+
iconAssetId: z.ZodNullable<z.ZodString>;
|
|
1622
1649
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
1623
1650
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1624
1651
|
topics: z.ZodArray<z.ZodObject<{
|
|
@@ -1654,6 +1681,9 @@ declare const contentEvents: {
|
|
|
1654
1681
|
reactions: boolean;
|
|
1655
1682
|
requireReview: boolean;
|
|
1656
1683
|
};
|
|
1684
|
+
coverAssetId: string | null;
|
|
1685
|
+
backgroundAssetId: string | null;
|
|
1686
|
+
iconAssetId: string | null;
|
|
1657
1687
|
createdAt: Date;
|
|
1658
1688
|
updatedAt: Date;
|
|
1659
1689
|
topics: {
|
|
@@ -1688,6 +1718,9 @@ declare const contentEvents: {
|
|
|
1688
1718
|
reactions: boolean;
|
|
1689
1719
|
requireReview: boolean;
|
|
1690
1720
|
};
|
|
1721
|
+
coverAssetId: string | null;
|
|
1722
|
+
backgroundAssetId: string | null;
|
|
1723
|
+
iconAssetId: string | null;
|
|
1691
1724
|
createdAt: unknown;
|
|
1692
1725
|
updatedAt: unknown;
|
|
1693
1726
|
topics: {
|
|
@@ -1726,6 +1759,9 @@ declare const contentEvents: {
|
|
|
1726
1759
|
reactions: z.ZodBoolean;
|
|
1727
1760
|
requireReview: z.ZodBoolean;
|
|
1728
1761
|
}, z.core.$strict>;
|
|
1762
|
+
coverAssetId: z.ZodNullable<z.ZodString>;
|
|
1763
|
+
backgroundAssetId: z.ZodNullable<z.ZodString>;
|
|
1764
|
+
iconAssetId: z.ZodNullable<z.ZodString>;
|
|
1729
1765
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
1730
1766
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1731
1767
|
topics: z.ZodArray<z.ZodObject<{
|
package/dist/content/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Page } from "../types/shared.js";
|
|
2
|
-
import { Activity, ActivityAsset, ActivityView, AddDownloadAssetInput, AddEventAssetInput, Bundle, BundleItem, Community, CommunityStatus, CommunityView, Course, CourseSettings, CourseStatus, CourseView, CreateBundleInput, CreateCommunityInput, CreateCourseInput, CreateDownloadInput, CreateEventInput, CreateSpaceInput, DigestSchedule, DmSettings, Download, DownloadAsset, DownloadFile, DownloadStatus, DownloadView, Event, EventAsset, EventFile, EventLead, EventLocation, EventRecording, EventSettings, EventStatus, EventType, EventView, ListBundlesQuery, ListCommunitiesQuery, ListCoursesQuery, ListDownloadsQuery, ListEventsQuery, Module, PatchCommunitySettingsInput, PatchDmSettingsInput, ReorderDownloadAssetsInput, ReorderEventAssetsInput, SaveActivityInput, SetSpaceTopicsInput, Space, SpaceAccessRule, SpaceDetail, SpaceLink, SpaceTopic, UpdateBundleInput, UpdateCommunityInput, UpdateCourseInput, UpdateDownloadInput, UpdateEventInput, UpdateSpaceInput } from "../types/schemas/content.js";
|
|
2
|
+
import { Activity, ActivityAsset, ActivityView, AddDownloadAssetInput, AddEventAssetInput, Bundle, BundleItem, Community, CommunityStatus, CommunityView, Course, CourseSettings, CourseStatus, CourseView, CreateBundleInput, CreateCommunityInput, CreateCourseInput, CreateDownloadInput, CreateEventInput, CreateSpaceInput, DigestSchedule, DmSettings, Download, DownloadAsset, DownloadFile, DownloadStatus, DownloadView, Event, EventAsset, EventFile, EventLead, EventLocation, EventRecording, EventSettings, EventStatus, EventType, EventView, ListBundlesQuery, ListCommunitiesQuery, ListCoursesQuery, ListDownloadsQuery, ListEventsQuery, Module, PatchCommunitySettingsInput, PatchDmSettingsInput, ReorderDownloadAssetsInput, ReorderEventAssetsInput, SaveActivityInput, SetSpaceTopicsInput, Space, SpaceAccessRule, SpaceDetail, SpaceImage, SpaceLink, SpaceTopic, SpaceView, UpdateBundleInput, UpdateCommunityInput, UpdateCourseInput, UpdateDownloadInput, UpdateEventInput, UpdateSpaceInput } from "../types/schemas/content.js";
|
|
3
3
|
import "./model.js";
|
|
4
4
|
import "./types.js";
|
|
5
5
|
import { BundlesService, CommunitiesService, CommunityDigest, CommunityReader, ContentAssetReader, ContentRepository, ContentService as ContentService$1, CourseManagementService, DownloadablesService, EventPatch, EventsService, ItemTitle, ItemTitleAccess, ItemTitles, LibraryAssetRef, SpaceRowLock } from "./ports.js";
|
|
@@ -9,4 +9,4 @@ import { ContentItemTitles, activityTitle } from "./titles.js";
|
|
|
9
9
|
import { EventSight, eventSight } from "./event-sight.js";
|
|
10
10
|
import { EVENT_LEADS, EVENT_STARTING_SOON_JOB, contentJobs } from "./jobs.js";
|
|
11
11
|
import { BundleCreated, BundleDeleted, BundleItemAdded, BundleItemRemoved, BundleUpdated, CommunityCreated, CommunityDeleted, CommunitySpaceCreated, CommunitySpaceDeleted, CommunitySpaceUpdated, CommunitySpacesReordered, CommunityUpdated, ContentEvent, CourseActivitiesReordered, CourseActivityCreated, CourseActivityDeleted, CourseActivityPublished, CourseActivityUpdated, CourseCreated, CourseDeleted, CourseModuleCreated, CourseModuleDeleted, CourseModuleUpdated, CourseModulesReordered, CourseUpdated, DownloadCreated, DownloadDeleted, DownloadUpdated, EventCreated, EventDeleted, EventStartingSoon, EventUpdated, contentEvents } from "./events.js";
|
|
12
|
-
export { type Activity, type ActivityAsset, type ActivityView, type AddDownloadAssetInput, type AddEventAssetInput, type Bundle, type BundleCreated, type BundleDeleted, type BundleItem, type BundleItemAdded, type BundleItemRemoved, type BundleUpdated, type BundlesService, type CommunitiesService, type Community, type CommunityCreated, type CommunityDeleted, type CommunityDigest, CommunityNotificationCategories, type CommunityReader, type CommunitySpaceCreated, type CommunitySpaceDeleted, type CommunitySpaceUpdated, type CommunitySpacesReordered, type CommunityStatus, type CommunityUpdated, type CommunityView, type ContentAssetReader, type ContentEvent, ContentItemTitles, type ContentRepository, ContentService, type ContentService$1 as ContentServicePort, type Course, type CourseActivitiesReordered, type CourseActivityCreated, type CourseActivityDeleted, type CourseActivityPublished, type CourseActivityUpdated, type CourseCreated, type CourseDeleted, type CourseManagementService, type CourseModuleCreated, type CourseModuleDeleted, type CourseModuleUpdated, type CourseModulesReordered, type CourseSettings, type CourseStatus, type CourseUpdated, type CourseView, type CreateBundleInput, type CreateCommunityInput, type CreateCourseInput, type CreateDownloadInput, type CreateEventInput, type CreateSpaceInput, type DigestSchedule, type DmSettings, type Download, type DownloadAsset, type DownloadCreated, type DownloadDeleted, type DownloadFile, type DownloadStatus, type DownloadUpdated, type DownloadView, type DownloadablesService, EVENT_LEADS, EVENT_STARTING_SOON_JOB, type Event, type EventAsset, type EventCreated, type EventDeleted, type EventFile, type EventLead, type EventLocation, type EventPatch, type EventRecording, type EventSettings, type EventSight, type EventStartingSoon, type EventStatus, type EventType, type EventUpdated, type EventView, type EventsService, type ItemTitle, type ItemTitleAccess, type ItemTitles, type LibraryAssetRef, type ListBundlesQuery, type ListCommunitiesQuery, type ListCoursesQuery, type ListDownloadsQuery, type ListEventsQuery, type Module, type Page, type PatchCommunitySettingsInput, type PatchDmSettingsInput, type ReorderDownloadAssetsInput, type ReorderEventAssetsInput, type SaveActivityInput, type SetSpaceTopicsInput, type Space, type SpaceAccessRule, type SpaceDetail, type SpaceLink, type SpaceRowLock, type SpaceTopic, type UpdateBundleInput, type UpdateCommunityInput, type UpdateCourseInput, type UpdateDownloadInput, type UpdateEventInput, type UpdateSpaceInput, activityTitle, contentEvents, contentJobs, eventSight };
|
|
12
|
+
export { type Activity, type ActivityAsset, type ActivityView, type AddDownloadAssetInput, type AddEventAssetInput, type Bundle, type BundleCreated, type BundleDeleted, type BundleItem, type BundleItemAdded, type BundleItemRemoved, type BundleUpdated, type BundlesService, type CommunitiesService, type Community, type CommunityCreated, type CommunityDeleted, type CommunityDigest, CommunityNotificationCategories, type CommunityReader, type CommunitySpaceCreated, type CommunitySpaceDeleted, type CommunitySpaceUpdated, type CommunitySpacesReordered, type CommunityStatus, type CommunityUpdated, type CommunityView, type ContentAssetReader, type ContentEvent, ContentItemTitles, type ContentRepository, ContentService, type ContentService$1 as ContentServicePort, type Course, type CourseActivitiesReordered, type CourseActivityCreated, type CourseActivityDeleted, type CourseActivityPublished, type CourseActivityUpdated, type CourseCreated, type CourseDeleted, type CourseManagementService, type CourseModuleCreated, type CourseModuleDeleted, type CourseModuleUpdated, type CourseModulesReordered, type CourseSettings, type CourseStatus, type CourseUpdated, type CourseView, type CreateBundleInput, type CreateCommunityInput, type CreateCourseInput, type CreateDownloadInput, type CreateEventInput, type CreateSpaceInput, type DigestSchedule, type DmSettings, type Download, type DownloadAsset, type DownloadCreated, type DownloadDeleted, type DownloadFile, type DownloadStatus, type DownloadUpdated, type DownloadView, type DownloadablesService, EVENT_LEADS, EVENT_STARTING_SOON_JOB, type Event, type EventAsset, type EventCreated, type EventDeleted, type EventFile, type EventLead, type EventLocation, type EventPatch, type EventRecording, type EventSettings, type EventSight, type EventStartingSoon, type EventStatus, type EventType, type EventUpdated, type EventView, type EventsService, type ItemTitle, type ItemTitleAccess, type ItemTitles, type LibraryAssetRef, type ListBundlesQuery, type ListCommunitiesQuery, type ListCoursesQuery, type ListDownloadsQuery, type ListEventsQuery, type Module, type Page, type PatchCommunitySettingsInput, type PatchDmSettingsInput, type ReorderDownloadAssetsInput, type ReorderEventAssetsInput, type SaveActivityInput, type SetSpaceTopicsInput, type Space, type SpaceAccessRule, type SpaceDetail, type SpaceImage, type SpaceLink, type SpaceRowLock, type SpaceTopic, type SpaceView, type UpdateBundleInput, type UpdateCommunityInput, type UpdateCourseInput, type UpdateDownloadInput, type UpdateEventInput, type UpdateSpaceInput, activityTitle, contentEvents, contentJobs, eventSight };
|
package/dist/content/model.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Activity, ActivityAsset, ActivitySettings, ActivityView, Bundle, BundleItem, Community, CommunitySettings, CommunityStatus, CommunityView, ContentItem, ContentType, Course, CourseSettings, CourseStatus, CourseView, DigestSchedule, DmSettings, Download, DownloadAsset, DownloadFile, DownloadStatus, DownloadView, Event, EventAsset, EventFile, EventLead, EventLocation, EventRecording, EventSettings, EventStatus, EventType, EventView, Module, SaveActivityInput, Space, SpaceAccessRule, SpaceDetail, SpaceLink, SpaceSettings, SpaceTopic } from "../types/schemas/content.js";
|
|
1
|
+
import { Activity, ActivityAsset, ActivitySettings, ActivityView, Bundle, BundleItem, Community, CommunitySettings, CommunityStatus, CommunityView, ContentItem, ContentType, Course, CourseSettings, CourseStatus, CourseView, DigestSchedule, DmSettings, Download, DownloadAsset, DownloadFile, DownloadStatus, DownloadView, Event, EventAsset, EventFile, EventLead, EventLocation, EventRecording, EventSettings, EventStatus, EventType, EventView, Module, SaveActivityInput, Space, SpaceAccessRule, SpaceDetail, SpaceImage, SpaceLink, SpaceSettings, SpaceTopic, SpaceView } from "../types/schemas/content.js";
|
|
2
2
|
import "../types/index.js";
|
|
3
|
-
export type { Activity, ActivityAsset, ActivitySettings, ActivityView, Bundle, BundleItem, Community, CommunitySettings, CommunityStatus, CommunityView, ContentItem, ContentType, Course, CourseSettings, CourseStatus, CourseView, DigestSchedule, DmSettings, Download, DownloadAsset, DownloadFile, DownloadStatus, DownloadView, Event, EventAsset, EventFile, EventLead, EventLocation, EventRecording, EventSettings, EventStatus, EventType, EventView, Module, SaveActivityInput, Space, SpaceAccessRule, SpaceDetail, SpaceLink, SpaceSettings, SpaceTopic };
|
|
3
|
+
export type { Activity, ActivityAsset, ActivitySettings, ActivityView, Bundle, BundleItem, Community, CommunitySettings, CommunityStatus, CommunityView, ContentItem, ContentType, Course, CourseSettings, CourseStatus, CourseView, DigestSchedule, DmSettings, Download, DownloadAsset, DownloadFile, DownloadStatus, DownloadView, Event, EventAsset, EventFile, EventLead, EventLocation, EventRecording, EventSettings, EventStatus, EventType, EventView, Module, SaveActivityInput, Space, SpaceAccessRule, SpaceDetail, SpaceImage, SpaceLink, SpaceSettings, SpaceTopic, SpaceView };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { noopLogger } from "../shared/logger.js";
|
|
2
1
|
import { ForbiddenError, NotFoundError } from "../shared/errors.js";
|
|
2
|
+
import { noopLogger } from "../shared/logger.js";
|
|
3
3
|
import "../shared/settings.js";
|
|
4
4
|
import { assertValidCategoryList, offeringConfigured, storedCategoryList } from "../shared/notification-categories.js";
|
|
5
5
|
//#region src/content/notification-categories.ts
|
package/dist/content/ports.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Page } from "../types/shared.js";
|
|
2
|
-
import { Activity, ActivityAsset, ActivityView, AddDownloadAssetInput, AddEventAssetInput, Bundle, BundleItem, Community, CommunityView, Course, CourseSettings, CourseView, CreateBundleInput, CreateCommunityInput, CreateCourseInput, CreateDownloadInput, CreateEventInput, CreateSpaceInput, DigestSchedule, DmSettings, Download, DownloadAsset, DownloadFile, DownloadView, Event, EventAsset, EventFile, EventLead, EventSettings, EventStatus, EventView, ListBundlesQuery, ListCommunitiesQuery, ListCoursesQuery, ListDownloadsQuery, ListEventsQuery, Module, PatchCommunitySettingsInput, SaveActivityInput, SetSpaceTopicsInput, Space, SpaceDetail, UpdateBundleInput, UpdateCommunityInput, UpdateCourseInput, UpdateDownloadInput, UpdateEventInput, UpdateSpaceInput } from "../types/schemas/content.js";
|
|
2
|
+
import { Activity, ActivityAsset, ActivityView, AddDownloadAssetInput, AddEventAssetInput, Bundle, BundleItem, Community, CommunityView, Course, CourseSettings, CourseView, CreateBundleInput, CreateCommunityInput, CreateCourseInput, CreateDownloadInput, CreateEventInput, CreateSpaceInput, DigestSchedule, DmSettings, Download, DownloadAsset, DownloadFile, DownloadView, Event, EventAsset, EventFile, EventLead, EventSettings, EventStatus, EventView, ListBundlesQuery, ListCommunitiesQuery, ListCoursesQuery, ListDownloadsQuery, ListEventsQuery, Module, PatchCommunitySettingsInput, SaveActivityInput, SetSpaceTopicsInput, Space, SpaceDetail, SpaceView, UpdateBundleInput, UpdateCommunityInput, UpdateCourseInput, UpdateDownloadInput, UpdateEventInput, UpdateSpaceInput } from "../types/schemas/content.js";
|
|
3
3
|
import { SubjectRef } from "../types/notifications.js";
|
|
4
4
|
import "../types/index.js";
|
|
5
5
|
import { Actor } from "../shared/actor.js";
|
|
@@ -28,8 +28,8 @@ interface ContentAssetReader {
|
|
|
28
28
|
libraryAssetsFor(orgId: string, assetIds: string[]): Promise<LibraryAssetRef[]>;
|
|
29
29
|
}
|
|
30
30
|
interface CommunityReader {
|
|
31
|
-
getSpace(spaceId: string, actor: Actor): Promise<
|
|
32
|
-
listSpaces(communityId: string, actor: Actor): Promise<
|
|
31
|
+
getSpace(spaceId: string, actor: Actor): Promise<SpaceView | null>;
|
|
32
|
+
listSpaces(communityId: string, actor: Actor): Promise<SpaceView[]>;
|
|
33
33
|
getDmSettings(communityId: string, actor: Actor): Promise<DmSettings | null>;
|
|
34
34
|
}
|
|
35
35
|
interface SpaceRowLock {
|
|
@@ -46,21 +46,21 @@ interface CommunitiesService extends CommunityReader {
|
|
|
46
46
|
findCommunity(id: string, actor: Actor): Promise<CommunityView | null>;
|
|
47
47
|
communitiesWithDigest(): Promise<CommunityDigest[]>;
|
|
48
48
|
listCommunitiesById(ids: string[], actor: Actor): Promise<Community[]>;
|
|
49
|
-
getCommunitySpace(communityId: string, spaceId: string, actor: Actor): Promise<
|
|
49
|
+
getCommunitySpace(communityId: string, spaceId: string, actor: Actor): Promise<SpaceView>;
|
|
50
50
|
createCommunity(input: CreateCommunityInput, actor: Actor): Promise<CommunityView>;
|
|
51
51
|
updateCommunity(id: string, patch: UpdateCommunityInput, actor: Actor): Promise<CommunityView>;
|
|
52
52
|
publishCommunity(id: string, actor: Actor): Promise<CommunityView>;
|
|
53
53
|
unpublishCommunity(id: string, actor: Actor): Promise<CommunityView>;
|
|
54
54
|
deleteCommunity(id: string, actor: Actor): Promise<void>;
|
|
55
55
|
patchCommunitySettings(id: string, patch: PatchCommunitySettingsInput, actor: Actor): Promise<CommunityView>;
|
|
56
|
-
createSpace(communityId: string, input: CreateSpaceInput, actor: Actor): Promise<
|
|
57
|
-
updateSpace(communityId: string, spaceId: string, patch: UpdateSpaceInput, actor: Actor): Promise<
|
|
56
|
+
createSpace(communityId: string, input: CreateSpaceInput, actor: Actor): Promise<SpaceView>;
|
|
57
|
+
updateSpace(communityId: string, spaceId: string, patch: UpdateSpaceInput, actor: Actor): Promise<SpaceView>;
|
|
58
58
|
deleteSpace(communityId: string, spaceId: string, actor: Actor): Promise<void>;
|
|
59
|
-
reorderSpaces(communityId: string, orderedIds: string[], actor: Actor): Promise<
|
|
60
|
-
setSpaceTopics(communityId: string, spaceId: string, input: SetSpaceTopicsInput, actor: Actor): Promise<
|
|
61
|
-
addSpaceLink(communityId: string, spaceId: string, contentId: string, actor: Actor): Promise<
|
|
62
|
-
removeSpaceLink(communityId: string, spaceId: string, linkId: string, actor: Actor): Promise<
|
|
63
|
-
reorderSpaceLinks(communityId: string, spaceId: string, orderedIds: string[], actor: Actor): Promise<
|
|
59
|
+
reorderSpaces(communityId: string, orderedIds: string[], actor: Actor): Promise<SpaceView[]>;
|
|
60
|
+
setSpaceTopics(communityId: string, spaceId: string, input: SetSpaceTopicsInput, actor: Actor): Promise<SpaceView>;
|
|
61
|
+
addSpaceLink(communityId: string, spaceId: string, contentId: string, actor: Actor): Promise<SpaceView>;
|
|
62
|
+
removeSpaceLink(communityId: string, spaceId: string, linkId: string, actor: Actor): Promise<SpaceView>;
|
|
63
|
+
reorderSpaceLinks(communityId: string, spaceId: string, orderedIds: string[], actor: Actor): Promise<SpaceView>;
|
|
64
64
|
}
|
|
65
65
|
interface CourseManagementService {
|
|
66
66
|
listCourses(query: ListCoursesQuery, actor: Actor): Promise<Page<CourseView>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Page } from "../types/shared.js";
|
|
2
2
|
import { Logger } from "../types/ports.js";
|
|
3
|
-
import { Activity, ActivityAsset, ActivityView, AddDownloadAssetInput, AddEventAssetInput, Bundle, BundleItem, Community, CommunityView, CourseSettings, CourseView, CreateBundleInput, CreateCommunityInput, CreateCourseInput, CreateDownloadInput, CreateEventInput, CreateSpaceInput, DmSettings, DownloadFile, DownloadView, EventFile, EventLead, EventView, ListBundlesQuery, ListCommunitiesQuery, ListCoursesQuery, ListDownloadsQuery, ListEventsQuery, Module, PatchCommunitySettingsInput, SaveActivityInput, SetSpaceTopicsInput,
|
|
3
|
+
import { Activity, ActivityAsset, ActivityView, AddDownloadAssetInput, AddEventAssetInput, Bundle, BundleItem, Community, CommunityView, CourseSettings, CourseView, CreateBundleInput, CreateCommunityInput, CreateCourseInput, CreateDownloadInput, CreateEventInput, CreateSpaceInput, DmSettings, DownloadFile, DownloadView, EventFile, EventLead, EventView, ListBundlesQuery, ListCommunitiesQuery, ListCoursesQuery, ListDownloadsQuery, ListEventsQuery, Module, PatchCommunitySettingsInput, SaveActivityInput, SetSpaceTopicsInput, SpaceView, UpdateBundleInput, UpdateCommunityInput, UpdateCourseInput, UpdateDownloadInput, UpdateEventInput, UpdateSpaceInput } from "../types/schemas/content.js";
|
|
4
4
|
import { Actor } from "../shared/actor.js";
|
|
5
5
|
import { Scheduler } from "../shared/ports.js";
|
|
6
6
|
import { FileUrls } from "../assets/file-urls.js";
|
|
@@ -14,7 +14,7 @@ type ContentServiceParams = {
|
|
|
14
14
|
repo: ContentRepository;
|
|
15
15
|
uow: ContentUnitOfWork;
|
|
16
16
|
libraryAssets: ContentAssetReader;
|
|
17
|
-
files: Pick<AssetFiles, 'readyFiles' | '
|
|
17
|
+
files: Pick<AssetFiles, 'readyFiles' | 'syncPublicImages'>;
|
|
18
18
|
fileUrls: FileUrls;
|
|
19
19
|
scheduler: Pick<Scheduler, 'at' | 'cancel'>;
|
|
20
20
|
logger?: Logger;
|
|
@@ -34,6 +34,10 @@ declare class ContentService implements CourseManagementService, DownloadablesSe
|
|
|
34
34
|
private withThumbnail;
|
|
35
35
|
private syncThumbnail;
|
|
36
36
|
private withdrawThumbnail;
|
|
37
|
+
private spaceView;
|
|
38
|
+
private communityPublished;
|
|
39
|
+
private oneSpaceView;
|
|
40
|
+
private syncSpaceImages;
|
|
37
41
|
private pageWithThumbnails;
|
|
38
42
|
private downloadFiles;
|
|
39
43
|
private eventFiles;
|
|
@@ -107,9 +111,9 @@ declare class ContentService implements CourseManagementService, DownloadablesSe
|
|
|
107
111
|
findCommunity(id: string, actor: Actor): Promise<CommunityView | null>;
|
|
108
112
|
communitiesWithDigest(): Promise<CommunityDigest[]>;
|
|
109
113
|
listCommunitiesById(ids: string[], actor: Actor): Promise<Community[]>;
|
|
110
|
-
getSpace(spaceId: string, actor: Actor): Promise<
|
|
111
|
-
getCommunitySpace(communityId: string, spaceId: string, actor: Actor): Promise<
|
|
112
|
-
listSpaces(communityId: string, actor: Actor): Promise<
|
|
114
|
+
getSpace(spaceId: string, actor: Actor): Promise<SpaceView | null>;
|
|
115
|
+
getCommunitySpace(communityId: string, spaceId: string, actor: Actor): Promise<SpaceView>;
|
|
116
|
+
listSpaces(communityId: string, actor: Actor): Promise<SpaceView[]>;
|
|
113
117
|
getDmSettings(communityId: string, actor: Actor): Promise<DmSettings | null>;
|
|
114
118
|
createCommunity(input: CreateCommunityInput, actor: Actor): Promise<CommunityView>;
|
|
115
119
|
updateCommunity(id: string, patch: UpdateCommunityInput, actor: Actor): Promise<CommunityView>;
|
|
@@ -117,14 +121,14 @@ declare class ContentService implements CourseManagementService, DownloadablesSe
|
|
|
117
121
|
unpublishCommunity(id: string, actor: Actor): Promise<CommunityView>;
|
|
118
122
|
deleteCommunity(id: string, actor: Actor): Promise<void>;
|
|
119
123
|
patchCommunitySettings(id: string, patch: PatchCommunitySettingsInput, actor: Actor): Promise<CommunityView>;
|
|
120
|
-
createSpace(communityId: string, input: CreateSpaceInput, actor: Actor): Promise<
|
|
121
|
-
updateSpace(communityId: string, spaceId: string, patch: UpdateSpaceInput, actor: Actor): Promise<
|
|
124
|
+
createSpace(communityId: string, input: CreateSpaceInput, actor: Actor): Promise<SpaceView>;
|
|
125
|
+
updateSpace(communityId: string, spaceId: string, patch: UpdateSpaceInput, actor: Actor): Promise<SpaceView>;
|
|
122
126
|
deleteSpace(communityId: string, spaceId: string, actor: Actor): Promise<void>;
|
|
123
|
-
reorderSpaces(communityId: string, orderedIds: string[], actor: Actor): Promise<
|
|
124
|
-
setSpaceTopics(communityId: string, spaceId: string, input: SetSpaceTopicsInput, actor: Actor): Promise<
|
|
125
|
-
addSpaceLink(communityId: string, spaceId: string, contentId: string, actor: Actor): Promise<
|
|
126
|
-
removeSpaceLink(communityId: string, spaceId: string, linkId: string, actor: Actor): Promise<
|
|
127
|
-
reorderSpaceLinks(communityId: string, spaceId: string, orderedIds: string[], actor: Actor): Promise<
|
|
127
|
+
reorderSpaces(communityId: string, orderedIds: string[], actor: Actor): Promise<SpaceView[]>;
|
|
128
|
+
setSpaceTopics(communityId: string, spaceId: string, input: SetSpaceTopicsInput, actor: Actor): Promise<SpaceView>;
|
|
129
|
+
addSpaceLink(communityId: string, spaceId: string, contentId: string, actor: Actor): Promise<SpaceView>;
|
|
130
|
+
removeSpaceLink(communityId: string, spaceId: string, linkId: string, actor: Actor): Promise<SpaceView>;
|
|
131
|
+
reorderSpaceLinks(communityId: string, spaceId: string, orderedIds: string[], actor: Actor): Promise<SpaceView>;
|
|
128
132
|
}
|
|
129
133
|
//#endregion
|
|
130
134
|
export { ContentService, ContentServiceParams };
|