@ai-matrx/meet 0.7.14 → 0.7.15
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/CHANGELOG.md +7 -0
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +7 -6
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +10 -4
- package/dist/react.d.ts +10 -4
- package/dist/react.js +7 -6
- package/dist/react.js.map +1 -1
- package/package.json +2 -2
package/dist/react.cjs
CHANGED
|
@@ -3565,9 +3565,10 @@ function createMeetRepository(options) {
|
|
|
3565
3565
|
if (response.data === null) throw invalidResponse("meet.meeting", "no such meeting");
|
|
3566
3566
|
return projectMeeting(response.data);
|
|
3567
3567
|
},
|
|
3568
|
-
async listMeetings({ organizationId, limit = 25, before = null }) {
|
|
3569
|
-
|
|
3570
|
-
|
|
3568
|
+
async listMeetings({ organizationId = null, limit = 25, before = null }) {
|
|
3569
|
+
let query = db.from(TABLES.meetings).select(MEETING_COLUMNS);
|
|
3570
|
+
if (organizationId !== null) query = query.eq("organization_id", organizationId);
|
|
3571
|
+
query = query.order("scheduled_for", { ascending: false }).order("id", { ascending: false }).limit(limit + 1);
|
|
3571
3572
|
if (before !== null) {
|
|
3572
3573
|
query = query.or(
|
|
3573
3574
|
`scheduled_for.lt.${before.scheduledFor},and(scheduled_for.eq.${before.scheduledFor},id.lt.${before.id})`
|
|
@@ -6886,17 +6887,17 @@ function useMeetingRecord(meeting) {
|
|
|
6886
6887
|
reload: (0, import_react3.useCallback)(() => setNonce((value) => value + 1), [])
|
|
6887
6888
|
};
|
|
6888
6889
|
}
|
|
6889
|
-
function useMeetings(limit = 25) {
|
|
6890
|
+
function useMeetings(limit = 25, organizationFilter = null) {
|
|
6890
6891
|
const host = useMeetHost();
|
|
6891
6892
|
const repository = host?.repository ?? null;
|
|
6892
|
-
const organizationId =
|
|
6893
|
+
const organizationId = organizationFilter;
|
|
6893
6894
|
const [meetings, setMeetings] = (0, import_react3.useState)([]);
|
|
6894
6895
|
const [hasMore, setHasMore] = (0, import_react3.useState)(false);
|
|
6895
6896
|
const [loading, setLoading] = (0, import_react3.useState)(true);
|
|
6896
6897
|
const [failure, setFailure] = (0, import_react3.useState)(null);
|
|
6897
6898
|
const [nonce, setNonce] = (0, import_react3.useState)(0);
|
|
6898
6899
|
(0, import_react3.useEffect)(() => {
|
|
6899
|
-
if (repository === null
|
|
6900
|
+
if (repository === null) return void 0;
|
|
6900
6901
|
let live = true;
|
|
6901
6902
|
setLoading(true);
|
|
6902
6903
|
setFailure(null);
|