@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/index.d.cts
CHANGED
|
@@ -1603,9 +1603,14 @@ interface MeetRepository {
|
|
|
1603
1603
|
getOrCreateMeeting(input: CreateMeetingInput): Promise<MeetingRecord>;
|
|
1604
1604
|
meetingBySlug(slug: string): Promise<MeetingRecord>;
|
|
1605
1605
|
meeting(id: MeetingId): Promise<MeetingRecord>;
|
|
1606
|
-
/**
|
|
1606
|
+
/**
|
|
1607
|
+
* Keyset paged, `(scheduled_for, id)`. Every meeting the person can access, in
|
|
1608
|
+
* ALL their organizations — `organizationId` is an OPTIONAL page filter
|
|
1609
|
+
* (absent/null = all organizations), never the active organization
|
|
1610
|
+
* (active-org-is-never-a-list-filter.md). Access is decided by RLS.
|
|
1611
|
+
*/
|
|
1607
1612
|
listMeetings(args: {
|
|
1608
|
-
organizationId
|
|
1613
|
+
organizationId?: OrganizationId | null;
|
|
1609
1614
|
limit?: number;
|
|
1610
1615
|
before?: {
|
|
1611
1616
|
scheduledFor: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1603,9 +1603,14 @@ interface MeetRepository {
|
|
|
1603
1603
|
getOrCreateMeeting(input: CreateMeetingInput): Promise<MeetingRecord>;
|
|
1604
1604
|
meetingBySlug(slug: string): Promise<MeetingRecord>;
|
|
1605
1605
|
meeting(id: MeetingId): Promise<MeetingRecord>;
|
|
1606
|
-
/**
|
|
1606
|
+
/**
|
|
1607
|
+
* Keyset paged, `(scheduled_for, id)`. Every meeting the person can access, in
|
|
1608
|
+
* ALL their organizations — `organizationId` is an OPTIONAL page filter
|
|
1609
|
+
* (absent/null = all organizations), never the active organization
|
|
1610
|
+
* (active-org-is-never-a-list-filter.md). Access is decided by RLS.
|
|
1611
|
+
*/
|
|
1607
1612
|
listMeetings(args: {
|
|
1608
|
-
organizationId
|
|
1613
|
+
organizationId?: OrganizationId | null;
|
|
1609
1614
|
limit?: number;
|
|
1610
1615
|
before?: {
|
|
1611
1616
|
scheduledFor: string;
|
package/dist/index.js
CHANGED
|
@@ -2233,9 +2233,10 @@ function createMeetRepository(options) {
|
|
|
2233
2233
|
if (response.data === null) throw invalidResponse("meet.meeting", "no such meeting");
|
|
2234
2234
|
return projectMeeting(response.data);
|
|
2235
2235
|
},
|
|
2236
|
-
async listMeetings({ organizationId, limit = 25, before = null }) {
|
|
2237
|
-
|
|
2238
|
-
|
|
2236
|
+
async listMeetings({ organizationId = null, limit = 25, before = null }) {
|
|
2237
|
+
let query = db.from(TABLES.meetings).select(MEETING_COLUMNS);
|
|
2238
|
+
if (organizationId !== null) query = query.eq("organization_id", organizationId);
|
|
2239
|
+
query = query.order("scheduled_for", { ascending: false }).order("id", { ascending: false }).limit(limit + 1);
|
|
2239
2240
|
if (before !== null) {
|
|
2240
2241
|
query = query.or(
|
|
2241
2242
|
`scheduled_for.lt.${before.scheduledFor},and(scheduled_for.eq.${before.scheduledFor},id.lt.${before.id})`
|