Remove meeting feature

Drop meetings and meeting_attendees tables, remove all meeting-related
code across GraphQL, MCP, CLI, N8N, webhooks, frontend, and e2e tests.

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-04-16 17:57:34 +02:00
parent c32aff5e9e
commit 6c5c1fa818
45 changed files with 24 additions and 4906 deletions

View File

@@ -275,15 +275,6 @@ func (r *queryResolver) Node(ctx context.Context, id gid.GID) (types.Node, error
}
return types.NewTrustCenterAccess(trustCenterAccess), nil
}
case coredata.MeetingEntityType:
action = probo.ActionMeetingGet
loadNode = func(ctx context.Context, id gid.GID) (types.Node, error) {
meeting, err := prb.Meetings.Get(ctx, id)
if err != nil {
return nil, err
}
return types.NewMeeting(meeting), nil
}
case coredata.RightsRequestEntityType:
action = probo.ActionRightsRequestGet
loadNode = func(ctx context.Context, id gid.GID) (types.Node, error) {

View File

@@ -1,82 +0,0 @@
enum MeetingOrderField
@goModel(model: "go.probo.inc/probo/pkg/coredata.MeetingOrderField") {
DATE @goEnum(value: "go.probo.inc/probo/pkg/coredata.MeetingOrderFieldDate")
NAME @goEnum(value: "go.probo.inc/probo/pkg/coredata.MeetingOrderFieldName")
CREATED_AT
@goEnum(
value: "go.probo.inc/probo/pkg/coredata.MeetingOrderFieldCreatedAt"
)
}
input MeetingOrder
@goModel(
model: "go.probo.inc/probo/pkg/server/api/console/v1/types.MeetingOrderBy"
) {
direction: OrderDirection!
field: MeetingOrderField!
}
type Meeting implements Node {
id: ID!
name: String!
date: Datetime!
minutes: String
attendees: [Profile!]! @goField(forceResolver: true)
organization: Organization! @goField(forceResolver: true)
createdAt: Datetime!
updatedAt: Datetime!
permission(action: String!): Boolean! @goField(forceResolver: true)
}
type MeetingConnection
@goModel(
model: "go.probo.inc/probo/pkg/server/api/console/v1/types.MeetingConnection"
) {
totalCount: Int! @goField(forceResolver: true)
edges: [MeetingEdge!]!
pageInfo: PageInfo!
}
type MeetingEdge {
cursor: CursorKey!
node: Meeting!
}
extend type Mutation {
createMeeting(input: CreateMeetingInput!): CreateMeetingPayload!
updateMeeting(input: UpdateMeetingInput!): UpdateMeetingPayload!
deleteMeeting(input: DeleteMeetingInput!): DeleteMeetingPayload!
}
input CreateMeetingInput {
organizationId: ID!
name: String!
date: Datetime!
attendeeIds: [ID!]
minutes: String
}
input UpdateMeetingInput {
meetingId: ID!
name: String
date: Datetime
attendeeIds: [ID!]
minutes: String @goField(omittable: true)
}
input DeleteMeetingInput {
meetingId: ID!
}
type CreateMeetingPayload {
meetingEdge: MeetingEdge!
}
type UpdateMeetingPayload {
meeting: Meeting!
}
type DeleteMeetingPayload {
deletedMeetingId: ID!
}

View File

@@ -245,14 +245,6 @@ type Organization implements Node {
filter: MeasureFilter
): MeasureConnection! @goField(forceResolver: true)
meetings(
first: Int
after: CursorKey
last: Int
before: CursorKey
orderBy: MeetingOrder
): MeetingConnection! @goField(forceResolver: true)
obligations(
first: Int
after: CursorKey

View File

@@ -1,11 +1,5 @@
enum WebhookEventType
@goModel(model: "go.probo.inc/probo/pkg/coredata.WebhookEventType") {
MEETING_CREATED
@goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventTypeMeetingCreated")
MEETING_UPDATED
@goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventTypeMeetingUpdated")
MEETING_DELETED
@goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventTypeMeetingDeleted")
VENDOR_CREATED
@goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventTypeVendorCreated")
VENDOR_UPDATED

View File

@@ -1,196 +0,0 @@
package console_v1
// This file will be automatically regenerated based on the schema, any resolver
// implementations
// will be copied through when generating and any unknown code will be moved to the end.
// Code generated by github.com/99designs/gqlgen version v0.17.87
import (
"context"
"errors"
"github.com/vikstrous/dataloadgen"
"go.gearno.de/kit/log"
"go.probo.inc/probo/pkg/coredata"
"go.probo.inc/probo/pkg/gid"
"go.probo.inc/probo/pkg/iam"
"go.probo.inc/probo/pkg/probo"
"go.probo.inc/probo/pkg/server/api/console/v1/dataloader"
"go.probo.inc/probo/pkg/server/api/console/v1/schema"
"go.probo.inc/probo/pkg/server/api/console/v1/types"
"go.probo.inc/probo/pkg/server/gqlutils"
"go.probo.inc/probo/pkg/validator"
)
// Attendees is the resolver for the attendees field.
func (r *meetingResolver) Attendees(ctx context.Context, obj *types.Meeting) ([]*types.Profile, error) {
// TODO bug must be paginated
if err := r.authorize(ctx, obj.ID, iam.ActionMembershipProfileList); err != nil {
return nil, err
}
prb := r.ProboService(ctx, obj.ID.TenantID())
attendees, err := prb.Meetings.GetAttendees(ctx, obj.ID)
if err != nil {
r.logger.ErrorCtx(ctx, "cannot load meeting attendees", log.Error(err))
return nil, gqlutils.Internal(ctx)
}
if len(attendees) == 0 {
return []*types.Profile{}, nil
}
people := make([]*types.Profile, len(attendees))
for i, attendee := range attendees {
people[i] = types.NewProfile(attendee)
}
return people, nil
}
// Organization is the resolver for the organization field.
func (r *meetingResolver) Organization(ctx context.Context, obj *types.Meeting) (*types.Organization, error) {
if err := r.authorize(ctx, obj.ID, probo.ActionOrganizationGet); err != nil {
return nil, err
}
loaders := dataloader.FromContext(ctx)
organization, err := loaders.Organization.Load(ctx, obj.Organization.ID)
if err != nil {
if errors.Is(err, coredata.ErrResourceNotFound) || errors.Is(err, dataloadgen.ErrNotFound) {
return nil, gqlutils.NotFound(ctx, err)
}
r.logger.ErrorCtx(ctx, "cannot load organization", log.Error(err))
return nil, gqlutils.Internal(ctx)
}
return types.NewOrganization(organization), nil
}
// Permission is the resolver for the permission field.
func (r *meetingResolver) Permission(ctx context.Context, obj *types.Meeting, action string) (bool, error) {
return r.Resolver.Permission(ctx, obj, action)
}
// TotalCount is the resolver for the totalCount field.
func (r *meetingConnectionResolver) TotalCount(ctx context.Context, obj *types.MeetingConnection) (int, error) {
if err := r.authorize(ctx, obj.ParentID, probo.ActionMeetingList); err != nil {
return 0, err
}
prb := r.ProboService(ctx, obj.ParentID.TenantID())
switch obj.Resolver.(type) {
case *organizationResolver:
count, err := prb.Meetings.CountForOrganizationID(ctx, obj.ParentID)
if err != nil {
r.logger.ErrorCtx(ctx, "cannot count meetings", log.Error(err))
return 0, gqlutils.Internal(ctx)
}
return count, nil
}
r.logger.ErrorCtx(ctx, "unsupported resolver")
return 0, gqlutils.Internal(ctx)
}
// CreateMeeting is the resolver for the createMeeting field.
func (r *mutationResolver) CreateMeeting(ctx context.Context, input types.CreateMeetingInput) (*types.CreateMeetingPayload, error) {
if err := r.authorize(ctx, input.OrganizationID, probo.ActionMeetingCreate); err != nil {
return nil, err
}
prb := r.ProboService(ctx, input.OrganizationID.TenantID())
meeting, err := prb.Meetings.Create(
ctx,
probo.CreateMeetingRequest{
OrganizationID: input.OrganizationID,
Name: input.Name,
Date: input.Date,
AttendeeIDs: input.AttendeeIds,
Minutes: input.Minutes,
},
)
if err != nil {
if validationErrors, ok := errors.AsType[validator.ValidationErrors](err); ok {
return nil, gqlutils.InvalidValidationErrors(ctx, validationErrors)
}
r.logger.ErrorCtx(ctx, "cannot create meeting", log.Error(err))
return nil, gqlutils.Internal(ctx)
}
return &types.CreateMeetingPayload{
MeetingEdge: types.NewMeetingEdge(meeting, coredata.MeetingOrderFieldCreatedAt),
}, nil
}
// UpdateMeeting is the resolver for the updateMeeting field.
func (r *mutationResolver) UpdateMeeting(ctx context.Context, input types.UpdateMeetingInput) (*types.UpdateMeetingPayload, error) {
if err := r.authorize(ctx, input.MeetingID, probo.ActionMeetingUpdate); err != nil {
return nil, err
}
prb := r.ProboService(ctx, input.MeetingID.TenantID())
var attendeeIDs []gid.GID
if input.AttendeeIds != nil {
attendeeIDs = input.AttendeeIds
}
meeting, err := prb.Meetings.Update(
ctx,
probo.UpdateMeetingRequest{
MeetingID: input.MeetingID,
Name: input.Name,
Date: input.Date,
AttendeeIDs: attendeeIDs,
Minutes: gqlutils.UnwrapOmittable(input.Minutes),
},
)
if err != nil {
if validationErrors, ok := errors.AsType[validator.ValidationErrors](err); ok {
return nil, gqlutils.InvalidValidationErrors(ctx, validationErrors)
}
r.logger.ErrorCtx(ctx, "cannot update meeting", log.Error(err))
return nil, gqlutils.Internal(ctx)
}
return &types.UpdateMeetingPayload{
Meeting: types.NewMeeting(meeting),
}, nil
}
// DeleteMeeting is the resolver for the deleteMeeting field.
func (r *mutationResolver) DeleteMeeting(ctx context.Context, input types.DeleteMeetingInput) (*types.DeleteMeetingPayload, error) {
if err := r.authorize(ctx, input.MeetingID, probo.ActionMeetingDelete); err != nil {
return nil, err
}
prb := r.ProboService(ctx, input.MeetingID.TenantID())
err := prb.Meetings.Delete(ctx, input.MeetingID)
if err != nil {
r.logger.ErrorCtx(ctx, "cannot delete meeting", log.Error(err))
return nil, gqlutils.Internal(ctx)
}
return &types.DeleteMeetingPayload{
DeletedMeetingID: input.MeetingID,
}, nil
}
// Meeting returns schema.MeetingResolver implementation.
func (r *Resolver) Meeting() schema.MeetingResolver { return &meetingResolver{r} }
// MeetingConnection returns schema.MeetingConnectionResolver implementation.
func (r *Resolver) MeetingConnection() schema.MeetingConnectionResolver {
return &meetingConnectionResolver{r}
}
type meetingResolver struct{ *Resolver }
type meetingConnectionResolver struct{ *Resolver }

View File

@@ -769,36 +769,6 @@ func (r *organizationResolver) Measures(ctx context.Context, obj *types.Organiza
return types.NewMeasureConnection(page, r, obj.ID, measureFilter), nil
}
// Meetings is the resolver for the meetings field.
func (r *organizationResolver) Meetings(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MeetingOrderBy) (*types.MeetingConnection, error) {
if err := r.authorize(ctx, obj.ID, probo.ActionMeetingList); err != nil {
return nil, err
}
prb := r.ProboService(ctx, obj.ID.TenantID())
pageOrderBy := page.OrderBy[coredata.MeetingOrderField]{
Field: coredata.MeetingOrderFieldCreatedAt,
Direction: page.OrderDirectionDesc,
}
if orderBy != nil {
pageOrderBy = page.OrderBy[coredata.MeetingOrderField]{
Field: orderBy.Field,
Direction: orderBy.Direction,
}
}
cursor := types.NewCursor(first, after, last, before, pageOrderBy)
page, err := prb.Meetings.ListForOrganizationID(ctx, obj.ID, cursor)
if err != nil {
r.logger.ErrorCtx(ctx, "cannot list organization meetings", log.Error(err))
return nil, gqlutils.Internal(ctx)
}
return types.NewMeetingConnection(page, r, obj.ID), nil
}
// Obligations is the resolver for the obligations field.
func (r *organizationResolver) Obligations(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ObligationOrderBy, filter *types.ObligationFilter) (*types.ObligationConnection, error) {
if err := r.authorize(ctx, obj.ID, probo.ActionObligationList); err != nil {

View File

@@ -1,75 +0,0 @@
// Copyright (c) 2025-2026 Probo Inc <hello@getprobo.com>.
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
// AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
package types
import (
"go.probo.inc/probo/pkg/coredata"
"go.probo.inc/probo/pkg/gid"
"go.probo.inc/probo/pkg/page"
)
type (
MeetingOrderBy OrderBy[coredata.MeetingOrderField]
MeetingConnection struct {
TotalCount int
Edges []*MeetingEdge
PageInfo PageInfo
Resolver any
ParentID gid.GID
}
)
func NewMeetingConnection(
p *page.Page[*coredata.Meeting, coredata.MeetingOrderField],
parentType any,
parentID gid.GID,
) *MeetingConnection {
var edges = make([]*MeetingEdge, len(p.Data))
for i := range edges {
edges[i] = NewMeetingEdge(p.Data[i], p.Cursor.OrderBy.Field)
}
return &MeetingConnection{
Edges: edges,
PageInfo: *NewPageInfo(p),
Resolver: parentType,
ParentID: parentID,
}
}
func NewMeetingEdge(meeting *coredata.Meeting, orderBy coredata.MeetingOrderField) *MeetingEdge {
return &MeetingEdge{
Cursor: meeting.CursorKey(orderBy),
Node: NewMeeting(meeting),
}
}
func NewMeeting(meeting *coredata.Meeting) *Meeting {
return &Meeting{
ID: meeting.ID,
Name: meeting.Name,
Organization: &Organization{
ID: meeting.OrganizationID,
},
Date: meeting.Date,
Minutes: meeting.Minutes,
CreatedAt: meeting.CreatedAt,
UpdatedAt: meeting.UpdatedAt,
}
}

View File

@@ -2300,110 +2300,6 @@ func (r *Resolver) CancelSignatureRequestTool(ctx context.Context, req *mcp.Call
}, nil
}
func (r *Resolver) ListMeetingsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListMeetingsInput) (*mcp.CallToolResult, types.ListMeetingsOutput, error) {
r.MustAuthorize(ctx, input.OrganizationID, probo.ActionMeetingList)
prb := r.ProboService(ctx, input.OrganizationID)
pageOrderBy := page.OrderBy[coredata.MeetingOrderField]{
Field: coredata.MeetingOrderFieldCreatedAt,
Direction: page.OrderDirectionDesc,
}
if input.OrderBy != nil {
pageOrderBy = page.OrderBy[coredata.MeetingOrderField]{
Field: input.OrderBy.Field,
Direction: input.OrderBy.Direction,
}
}
cursor := types.NewCursor(input.Size, input.Cursor, pageOrderBy)
page, err := prb.Meetings.ListForOrganizationID(ctx, input.OrganizationID, cursor)
if err != nil {
panic(fmt.Errorf("cannot list organization meetings: %w", err))
}
return nil, types.NewListMeetingsOutput(page), nil
}
func (r *Resolver) GetMeetingTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetMeetingInput) (*mcp.CallToolResult, types.GetMeetingOutput, error) {
r.MustAuthorize(ctx, input.ID, probo.ActionMeetingGet)
prb := r.ProboService(ctx, input.ID)
meeting, err := prb.Meetings.Get(ctx, input.ID)
if err != nil {
return nil, types.GetMeetingOutput{}, fmt.Errorf("failed to get meeting: %w", err)
}
return nil, types.GetMeetingOutput{
Meeting: types.NewMeeting(meeting),
}, nil
}
func (r *Resolver) AddMeetingTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddMeetingInput) (*mcp.CallToolResult, types.AddMeetingOutput, error) {
r.MustAuthorize(ctx, input.OrganizationID, probo.ActionMeetingCreate)
svc := r.ProboService(ctx, input.OrganizationID)
meeting, err := svc.Meetings.Create(
ctx,
probo.CreateMeetingRequest{
OrganizationID: input.OrganizationID,
Name: input.Name,
Date: input.Date,
AttendeeIDs: input.AttendeeIds,
Minutes: input.Minutes,
},
)
if err != nil {
return nil, types.AddMeetingOutput{}, fmt.Errorf("failed to create meeting: %w", err)
}
return nil, types.AddMeetingOutput{
Meeting: types.NewMeeting(meeting),
}, nil
}
func (r *Resolver) UpdateMeetingTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateMeetingInput) (*mcp.CallToolResult, types.UpdateMeetingOutput, error) {
r.MustAuthorize(ctx, input.ID, probo.ActionMeetingUpdate)
svc := r.ProboService(ctx, input.ID)
meeting, err := svc.Meetings.Update(
ctx,
probo.UpdateMeetingRequest{
MeetingID: input.ID,
Name: input.Name,
Date: input.Date,
AttendeeIDs: input.AttendeeIds,
Minutes: UnwrapOmittable(input.Minutes),
},
)
if err != nil {
return nil, types.UpdateMeetingOutput{}, fmt.Errorf("failed to update meeting: %w", err)
}
return nil, types.UpdateMeetingOutput{
Meeting: types.NewMeeting(meeting),
}, nil
}
func (r *Resolver) DeleteMeetingTool(ctx context.Context, req *mcp.CallToolRequest, input *types.DeleteMeetingInput) (*mcp.CallToolResult, types.DeleteMeetingOutput, error) {
r.MustAuthorize(ctx, input.ID, probo.ActionMeetingDelete)
svc := r.ProboService(ctx, input.ID)
err := svc.Meetings.Delete(ctx, input.ID)
if err != nil {
return nil, types.DeleteMeetingOutput{}, fmt.Errorf("failed to delete meeting: %w", err)
}
return nil, types.DeleteMeetingOutput{
DeletedMeetingID: input.ID,
}, nil
}
func (r *Resolver) DeleteRiskTool(ctx context.Context, req *mcp.CallToolRequest, input *types.DeleteRiskInput) (*mcp.CallToolResult, types.DeleteRiskOutput, error) {
r.MustAuthorize(ctx, input.ID, probo.ActionRiskDelete)
@@ -2419,26 +2315,6 @@ func (r *Resolver) DeleteRiskTool(ctx context.Context, req *mcp.CallToolRequest,
}, nil
}
func (r *Resolver) ListMeetingAttendeesTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListMeetingAttendeesInput) (*mcp.CallToolResult, types.ListMeetingAttendeesOutput, error) {
r.MustAuthorize(ctx, input.MeetingID, probo.ActionMeetingGet)
svc := r.ProboService(ctx, input.MeetingID)
attendees, err := svc.Meetings.GetAttendees(ctx, input.MeetingID)
if err != nil {
return nil, types.ListMeetingAttendeesOutput{}, fmt.Errorf("failed to list meeting attendees: %w", err)
}
profiles := make([]*types.Profile, 0, len(attendees))
for _, a := range attendees {
profiles = append(profiles, types.NewProfile(a))
}
return nil, types.ListMeetingAttendeesOutput{
Attendees: profiles,
}, nil
}
func (r *Resolver) DeleteMeasureTool(ctx context.Context, req *mcp.CallToolRequest, input *types.DeleteMeasureInput) (*mcp.CallToolResult, types.DeleteMeasureOutput, error) {
r.MustAuthorize(ctx, input.ID, probo.ActionMeasureDelete)

View File

@@ -6113,68 +6113,9 @@ components:
type: boolean
description: Whether the notifications were sent successfully
MeetingOrderField:
type: string
enum:
- CREATED_AT
- DATE
- NAME
go.probo.inc/mcpgen/type: go.probo.inc/probo/pkg/coredata.MeetingOrderField
MeetingOrderBy:
type: object
required:
- field
- direction
properties:
field:
$ref: "#/components/schemas/MeetingOrderField"
description: Meeting order field
direction:
$ref: "#/components/schemas/OrderDirection"
description: Meeting order direction
Meeting:
type: object
required:
- id
- name
- date
- created_at
- updated_at
properties:
id:
$ref: "#/components/schemas/GID"
description: Meeting ID
name:
type: string
description: Meeting name
date:
type: string
format: date-time
description: Meeting date
minutes:
anyOf:
- type: string
description: Meeting minutes
- type: "null"
description: No minutes
description: Meeting minutes
created_at:
type: string
format: date-time
description: Creation timestamp
updated_at:
type: string
format: date-time
description: Update timestamp
WebhookEventType:
type: string
enum:
- "meeting:created"
- "meeting:updated"
- "meeting:deleted"
- "vendor:created"
- "vendor:updated"
- "vendor:deleted"
@@ -6447,166 +6388,6 @@ components:
- type: "null"
description: Next page cursor
ListMeetingsInput:
type: object
required:
- organization_id
properties:
organization_id:
$ref: "#/components/schemas/GID"
description: Organization ID
order_by:
$ref: "#/components/schemas/MeetingOrderBy"
description: Meeting order by
size:
type: integer
description: Page size
cursor:
$ref: "#/components/schemas/CursorKey"
description: Page cursor
ListMeetingsOutput:
type: object
required:
- meetings
properties:
meetings:
type: array
items:
$ref: "#/components/schemas/Meeting"
description: List of meetings
next_cursor:
anyOf:
- $ref: "#/components/schemas/CursorKey"
- type: "null"
description: Next page cursor
GetMeetingInput:
type: object
required:
- id
properties:
id:
$ref: "#/components/schemas/GID"
description: Meeting ID
GetMeetingOutput:
type: object
required:
- meeting
properties:
meeting:
$ref: "#/components/schemas/Meeting"
AddMeetingInput:
type: object
required:
- organization_id
- name
- date
properties:
organization_id:
$ref: "#/components/schemas/GID"
description: Organization ID
name:
type: string
description: Meeting name
date:
type: string
format: date-time
description: Meeting date
attendee_ids:
type: array
items:
$ref: "#/components/schemas/GID"
description: List of attendee profile IDs
minutes:
anyOf:
- type: string
description: Meeting minutes
- type: "null"
description: No minutes
description: Meeting minutes
AddMeetingOutput:
type: object
required:
- meeting
properties:
meeting:
$ref: "#/components/schemas/Meeting"
UpdateMeetingInput:
type: object
required:
- id
properties:
id:
$ref: "#/components/schemas/GID"
description: Meeting ID
name:
type: string
description: Meeting name
date:
type: string
format: date-time
description: Meeting date
attendee_ids:
type: array
items:
$ref: "#/components/schemas/GID"
description: List of attendee profile IDs
minutes:
type: ["string", "null"]
description: Meeting minutes
go.probo.inc/mcpgen/omittable: true
UpdateMeetingOutput:
type: object
required:
- meeting
properties:
meeting:
$ref: "#/components/schemas/Meeting"
DeleteMeetingInput:
type: object
required:
- id
properties:
id:
$ref: "#/components/schemas/GID"
description: Meeting ID
DeleteMeetingOutput:
type: object
required:
- deleted_meeting_id
properties:
deleted_meeting_id:
$ref: "#/components/schemas/GID"
description: Deleted meeting ID
ListMeetingAttendeesInput:
type: object
required:
- meeting_id
properties:
meeting_id:
$ref: "#/components/schemas/GID"
description: Meeting ID
ListMeetingAttendeesOutput:
type: object
required:
- attendees
properties:
attendees:
type: array
items:
$ref: "#/components/schemas/Profile"
description: List of attendee profiles
StatementOfApplicabilityOrderField:
type: string
enum:
@@ -9038,58 +8819,6 @@ tools:
$ref: "#/components/schemas/SendSigningNotificationsInput"
outputSchema:
$ref: "#/components/schemas/SendSigningNotificationsOutput"
- name: listMeetings
description: List all meetings for the organization
hints:
readonly: true
idempotent: true
inputSchema:
$ref: "#/components/schemas/ListMeetingsInput"
outputSchema:
$ref: "#/components/schemas/ListMeetingsOutput"
- name: getMeeting
description: Get a meeting by ID
hints:
readonly: true
idempotent: true
inputSchema:
$ref: "#/components/schemas/GetMeetingInput"
outputSchema:
$ref: "#/components/schemas/GetMeetingOutput"
- name: addMeeting
description: Add a new meeting to the organization
hints:
readonly: false
inputSchema:
$ref: "#/components/schemas/AddMeetingInput"
outputSchema:
$ref: "#/components/schemas/AddMeetingOutput"
- name: updateMeeting
description: Update an existing meeting
hints:
readonly: false
inputSchema:
$ref: "#/components/schemas/UpdateMeetingInput"
outputSchema:
$ref: "#/components/schemas/UpdateMeetingOutput"
- name: deleteMeeting
description: Delete a meeting
hints:
readonly: false
destructive: true
inputSchema:
$ref: "#/components/schemas/DeleteMeetingInput"
outputSchema:
$ref: "#/components/schemas/DeleteMeetingOutput"
- name: listMeetingAttendees
description: List all attendees for a meeting
hints:
readonly: true
idempotent: true
inputSchema:
$ref: "#/components/schemas/ListMeetingAttendeesInput"
outputSchema:
$ref: "#/components/schemas/ListMeetingAttendeesOutput"
- name: listStatementsOfApplicability
description: List all statements of applicability for the organization
hints:

View File

@@ -1,49 +0,0 @@
// Copyright (c) 2026 Probo Inc <hello@getprobo.com>.
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
// AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
package types
import (
"go.probo.inc/probo/pkg/coredata"
"go.probo.inc/probo/pkg/page"
)
func NewMeeting(m *coredata.Meeting) *Meeting {
return &Meeting{
ID: m.ID,
Name: m.Name,
Date: m.Date,
Minutes: m.Minutes,
CreatedAt: m.CreatedAt,
UpdatedAt: m.UpdatedAt,
}
}
func NewListMeetingsOutput(meetingPage *page.Page[*coredata.Meeting, coredata.MeetingOrderField]) ListMeetingsOutput {
meetings := make([]*Meeting, 0, len(meetingPage.Data))
for _, v := range meetingPage.Data {
meetings = append(meetings, NewMeeting(v))
}
var nextCursor *page.CursorKey
if len(meetingPage.Data) > 0 {
cursorKey := meetingPage.Data[len(meetingPage.Data)-1].CursorKey(meetingPage.Cursor.OrderBy.Field)
nextCursor = &cursorKey
}
return ListMeetingsOutput{
NextCursor: nextCursor,
Meetings: meetings,
}
}