Files
template-app/convex/generated/tenancy.ts
T

99 lines
5.8 KiB
TypeScript

// SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0
// Generated by @conusai-kit/data-convex (pnpm convex:gen). Do not edit by hand: regenerate.
// Module: tenancy. One Convex function per procedure (spec §5.4): read → query, write →
// mutation, effect → action. ctx.run is the custom-function ctx of convex/lib/functions.ts: it
// resolves the tenant scope, checks the permission and runs the procedure's own handler with the
// module's repositories bound to this function's ctx.db.
import { v } from "convex/values";
import { tenantMutation, tenantQuery } from "../lib/functions";
export const tenancy_invitation_accept = tenantMutation({
args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) },
handler: async (ctx, { input, idempotencyKey }) => ctx.run("tenancy.invitation.accept", input, idempotencyKey === undefined ? undefined : { idempotencyKey }),
});
export const tenancy_invitation_list = tenantQuery({
args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) },
handler: async (ctx, { input, idempotencyKey }) => ctx.run("tenancy.invitation.list", input, idempotencyKey === undefined ? undefined : { idempotencyKey }),
});
export const tenancy_me_get = tenantQuery({
args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) },
handler: async (ctx, { input, idempotencyKey }) => ctx.run("tenancy.me.get", input, idempotencyKey === undefined ? undefined : { idempotencyKey }),
});
export const tenancy_me_update = tenantMutation({
args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) },
handler: async (ctx, { input, idempotencyKey }) => ctx.run("tenancy.me.update", input, idempotencyKey === undefined ? undefined : { idempotencyKey }),
});
export const tenancy_member_change_role = tenantMutation({
args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) },
handler: async (ctx, { input, idempotencyKey }) => ctx.run("tenancy.member.change-role", input, idempotencyKey === undefined ? undefined : { idempotencyKey }),
});
export const tenancy_member_invite = tenantMutation({
args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) },
handler: async (ctx, { input, idempotencyKey }) => ctx.run("tenancy.member.invite", input, idempotencyKey === undefined ? undefined : { idempotencyKey }),
});
export const tenancy_member_leave = tenantMutation({
args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) },
handler: async (ctx, { input, idempotencyKey }) => ctx.run("tenancy.member.leave", input, idempotencyKey === undefined ? undefined : { idempotencyKey }),
});
export const tenancy_member_list = tenantQuery({
args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) },
handler: async (ctx, { input, idempotencyKey }) => ctx.run("tenancy.member.list", input, idempotencyKey === undefined ? undefined : { idempotencyKey }),
});
export const tenancy_member_remove = tenantMutation({
args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) },
handler: async (ctx, { input, idempotencyKey }) => ctx.run("tenancy.member.remove", input, idempotencyKey === undefined ? undefined : { idempotencyKey }),
});
export const tenancy_org_create = tenantMutation({
args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) },
handler: async (ctx, { input, idempotencyKey }) => ctx.run("tenancy.org.create", input, idempotencyKey === undefined ? undefined : { idempotencyKey }),
});
export const tenancy_org_get = tenantQuery({
args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) },
handler: async (ctx, { input, idempotencyKey }) => ctx.run("tenancy.org.get", input, idempotencyKey === undefined ? undefined : { idempotencyKey }),
});
export const tenancy_org_update = tenantMutation({
args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) },
handler: async (ctx, { input, idempotencyKey }) => ctx.run("tenancy.org.update", input, idempotencyKey === undefined ? undefined : { idempotencyKey }),
});
export const tenancy_project_create = tenantMutation({
args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) },
handler: async (ctx, { input, idempotencyKey }) => ctx.run("tenancy.project.create", input, idempotencyKey === undefined ? undefined : { idempotencyKey }),
});
export const tenancy_project_get = tenantQuery({
args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) },
handler: async (ctx, { input, idempotencyKey }) => ctx.run("tenancy.project.get", input, idempotencyKey === undefined ? undefined : { idempotencyKey }),
});
export const tenancy_project_list = tenantQuery({
args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) },
handler: async (ctx, { input, idempotencyKey }) => ctx.run("tenancy.project.list", input, idempotencyKey === undefined ? undefined : { idempotencyKey }),
});
export const tenancy_workspace_create = tenantMutation({
args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) },
handler: async (ctx, { input, idempotencyKey }) => ctx.run("tenancy.workspace.create", input, idempotencyKey === undefined ? undefined : { idempotencyKey }),
});
export const tenancy_workspace_list = tenantQuery({
args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) },
handler: async (ctx, { input, idempotencyKey }) => ctx.run("tenancy.workspace.list", input, idempotencyKey === undefined ? undefined : { idempotencyKey }),
});
export const tenancy_workspace_set_member = tenantMutation({
args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) },
handler: async (ctx, { input, idempotencyKey }) => ctx.run("tenancy.workspace.set-member", input, idempotencyKey === undefined ? undefined : { idempotencyKey }),
});