@headless-lms/adapter-db 0.2.0 → 0.4.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/index.d.ts +12 -6
- package/dist/index.js +12 -6
- package/dist/repositories/admin.d.ts +23 -0
- package/dist/repositories/admin.js +393 -0
- package/dist/repositories/admin.js.map +1 -0
- package/dist/repositories/assets.d.ts +6 -3
- package/dist/repositories/assets.js +46 -9
- package/dist/repositories/assets.js.map +1 -1
- package/dist/repositories/automations.d.ts +5 -2
- package/dist/repositories/automations.js +29 -2
- package/dist/repositories/automations.js.map +1 -1
- package/dist/repositories/chats.d.ts +55 -0
- package/dist/repositories/chats.js +469 -0
- package/dist/repositories/chats.js.map +1 -0
- package/dist/repositories/content.d.ts +24 -1
- package/dist/repositories/content.js +316 -9
- package/dist/repositories/content.js.map +1 -1
- package/dist/repositories/devices.d.ts +17 -0
- package/dist/repositories/devices.js +75 -0
- package/dist/repositories/devices.js.map +1 -0
- package/dist/repositories/digest-runs.d.ts +14 -0
- package/dist/repositories/digest-runs.js +39 -0
- package/dist/repositories/digest-runs.js.map +1 -0
- package/dist/repositories/discussion.d.ts +16 -4
- package/dist/repositories/discussion.js +78 -18
- package/dist/repositories/discussion.js.map +1 -1
- package/dist/repositories/entitlements.d.ts +31 -9
- package/dist/repositories/entitlements.js +213 -17
- package/dist/repositories/entitlements.js.map +1 -1
- package/dist/repositories/grant-covers.d.ts +20 -0
- package/dist/repositories/grant-covers.js +55 -0
- package/dist/repositories/grant-covers.js.map +1 -0
- package/dist/repositories/identity.d.ts +4 -2
- package/dist/repositories/identity.js +32 -1
- package/dist/repositories/identity.js.map +1 -1
- package/dist/repositories/inserted-row.d.ts +5 -0
- package/dist/repositories/inserted-row.js +7 -0
- package/dist/repositories/inserted-row.js.map +1 -0
- package/dist/repositories/member.d.ts +16 -0
- package/dist/repositories/member.js +63 -0
- package/dist/repositories/member.js.map +1 -0
- package/dist/repositories/members.js +2 -2
- package/dist/repositories/members.js.map +1 -1
- package/dist/repositories/mentions.d.ts +17 -0
- package/dist/repositories/mentions.js +55 -0
- package/dist/repositories/mentions.js.map +1 -0
- package/dist/repositories/notification-settings.d.ts +19 -0
- package/dist/repositories/notification-settings.js +67 -0
- package/dist/repositories/notification-settings.js.map +1 -0
- package/dist/repositories/notifications.d.ts +30 -0
- package/dist/repositories/notifications.js +178 -0
- package/dist/repositories/notifications.js.map +1 -0
- package/dist/repositories/org-user-profile.d.ts +214 -1
- package/dist/repositories/org-user-profile.js +23 -2
- package/dist/repositories/org-user-profile.js.map +1 -1
- package/dist/repositories/organizations.d.ts +4 -2
- package/dist/repositories/organizations.js +23 -8
- package/dist/repositories/organizations.js.map +1 -1
- package/dist/repositories/pg-errors.js +3 -1
- package/dist/repositories/pg-errors.js.map +1 -1
- package/dist/repositories/posts.d.ts +35 -0
- package/dist/repositories/posts.js +252 -0
- package/dist/repositories/posts.js.map +1 -0
- package/dist/repositories/subscriptions.d.ts +18 -0
- package/dist/repositories/subscriptions.js +72 -0
- package/dist/repositories/subscriptions.js.map +1 -0
- package/dist/schema/assets.d.ts +19 -2
- package/dist/schema/assets.js +10 -4
- package/dist/schema/assets.js.map +1 -1
- package/dist/schema/automations.d.ts +545 -2
- package/dist/schema/automations.js +73 -3
- package/dist/schema/automations.js.map +1 -1
- package/dist/schema/better-auth.d.ts +1613 -238
- package/dist/schema/better-auth.js +107 -22
- package/dist/schema/better-auth.js.map +1 -1
- package/dist/schema/content.d.ts +642 -5
- package/dist/schema/content.js +119 -10
- package/dist/schema/content.js.map +1 -1
- package/dist/schema/discussion.d.ts +2182 -42
- package/dist/schema/discussion.js +461 -11
- package/dist/schema/discussion.js.map +1 -1
- package/dist/schema/entitlements.d.ts +432 -1
- package/dist/schema/entitlements.js +109 -4
- package/dist/schema/entitlements.js.map +1 -1
- package/dist/schema/identity.d.ts +517 -1
- package/dist/schema/identity.js +76 -2
- package/dist/schema/identity.js.map +1 -1
- package/dist/schema/index.d.ts +7 -7
- package/dist/schema/index.js +35 -8
- package/dist/schema/organizations.d.ts +4 -4
- package/dist/schema/organizations.js +2 -0
- package/dist/schema/organizations.js.map +1 -1
- package/drizzle/0003_community.sql +340 -0
- package/drizzle/0004_assets_sources.sql +1 -0
- package/drizzle/0005_notices_and_seed_index.sql +12 -0
- package/drizzle/0006_community_review_fixes.sql +24 -0
- package/drizzle/0007_notifications.sql +37 -0
- package/drizzle/0008_content_access.sql +13 -0
- package/drizzle/0009_community_indexes.sql +56 -0
- package/drizzle/0010_mcp_access.sql +114 -0
- package/drizzle/0011_digest_runs.sql +8 -0
- package/drizzle/0012_subscriptions.sql +16 -0
- package/drizzle/0013_mentions.sql +10 -0
- package/drizzle/0014_notification_settings_devices.sql +36 -0
- package/drizzle/0015_automations_drop_source.sql +2 -0
- package/drizzle/0016_notifications_automations.sql +48 -0
- package/drizzle/meta/0003_snapshot.json +7061 -0
- package/drizzle/meta/0004_snapshot.json +7068 -0
- package/drizzle/meta/0005_snapshot.json +7180 -0
- package/drizzle/meta/0006_snapshot.json +7298 -0
- package/drizzle/meta/0007_snapshot.json +7620 -0
- package/drizzle/meta/0008_snapshot.json +7666 -0
- package/drizzle/meta/0009_snapshot.json +8185 -0
- package/drizzle/meta/0010_snapshot.json +8813 -0
- package/drizzle/meta/0011_snapshot.json +8868 -0
- package/drizzle/meta/0012_snapshot.json +8873 -0
- package/drizzle/meta/0013_snapshot.json +8943 -0
- package/drizzle/meta/0014_snapshot.json +9305 -0
- package/drizzle/meta/0015_snapshot.json +9270 -0
- package/drizzle/meta/0016_snapshot.json +9230 -0
- package/drizzle/meta/_journal.json +99 -1
- package/package.json +2 -2
- package/dist/repositories/course-analytics.d.ts +0 -15
- package/dist/repositories/course-analytics.js +0 -137
- package/dist/repositories/course-analytics.js.map +0 -1
- package/dist/repositories/dashboard.d.ts +0 -14
- package/dist/repositories/dashboard.js +0 -57
- package/dist/repositories/dashboard.js.map +0 -1
- package/dist/repositories/learn.d.ts +0 -19
- package/dist/repositories/learn.js +0 -56
- package/dist/repositories/learn.js.map +0 -1
- package/dist/repositories/students.d.ts +0 -16
- package/dist/repositories/students.js +0 -160
- package/dist/repositories/students.js.map +0 -1
|
@@ -125,6 +125,522 @@ declare const users: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
125
125
|
};
|
|
126
126
|
dialect: "pg";
|
|
127
127
|
}>;
|
|
128
|
+
declare const userProfiles: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
129
|
+
name: "user_profiles";
|
|
130
|
+
schema: undefined;
|
|
131
|
+
columns: {
|
|
132
|
+
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
133
|
+
name: "user_id";
|
|
134
|
+
tableName: "user_profiles";
|
|
135
|
+
dataType: "string";
|
|
136
|
+
columnType: "PgText";
|
|
137
|
+
data: string;
|
|
138
|
+
driverParam: string;
|
|
139
|
+
notNull: true;
|
|
140
|
+
hasDefault: false;
|
|
141
|
+
isPrimaryKey: true;
|
|
142
|
+
isAutoincrement: false;
|
|
143
|
+
hasRuntimeDefault: false;
|
|
144
|
+
enumValues: [string, ...string[]];
|
|
145
|
+
baseColumn: never;
|
|
146
|
+
identity: undefined;
|
|
147
|
+
generated: undefined;
|
|
148
|
+
}, {}, {}>;
|
|
149
|
+
displayName: import("drizzle-orm/pg-core").PgColumn<{
|
|
150
|
+
name: "display_name";
|
|
151
|
+
tableName: "user_profiles";
|
|
152
|
+
dataType: "string";
|
|
153
|
+
columnType: "PgText";
|
|
154
|
+
data: string;
|
|
155
|
+
driverParam: string;
|
|
156
|
+
notNull: false;
|
|
157
|
+
hasDefault: false;
|
|
158
|
+
isPrimaryKey: false;
|
|
159
|
+
isAutoincrement: false;
|
|
160
|
+
hasRuntimeDefault: false;
|
|
161
|
+
enumValues: [string, ...string[]];
|
|
162
|
+
baseColumn: never;
|
|
163
|
+
identity: undefined;
|
|
164
|
+
generated: undefined;
|
|
165
|
+
}, {}, {}>;
|
|
166
|
+
headline: import("drizzle-orm/pg-core").PgColumn<{
|
|
167
|
+
name: "headline";
|
|
168
|
+
tableName: "user_profiles";
|
|
169
|
+
dataType: "string";
|
|
170
|
+
columnType: "PgText";
|
|
171
|
+
data: string;
|
|
172
|
+
driverParam: string;
|
|
173
|
+
notNull: false;
|
|
174
|
+
hasDefault: false;
|
|
175
|
+
isPrimaryKey: false;
|
|
176
|
+
isAutoincrement: false;
|
|
177
|
+
hasRuntimeDefault: false;
|
|
178
|
+
enumValues: [string, ...string[]];
|
|
179
|
+
baseColumn: never;
|
|
180
|
+
identity: undefined;
|
|
181
|
+
generated: undefined;
|
|
182
|
+
}, {}, {}>;
|
|
183
|
+
bio: import("drizzle-orm/pg-core").PgColumn<{
|
|
184
|
+
name: "bio";
|
|
185
|
+
tableName: "user_profiles";
|
|
186
|
+
dataType: "string";
|
|
187
|
+
columnType: "PgText";
|
|
188
|
+
data: string;
|
|
189
|
+
driverParam: string;
|
|
190
|
+
notNull: false;
|
|
191
|
+
hasDefault: false;
|
|
192
|
+
isPrimaryKey: false;
|
|
193
|
+
isAutoincrement: false;
|
|
194
|
+
hasRuntimeDefault: false;
|
|
195
|
+
enumValues: [string, ...string[]];
|
|
196
|
+
baseColumn: never;
|
|
197
|
+
identity: undefined;
|
|
198
|
+
generated: undefined;
|
|
199
|
+
}, {}, {}>;
|
|
200
|
+
imageAssetOrgId: import("drizzle-orm/pg-core").PgColumn<{
|
|
201
|
+
name: "image_asset_org_id";
|
|
202
|
+
tableName: "user_profiles";
|
|
203
|
+
dataType: "string";
|
|
204
|
+
columnType: "PgText";
|
|
205
|
+
data: string;
|
|
206
|
+
driverParam: string;
|
|
207
|
+
notNull: false;
|
|
208
|
+
hasDefault: false;
|
|
209
|
+
isPrimaryKey: false;
|
|
210
|
+
isAutoincrement: false;
|
|
211
|
+
hasRuntimeDefault: false;
|
|
212
|
+
enumValues: [string, ...string[]];
|
|
213
|
+
baseColumn: never;
|
|
214
|
+
identity: undefined;
|
|
215
|
+
generated: undefined;
|
|
216
|
+
}, {}, {}>;
|
|
217
|
+
imageAssetId: import("drizzle-orm/pg-core").PgColumn<{
|
|
218
|
+
name: "image_asset_id";
|
|
219
|
+
tableName: "user_profiles";
|
|
220
|
+
dataType: "string";
|
|
221
|
+
columnType: "PgText";
|
|
222
|
+
data: string;
|
|
223
|
+
driverParam: string;
|
|
224
|
+
notNull: false;
|
|
225
|
+
hasDefault: false;
|
|
226
|
+
isPrimaryKey: false;
|
|
227
|
+
isAutoincrement: false;
|
|
228
|
+
hasRuntimeDefault: false;
|
|
229
|
+
enumValues: [string, ...string[]];
|
|
230
|
+
baseColumn: never;
|
|
231
|
+
identity: undefined;
|
|
232
|
+
generated: undefined;
|
|
233
|
+
}, {}, {}>;
|
|
234
|
+
extra: import("drizzle-orm/pg-core").PgColumn<{
|
|
235
|
+
name: "extra";
|
|
236
|
+
tableName: "user_profiles";
|
|
237
|
+
dataType: "json";
|
|
238
|
+
columnType: "PgJsonb";
|
|
239
|
+
data: import("@headless-lms/core/types").JsonValue;
|
|
240
|
+
driverParam: unknown;
|
|
241
|
+
notNull: true;
|
|
242
|
+
hasDefault: true;
|
|
243
|
+
isPrimaryKey: false;
|
|
244
|
+
isAutoincrement: false;
|
|
245
|
+
hasRuntimeDefault: false;
|
|
246
|
+
enumValues: undefined;
|
|
247
|
+
baseColumn: never;
|
|
248
|
+
identity: undefined;
|
|
249
|
+
generated: undefined;
|
|
250
|
+
}, {}, {
|
|
251
|
+
$type: import("@headless-lms/core/types").JsonValue;
|
|
252
|
+
}>;
|
|
253
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
254
|
+
name: "created_at";
|
|
255
|
+
tableName: "user_profiles";
|
|
256
|
+
dataType: "date";
|
|
257
|
+
columnType: "PgTimestamp";
|
|
258
|
+
data: Date;
|
|
259
|
+
driverParam: string;
|
|
260
|
+
notNull: true;
|
|
261
|
+
hasDefault: true;
|
|
262
|
+
isPrimaryKey: false;
|
|
263
|
+
isAutoincrement: false;
|
|
264
|
+
hasRuntimeDefault: false;
|
|
265
|
+
enumValues: undefined;
|
|
266
|
+
baseColumn: never;
|
|
267
|
+
identity: undefined;
|
|
268
|
+
generated: undefined;
|
|
269
|
+
}, {}, {}>;
|
|
270
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
271
|
+
name: "updated_at";
|
|
272
|
+
tableName: "user_profiles";
|
|
273
|
+
dataType: "date";
|
|
274
|
+
columnType: "PgTimestamp";
|
|
275
|
+
data: Date;
|
|
276
|
+
driverParam: string;
|
|
277
|
+
notNull: true;
|
|
278
|
+
hasDefault: true;
|
|
279
|
+
isPrimaryKey: false;
|
|
280
|
+
isAutoincrement: false;
|
|
281
|
+
hasRuntimeDefault: false;
|
|
282
|
+
enumValues: undefined;
|
|
283
|
+
baseColumn: never;
|
|
284
|
+
identity: undefined;
|
|
285
|
+
generated: undefined;
|
|
286
|
+
}, {}, {}>;
|
|
287
|
+
};
|
|
288
|
+
dialect: "pg";
|
|
289
|
+
}>;
|
|
290
|
+
declare const notificationSettings: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
291
|
+
name: "notification_settings";
|
|
292
|
+
schema: undefined;
|
|
293
|
+
columns: {
|
|
294
|
+
orgId: import("drizzle-orm/pg-core").PgColumn<{
|
|
295
|
+
name: "org_id";
|
|
296
|
+
tableName: "notification_settings";
|
|
297
|
+
dataType: "string";
|
|
298
|
+
columnType: "PgText";
|
|
299
|
+
data: string;
|
|
300
|
+
driverParam: string;
|
|
301
|
+
notNull: true;
|
|
302
|
+
hasDefault: false;
|
|
303
|
+
isPrimaryKey: false;
|
|
304
|
+
isAutoincrement: false;
|
|
305
|
+
hasRuntimeDefault: false;
|
|
306
|
+
enumValues: [string, ...string[]];
|
|
307
|
+
baseColumn: never;
|
|
308
|
+
identity: undefined;
|
|
309
|
+
generated: undefined;
|
|
310
|
+
}, {}, {}>;
|
|
311
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
312
|
+
name: "id";
|
|
313
|
+
tableName: "notification_settings";
|
|
314
|
+
dataType: "string";
|
|
315
|
+
columnType: "PgText";
|
|
316
|
+
data: string;
|
|
317
|
+
driverParam: string;
|
|
318
|
+
notNull: true;
|
|
319
|
+
hasDefault: true;
|
|
320
|
+
isPrimaryKey: false;
|
|
321
|
+
isAutoincrement: false;
|
|
322
|
+
hasRuntimeDefault: true;
|
|
323
|
+
enumValues: [string, ...string[]];
|
|
324
|
+
baseColumn: never;
|
|
325
|
+
identity: undefined;
|
|
326
|
+
generated: undefined;
|
|
327
|
+
}, {}, {}>;
|
|
328
|
+
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
329
|
+
name: "user_id";
|
|
330
|
+
tableName: "notification_settings";
|
|
331
|
+
dataType: "string";
|
|
332
|
+
columnType: "PgText";
|
|
333
|
+
data: string;
|
|
334
|
+
driverParam: string;
|
|
335
|
+
notNull: true;
|
|
336
|
+
hasDefault: false;
|
|
337
|
+
isPrimaryKey: false;
|
|
338
|
+
isAutoincrement: false;
|
|
339
|
+
hasRuntimeDefault: false;
|
|
340
|
+
enumValues: [string, ...string[]];
|
|
341
|
+
baseColumn: never;
|
|
342
|
+
identity: undefined;
|
|
343
|
+
generated: undefined;
|
|
344
|
+
}, {}, {}>;
|
|
345
|
+
communityId: import("drizzle-orm/pg-core").PgColumn<{
|
|
346
|
+
name: "community_id";
|
|
347
|
+
tableName: "notification_settings";
|
|
348
|
+
dataType: "string";
|
|
349
|
+
columnType: "PgText";
|
|
350
|
+
data: string;
|
|
351
|
+
driverParam: string;
|
|
352
|
+
notNull: false;
|
|
353
|
+
hasDefault: false;
|
|
354
|
+
isPrimaryKey: false;
|
|
355
|
+
isAutoincrement: false;
|
|
356
|
+
hasRuntimeDefault: false;
|
|
357
|
+
enumValues: [string, ...string[]];
|
|
358
|
+
baseColumn: never;
|
|
359
|
+
identity: undefined;
|
|
360
|
+
generated: undefined;
|
|
361
|
+
}, {}, {}>;
|
|
362
|
+
spaceId: import("drizzle-orm/pg-core").PgColumn<{
|
|
363
|
+
name: "space_id";
|
|
364
|
+
tableName: "notification_settings";
|
|
365
|
+
dataType: "string";
|
|
366
|
+
columnType: "PgText";
|
|
367
|
+
data: string;
|
|
368
|
+
driverParam: string;
|
|
369
|
+
notNull: false;
|
|
370
|
+
hasDefault: false;
|
|
371
|
+
isPrimaryKey: false;
|
|
372
|
+
isAutoincrement: false;
|
|
373
|
+
hasRuntimeDefault: false;
|
|
374
|
+
enumValues: [string, ...string[]];
|
|
375
|
+
baseColumn: never;
|
|
376
|
+
identity: undefined;
|
|
377
|
+
generated: undefined;
|
|
378
|
+
}, {}, {}>;
|
|
379
|
+
category: import("drizzle-orm/pg-core").PgColumn<{
|
|
380
|
+
name: "category";
|
|
381
|
+
tableName: "notification_settings";
|
|
382
|
+
dataType: "string";
|
|
383
|
+
columnType: "PgText";
|
|
384
|
+
data: string;
|
|
385
|
+
driverParam: string;
|
|
386
|
+
notNull: true;
|
|
387
|
+
hasDefault: false;
|
|
388
|
+
isPrimaryKey: false;
|
|
389
|
+
isAutoincrement: false;
|
|
390
|
+
hasRuntimeDefault: false;
|
|
391
|
+
enumValues: [string, ...string[]];
|
|
392
|
+
baseColumn: never;
|
|
393
|
+
identity: undefined;
|
|
394
|
+
generated: undefined;
|
|
395
|
+
}, {}, {}>;
|
|
396
|
+
channel: import("drizzle-orm/pg-core").PgColumn<{
|
|
397
|
+
name: "channel";
|
|
398
|
+
tableName: "notification_settings";
|
|
399
|
+
dataType: "string";
|
|
400
|
+
columnType: "PgText";
|
|
401
|
+
data: string;
|
|
402
|
+
driverParam: string;
|
|
403
|
+
notNull: true;
|
|
404
|
+
hasDefault: false;
|
|
405
|
+
isPrimaryKey: false;
|
|
406
|
+
isAutoincrement: false;
|
|
407
|
+
hasRuntimeDefault: false;
|
|
408
|
+
enumValues: [string, ...string[]];
|
|
409
|
+
baseColumn: never;
|
|
410
|
+
identity: undefined;
|
|
411
|
+
generated: undefined;
|
|
412
|
+
}, {}, {}>;
|
|
413
|
+
enabled: import("drizzle-orm/pg-core").PgColumn<{
|
|
414
|
+
name: "enabled";
|
|
415
|
+
tableName: "notification_settings";
|
|
416
|
+
dataType: "boolean";
|
|
417
|
+
columnType: "PgBoolean";
|
|
418
|
+
data: boolean;
|
|
419
|
+
driverParam: boolean;
|
|
420
|
+
notNull: true;
|
|
421
|
+
hasDefault: false;
|
|
422
|
+
isPrimaryKey: false;
|
|
423
|
+
isAutoincrement: false;
|
|
424
|
+
hasRuntimeDefault: false;
|
|
425
|
+
enumValues: undefined;
|
|
426
|
+
baseColumn: never;
|
|
427
|
+
identity: undefined;
|
|
428
|
+
generated: undefined;
|
|
429
|
+
}, {}, {}>;
|
|
430
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
431
|
+
name: "updated_at";
|
|
432
|
+
tableName: "notification_settings";
|
|
433
|
+
dataType: "date";
|
|
434
|
+
columnType: "PgTimestamp";
|
|
435
|
+
data: Date;
|
|
436
|
+
driverParam: string;
|
|
437
|
+
notNull: true;
|
|
438
|
+
hasDefault: true;
|
|
439
|
+
isPrimaryKey: false;
|
|
440
|
+
isAutoincrement: false;
|
|
441
|
+
hasRuntimeDefault: false;
|
|
442
|
+
enumValues: undefined;
|
|
443
|
+
baseColumn: never;
|
|
444
|
+
identity: undefined;
|
|
445
|
+
generated: undefined;
|
|
446
|
+
}, {}, {}>;
|
|
447
|
+
};
|
|
448
|
+
dialect: "pg";
|
|
449
|
+
}>;
|
|
450
|
+
declare const devices: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
451
|
+
name: "devices";
|
|
452
|
+
schema: undefined;
|
|
453
|
+
columns: {
|
|
454
|
+
orgId: import("drizzle-orm/pg-core").PgColumn<{
|
|
455
|
+
name: "org_id";
|
|
456
|
+
tableName: "devices";
|
|
457
|
+
dataType: "string";
|
|
458
|
+
columnType: "PgText";
|
|
459
|
+
data: string;
|
|
460
|
+
driverParam: string;
|
|
461
|
+
notNull: true;
|
|
462
|
+
hasDefault: false;
|
|
463
|
+
isPrimaryKey: false;
|
|
464
|
+
isAutoincrement: false;
|
|
465
|
+
hasRuntimeDefault: false;
|
|
466
|
+
enumValues: [string, ...string[]];
|
|
467
|
+
baseColumn: never;
|
|
468
|
+
identity: undefined;
|
|
469
|
+
generated: undefined;
|
|
470
|
+
}, {}, {}>;
|
|
471
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
472
|
+
name: "id";
|
|
473
|
+
tableName: "devices";
|
|
474
|
+
dataType: "string";
|
|
475
|
+
columnType: "PgText";
|
|
476
|
+
data: string;
|
|
477
|
+
driverParam: string;
|
|
478
|
+
notNull: true;
|
|
479
|
+
hasDefault: true;
|
|
480
|
+
isPrimaryKey: false;
|
|
481
|
+
isAutoincrement: false;
|
|
482
|
+
hasRuntimeDefault: true;
|
|
483
|
+
enumValues: [string, ...string[]];
|
|
484
|
+
baseColumn: never;
|
|
485
|
+
identity: undefined;
|
|
486
|
+
generated: undefined;
|
|
487
|
+
}, {}, {}>;
|
|
488
|
+
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
489
|
+
name: "user_id";
|
|
490
|
+
tableName: "devices";
|
|
491
|
+
dataType: "string";
|
|
492
|
+
columnType: "PgText";
|
|
493
|
+
data: string;
|
|
494
|
+
driverParam: string;
|
|
495
|
+
notNull: true;
|
|
496
|
+
hasDefault: false;
|
|
497
|
+
isPrimaryKey: false;
|
|
498
|
+
isAutoincrement: false;
|
|
499
|
+
hasRuntimeDefault: false;
|
|
500
|
+
enumValues: [string, ...string[]];
|
|
501
|
+
baseColumn: never;
|
|
502
|
+
identity: undefined;
|
|
503
|
+
generated: undefined;
|
|
504
|
+
}, {}, {}>;
|
|
505
|
+
provider: import("drizzle-orm/pg-core").PgColumn<{
|
|
506
|
+
name: "provider";
|
|
507
|
+
tableName: "devices";
|
|
508
|
+
dataType: "string";
|
|
509
|
+
columnType: "PgText";
|
|
510
|
+
data: "apns" | "fcm" | "webpush";
|
|
511
|
+
driverParam: string;
|
|
512
|
+
notNull: true;
|
|
513
|
+
hasDefault: false;
|
|
514
|
+
isPrimaryKey: false;
|
|
515
|
+
isAutoincrement: false;
|
|
516
|
+
hasRuntimeDefault: false;
|
|
517
|
+
enumValues: ["apns", "fcm", "webpush"];
|
|
518
|
+
baseColumn: never;
|
|
519
|
+
identity: undefined;
|
|
520
|
+
generated: undefined;
|
|
521
|
+
}, {}, {}>;
|
|
522
|
+
token: import("drizzle-orm/pg-core").PgColumn<{
|
|
523
|
+
name: "token";
|
|
524
|
+
tableName: "devices";
|
|
525
|
+
dataType: "string";
|
|
526
|
+
columnType: "PgText";
|
|
527
|
+
data: string;
|
|
528
|
+
driverParam: string;
|
|
529
|
+
notNull: true;
|
|
530
|
+
hasDefault: false;
|
|
531
|
+
isPrimaryKey: false;
|
|
532
|
+
isAutoincrement: false;
|
|
533
|
+
hasRuntimeDefault: false;
|
|
534
|
+
enumValues: [string, ...string[]];
|
|
535
|
+
baseColumn: never;
|
|
536
|
+
identity: undefined;
|
|
537
|
+
generated: undefined;
|
|
538
|
+
}, {}, {}>;
|
|
539
|
+
p256dh: import("drizzle-orm/pg-core").PgColumn<{
|
|
540
|
+
name: "p256dh";
|
|
541
|
+
tableName: "devices";
|
|
542
|
+
dataType: "string";
|
|
543
|
+
columnType: "PgText";
|
|
544
|
+
data: string;
|
|
545
|
+
driverParam: string;
|
|
546
|
+
notNull: false;
|
|
547
|
+
hasDefault: false;
|
|
548
|
+
isPrimaryKey: false;
|
|
549
|
+
isAutoincrement: false;
|
|
550
|
+
hasRuntimeDefault: false;
|
|
551
|
+
enumValues: [string, ...string[]];
|
|
552
|
+
baseColumn: never;
|
|
553
|
+
identity: undefined;
|
|
554
|
+
generated: undefined;
|
|
555
|
+
}, {}, {}>;
|
|
556
|
+
auth: import("drizzle-orm/pg-core").PgColumn<{
|
|
557
|
+
name: "auth";
|
|
558
|
+
tableName: "devices";
|
|
559
|
+
dataType: "string";
|
|
560
|
+
columnType: "PgText";
|
|
561
|
+
data: string;
|
|
562
|
+
driverParam: string;
|
|
563
|
+
notNull: false;
|
|
564
|
+
hasDefault: false;
|
|
565
|
+
isPrimaryKey: false;
|
|
566
|
+
isAutoincrement: false;
|
|
567
|
+
hasRuntimeDefault: false;
|
|
568
|
+
enumValues: [string, ...string[]];
|
|
569
|
+
baseColumn: never;
|
|
570
|
+
identity: undefined;
|
|
571
|
+
generated: undefined;
|
|
572
|
+
}, {}, {}>;
|
|
573
|
+
appId: import("drizzle-orm/pg-core").PgColumn<{
|
|
574
|
+
name: "app_id";
|
|
575
|
+
tableName: "devices";
|
|
576
|
+
dataType: "string";
|
|
577
|
+
columnType: "PgText";
|
|
578
|
+
data: string;
|
|
579
|
+
driverParam: string;
|
|
580
|
+
notNull: false;
|
|
581
|
+
hasDefault: false;
|
|
582
|
+
isPrimaryKey: false;
|
|
583
|
+
isAutoincrement: false;
|
|
584
|
+
hasRuntimeDefault: false;
|
|
585
|
+
enumValues: [string, ...string[]];
|
|
586
|
+
baseColumn: never;
|
|
587
|
+
identity: undefined;
|
|
588
|
+
generated: undefined;
|
|
589
|
+
}, {}, {}>;
|
|
590
|
+
environment: import("drizzle-orm/pg-core").PgColumn<{
|
|
591
|
+
name: "environment";
|
|
592
|
+
tableName: "devices";
|
|
593
|
+
dataType: "string";
|
|
594
|
+
columnType: "PgText";
|
|
595
|
+
data: "production" | "sandbox";
|
|
596
|
+
driverParam: string;
|
|
597
|
+
notNull: false;
|
|
598
|
+
hasDefault: false;
|
|
599
|
+
isPrimaryKey: false;
|
|
600
|
+
isAutoincrement: false;
|
|
601
|
+
hasRuntimeDefault: false;
|
|
602
|
+
enumValues: ["production", "sandbox"];
|
|
603
|
+
baseColumn: never;
|
|
604
|
+
identity: undefined;
|
|
605
|
+
generated: undefined;
|
|
606
|
+
}, {}, {}>;
|
|
607
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
608
|
+
name: "created_at";
|
|
609
|
+
tableName: "devices";
|
|
610
|
+
dataType: "date";
|
|
611
|
+
columnType: "PgTimestamp";
|
|
612
|
+
data: Date;
|
|
613
|
+
driverParam: string;
|
|
614
|
+
notNull: true;
|
|
615
|
+
hasDefault: true;
|
|
616
|
+
isPrimaryKey: false;
|
|
617
|
+
isAutoincrement: false;
|
|
618
|
+
hasRuntimeDefault: false;
|
|
619
|
+
enumValues: undefined;
|
|
620
|
+
baseColumn: never;
|
|
621
|
+
identity: undefined;
|
|
622
|
+
generated: undefined;
|
|
623
|
+
}, {}, {}>;
|
|
624
|
+
lastSeenAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
625
|
+
name: "last_seen_at";
|
|
626
|
+
tableName: "devices";
|
|
627
|
+
dataType: "date";
|
|
628
|
+
columnType: "PgTimestamp";
|
|
629
|
+
data: Date;
|
|
630
|
+
driverParam: string;
|
|
631
|
+
notNull: true;
|
|
632
|
+
hasDefault: true;
|
|
633
|
+
isPrimaryKey: false;
|
|
634
|
+
isAutoincrement: false;
|
|
635
|
+
hasRuntimeDefault: false;
|
|
636
|
+
enumValues: undefined;
|
|
637
|
+
baseColumn: never;
|
|
638
|
+
identity: undefined;
|
|
639
|
+
generated: undefined;
|
|
640
|
+
}, {}, {}>;
|
|
641
|
+
};
|
|
642
|
+
dialect: "pg";
|
|
643
|
+
}>;
|
|
128
644
|
//#endregion
|
|
129
|
-
export { users };
|
|
645
|
+
export { devices, notificationSettings, userProfiles, users };
|
|
130
646
|
//# sourceMappingURL=identity.d.ts.map
|
package/dist/schema/identity.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { assets } from "./assets.js";
|
|
2
|
+
import { communities, spaces } from "./content.js";
|
|
3
|
+
import { orgUsers } from "./organizations.js";
|
|
4
|
+
import { sql } from "drizzle-orm";
|
|
5
|
+
import { boolean, check, foreignKey, index, jsonb, pgTable, primaryKey, text, timestamp, uniqueIndex } from "drizzle-orm/pg-core";
|
|
2
6
|
import { genId } from "@headless-lms/core/shared/id";
|
|
3
7
|
//#region src/schema/identity.ts
|
|
4
8
|
const users = pgTable("users", {
|
|
@@ -10,7 +14,77 @@ const users = pgTable("users", {
|
|
|
10
14
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
11
15
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow().$onUpdate(() => /* @__PURE__ */ new Date())
|
|
12
16
|
});
|
|
17
|
+
const userProfiles = pgTable("user_profiles", {
|
|
18
|
+
userId: text("user_id").primaryKey().references(() => users.id, { onDelete: "cascade" }),
|
|
19
|
+
displayName: text("display_name"),
|
|
20
|
+
headline: text("headline"),
|
|
21
|
+
bio: text("bio"),
|
|
22
|
+
imageAssetOrgId: text("image_asset_org_id"),
|
|
23
|
+
imageAssetId: text("image_asset_id"),
|
|
24
|
+
extra: jsonb("extra").$type().notNull().default({}),
|
|
25
|
+
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
26
|
+
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow().$onUpdate(() => /* @__PURE__ */ new Date())
|
|
27
|
+
}, (t) => ({
|
|
28
|
+
imageFk: foreignKey({
|
|
29
|
+
columns: [t.imageAssetOrgId, t.imageAssetId],
|
|
30
|
+
foreignColumns: [assets.orgId, assets.id]
|
|
31
|
+
}),
|
|
32
|
+
imageCk: check("user_profiles_image_check", sql`(${t.imageAssetOrgId} is null) = (${t.imageAssetId} is null)`),
|
|
33
|
+
imageIdx: index("user_profiles_image_idx").on(t.imageAssetOrgId, t.imageAssetId)
|
|
34
|
+
}));
|
|
35
|
+
const notificationSettings = pgTable("notification_settings", {
|
|
36
|
+
orgId: text("org_id").notNull(),
|
|
37
|
+
id: text("id").notNull().$defaultFn(() => genId("notificationSetting")),
|
|
38
|
+
userId: text("user_id").notNull(),
|
|
39
|
+
communityId: text("community_id"),
|
|
40
|
+
spaceId: text("space_id"),
|
|
41
|
+
category: text("category").notNull(),
|
|
42
|
+
channel: text("channel").notNull(),
|
|
43
|
+
enabled: boolean("enabled").notNull(),
|
|
44
|
+
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow()
|
|
45
|
+
}, (t) => ({
|
|
46
|
+
pk: primaryKey({ columns: [t.orgId, t.id] }),
|
|
47
|
+
userFk: foreignKey({
|
|
48
|
+
columns: [t.orgId, t.userId],
|
|
49
|
+
foreignColumns: [orgUsers.orgId, orgUsers.userId]
|
|
50
|
+
}).onDelete("cascade"),
|
|
51
|
+
communityFk: foreignKey({
|
|
52
|
+
columns: [t.orgId, t.communityId],
|
|
53
|
+
foreignColumns: [communities.orgId, communities.id]
|
|
54
|
+
}).onDelete("cascade"),
|
|
55
|
+
spaceFk: foreignKey({
|
|
56
|
+
columns: [t.orgId, t.spaceId],
|
|
57
|
+
foreignColumns: [spaces.orgId, spaces.id]
|
|
58
|
+
}).onDelete("cascade"),
|
|
59
|
+
settingIdx: uniqueIndex("notification_settings_setting_idx").on(t.orgId, t.userId, sql`coalesce(${t.communityId}, '')`, sql`coalesce(${t.spaceId}, '')`, t.category, t.channel),
|
|
60
|
+
switchedOnIdx: index("notification_settings_switched_on_idx").on(t.orgId, sql`coalesce(${t.communityId}, '')`, t.category, sql`coalesce(${t.spaceId}, '')`).where(sql`${t.enabled}`)
|
|
61
|
+
}));
|
|
62
|
+
const devices = pgTable("devices", {
|
|
63
|
+
orgId: text("org_id").notNull(),
|
|
64
|
+
id: text("id").notNull().$defaultFn(() => genId("device")),
|
|
65
|
+
userId: text("user_id").notNull(),
|
|
66
|
+
provider: text("provider", { enum: [
|
|
67
|
+
"apns",
|
|
68
|
+
"fcm",
|
|
69
|
+
"webpush"
|
|
70
|
+
] }).notNull(),
|
|
71
|
+
token: text("token").notNull(),
|
|
72
|
+
p256dh: text("p256dh"),
|
|
73
|
+
auth: text("auth"),
|
|
74
|
+
appId: text("app_id"),
|
|
75
|
+
environment: text("environment", { enum: ["production", "sandbox"] }),
|
|
76
|
+
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
77
|
+
lastSeenAt: timestamp("last_seen_at", { withTimezone: true }).notNull().defaultNow()
|
|
78
|
+
}, (t) => ({
|
|
79
|
+
pk: primaryKey({ columns: [t.orgId, t.id] }),
|
|
80
|
+
userFk: foreignKey({
|
|
81
|
+
columns: [t.orgId, t.userId],
|
|
82
|
+
foreignColumns: [orgUsers.orgId, orgUsers.userId]
|
|
83
|
+
}).onDelete("cascade"),
|
|
84
|
+
tokenIdx: uniqueIndex("devices_token_idx").on(t.orgId, t.provider, t.token),
|
|
85
|
+
userIdx: index("devices_user_idx").on(t.orgId, t.userId, t.lastSeenAt)
|
|
86
|
+
}));
|
|
13
87
|
//#endregion
|
|
14
|
-
export { users };
|
|
88
|
+
export { devices, notificationSettings, userProfiles, users };
|
|
15
89
|
|
|
16
90
|
//# sourceMappingURL=identity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.js","names":[],"sources":["../../src/schema/identity.ts"],"sourcesContent":["// identity tables — the person.\n//\n// One row per human, global, storing auth ID in `external_id`.\nimport { pgTable
|
|
1
|
+
{"version":3,"file":"identity.js","names":[],"sources":["../../src/schema/identity.ts"],"sourcesContent":["// identity tables — the person.\n//\n// One row per human, global, storing auth ID in `external_id`.\nimport { sql } from \"drizzle-orm\";\nimport {\n pgTable,\n text,\n jsonb,\n timestamp,\n boolean,\n foreignKey,\n check,\n index,\n primaryKey,\n uniqueIndex,\n} from \"drizzle-orm/pg-core\";\nimport type { User, UserProfile } from \"@headless-lms/core/schemas\";\nimport { genId } from \"@headless-lms/core/shared/id\";\nimport { assets } from \"./assets.js\";\nimport { orgUsers } from \"./organizations.js\";\nimport { communities, spaces } from \"./content.js\";\nimport type { Expect, NoDrift } from \"./drift.js\";\n\nexport const users = pgTable(\"users\", {\n id: text(\"id\")\n .primaryKey()\n .$defaultFn(() => genId(\"user\")),\n // auth engine's ID - e.g. better-auth.\n externalId: text(\"external_id\").unique(),\n email: text(\"email\").notNull().unique(),\n firstName: text(\"first_name\"),\n lastName: text(\"last_name\"),\n createdAt: timestamp(\"created_at\", { withTimezone: true }).notNull().defaultNow(),\n updatedAt: timestamp(\"updated_at\", { withTimezone: true })\n .notNull()\n .defaultNow()\n .$onUpdate(() => new Date()),\n});\n\nexport const userProfiles = pgTable(\n \"user_profiles\",\n {\n userId: text(\"user_id\")\n .primaryKey()\n .references(() => users.id, { onDelete: \"cascade\" }),\n displayName: text(\"display_name\"),\n headline: text(\"headline\"),\n bio: text(\"bio\"),\n imageAssetOrgId: text(\"image_asset_org_id\"),\n imageAssetId: text(\"image_asset_id\"),\n extra: jsonb(\"extra\").$type<UserProfile[\"extra\"]>().notNull().default({}),\n createdAt: timestamp(\"created_at\", { withTimezone: true }).notNull().defaultNow(),\n updatedAt: timestamp(\"updated_at\", { withTimezone: true })\n .notNull()\n .defaultNow()\n .$onUpdate(() => new Date()),\n },\n (t) => ({\n imageFk: foreignKey({\n columns: [t.imageAssetOrgId, t.imageAssetId],\n foreignColumns: [assets.orgId, assets.id],\n }),\n imageCk: check(\n \"user_profiles_image_check\",\n sql`(${t.imageAssetOrgId} is null) = (${t.imageAssetId} is null)`,\n ),\n imageIdx: index(\"user_profiles_image_idx\").on(t.imageAssetOrgId, t.imageAssetId),\n }),\n);\n\nexport const notificationSettings = pgTable(\n \"notification_settings\",\n {\n orgId: text(\"org_id\").notNull(),\n id: text(\"id\")\n .notNull()\n .$defaultFn(() => genId(\"notificationSetting\")),\n userId: text(\"user_id\").notNull(),\n communityId: text(\"community_id\"),\n spaceId: text(\"space_id\"),\n category: text(\"category\").notNull(),\n channel: text(\"channel\").notNull(),\n enabled: boolean(\"enabled\").notNull(),\n updatedAt: timestamp(\"updated_at\", { withTimezone: true }).notNull().defaultNow(),\n },\n (t) => ({\n pk: primaryKey({ columns: [t.orgId, t.id] }),\n userFk: foreignKey({\n columns: [t.orgId, t.userId],\n foreignColumns: [orgUsers.orgId, orgUsers.userId],\n }).onDelete(\"cascade\"),\n communityFk: foreignKey({\n columns: [t.orgId, t.communityId],\n foreignColumns: [communities.orgId, communities.id],\n }).onDelete(\"cascade\"),\n spaceFk: foreignKey({\n columns: [t.orgId, t.spaceId],\n foreignColumns: [spaces.orgId, spaces.id],\n }).onDelete(\"cascade\"),\n settingIdx: uniqueIndex(\"notification_settings_setting_idx\").on(\n t.orgId,\n t.userId,\n sql`coalesce(${t.communityId}, '')`,\n sql`coalesce(${t.spaceId}, '')`,\n t.category,\n t.channel,\n ),\n switchedOnIdx: index(\"notification_settings_switched_on_idx\")\n .on(t.orgId, sql`coalesce(${t.communityId}, '')`, t.category, sql`coalesce(${t.spaceId}, '')`)\n .where(sql`${t.enabled}`),\n }),\n);\n\nexport const devices = pgTable(\n \"devices\",\n {\n orgId: text(\"org_id\").notNull(),\n id: text(\"id\")\n .notNull()\n .$defaultFn(() => genId(\"device\")),\n userId: text(\"user_id\").notNull(),\n provider: text(\"provider\", { enum: [\"apns\", \"fcm\", \"webpush\"] }).notNull(),\n token: text(\"token\").notNull(),\n p256dh: text(\"p256dh\"),\n auth: text(\"auth\"),\n appId: text(\"app_id\"),\n environment: text(\"environment\", { enum: [\"production\", \"sandbox\"] }),\n createdAt: timestamp(\"created_at\", { withTimezone: true }).notNull().defaultNow(),\n lastSeenAt: timestamp(\"last_seen_at\", { withTimezone: true }).notNull().defaultNow(),\n },\n (t) => ({\n pk: primaryKey({ columns: [t.orgId, t.id] }),\n userFk: foreignKey({\n columns: [t.orgId, t.userId],\n foreignColumns: [orgUsers.orgId, orgUsers.userId],\n }).onDelete(\"cascade\"),\n tokenIdx: uniqueIndex(\"devices_token_idx\").on(t.orgId, t.provider, t.token),\n userIdx: index(\"devices_user_idx\").on(t.orgId, t.userId, t.lastSeenAt),\n }),\n);\n\ntype _UsersDrift = Expect<NoDrift<typeof users.$inferSelect, User>>;\ntype _UserProfilesDrift = Expect<NoDrift<typeof userProfiles.$inferSelect, UserProfile>>;\n"],"mappings":";;;;;;;AAuBA,MAAa,QAAQ,QAAQ,SAAS;CACpC,IAAI,KAAK,IAAI,CAAC,CACX,W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18 @@
|
|
|
1
1
|
import { invites, orgUsers, organizations } from "./organizations.js";
|
|
2
|
-
import { activities, activityAssets, bundleItems, bundles, contentItems, courses, downloadAssets, downloads, modules } from "./content.js";
|
|
3
|
-
import { entitlements } from "./entitlements.js";
|
|
2
|
+
import { activities, activityAssets, bundleItems, bundles, communities, contentItems, courses, downloadAssets, downloads, modules, spaceLinks, spaceTopics, spaces } from "./content.js";
|
|
3
|
+
import { contentAccess, entitlementEndingSoonNotices, entitlementExpiryNotices, entitlements, spaceMembers } from "./entitlements.js";
|
|
4
4
|
import { progressRecords } from "./progress.js";
|
|
5
|
-
import { users } from "./identity.js";
|
|
5
|
+
import { devices, notificationSettings, userProfiles, users } from "./identity.js";
|
|
6
6
|
import { assets } from "./assets.js";
|
|
7
7
|
import { credentials } from "./credentials.js";
|
|
8
8
|
import { connections } from "./integrations.js";
|
|
9
9
|
import { eventOutbox } from "./outbox.js";
|
|
10
|
-
import { automationRuns, automations } from "./automations.js";
|
|
10
|
+
import { automationRuns, automations, notificationDeliveries, notifications } from "./automations.js";
|
|
11
11
|
import { settings } from "./settings.js";
|
|
12
|
-
import {
|
|
12
|
+
import { blockedUsers, chatUsers, chats, commentFlags, commentReactions, comments, digestRuns, mentions, messageAttachments, messageFlags, messageReactions, messages, postBookmarks, postFlags, postReactions, posts, subscriptions } from "./discussion.js";
|
|
13
13
|
declare namespace index_d_exports {
|
|
14
|
-
export { activities, activityAssets, assets, automationRuns, automations, bundleItems, bundles,
|
|
14
|
+
export { activities, activityAssets, assets, automationRuns, automations, blockedUsers, bundleItems, bundles, chatUsers, chats, commentFlags, commentReactions, comments, communities, connections, contentAccess, contentItems, courses, credentials, devices, digestRuns, downloadAssets, downloads, entitlementEndingSoonNotices, entitlementExpiryNotices, entitlements, eventOutbox, invites, mentions, messageAttachments, messageFlags, messageReactions, messages, modules, notificationDeliveries, notificationSettings, notifications, orgUsers, organizations, postBookmarks, postFlags, postReactions, posts, progressRecords, settings, spaceLinks, spaceMembers, spaceTopics, spaces, subscriptions, userProfiles, users };
|
|
15
15
|
}
|
|
16
16
|
//#endregion
|
|
17
|
-
export { activities, activityAssets, assets, automationRuns, automations, bundleItems, bundles,
|
|
17
|
+
export { activities, activityAssets, assets, automationRuns, automations, blockedUsers, bundleItems, bundles, chatUsers, chats, commentFlags, commentReactions, comments, communities, connections, contentAccess, contentItems, courses, credentials, devices, digestRuns, downloadAssets, downloads, entitlementEndingSoonNotices, entitlementExpiryNotices, entitlements, eventOutbox, index_d_exports, invites, mentions, messageAttachments, messageFlags, messageReactions, messages, modules, notificationDeliveries, notificationSettings, notifications, orgUsers, organizations, postBookmarks, postFlags, postReactions, posts, progressRecords, settings, spaceLinks, spaceMembers, spaceTopics, spaces, subscriptions, userProfiles, users };
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|